/* S13 Gallery (#gallery). Owner: S13 agent. Only what Elementor controls cannot do.
   Native structure: grid container .lz-s13-masonry (4 / 3 / 2 columns) holding 12 Video widgets; each tile's
   Row Span and Column Span are set in the panel. Here: the row unit is tied to the column width so a 2 row tile
   is exactly 16:9 and a 6 row tile is 9:16, the tiles fill their cells, and the hover and focus states. */
body.page-id-5703 #gallery .lz-s13-grid{max-width:1600px;margin-left:auto;margin-right:auto;container-type:inline-size}
body.page-id-5703 #gallery .lz-s13-masonry{--lz-s13-gap:16px;--lz-s13-cols:4;--lz-s13-row:calc(((100cqw - (var(--lz-s13-cols) - 1) * var(--lz-s13-gap)) / var(--lz-s13-cols) * .5625 - var(--lz-s13-gap)) / 2);width:100%}
body.page-id-5703 #gallery .lz-s13-tile{width:100%;height:100%;min-height:0;margin:0!important}
body.page-id-5703 #gallery .lz-s13-tile>.elementor-widget-container{height:100%}
body.page-id-5703 #gallery .lz-s13-tile .elementor-wrapper{position:relative;height:100%;aspect-ratio:auto!important;overflow:hidden;border-radius:14px;background:#0B1F33;box-shadow:0 22px 40px -26px rgba(0,0,0,.85);cursor:pointer;isolation:isolate}
body.page-id-5703 #gallery .lz-s13-tile video.elementor-video{display:block;width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.7,.2,1),filter .7s ease}
body.page-id-5703 #gallery .lz-s13-tile .elementor-wrapper:hover video.elementor-video{transform:scale(1.035);filter:brightness(1.05)}
body.page-id-5703 #gallery .lz-s13-tile .elementor-wrapper:focus-visible{outline:3px solid #FFFFFF;outline-offset:3px}
/* Small glass play or pause badge, shown on hover, focus, or while a tile is paused by the visitor. */
body.page-id-5703 #gallery .lz-s13-badge{position:absolute;right:12px;bottom:12px;z-index:2;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:rgba(0,17,36,.55);border:1px solid rgba(255,255,255,.35);color:#fff;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);opacity:0;transform:scale(.9);transition:opacity .25s ease,transform .25s ease;pointer-events:none}
body.page-id-5703 #gallery .lz-s13-badge svg{width:14px;height:14px;fill:currentColor}
body.page-id-5703 #gallery .lz-s13-tile .elementor-wrapper:hover .lz-s13-badge,body.page-id-5703 #gallery .lz-s13-tile .elementor-wrapper:focus-visible .lz-s13-badge,body.page-id-5703 #gallery .lz-s13-tile .is-held .lz-s13-badge{opacity:1;transform:none}
/* Inline title photos: keep circles round in every browser. */
body.page-id-5703 .lz-s13-title .trx-addons-advanced-title-item-gallery img{aspect-ratio:1/1;object-fit:cover}
/* Our Work pill sits on the navy #001124 section: lift it to navy 2 so it reads as a solid pill, not an outline. */
body.page-id-5703 #gallery .lz-pill.lz-pill--light .elementor-heading-title{background:#0B1F33;border-color:rgba(255,255,255,.4)}
/* Matches the Elementor tablet breakpoint (max-width 1279px) where grid 8f4d0b1 switches to 3 columns. */
@media (max-width:1279px){
body.page-id-5703 #gallery .lz-s13-masonry{--lz-s13-gap:12px;--lz-s13-cols:3}
}
@media (max-width:767px){
body.page-id-5703 #gallery .lz-s13-masonry{--lz-s13-gap:8px;--lz-s13-cols:2}
body.page-id-5703 #gallery .lz-s13-tile .elementor-wrapper{border-radius:10px}
body.page-id-5703 #gallery .lz-s13-badge{right:8px;bottom:8px;width:32px;height:32px}
}
/* Fix r1: the title breaks into even lines (it left "Finish" alone at 320). The side gutters now match the other
   sections natively (Elementor padding 30px tablet, 20px mobile on ba22212). */
@media (max-width:767px){
body.page-id-5703 #gallery .elementor-element-2a5fbd1 .trx-addons-advanced-title{text-wrap:balance}
}
/* Fix r1, 540 to 767 (600 and 712 portrait, landscape phones): the 3 column tablet masonry (same tile spans as the
   native tablet layout) instead of 2 columns of very tall tiles. Landscape phones cap the grid so a portrait tile stays
   within the screen height. */
@media (min-width:540px) and (max-width:767px){
body.page-id-5703 #gallery .lz-s13-masonry{--lz-s13-cols:3;--e-con-grid-template-columns:repeat(3,1fr);--e-con-grid-template-rows:repeat(16,var(--lz-s13-row,70px))}
body.page-id-5703 #gallery .elementor-element-f6d8aab,body.page-id-5703 #gallery .elementor-element-161412b{grid-row:span 5}
body.page-id-5703 #gallery .elementor-element-b910d1c{grid-row:span 3}
body.page-id-5703 #gallery .elementor-element-95e6b17{grid-column:span 2;grid-row:span 4}
}
@media (min-width:540px) and (max-width:767px) and (orientation:landscape){
body.page-id-5703 #gallery .lz-s13-grid{max-width:calc(150vh + 16px)}
}
/* Narrow phones (360): keep the title on 3 lines. */
@media (max-width:380px){
body.page-id-5703 #gallery .elementor-element-2a5fbd1 .trx-addons-advanced-title{font-size:23px}
}
@media (prefers-reduced-motion:reduce){
body.page-id-5703 #gallery .lz-s13-tile video.elementor-video,body.page-id-5703 #gallery .lz-s13-badge{transition:none}
body.page-id-5703 #gallery .lz-s13-tile .elementor-wrapper:hover video.elementor-video{transform:none}
}
