.ep-gallery-section{font-family:Inter,Arial,sans-serif;padding:6rem 0!important;background:#fff;color:#44519b}
.ep-gallery-section .ep-gallery-row{width:min(calc(100% - 3rem),1440px)!important;max-width:1440px!important;padding:0!important;margin:auto!important}
.ep-gallery-section .ep-gallery-column{width:100%!important;gap:0!important;margin:0!important}
.ep-gallery-section .et_pb_group{gap:0!important;min-width:0!important}
.ep-gallery-section .et_pb_module{margin-bottom:0!important}
.ep-gallery-section p{padding:0;font-weight:300;line-height:1.8}
.ep-gallery-heading h1,.ep-gallery-heading h2{font-family:Inter,Arial,sans-serif!important;font-weight:300!important;letter-spacing:-.045em;color:#243672;padding:0}
.ep-gallery-heading h1{font-size:clamp(3.5rem,6vw,5.8rem)!important;line-height:.95!important;max-width:10ch}
.ep-gallery-heading h2{font-size:clamp(2rem,3.4vw,3.6rem)!important;line-height:1.02!important}
.ep-gallery-eyebrow{font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;margin:0 0 1.2rem!important}
.ep-gallery-copy{font-size:1.05rem;line-height:1.85;margin-top:1.4rem!important}
.ep-gallery-button{display:inline-flex!important;width:auto!important;margin-top:1.6rem!important;border:1px solid #243672!important;border-radius:999px!important;padding:.9rem 1.4rem!important;font:500 .78rem/1.4 Inter,Arial,sans-serif!important;letter-spacing:.06em;text-transform:uppercase;background:transparent!important;color:#243672!important}
.ep-gallery-button:after{display:none!important}
.ep-gallery-section.ep-gallery-hero{background:#0a1434;padding:6rem 0!important;overflow:hidden}
.ep-gallery-hero .ep-gallery-hero-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:4rem!important;align-items:center}
.ep-gallery-hero .ep-gallery-heading h1,.ep-gallery-hero .ep-gallery-eyebrow{color:#fff!important}
.ep-gallery-hero .ep-gallery-copy{color:rgba(255,255,255,.84)}
.ep-gallery-hero .ep-gallery-hero-copy{max-width:34rem}
.ep-gallery-hero .ep-gallery-button{color:#fff!important;border-color:rgba(255,255,255,.24)!important;background:rgba(255,255,255,.08)!important}
.ep-gallery-hero-visual{position:relative}
.ep-gallery-hero-image img{width:100%;height:36rem;object-fit:cover;border-radius:4px}
.ep-gallery-frame{position:relative;margin:-8rem 1.5rem 0!important;padding:1.8rem!important;background:linear-gradient(180deg,rgba(10,20,52,.75),#0a1434);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(10px)}
.ep-gallery-frame .ep-gallery-heading h2{font-size:1.8rem!important;color:#fff!important;letter-spacing:-.03em}
.ep-gallery-frame .ep-gallery-copy{font-size:.9rem}
.ep-gallery-section.ep-gallery-ribbon{padding:2rem 0!important;background:#edf2fc}
.ep-gallery-ribbon-grid{display:flex!important;flex-flow:row nowrap!important;align-items:center;justify-content:space-between;gap:3rem!important}
.ep-gallery-ribbon .ep-gallery-copy{margin-top:0!important;max-width:54rem}
.ep-gallery-ribbon .et_pb_button_module_wrapper{width:auto!important;flex-shrink:0}.ep-gallery-ribbon .ep-gallery-button{margin-top:0!important}
.ep-gallery-portfolio{width:100%!important}
.ep-gallery-portfolio .et_pb_portfolio_filters ul{display:flex;flex-wrap:wrap;gap:.65rem;padding:0!important}
.ep-gallery-portfolio .et_pb_portfolio_filter{float:none!important;margin:0!important}
.ep-gallery-portfolio .et_pb_portfolio_filter :is(a,button){border:1px solid #c9d4ef!important;border-radius:999px!important;padding:.7rem 1rem!important;font:400 .8rem/1.4 Inter,Arial,sans-serif!important;color:#243672!important;background:#fff!important}
.ep-gallery-portfolio .et_pb_portfolio_filter :is(a,button).active,.ep-gallery-portfolio .et_pb_portfolio_filter :is(a,button):hover{background:#243672!important;color:#fff!important;border-color:#243672!important}
.ep-gallery-portfolio .et_pb_portfolio_filters{margin-bottom:2rem!important}
.ep-gallery-portfolio .et_pb_portfolio_items{gap:1.5rem!important}
.ep-gallery-portfolio .et_pb_portfolio_item{margin:0!important;border:1px solid #dfe6f7;border-radius:4px;overflow:hidden;background:#fff}
.ep-gallery-portfolio .et_portfolio_image img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.ep-gallery-portfolio .et_pb_module_header{padding:1.25rem 1.25rem 0!important;margin:0!important;font:400 1.6rem/1.15 Inter,Arial,sans-serif!important;letter-spacing:-.03em}
.ep-gallery-portfolio .et_pb_module_header a{color:#243672!important}
.ep-gallery-tags{padding:.65rem 1.25rem 1.25rem!important;margin:0!important;font:300 .8rem/1.6 Inter,Arial,sans-serif;color:#6170b1}
.ep-gallery-section.ep-gallery-final{background:#131d3e;text-align:center;padding:5rem 0!important}
.ep-gallery-final .ep-gallery-heading{max-width:55rem;margin:auto!important}.ep-gallery-final .ep-gallery-heading h2{color:#fff!important}
.ep-gallery-final .ep-gallery-eyebrow,.ep-gallery-final .ep-gallery-copy{color:rgba(255,255,255,.78)}.ep-gallery-final .ep-gallery-copy{max-width:45rem;margin:1.5rem auto 0!important}
.ep-gallery-final .ep-gallery-button{background:#fff!important;color:#243672!important;border-color:#fff!important}
.ep-gallery-dialog{width:min(95vw,1280px);max-height:92dvh;padding:0;border:0;border-radius:6px;background:#f7f9ff;color:#243672;overflow:auto}
.ep-gallery-dialog::backdrop{background:rgba(10,20,52,.86)}
.ep-gallery-dialog-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,.7fr);min-height:32rem}
.ep-gallery-dialog-visual{background:#0a1434;display:flex;align-items:center;justify-content:center}
.ep-gallery-dialog img{display:block;max-width:100%;width:auto;max-height:85dvh;object-fit:contain}
.ep-gallery-dialog-copy{padding:4rem 2rem 2rem;font-family:Inter,Arial,sans-serif}
.ep-gallery-dialog h2{font:300 2.5rem/1 Inter,Arial,sans-serif;color:#243672;letter-spacing:-.04em}
.ep-gallery-dialog-tags{font:300 .95rem/1.8 Inter,Arial,sans-serif;color:#6170b1;margin-top:1.5rem}
.ep-gallery-position{font:.8rem/1.5 Inter,Arial,sans-serif;margin-top:2rem;color:#6170b1}
.ep-gallery-close{position:absolute;right:1rem;top:1rem;z-index:2;border:0;border-radius:50%;background:#243672;color:#fff;font:300 2rem/1 Inter,Arial,sans-serif;width:44px;height:44px;cursor:pointer}
.ep-gallery-dialog-actions{display:flex;gap:.75rem;margin:1rem 0 2rem}
.ep-gallery-dialog-actions button{background:#fff;color:#243672;border:1px solid #b4c0e7;border-radius:50%;width:44px;height:44px;font-size:1.3rem;cursor:pointer}
.ep-gallery-contact{font:500 .8rem/1.5 Inter,Arial,sans-serif;color:#243672;text-transform:uppercase;letter-spacing:.04em;text-decoration:underline;text-underline-offset:5px}
.ep-gallery-section a:focus-visible,.ep-gallery-dialog a:focus-visible,.ep-gallery-dialog button:focus-visible{outline:3px solid #7f8dca;outline-offset:4px}
@media(max-width:980px){.ep-gallery-hero .ep-gallery-hero-grid{grid-template-columns:minmax(0,1fr)!important;gap:3rem!important}.ep-gallery-hero-image img{height:30rem}.ep-gallery-ribbon-grid{flex-direction:column!important;align-items:flex-start;gap:1.5rem!important}.ep-gallery-dialog-grid{grid-template-columns:1fr}.ep-gallery-dialog img{max-height:60dvh}.ep-gallery-dialog-copy{padding:2rem}.ep-gallery-dialog-grid{min-height:0}}
@media(max-width:600px){.ep-gallery-section{padding:4rem 0!important}.ep-gallery-section .ep-gallery-row{width:calc(100% - 2rem)!important}.ep-gallery-section.ep-gallery-hero{padding:4rem 0!important}.ep-gallery-heading h1{font-size:3.3rem!important}.ep-gallery-hero-image img{height:24rem}.ep-gallery-frame{margin:-5rem .75rem 0!important;padding:1.3rem!important}.ep-gallery-frame .ep-gallery-heading h2{font-size:1.5rem!important}.ep-gallery-portfolio .et_pb_portfolio_filter :is(a,button){font-size:.74rem!important;padding:.65rem .8rem!important}.ep-gallery-dialog{max-height:94dvh}.ep-gallery-dialog-copy{padding:1.5rem}}
.ep-gallery-products{padding:0 1.25rem 1.25rem!important;margin:0!important;font:300 .82rem/1.7 Inter,Arial,sans-serif;color:#44519b}
.ep-gallery-products>span:first-child{font-weight:500}.ep-gallery-products a{color:#243672;text-decoration:underline;text-underline-offset:3px}.ep-gallery-products a:focus-visible{outline:2px solid #6170b1;outline-offset:3px}
.ep-gallery-dialog-products .ep-gallery-products{padding:0!important;margin-top:1.3rem!important;font-size:.95rem}.ep-gallery-products:empty{display:none}
/* Individual feature pills, matching inspiration-tag in the static model. */
.ep-gallery-tags,.ep-gallery-dialog-tags{display:flex;flex-wrap:wrap;gap:.45rem}
.ep-gallery-tag{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:.4rem .8rem;border:1px solid rgba(68,81,155,.32);border-radius:999px;background:rgba(233,238,251,.78);color:#243672;font:600 .75rem/1.4 Inter,Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;max-width:100%;overflow-wrap:anywhere}
@media(max-width:600px){.ep-gallery-tag{font-size:.67rem;padding:.4rem .65rem;letter-spacing:.08em}}
/* Original gallery masonry: natural image ratios, flowing columns. */
.ep-gallery-portfolio .et_pb_portfolio_items{display:block!important;column-count:3!important;column-gap:1.5rem!important;height:auto!important;min-height:0!important}
.ep-gallery-portfolio .et_pb_portfolio_item{break-inside:avoid!important;page-break-inside:avoid;display:inline-block;vertical-align:top;float:none!important;position:relative!important;left:auto!important;top:auto!important;width:100%!important;max-width:none!important;height:auto!important;margin:0 0 1.5rem!important;box-sizing:border-box}
.ep-gallery-portfolio .et_portfolio_image{display:block;width:100%;height:auto!important;aspect-ratio:auto!important;overflow:hidden}
.ep-gallery-portfolio .et_portfolio_image img{display:block;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important}
@media(max-width:980px){.ep-gallery-portfolio .et_pb_portfolio_items{column-count:2!important}}
@media(max-width:600px){.ep-gallery-portfolio .et_pb_portfolio_items{column-count:1!important}}
/* Progressive display, independent from Divi's filter animations and pagination. */
.ep-gallery-progressive .et_pb_portfolio_item[hidden],.ep-gallery-load-controls [hidden]{display:none!important}
.ep-gallery-progressive .et_pb_portfolio_item:not([hidden]){display:inline-block!important;opacity:1!important;visibility:visible!important;transform:none!important;animation:none!important}
.ep-gallery-load-controls{clear:both;text-align:center;padding-top:2rem}
.ep-gallery-load-status{font:400 .9rem/1.6 Inter,Arial,sans-serif;color:#6170b1;margin:0 0 1rem!important}
.ep-gallery-load-more{padding:1rem 1.7rem;border:1px solid #243672;border-radius:999px;background:#243672;color:#fff;font:500 .8rem/1.4 Inter,Arial,sans-serif;letter-spacing:.05em;cursor:pointer;min-height:48px}
.ep-gallery-load-more:hover{background:#44519b}
.ep-gallery-load-more:focus-visible{outline:3px solid #7f8dca;outline-offset:4px}

/* Native filter buttons retain the existing pill appearance. */
.ep-gallery-portfolio .et_pb_portfolio_filter button{display:block;cursor:pointer;text-align:center;min-height:44px;appearance:none;letter-spacing:normal;text-transform:none}
.ep-gallery-portfolio .et_pb_portfolio_filter button:focus-visible{outline:3px solid #243672;outline-offset:3px}
