.hero-visual {height:auto;aspect-ratio:1/1;margin-bottom:32px}
.hero-visual img.portrait {object-position:center;filter:none;aspect-ratio:1/1}
.gallery-trigger {display:inline-flex;align-items:center;min-height:44px;background:transparent;color:var(--blue);border:0;border-bottom:1px solid currentColor;padding:10px 0;font:700 14px Manrope,Arial,sans-serif;cursor:pointer;text-align:left}
.feature-dark .gallery-trigger {color:var(--cyan)}
.project>.gallery-trigger {margin:0 38px 32px}
.gallery-card {cursor:pointer}
.gallery-card:hover .gallery-trigger {color:#0751c7}
.story-photo {height:auto}
.story-photo>img {height:500px}
.story-photo .gallery-trigger {margin-top:12px}
button:focus-visible,a:focus-visible {outline:3px solid var(--blue);outline-offset:5px}
.gallery-open {overflow:hidden}
#gallery {padding:28px;border:1px solid #344154;background:var(--ink);color:#fff;width:min(1050px,94vw);max-height:92dvh;overflow:auto;overscroll-behavior:contain}
#gallery::backdrop {background:rgb(2,7,16);backdrop-filter:blur(6px)}
.gallery-header {display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}
.gallery-header .eyebrow {color:var(--cyan);font-size:12px;margin-bottom:12px}
.gallery-header h2 {font-size:clamp(1.6rem,3vw,2.5rem);letter-spacing:-.03em;line-height:1.15}
.gallery-close {flex-shrink:0;width:44px;height:44px;font-size:20px;background:#182438;color:#fff;border:1px solid #41516a;cursor:pointer}
.gallery-figure {margin:0}
#gallery-image {width:100%;height:min(53dvh,600px);object-fit:contain;background:#0c1728}
#gallery-caption {font:400 14px/1.6 Manrope,Arial,sans-serif;letter-spacing:0;text-transform:none;color:#c3cddd;min-height:2.8em}
.gallery-controls {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0}
.gallery-controls button {background:#182438;color:#fff;border:1px solid #41516a;padding:12px 16px;min-height:44px;font:600 14px Manrope,Arial,sans-serif;cursor:pointer}
.gallery-controls button:disabled {opacity:.35;cursor:default}
#gallery-count {font:400 14px 'DM Mono',monospace;white-space:nowrap}
#gallery-thumbs {display:none}
#gallery-thumbs button {padding:3px;width:90px;height:68px;border:2px solid transparent;background:#243147;cursor:pointer}
#gallery-thumbs button[aria-pressed=true] {border-color:var(--cyan)}
#gallery button:focus-visible {outline-color:var(--cyan)}
@media(max-width:580px){#gallery{padding:16px}.story-photo>img{height:360px}.gallery-controls button{padding:10px}.project>.gallery-trigger{margin-left:28px;margin-right:28px}}
