.gallery-section{padding:90px 0 78px;overflow:hidden;background:linear-gradient(180deg,transparent,rgba(0,20,35,.6) 30%,rgba(0,20,35,.6) 70%,transparent)}
.gallery-section[hidden]{display:none}
.gallery-heading{padding:0 clamp(22px,6vw,100px);margin-bottom:30px}
.gallery-heading h2{font-size:clamp(32px,4vw,60px);max-width:1000px;margin:16px 0 10px;color:var(--ink)}
.gallery-heading p{font-size:clamp(15px,1.4vw,19px);color:var(--ink-dim)}
.marquee-row{overflow:hidden;touch-action:pan-y}
.marquee-row+.marquee-row{margin-top:16px}
.marquee-track{display:flex;gap:16px;width:max-content;will-change:transform}
.gallery-tile{position:relative;display:block;flex:0 0 clamp(240px,26vw,360px);width:clamp(240px,26vw,360px);height:clamp(170px,18vw,240px);padding:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;cursor:zoom-in;background:var(--glass);text-align:left;isolation:isolate}
.gallery-tile img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.gallery-tile:hover img{transform:scale(1.04)}
.gallery-tile:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.gallery-tile .gallery-copy{position:absolute;left:0;right:0;bottom:0;padding:12px 16px;background:linear-gradient(transparent,rgba(0,20,35,.85));color:#fff;display:flex;flex-direction:column;gap:2px}
.gallery-copy strong{font-size:17px;line-height:1.3;font-weight:600}
.gallery-copy small{font-size:12px;line-height:1.4;opacity:.8}
.gallery-hint{padding:22px clamp(22px,6vw,100px) 0;font-size:13px;color:var(--ink-dim);text-align:center}
.gallery-dialog{width:min(960px,92vw);max-height:92vh;border:1px solid var(--line);border-radius:16px;padding:18px;background:var(--sky-deep);box-shadow:0 28px 90px rgba(0,0,0,.5);color:var(--ink)}
.gallery-dialog::backdrop{background:rgba(0,10,20,.8)}
.gallery-dialog figure{margin:0}
.gallery-dialog img{display:block;max-width:100%;max-height:75vh;margin:auto;object-fit:contain;border-radius:8px}
.gallery-dialog figcaption{padding:12px 8px 2px;font-size:15px;color:var(--ink-dim)}
.gallery-close{position:absolute;right:18px;top:12px;border:0;border-radius:50%;width:36px;height:36px;background:rgba(255,255,255,.1);color:#fff;font-size:24px;line-height:1;cursor:pointer}
@media(max-width:760px){
  .gallery-section{padding:64px 0 52px}
  .gallery-heading{margin-bottom:22px}
  .marquee-row+.marquee-row{margin-top:10px}
  .marquee-track{gap:10px}
  .gallery-tile{flex-basis:210px;width:210px;height:150px}
  .gallery-copy strong{font-size:14px}
  .gallery-copy small{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  .marquee-row{overflow-x:auto}
  .marquee-track{transform:none!important;will-change:auto}
  .gallery-tile[data-clone]{display:none}
  .gallery-tile img{transition:none}
}
