#photo-viewer{position:fixed;inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;border:0;border-radius:0;padding:0;color:#fff;background:rgba(8,12,13,.98);overflow:hidden}
#photo-viewer[open]{display:flex;flex-direction:column}
#photo-viewer::backdrop{background:rgba(5,8,9,.9)}
#photo-viewer-toolbar,.photo-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:clamp(12px,3vw,24px) clamp(12px,3vw,28px);flex:none}
#photo-viewer button{background:rgba(255,255,255,.15);color:#fff;border:1px solid rgba(255,255,255,.36);box-shadow:0 4px 18px rgba(0,0,0,.22);backdrop-filter:blur(9px);cursor:pointer}
#photo-viewer button:hover{background:rgba(255,255,255,.28)}
#photo-viewer button:focus-visible{outline:2px solid #d6f668;outline-offset:3px}
.photo-viewer-back{border-radius:999px;min-height:44px;padding:7px 15px;font:inherit;font-weight:700}
.photo-viewer-count{padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.12);font-variant-numeric:tabular-nums;white-space:nowrap}
.photo-viewer-stage{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:clamp(6px,2vw,18px);flex:1;min-height:0;padding:0 clamp(8px,2.5vw,30px) clamp(10px,3vw,24px)}
.photo-viewer-figure{grid-column:2;grid-row:1;width:100%;height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0;gap:10px}
.photo-viewer-figure img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;flex:1 1 auto}
.photo-viewer-figure figcaption{max-width:65ch;max-height:4.5em;overflow:auto;text-align:center;font-size:clamp(.82rem,2.4vw,1rem);line-height:1.4;color:#e5e9e8}
.photo-viewer-arrow{grid-row:1;display:grid;place-items:center;width:clamp(39px,7vw,64px);height:clamp(44px,7vw,64px);border-radius:999px;padding:0 0 .09em;font-size:clamp(30px,5vw,49px);line-height:1;z-index:1}
.photo-viewer-previous{grid-column:1}.photo-viewer-next{grid-column:3}
.photo-viewer-error{color:#f5f4eb;margin:0;text-align:center}
#photo-viewer [hidden]{display:none!important}
@media(max-width:580px){.photo-viewer-stage{grid-template-columns:minmax(0,1fr);padding-inline:8px}.photo-viewer-figure{grid-column:1}.photo-viewer-previous,.photo-viewer-next{grid-column:1;margin-inline:4px}.photo-viewer-previous{justify-self:start}.photo-viewer-next{justify-self:end}}
