.photo-viewer{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(1200px,100vw);height:min(960px,100dvh);max-width:100vw;max-height:100dvh;padding:18px;border:0;border-radius:12px;background:#171c19;color:#fff;overflow:auto;overscroll-behavior:contain;font:16px/1.5 system-ui,-apple-system,sans-serif}.photo-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:10px}.photo-viewer::backdrop{background:#000d}.photo-viewer-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.photo-viewer-close{font:inherit;cursor:pointer;min-height:48px;padding:10px 16px;border:1px solid #d6c6a3;border-radius:8px;background:#f4dfb4;color:#1d251e;font-weight:700;flex-shrink:0}.photo-viewer-close:focus-visible{outline:3px solid #fff;outline-offset:3px}.photo-viewer-stage{display:flex;align-items:center;justify-content:center;min-height:0;overflow:auto;touch-action:pan-x pan-y pinch-zoom}.photo-viewer .photo-viewer-image{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;aspect-ratio:auto!important;border-radius:0!important;background:transparent!important}.photo-viewer-caption,.photo-viewer-hint,.photo-viewer-status{margin:0;color:#fff;font-size:14px}.photo-viewer-hint{font-size:12px;color:#d2d8cf}.photo-viewer-status:empty{display:none}@media(max-width:760px){.photo-viewer{width:100vw;height:100dvh;border-radius:0;padding:12px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}.photo-viewer-head strong{font-size:14px}.photo-viewer-close{font-size:14px;padding:10px 12px}.photo-viewer-caption{font-size:13px;max-height:18dvh;overflow:auto}}
