/* Activity photographs: an image-led extension of the ECK identity. */
.gallery-hero{display:grid;grid-template-columns:.85fr 1.15fr;gap:60px;align-items:center;padding:48px 0 70px}
.gallery-intro h1{color:var(--navy);font-size:clamp(40px,4.8vw,68px);margin-bottom:24px}
.gallery-intro .lead{font-size:21px;max-width:25ch;margin-bottom:18px}
.gallery-intro>p:not(.eyebrow):not(.lead){font-size:15px;color:var(--muted);max-width:43ch}
.gallery-intro>.text-link{display:inline-block;padding:8px 0;font-size:14px;font-weight:700}
.gallery-collection-note{display:flex;gap:16px;align-items:center;margin-top:30px;border-top:1px solid var(--line);padding-top:20px;max-width:220px}
.gallery-collection-note strong{font:44px/1 var(--serif);color:var(--teal)}.gallery-collection-note span{font-size:12px;color:var(--muted);line-height:1.5}
.gallery-cover{margin:0;background:var(--off);border-bottom:3px solid var(--gold);min-width:0}
.gallery-cover picture,.gallery-cover img{display:block;width:100%}.gallery-cover img{aspect-ratio:4/3;object-fit:cover}
.gallery-cover figcaption{padding:17px 20px;color:var(--navy);font:18px/1.5 var(--serif)}
.gallery-cover figcaption span{display:block;font:700 10px/1.6 var(--sans);letter-spacing:.12em;color:var(--teal);margin-bottom:5px}
.gallery-collection{border-top:1px solid var(--line);padding:50px 0 80px;scroll-margin-top:110px}
.gallery-collection-heading{display:flex;gap:30px;justify-content:space-between;align-items:end;margin-bottom:24px}
.gallery-collection-heading h2{font-size:36px;color:var(--navy);margin-bottom:0}.gallery-collection-heading .eyebrow{margin-bottom:12px}
.gallery-collection-heading>p{max-width:22ch;color:var(--muted);font-size:13px;margin:0 0 3px}
.gallery-filters{display:flex;gap:10px;flex-wrap:wrap;margin:30px 0 16px}
.gallery-filters[hidden],.gallery-card[hidden]{display:none!important}
.gallery-filters button{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:10px 14px;font:700 12px/1.6 var(--sans);background:white;border:1px solid var(--line);border-radius:4px;color:var(--navy);cursor:pointer;transition:background .18s,color .18s}
.gallery-filters button span{font-weight:400;opacity:.85}.gallery-filters button:hover{border-color:var(--teal)}
.gallery-filters button[aria-pressed=true]{color:white;background:var(--navy);border-color:var(--navy)}
.gallery-result{font-size:12px;color:var(--muted);margin:0 0 22px}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 26px}
.gallery-card{margin:0;min-width:0;animation:gallery-arrive .35s ease-out both}
.gallery-card:nth-child(3n+2){animation-delay:.04s}.gallery-card:nth-child(3n){animation-delay:.08s}
.gallery-open{display:block;text-decoration:none;border-radius:3px}.gallery-photo{position:relative;overflow:hidden;background:var(--off);aspect-ratio:4/3;border-radius:3px}
.gallery-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.gallery-expand{position:absolute;right:12px;bottom:12px;background:var(--navy-deep);color:white;width:36px;height:36px;border:1px solid #aebfca;border-radius:50%;display:grid;place-items:center;font-size:21px;transition:background .2s}
.gallery-open:hover .gallery-photo img{transform:scale(1.035)}.gallery-open:hover .gallery-expand{background:var(--teal)}
.gallery-card figcaption{padding:17px 0 0}.gallery-category{display:block;color:var(--teal);font:700 10px/1.6 var(--sans);letter-spacing:.07em;text-transform:uppercase;margin-bottom:8px}
.gallery-card figcaption>div{display:flex;justify-content:space-between;gap:14px;align-items:start}.gallery-card h3{font-size:23px;color:var(--navy);line-height:1.2;margin:0}
.gallery-number{font-size:11px;color:var(--muted);line-height:2}.gallery-endnote{display:flex;gap:20px;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:24px;margin-top:45px;font-size:13px;color:var(--muted)}.gallery-endnote p{margin:0}
.gallery-viewer-open{overflow:hidden}
.gallery-dialog{width:min(1120px,calc(100% - 40px));max-width:none;max-height:calc(100dvh - 36px);padding:0;background:var(--navy-deep);color:white;border:1px solid #6f8d9f;border-radius:6px;overflow:auto;overscroll-behavior:contain}
.gallery-dialog:not([open]){display:none}.gallery-dialog[open]{animation:gallery-arrive .22s ease-out}.gallery-dialog::backdrop{background:rgba(3,19,30,.92);backdrop-filter:blur(5px)}
.gallery-viewer{padding:18px 24px 20px}.gallery-viewer-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.gallery-viewer-bar>span{font-size:11px;letter-spacing:.16em;color:#e7d19c;font-weight:700}
.gallery-control{width:48px;height:48px;min-width:48px;border:1px solid #6f8d9f;border-radius:50%;background:transparent;color:white;cursor:pointer;font:24px/1 var(--sans);display:inline-grid;place-items:center;transition:background .18s}
.gallery-control:hover{background:var(--teal)}.gallery-control:focus-visible,.gallery-dialog a:focus-visible{outline:3px solid var(--gold);outline-offset:4px}.gallery-control:disabled{opacity:.4;cursor:default}
.gallery-stage{min-height:160px;position:relative;display:flex;justify-content:center;align-items:center;touch-action:pan-y pinch-zoom}
.gallery-full-image{display:block;object-fit:contain;max-height:calc(100dvh - 280px);max-width:100%;width:auto;height:auto;min-height:0;transition:opacity .15s}
.gallery-full-image.is-loading{opacity:.25}.gallery-load-status{position:absolute;max-width:42ch;text-align:center;font-size:13px;padding:12px;margin:0;background:var(--navy-deep);color:#e0eaf0}.gallery-load-status:empty{display:none}
.gallery-viewer-bottom{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:20px}
.gallery-viewer-caption{min-width:0}.gallery-viewer-caption h2{font-size:27px;line-height:1.2;margin:5px 0 8px;color:white}.gallery-viewer-category{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#e7d19c;margin:0}
#viewer-help{font-size:11px;color:#bfced8;margin:0}.gallery-viewer-navigation{display:flex;gap:12px;align-items:center;flex-shrink:0}.gallery-counter{min-width:50px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums}
.gallery-original{display:inline-block;color:#e0eaf0;font-size:12px;margin-top:16px;text-underline-offset:4px;padding:4px 0}.gallery-original:hover{color:#f2c874}
@keyframes gallery-arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:860px){.gallery-hero{gap:30px;grid-template-columns:1fr 1fr}.gallery-intro h1{font-size:44px}.gallery-intro .lead{font-size:18px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-collection-heading h2{font-size:32px}}
@media(max-width:700px){.gallery-hero{grid-template-columns:1fr;padding-top:30px;padding-bottom:40px}.gallery-intro h1{font-size:46px}.gallery-collection-note{display:none}.gallery-cover{max-width:100%}.gallery-intro .lead{max-width:none}.gallery-collection-heading{display:block}.gallery-collection-heading>p{max-width:none;margin-top:18px}.gallery-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px)}.gallery-viewer{padding:12px 14px 16px}.gallery-viewer-bottom{align-items:start;flex-direction:column;gap:16px}.gallery-full-image{max-height:calc(100dvh - 340px)}.gallery-viewer-navigation{align-self:center}.gallery-viewer-caption h2{font-size:24px}.gallery-viewer-bar>span{font-size:10px}}
@media(max-width:480px){.gallery-grid{gap:28px;grid-template-columns:1fr}.gallery-collection{padding-top:35px}.gallery-filters{gap:8px}.gallery-filters button{padding:9px 11px;font-size:11px}.gallery-collection-heading h2{font-size:30px}.gallery-endnote{display:block}.gallery-endnote a{display:inline-block;margin-top:15px}.gallery-load-status{font-size:12px;max-width:30ch}}
@media(prefers-reduced-motion:reduce){.gallery-card,.gallery-dialog[open]{animation:none}.gallery-photo img,.gallery-expand,.gallery-full-image,.gallery-control,.gallery-filters button{transition:none}.gallery-open:hover .gallery-photo img{transform:none}}
