dialog.drk-gallery-viewer{position:fixed;inset:0;width:min(1300px,96vw);max-width:96vw;max-height:96dvh;margin:auto;padding:14px;background:#111;color:#fff;border:1px solid #666;border-radius:7px;box-sizing:border-box;overflow:hidden;z-index:100000}
dialog.drk-gallery-viewer::backdrop{background:#000e}
.drkg-viewer-head{display:flex;justify-content:space-between;align-items:center;gap:18px;font:600 17px/1.4 Arial,sans-serif;padding:0 4px 10px}
.drkg-viewer-head button{border:1px solid #777;border-radius:5px;background:#222;color:#fff;width:44px;height:44px;flex-shrink:0;font:32px/1 Arial;cursor:pointer}
.drkg-viewer-stage{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:10px}
.drkg-viewer-stage img{display:block;width:100%;height:min(76dvh,900px);object-fit:contain;min-width:0}
.drkg-viewer-stage button{background:#242424;color:white;border:1px solid #777;border-radius:50%;width:44px;height:44px;font:38px/1 Arial;cursor:pointer;padding:0}
.drkg-viewer-stage button[hidden]{visibility:hidden;display:block}
.drk-gallery-viewer [data-viewer-count]{text-align:center;font:14px/1.4 Arial,sans-serif;margin:10px 0 0}
.drk-gallery-viewer button:focus-visible{outline:2px solid #f12a37;outline-offset:3px}
@media(max-width:600px){dialog.drk-gallery-viewer{padding:10px;width:98vw;max-width:98vw}.drkg-viewer-stage{grid-template-columns:30px minmax(0,1fr) 30px;gap:4px}.drkg-viewer-stage button{width:30px;height:38px;font-size:30px;border-radius:5px}.drkg-viewer-head{font-size:14px}.drkg-viewer-stage img{height:72dvh}}
