.regional-gallery-options[hidden],.regional-gallery [hidden]{display:none}
.regional-gallery-options{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:16px}
.regional-gallery-options button{min-height:44px;padding:9px 13px;border:1px solid #ffffff54;background:#17275b;color:#fff;font-size:.75rem;font-weight:700}
.regional-gallery-options button:hover{background:#243a78}
.gallery-open{overflow:hidden}
.regional-gallery{width:min(1050px,calc(100% - 28px));max-height:calc(100dvh - 36px);margin:auto;padding:0;border:0;background:#f3f5fa;color:#101c49;overscroll-behavior:contain}
.regional-gallery[open]{animation:gallery-enter .25s ease-out both}
.regional-gallery::backdrop{background:#070d24c9}
.gallery-header{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 26px;background:#101c49;color:#fff;border-bottom:3px solid #e30720}
.gallery-kicker{margin:0 0 6px;color:#f2c318;font-size:.66rem;letter-spacing:.12em;font-weight:800;text-transform:uppercase}
.home-v3 .gallery-header h2{margin:0;color:#fff;font-size:clamp(1.35rem,3.5vw,2rem);line-height:1.15}
.gallery-close{white-space:nowrap;min-height:44px;padding:8px 12px;border:1px solid #ffffff66;background:transparent;color:#fff;font-size:.72rem;font-weight:700}
.gallery-close span{margin-left:4px;font-size:1rem}
.gallery-body{padding:24px 26px 28px}
.gallery-intro,.gallery-empty>p:not(.gallery-kicker){max-width:660px;color:#535d70;font-size:.86rem;line-height:1.7}
.gallery-records{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}
.gallery-record{margin:0;overflow:hidden;background:#fff;border:1px solid #e0e5ef}
.gallery-record img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;background:#e9edf4}
.gallery-record figcaption{padding:16px}
.gallery-record h3,.gallery-empty h3{font-size:1.05rem;margin:0 0 8px;color:#101c49}
.gallery-record p,.gallery-record dl{margin:0;font-size:.76rem;line-height:1.6;color:#535d70}
.gallery-record dl{display:grid;grid-template-columns:1fr auto;gap:4px 8px;margin-top:14px;padding-top:10px;border-top:1px solid #e0e5ef}
.gallery-record dt{font-weight:700;color:#101c49}
.gallery-record dd{margin:0}
.gallery-empty{padding:24px;border-left:3px solid #e30720;background:#fff}
.gallery-empty .gallery-kicker{color:#a91831}
.gallery-region-link{margin-top:22px}
.regional-gallery button:focus-visible,.regional-gallery a:focus-visible,.regional-gallery-options button:focus-visible{outline:3px solid #e3aa00;outline-offset:3px}
@keyframes gallery-enter{from{opacity:0;transform:translateY(14px) scale(.99)}to{opacity:1;transform:none}}
@media(max-width:790px){.gallery-records{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.gallery-records{grid-template-columns:1fr}.gallery-header,.gallery-body{padding-inline:16px}.gallery-region-link{width:100%}}
@media(prefers-reduced-motion:reduce){.regional-gallery[open]{animation:none}}

.gallery-home{background:#f3f5fa;color:#101c49}
.gallery-home-grid,.gallery-map-layout{display:grid;grid-template-columns:1fr 1fr;gap:clamp(22px,5vw,70px);align-items:center}
.gallery-home-grid p:not(.eyebrow){color:#535d70;line-height:1.7;margin:0 0 20px}
.gallery-cover{display:block;border-bottom:4px solid #e30720}
.gallery-cover img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.gallery-map-section{padding:clamp(36px,7vw,80px) 0;background:#101c49;color:#fff}
.gallery-map-section h1{font-size:clamp(2.25rem,6vw,4.3rem);line-height:1.05;margin:12px 0 18px}
.gallery-map-section p:not(.eyebrow){max-width:400px;color:#dbe3f7;line-height:1.75}
.gallery-map svg{width:100%;max-height:420px;display:block}
.gallery-page .regional-gallery-options{justify-content:flex-start}
.regional-gallery-options a{display:inline-flex;align-items:center;min-height:44px;padding:9px 14px;border:1px solid #ffffff54;background:#17275b;color:#fff;font-size:.8rem;font-weight:700}
.regional-gallery-options a[aria-current]{border-color:#f2c318;color:#f2c318}
.gallery-map .map-state-link[aria-current] path{stroke:#fff;stroke-width:2.5}
.gallery-archive{background:#f3f5fa;color:#101c49}
.gallery-archive [hidden]{display:none}
.gallery-archive [data-gallery-panel]{scroll-margin-top:16px;animation:gallery-enter .25s ease-out both}
.gallery-archive [data-gallery-panel]+[data-gallery-panel]:not([hidden]){margin-top:36px}
.gallery-archive [hidden]+[data-gallery-panel]:not([hidden]){margin-top:0}
.gallery-page a:focus-visible,.gallery-cover:focus-visible{outline:3px solid #e3aa00;outline-offset:4px}
@media(max-width:680px){.gallery-home-grid,.gallery-map-layout{grid-template-columns:1fr}.gallery-map svg{max-height:330px}}
@media(prefers-reduced-motion:reduce){.gallery-archive [data-gallery-panel]{animation:none}}

.gallery-photo-trigger{display:block;position:relative}
.gallery-photo-trigger>span{position:absolute;right:8px;bottom:8px;padding:6px 9px;background:#101c49;color:#fff;font-size:.67rem;font-weight:700}
.photo-viewer{width:min(1000px,calc(100% - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:0;border:0;background:#f3f5fa;color:#101c49;overscroll-behavior:contain}
.photo-viewer[open]{animation:gallery-enter .22s ease-out both}
.photo-viewer::backdrop{background:#070d24de}
.photo-viewer-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;background:#101c49;color:#fff;border-bottom:3px solid #e30720}
.home-v3 .photo-viewer-header h2{margin:0;color:#fff;font-size:clamp(1rem,3.5vw,1.5rem)}
.photo-viewer figure{margin:0}
.photo-viewer figure img{display:block;width:100%;height:clamp(180px,54dvh,580px);object-fit:contain;background:#080f2c}
.photo-viewer figcaption{padding:14px 20px;font-size:.82rem;line-height:1.6}
.photo-viewer figcaption p{margin:0 0 8px}
.photo-viewer figcaption dl{display:grid;grid-template-columns:max-content 1fr;gap:4px 12px;margin:0}
.photo-viewer figcaption dt{font-weight:700}
.photo-viewer figcaption dd{margin:0}
.photo-viewer-controls{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 20px;background:#fff;border-top:1px solid #e0e5ef;font-size:.78rem}
.photo-viewer-controls button{min-height:44px;padding:8px 12px;border:1px solid #101c49;background:#101c49;color:#fff;font-weight:700}
.photo-viewer-controls button:disabled{opacity:.5}
@media(max-width:480px){.photo-viewer-header,.photo-viewer figcaption,.photo-viewer-controls{padding-inline:12px}.photo-viewer figure img{height:clamp(160px,43dvh,380px)}}
@media(prefers-reduced-motion:reduce){.photo-viewer[open]{animation:none}}

.gallery-feature .gallery-cover{display:grid;isolation:isolate;background:#101c49}
.gallery-feature-slide{grid-area:1/1;display:flex;flex-direction:column;margin:0;background:#101c49;color:#fff;opacity:0;transition:opacity 1.2s ease-in-out}
.gallery-feature-slide:not([inert]){opacity:1;z-index:1}
.gallery-feature-slide figcaption{display:grid;gap:4px;padding:14px 16px;min-height:100px}
.gallery-feature-slide figcaption strong{font-size:.95rem;color:#fff}
.gallery-feature-slide figcaption span{font-size:.78rem;line-height:1.55;color:#e1e6f4}
@media(prefers-reduced-motion:reduce){.gallery-feature-slide{transition:none}}

/* Keep the outgoing frame under the incoming one to avoid a dark flash. */
.gallery-feature-slide[data-outgoing]{opacity:1;z-index:1}
.gallery-feature-slide:not([inert]){z-index:2}
