.bmft-image-viewer{box-sizing:border-box;width:96vw;max-width:1800px;height:94vh;height:94dvh;max-height:none;padding:16px;margin:auto;border:1px solid #706579;border-radius:18px;background:#242529;color:#fff;overflow:hidden}
.bmft-image-viewer[open]{display:flex;flex-direction:column;gap:12px}
.bmft-image-viewer::backdrop{background:rgba(0,0,0,.8)}
.bmft-viewer-toolbar{display:flex;justify-content:space-between;gap:12px;flex-shrink:0}
.bmft-viewer-toolbar button{font:600 16px/1.3 system-ui,sans-serif;min-height:44px;padding:10px 18px;border:1px solid #bdb0c9;border-radius:24px;background:#e5dfeb;color:#242529;cursor:pointer}
.bmft-viewer-toolbar button:focus-visible{outline:3px solid white;outline-offset:3px}
.bmft-viewer-image{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center}
.bmft-viewer-image img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.bmft-viewer-image.is-zoomed{display:block}
.bmft-viewer-image.is-zoomed img{max-width:none;max-height:none;width:auto;height:auto}
.bmft-viewer-caption{flex-shrink:0;margin:0;font:14px/1.4 system-ui,sans-serif;color:#e5dfeb}
@media(max-width:600px){.bmft-image-viewer{padding:12px;width:98vw;height:96dvh}.bmft-viewer-toolbar button{font-size:14px;padding:10px 14px}}
