.watch-photo-dialog{width:min(960px,calc(100vw - 16px));max-width:none;height:min(94vh,1050px);height:min(94dvh,1050px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);padding:0;border:1px solid #d4b478;border-radius:14px;background:#0d2b20;color:#f6f1e6;box-shadow:0 24px 80px #0009;overflow:hidden}
.watch-photo-dialog[open]{display:flex;flex-direction:column}
.watch-photo-dialog::backdrop{background:#04100de8}
.wpv-header{display:flex;align-items:center;gap:14px;padding:10px 14px;border-bottom:1px solid #6f704c8c;flex-shrink:0;padding-top:max(10px,env(safe-area-inset-top))}
.wpv-header h2{font-size:15px;margin:0;line-height:1.5}.wpv-header>span{font-size:13px;color:#e7cc8f;font-variant-numeric:tabular-nums}.wpv-header button{margin-left:auto;white-space:nowrap}
.watch-photo-dialog button{font:inherit;font-size:14px;min-height:44px;padding:10px 16px;border:1px solid #d4b478;border-radius:8px;background:#123426;color:#f2d9a3;cursor:pointer}
.watch-photo-dialog button:disabled{opacity:.35;cursor:default}.watch-photo-dialog [hidden]{display:none!important}
.watch-photo-dialog :focus-visible{outline:3px solid #f2d9a3;outline-offset:-3px}
.wpv-stage{position:relative;display:grid;place-items:center;min-height:100px;flex:1;overflow:hidden;background:#fff;touch-action:pan-y pinch-zoom}
.wpv-stage img{display:block;width:100%;height:100%;min-height:0;max-height:100%;object-fit:contain}
.watch-photo-dialog.wpv-zoomed .wpv-stage{display:block;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom}
.watch-photo-dialog.wpv-zoomed .wpv-stage img{width:max(100%,min(1400px,220vw));max-width:none;height:auto;max-height:none}
.wpv-stage [role=status]{position:absolute;bottom:8px;left:12px;right:12px;margin:0;padding:7px 12px;background:#0d2b20ed;border-radius:8px;font-size:12px;text-align:center;line-height:1.7}.wpv-stage [role=status]:empty{display:none}
.wpv-caption{padding:10px 16px;overflow-y:auto;max-height:16vh;max-height:16dvh;flex-shrink:0;overscroll-behavior:contain}.wpv-caption>p{margin:0 0 6px;font-size:13px;line-height:1.7}.wpv-caption>div{font-size:11px;line-height:1.8;color:#bcc9b2;overflow-wrap:anywhere}.wpv-caption a{color:#e7cc8f;text-decoration:underline}
.wpv-controls{display:flex;align-items:center;justify-content:center;gap:12px;padding:10px 14px max(10px,env(safe-area-inset-bottom));border-top:1px solid #6f704c8c;flex-shrink:0}
@media(max-width:600px){.wpv-header{gap:10px;padding-left:10px;padding-right:10px}.wpv-header h2{font-size:14px}.watch-photo-dialog button{padding:10px 12px}.wpv-controls{gap:8px;padding-left:10px;padding-right:10px}.wpv-caption{padding:8px 12px}.wpv-caption>p{font-size:12px}}
@media(max-height:500px){.wpv-stage{min-height:70px}.wpv-caption{padding:4px 12px;max-height:12dvh}.wpv-header{padding:4px 10px}.wpv-controls{padding-top:4px;padding-bottom:4px}}
