.ot-open-photo{position:relative;display:block;width:100%;height:100%;cursor:zoom-in}
.ot-zoom-hint{position:absolute;right:12px;bottom:12px;background:#171717c9;color:#fff;padding:6px 10px;border-radius:6px;font:600 12px Arial,Helvetica,sans-serif;pointer-events:none}
dialog.ot-photo-viewer{box-sizing:border-box;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#121212;color:#fff;overflow:hidden;font:14px Arial,Helvetica,sans-serif}
.ot-photo-viewer[open]{display:flex;flex-direction:column}
.ot-photo-viewer::backdrop{background:#121212}
.ot-photo-viewer *{box-sizing:border-box;font-family:Arial,Helvetica,sans-serif!important}
.ot-viewer-toolbar,.ot-viewer-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;flex:none;background:#1d1d1d;color:#fff}
.ot-viewer-toolbar>div{display:flex;gap:10px}
.ot-photo-viewer button{font:600 14px Arial,Helvetica,sans-serif;background:#333;color:#fff;border:1px solid #666;border-radius:6px;min-width:44px;min-height:44px;padding:9px 14px;cursor:pointer;line-height:1.3}
.ot-photo-viewer .ot-viewer-close{background:#d71920;border-color:#d71920}
.ot-photo-viewer button:disabled{opacity:.45;cursor:default}
.ot-photo-viewer button:focus-visible{outline:3px solid #fff;outline-offset:2px}
.ot-viewer-stage{position:relative;flex:1;min-height:0;display:flex;justify-content:center;align-items:center;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom}
.ot-viewer-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;flex:none;user-select:none}
.ot-viewer-stage img[hidden]{display:none}
.ot-viewer-stage.is-zoomed{display:block}
.ot-viewer-stage.is-zoomed img{max-width:none;max-height:none;object-fit:initial;cursor:zoom-out}
.ot-viewer-status{position:absolute;inset:40% 20px auto;text-align:center;color:#eee;font-size:14px}
.ot-viewer-status:empty{display:none}
.ot-viewer-navigation>span{font-size:12px;color:#ccc;text-align:center}
@media(max-width:620px){.ot-viewer-toolbar,.ot-viewer-navigation{padding:10px;gap:8px}.ot-photo-viewer button{font-size:12px;padding:9px 11px}.ot-viewer-counter{font-size:12px}.ot-viewer-navigation>span{font-size:10px;max-width:90px}}
