.image-viewer-dialog{box-sizing:border-box;width:min(1100px,calc(100vw - 24px));height:min(850px,calc(100dvh - 24px));max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #52657b;border-radius:14px;background:#101923;color:#fff;overflow:hidden;box-shadow:0 14px 60px #0009}
.image-viewer-dialog::backdrop{background:#071018d9}
.image-viewer-panel{height:100%;display:flex;flex-direction:column;min-height:0}
.image-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#182737;flex:none}
.image-viewer-caption{margin:0;font-size:16px;line-height:1.35;overflow-wrap:anywhere;color:#fff;min-width:0}
.image-viewer-dialog button{box-sizing:border-box;min-height:44px;min-width:44px;margin:0;padding:9px 13px;border:1px solid #60748b;border-radius:8px;background:#233a51;color:#fff;font:600 16px/1.3 system-ui,sans-serif;cursor:pointer;white-space:normal}
.image-viewer-dialog button:hover{background:#32536f}
.image-viewer-dialog button:focus-visible,.image-viewer-viewport:focus-visible{outline:3px solid #ffd969;outline-offset:-3px}
.image-viewer-dialog button:disabled{opacity:.45;cursor:default}
.image-viewer-dialog button[hidden]{display:none}
.image-viewer-dialog .image-viewer-close{background:#fff;color:#183349;border-color:#fff;flex:none;white-space:nowrap}
.image-viewer-dialog .image-viewer-close:hover{background:#e6eff8}
.image-viewer-viewport{display:flex;align-items:center;justify-content:center;min-height:80px;min-width:0;flex:1;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;background:#09121b;padding:8px}
.image-viewer-image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;flex:none;user-select:none}
.image-viewer-dialog.is-zoomed .image-viewer-viewport{display:block}
.image-viewer-dialog.is-zoomed .image-viewer-image{max-width:none;max-height:none;object-fit:unset}
.image-viewer-footer{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:9px 12px;background:#182737;flex:none}
.image-viewer-count{min-width:45px;text-align:center;font-size:15px;color:#fff}
.image-viewer-count:empty{display:none}
.image-viewer-status{margin:0;padding:0 12px 10px;background:#182737;color:#e8f1fa;font-size:15px;line-height:1.35;flex:none}
.image-viewer-status:empty{display:none}
@media(max-width:600px){.image-viewer-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px);border-radius:10px}.image-viewer-header{gap:8px;padding:8px}.image-viewer-caption{font-size:15px}.image-viewer-footer{gap:6px;padding:8px}.image-viewer-dialog button{font-size:15px;padding:8px 10px}.image-viewer-dialog .image-viewer-zoom{flex-basis:100%}.image-viewer-viewport{padding:4px}.image-viewer-count{min-width:40px}}
@supports not(height:100dvh){.image-viewer-dialog{height:calc(100vh - 24px)}@media(max-width:600px){.image-viewer-dialog{height:calc(100vh - 12px)}}}
