/* Full photographs, scoped so other dialogs and page headings retain their styles. */
.photo-viewer{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(1200px,calc(100% - 40px));max-width:none;height:min(940px,calc(100svh - 40px));max-height:calc(100svh - 40px);padding:0;border:0;border-radius:0;overflow:hidden;background:#f5f6f0;color:#173d2d;font:inherit;box-shadow:0 20px 70px #10291e55}
.photo-viewer::backdrop{background:#10291ed9}
.photo-viewer *{box-sizing:border-box}
.photo-viewer [hidden]{display:none!important}
.photo-viewer-shell{height:100%;min-height:0;display:flex;flex-direction:column}
.photo-viewer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-shrink:0;padding:20px 24px;background:#f5f6f0}
.photo-viewer .photo-viewer-head h2{margin:0 0 6px;font-size:25px;font-weight:400;line-height:1.15;letter-spacing:-.025em;color:#173d2d}
.photo-viewer .photo-viewer-count{margin:0;font-size:14px;line-height:1.4;font-variant-numeric:tabular-nums;color:#526759}
.photo-viewer .photo-viewer-button{display:grid;place-items:center;flex-shrink:0;appearance:none;width:46px;height:46px;min-height:46px;padding:0;border:0;border-radius:0;background:#e4ebe1;color:#173d2d;font:inherit;font-size:25px;line-height:1;cursor:pointer}
.photo-viewer .photo-viewer-close{font-size:30px}
.photo-viewer .photo-viewer-button:disabled{opacity:.4;cursor:default}
.photo-viewer .photo-viewer-button:focus-visible,.photo-viewer .photo-viewer-original:focus-visible{outline:3px solid #c48b20;outline-offset:3px}
.photo-viewer-media{position:relative;flex:1;min-height:0;overflow:hidden;background:#122b21}
.photo-viewer-image-wrap{position:absolute;inset:0;width:100%;height:100%}
.photo-viewer .photo-viewer-image{display:block;width:100%;height:100%;max-width:none;max-height:none;margin:0;object-fit:contain;object-position:center}
.photo-viewer-status{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;text-align:center;color:#fff}
.photo-viewer .photo-viewer-status p{margin:0;font-size:16px;line-height:1.5;color:#fff}
.photo-viewer-original{color:#fff;text-decoration:underline;text-underline-offset:5px;display:inline-flex;align-items:center;min-height:44px;font-size:15px;line-height:1.5}
.photo-viewer-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-shrink:0;padding:18px 24px;background:#f5f6f0;max-height:30%;overflow-y:auto}
.photo-viewer .photo-viewer-bottom p{margin:0;min-width:0;max-width:850px;font-size:16px;line-height:1.5;overflow-wrap:anywhere;color:#173d2d}
.photo-viewer-controls{display:flex;gap:10px;flex-shrink:0}
@media(hover:hover) and (pointer:fine){.photo-viewer .photo-viewer-button:not(:disabled):hover{background:#cdddce}}
@media(prefers-reduced-motion:no-preference){.photo-viewer .photo-viewer-button:not(:disabled):active{transform:scale(.97)}}
@media(max-width:600px){
 .photo-viewer{width:calc(100% - 16px);height:calc(100svh - 16px);max-height:calc(100svh - 16px)}
 .photo-viewer-head{padding:16px;gap:12px}
 .photo-viewer .photo-viewer-head h2{font-size:22px}
 .photo-viewer-bottom{padding:14px 16px max(14px,env(safe-area-inset-bottom));gap:16px;align-items:flex-start;flex-wrap:wrap;max-height:35%}
 .photo-viewer .photo-viewer-bottom p{font-size:15px;flex:1 1 100%}
 .photo-viewer-controls{margin-left:auto;gap:12px}
}
@supports(height:100dvh){.photo-viewer{height:min(940px,calc(100dvh - 40px));max-height:calc(100dvh - 40px)}@media(max-width:600px){.photo-viewer{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}}}
