.photo-viewer.photo-viewer-v2{box-sizing:border-box;width:min(1100px,calc(100vw - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:14px;border:1px solid #dce4ed;border-radius:12px;overflow:auto;overscroll-behavior:contain;color:#18232d}
.photo-viewer-v2 .photo-close{margin:0 0 10px auto;min-height:44px;font-size:14px}
.photo-viewer-v2 .photo-stage{position:relative;display:block;width:min(100%,calc((100vh - 210px)*1.6));width:min(100%,calc((100dvh - 210px)*1.6));aspect-ratio:16/10;margin:0 auto;overflow:hidden;background:#fff;touch-action:pan-y pinch-zoom}
.photo-viewer-v2 .photo-stage img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center;transform:none;transform-origin:center;user-select:none;-webkit-user-drag:none}
.photo-viewer-v2 .photo-stage img[hidden]{display:none}
.photo-viewer-v2 .photo-stage[data-cropped=true] img{transform:translate(var(--photo-x,0%),var(--photo-y,0%)) scale(var(--photo-scale,1))}
.photo-viewer-v2 .photo-controls{display:flex;align-items:center;justify-content:center;gap:28px;margin:4px 0}
.photo-viewer-v2 .photo-controls button{min-height:46px;min-width:50px;border:0;border-radius:7px;background:#18232d;color:#fff;font-size:24px;cursor:pointer}
.photo-viewer-v2 .photo-controls button:disabled{opacity:.4;cursor:default}
.photo-viewer-v2 .photo-count{min-width:60px;margin:0;font-size:14px;color:#43586b}
.photo-viewer-v2 .photo-load-status{min-height:20px;margin:5px 0;text-align:center;font-size:13px;line-height:1.5;color:#526578}
.photo-viewer-v2 .photo-frame-options{display:flex;justify-content:center}
.photo-viewer-v2 .photo-full,.photo-viewer-v2 .photo-original{min-height:44px;padding:10px 14px;border:0;border-radius:6px;background:#f2f5f8;color:#243b50;font:600 12px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.photo-viewer-v2 [hidden]{display:none!important}
.photo-viewer-v2 .photo-swipe-hint{display:none;margin:6px 0 0;text-align:center;color:#526578;font-size:12px;line-height:1.5}
.photo-viewer-v2 :is(button,a):focus-visible{outline:3px solid #0069ad;outline-offset:3px}
@media(max-width:850px){.photo-viewer-v2 .photo-swipe-hint{display:block}}
