/* Previews share a wide frame; the viewer always displays the whole photograph. */
.photo-open{position:relative;display:block;width:100%;padding:0;border:0;border-radius:0;background:#e2e6de;color:white;cursor:zoom-in;overflow:hidden}
.photo-open img{display:block;width:100%}
.photo-open:focus-visible{outline:3px solid #d2aa60;outline-offset:3px}
.photo-expand{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#173e34df;color:#fff;font:24px/1 var(--sans);pointer-events:none}
.warm-photo .photo-open{height:100%}.warm-photo img{filter:none}
.gallery-frame img[src$="forpost-04.jpg"]{object-position:center 23%}
.gallery-frame img[src$="forpost-05.jpg"]{object-position:center 25%}
.gallery-frame img[src$="forpost-03.jpg"]{object-position:center 45%}
#photo-viewer{padding:18px 24px;width:calc(100% - 24px);max-width:1500px;height:calc(100vh - 24px);height:calc(100dvh - 24px);max-height:none;box-sizing:border-box;background:#101c19;color:#fff;border-radius:8px;overflow:hidden}
#photo-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
#photo-viewer::backdrop{background:#06110ff2}
.photo-header{display:flex;align-items:center;gap:16px;justify-content:space-between}
#photo-title{font:500 18px/1.4 var(--sans);letter-spacing:0;margin:0;color:#f8f7f2}
#photo-viewer button{border:1px solid #74867d;border-radius:50%;width:44px;height:44px;min-width:44px;background:#23362e;color:#fff;font:30px/1 var(--sans);cursor:pointer;display:grid;place-items:center}
#photo-viewer button:hover{background:#3b5345}#photo-viewer button:focus-visible{outline:3px solid #e2b66a;outline-offset:3px}
.photo-stage{min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;touch-action:pan-y pinch-zoom}
#photo-full{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;opacity:0;transition:opacity .15s;user-select:none}
#photo-full.loaded{opacity:1}
.photo-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
#photo-caption{font:400 14px/1.5 var(--sans);color:#e4eae5;margin:0;max-width:900px}
.photo-navigation{display:flex;align-items:center;gap:16px;flex-shrink:0}
#photo-count{font:400 15px/1.4 var(--sans);min-width:48px;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:740px){
 #photo-viewer{width:100%;height:100vh;height:100dvh;max-width:none;border-radius:0;padding:calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));gap:10px}
 #photo-title{font-size:15px}.photo-header{gap:12px;align-items:flex-start}
 .photo-footer{flex-direction:column;gap:10px}.photo-navigation{gap:24px}#photo-caption{font-size:13px;text-align:center}
}
@media(prefers-reduced-motion:reduce){#photo-full{transition:none}}
