/* Consistent thumbnails; the lightbox always shows the complete source frame. */
.gallery-heading{align-items:center;margin-bottom:36px}
.gallery-intro{max-width:270px;border-left:1px solid #d8c5c9;padding-left:24px}
.gallery-kicker{display:block;color:#9a4258;font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:700}
.gallery-intro p{font-size:13px;line-height:1.8;margin:9px 0 0;color:var(--muted)}
.bunker-gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:26px;columns:auto;padding:0;overflow:visible}
.bunker-gallery .gallery-card{grid-column:span 2;margin:0;background:#fffcfa;border:1px solid #e4ded8;border-radius:10px;overflow:hidden;min-width:0;box-shadow:0 5px 18px #03315c05}
.bunker-gallery .gallery-card:nth-child(4){grid-column:2 / span 2}
.bunker-gallery .gallery-card:nth-child(5){grid-column:4 / span 2}
.bunker-gallery .gallery-image{display:block;position:relative;aspect-ratio:4/3;background:#e6e3dd;border-radius:0;overflow:hidden;isolation:isolate}
.bunker-gallery .gallery-image picture{width:100%;height:100%}
.bunker-gallery .gallery-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .35s ease}
.bunker-gallery .gallery-card:nth-child(2) img{object-position:center 65%}
.bunker-gallery .gallery-card:nth-child(4) img{object-position:center 64%}
.bunker-gallery .photo-open{right:16px;bottom:16px;width:42px;height:42px;background:#faf7f4f5;color:var(--navy);border:1px solid #ffffffc7;font-size:23px;box-shadow:0 3px 12px #03315c12;transition:background .2s,transform .2s;z-index:2}
.photo-view{position:absolute;left:18px;bottom:24px;z-index:1;font-size:10px;font-weight:600;letter-spacing:.02em;color:white;opacity:0;transition:opacity .2s}
.bunker-gallery .gallery-image:after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#032b4f90);z-index:0;opacity:0;transition:opacity .2s}
.bunker-gallery figcaption{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:start;gap:13px;margin:0;padding:19px 18px;min-height:90px;color:var(--navy);font-size:12px;line-height:1.7}
.gallery-index{font-size:10px;font-weight:600;letter-spacing:.06em;color:#9a4258;padding-top:2px}
.bunker-gallery .gallery-image:focus-visible{outline:3px solid var(--navy);outline-offset:-5px}
.gallery-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.gallery-footer .source-note{margin:0;font-size:10px}
.gallery-controls{display:none;align-items:center;gap:8px;flex-shrink:0}
.gallery-controls[hidden]{display:none}
.gallery-position{font-size:11px;letter-spacing:.07em;color:var(--navy);font-variant-numeric:tabular-nums;min-width:55px;margin-right:5px}
.gallery-controls button{width:44px;height:44px;padding:0;border-radius:50%;border:1px solid #c9c6c1;background:transparent;color:var(--navy);font-size:21px;line-height:1}
.gallery-controls button:disabled{opacity:.3;cursor:default}
.lightbox{width:min(1160px,calc(100vw - 40px));max-height:calc(100dvh - 40px);padding:20px 24px;border-radius:12px;overflow:hidden;box-shadow:0 20px 100px #0005}
.lightbox::backdrop{background:#01172bee;backdrop-filter:blur(5px)}
.lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.lightbox-label{font-size:9px;letter-spacing:.14em;color:var(--muted);text-align:left}
.lightbox button{border-radius:50%;width:44px;height:44px;min-width:44px;background:transparent;border-color:#c9c6c1;transition:background .2s}
.lightbox button:hover{background:var(--rose)}
.lightbox [data-close]{border-radius:5px;width:auto;padding:8px 14px;font-size:11px}
.lightbox-stage{grid-template-columns:44px minmax(0,1fr) 44px;gap:16px;height:min(70dvh,720px);margin-top:16px;min-height:0}
.lightbox-stage img{width:100%;height:100%;max-height:100%;min-height:0;object-fit:contain}
.lightbox>p[data-caption]{font-size:12px;line-height:1.6;margin:17px auto 0;max-width:650px}
@media(hover:hover){
  .bunker-gallery .gallery-image:hover img{transform:scale(1.035)}
  .bunker-gallery .gallery-image:hover .photo-open{background:var(--pink);transform:translate(2px,-2px)}
  .bunker-gallery .gallery-image:hover .photo-view{opacity:1}
  .bunker-gallery .gallery-image:hover:after{opacity:1}
}
@media(min-width:761px) and (max-width:1024px){
  .bunker-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
  .bunker-gallery .gallery-card:nth-child(4){grid-column:span 2}
  .bunker-gallery .gallery-card:nth-child(5){grid-column:2 / span 2}
}
@media(max-width:760px){
  .gallery-heading{margin-bottom:27px}
  .gallery-intro{border:0;padding:0;max-width:none;margin-top:22px}
  .gallery-kicker{font-size:9px}
  .gallery-intro p{font-size:12px;margin-top:7px}
  .bunker-gallery{display:flex;gap:16px;columns:auto;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:0;padding:4px 2px 16px;scrollbar-width:none;overscroll-behavior-x:contain}
  .bunker-gallery::-webkit-scrollbar{display:none}
  .bunker-gallery .gallery-card{flex:0 0 86%;scroll-snap-align:start;margin:0;border-radius:9px;box-shadow:0 4px 12px #03315c06}
  .bunker-gallery .gallery-image{aspect-ratio:4/3}
  .bunker-gallery figcaption{padding:16px;min-height:88px;font-size:12px;gap:8px;grid-template-columns:22px minmax(0,1fr)}
  .bunker-gallery .photo-open{right:12px;bottom:12px;width:40px;height:40px}
  .gallery-footer{margin-top:4px;padding-top:17px;gap:12px;align-items:center}
  .gallery-footer .source-note{max-width:145px;font-size:9px;line-height:1.7}
  .gallery-controls{display:flex}
  .gallery-controls button{width:42px;height:42px}
  .gallery-position{font-size:10px;min-width:45px;margin-right:2px}
  .lightbox{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);padding:12px;border-radius:9px}
  .lightbox-label{font-size:8px;letter-spacing:.07em}
  .lightbox-stage{grid-template-columns:36px minmax(0,1fr) 36px;gap:6px;height:calc(100dvh - 200px);max-height:720px;margin-top:12px}
  .lightbox button{width:36px;height:42px;min-width:36px;font-size:18px}
  .lightbox [data-close]{height:42px;font-size:10px;padding:8px 10px}
  .lightbox>p[data-caption]{font-size:11px;line-height:1.7;margin-top:13px;min-height:38px}
}
@media(max-width:359px){.gallery-footer{flex-wrap:wrap}.gallery-footer .source-note{max-width:none}.gallery-controls{margin-left:auto}.bunker-gallery .gallery-card{flex-basis:90%}}
@media(prefers-reduced-motion:reduce){.bunker-gallery img,.photo-open,.photo-view,.lightbox button{transition:none!important}.bunker-gallery .gallery-image:hover img{transform:none}}
