html.photo-viewer-open {overflow:hidden}
.photo-viewer{padding:0;border:0;background:#16231d;color:#f5f0e4;max-width:calc(100vw - 1rem);max-height:calc(100dvh - 1rem);overscroll-behavior:contain}
.photo-viewer::backdrop{background:#101711ed}
.photo-viewer figure{margin:0}
.photo-viewer img{display:block;max-width:100%;max-height:calc(100dvh - 8.5rem);height:auto;object-fit:contain;margin:auto}
.photo-viewer-toolbar,.photo-viewer-info{display:flex;align-items:center;justify-content:space-between;gap:.35rem 1rem;padding:.25rem .75rem}
.photo-viewer-toolbar{justify-content:flex-end}
.photo-viewer button{font:inherit;font-size:1.35rem;color:inherit;background:none;border:0;min-width:2.75rem;min-height:2.75rem;cursor:pointer}
.photo-viewer #photo-viewer-caption{color:inherit;font:inherit;margin:0;max-width:52ch}
.photo-viewer a{color:#e9d5a7;display:inline-flex;align-items:center;min-height:44px;text-underline-offset:.25em}
.photo-viewer :focus-visible{outline:2px solid #e9d5a7;outline-offset:-2px}
@media(max-width:540px){.photo-viewer-info{flex-wrap:wrap;justify-content:center;text-align:center}.photo-viewer img{max-height:calc(100dvh - 10rem)}}
