.gallery-viewer{border:1px solid #ffffff20;border-radius:14px;padding:0;background:#14271e;color:#fff;width:min(1200px,96vw);max-width:96vw;height:92vh;height:92dvh;max-height:96vh;max-height:96dvh;overflow:hidden}.gallery-viewer[open]{display:flex;flex-direction:column}.gallery-viewer::backdrop{background:#06150fed;backdrop-filter:blur(5px)}.gallery-viewer-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 22px;border-bottom:1px solid #ffffff20}.gallery-viewer-header h2{font:20px/1.3 Georgia,serif;margin:0}.gallery-viewer button{font:14px/1.4 Arial,sans-serif;border:1px solid #ffffff50;border-radius:6px;color:#fff;background:#ffffff0d;padding:10px 16px;cursor:pointer}.gallery-viewer button:hover{background:#ffffff20}.gallery-viewer button:focus-visible{outline:3px solid #d4dcaa;outline-offset:3px}.gallery-viewer button:disabled{opacity:.4;cursor:default}.gallery-viewer-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:16px;overflow:hidden;touch-action:pan-y pinch-zoom}.gallery-viewer-stage img{width:100%;height:100%;object-fit:contain}.gallery-viewer [hidden]{display:none!important}.gallery-viewer-footer{padding:14px 22px 18px;border-top:1px solid #ffffff20;max-height:35%;overflow:auto}.gallery-viewer-footer>p:first-child{font-size:14px;line-height:1.5;margin:0 0 14px;white-space:pre-line}.gallery-viewer-controls{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.gallery-viewer-controls [data-gallery-count]{font:12px Arial,sans-serif;min-width:65px;text-align:center;color:#d0d9ca}.gallery-viewer-hint{font:11px/1.5 Arial,sans-serif;text-align:center;color:#c2cebc;margin:12px 0 0}.gallery-viewer-open{overflow:hidden}.managed-gallery a[data-gallery-open]{display:block;cursor:zoom-in}.managed-gallery a[data-gallery-open]:focus-visible{outline:3px solid #557841;outline-offset:5px}@media(max-width:600px){.gallery-viewer{width:98vw;max-width:98vw;border-radius:8px}.gallery-viewer-header{padding:12px}.gallery-viewer-header h2{font-size:17px}.gallery-viewer-stage{padding:6px}.gallery-viewer-footer{padding:12px}.gallery-viewer button{font-size:12px;padding:10px 12px}.gallery-viewer-controls{gap:8px}.gallery-viewer-hint{font-size:10px}}

.gallery-viewer-header h2{letter-spacing:normal;overflow-wrap:normal}.gallery-viewer-header>button{flex-shrink:0}
