.gallery:has(.gallery-media-stage){min-width:0}
.gallery-media-stage{position:relative;width:100%;aspect-ratio:1/1;min-height:356px;min-width:0}
.gallery-media-stage>.main-photo{width:100%;height:100%;aspect-ratio:auto}
.gallery-media-stage>[hidden],#zoomDialog .zoom-video[hidden]{display:none!important}
.gallery-inline-video{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid #dce4f2;border-radius:20px;background:#0e1930;overflow:hidden}
.gallery-inline-video iframe{display:block;flex:0 1 auto;width:auto;height:100%;aspect-ratio:9/16;min-width:200px;max-width:100%;max-height:100%;border:0}
.gallery-expand-video{position:absolute;right:8px;bottom:8px;min-height:32px;padding:7px 10px;border:1px solid #d6e0f3;border-radius:8px;background:#ffffffed;color:#123da5;font:700 11px "Segoe UI",Arial,sans-serif;cursor:pointer}
.gallery-media-controls{display:flex;align-items:center;justify-content:center;gap:15px;margin:10px 0 0;color:#294772;font-size:12px}
.gallery-media-controls button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #bfd0f7;border-radius:50%;background:#f1f5ff;color:#123da5;font-size:25px;cursor:pointer}
.gallery-media-controls button:hover{background:#e3ecff}
.gallery-media-controls button:focus-visible,.gallery-expand-video:focus-visible{outline:3px solid #ffd000;outline-offset:3px}
.gallery-thumbs .video-thumb{position:relative;overflow:hidden;border-color:#678bf0;background:#edf3ff;padding:4px}
.gallery-thumbs .video-thumb img{opacity:.6}
.video-thumb-play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:16px;text-shadow:0 1px 4px #10265d;background:#123da549}
#zoomDialog .zoom-video{width:min(78vw,40.5dvh,420px);min-width:200px;max-width:100%;height:auto;aspect-ratio:9/16;max-height:none;margin:auto}
#zoomDialog .zoom-video iframe{display:block;width:100%;height:100%;border:0}
@media(max-width:700px){.gallery-media-stage{aspect-ratio:1.2/1}.gallery-inline-video{border-radius:14px}.gallery-media-controls button{width:38px;height:38px}.gallery-expand-video{right:6px;bottom:6px}}
