/* Same fullscreen dark gallery treatment approved for the home page; light pages remain light. */
.photo-viewer{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:#0b0f10;color:#f5f7f5;color-scheme:dark;overflow:hidden}
.photo-viewer:not([open]){display:none}
.photo-viewer[open]{display:block}
.photo-viewer::backdrop{background:#0b0f10}
body.photo-viewer-open{overflow:hidden}
html:has(body.photo-viewer-open){scrollbar-gutter:auto}
.photo-viewer-bar{position:absolute;inset:20px 28px auto;display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:1}
.photo-viewer-bar>p{display:flex;align-items:center;gap:17px;font-size:1rem;font-weight:650;line-height:1.5;letter-spacing:.05em;color:#f5f7f5;font-variant-numeric:tabular-nums}
.photo-counter-divider{color:#667071}.photo-counter-total{color:#aab1b2}
.photo-viewer-actions{display:flex;align-items:center;gap:12px}
.photo-viewer-actions>a,.photo-viewer-actions>button,.photo-viewer-stage>button{display:flex;align-items:center;justify-content:center;flex:none;width:56px;height:56px;padding:0;border:1px solid #43494a;border-radius:50%;background:rgba(255,255,255,.025);color:#f5f7f5;cursor:pointer;transition:background-color .2s ease,border-color .2s ease}
.photo-viewer-actions .icon{width:23px;height:23px}
.photo-viewer-stage{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:90px 105px 30px;touch-action:pan-y}
.photo-viewer-frame{display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0;min-width:0;position:relative}
.photo-viewer-frame img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;user-select:none}
.photo-viewer-stage>button{position:absolute;top:calc(50% - 28px);z-index:1}
.photo-viewer-prev{left:28px}.photo-viewer-next{right:28px}
.photo-viewer-prev .icon{--icon:url(../icons/arrow-left.svg)}.photo-viewer-next .icon{--icon:url(../icons/arrow-right.svg)}
.photo-viewer-stage>button .icon{width:25px;height:25px}
.photo-viewer-error{max-width:380px;padding:22px;color:#dce1de;font-size:.875rem;text-align:center}
.photo-viewer-frame.is-error img{display:none}
.photo-viewer-frame.is-loading img{opacity:.35}
.photo-viewer button:hover,.photo-viewer-actions a:hover{background:rgba(255,255,255,.09);border-color:#8b9391}
.photo-viewer button:focus-visible,.photo-viewer a:focus-visible{outline:2px solid #eaf2e3;outline-offset:4px}
@media(max-width:640px){.photo-viewer-bar{inset:16px 16px auto;gap:12px}.photo-viewer-bar>p{font-size:.8125rem;gap:11px}.photo-viewer-actions{gap:8px}.photo-viewer-actions>a,.photo-viewer-actions>button{width:43px;height:43px}.photo-viewer-actions .icon{width:20px;height:20px}.photo-viewer-stage{padding:83px 15px 88px}.photo-viewer-stage>button{width:43px;height:43px;top:auto;bottom:22px}.photo-viewer-prev{left:calc(50% - 55px)}.photo-viewer-next{right:calc(50% - 55px)}.photo-viewer-stage>button .icon{width:23px;height:23px}}
@media(prefers-reduced-motion:reduce){.photo-viewer button,.photo-viewer-actions a{transition:none}}
@media print{.photo-viewer{display:none!important}}
