.gallery-zoom{display:block;position:relative;border-radius:16px;overflow:hidden;cursor:zoom-in;color:#fff;text-decoration:none}
.gallery-zoom>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:16px}
.gallery-zoom:focus-visible{outline:3px solid var(--orange);outline-offset:5px}
.gallery-zoom-hint{position:absolute;right:14px;bottom:14px;display:flex;align-items:center;gap:7px;padding:8px 12px;border-radius:16px;background:#040234e8;color:#fff;font:500 11px/1.5 var(--body);letter-spacing:.015em;pointer-events:none}
.gallery-zoom-hint>span{font-size:18px;line-height:1}
body.gallery-open{overflow:hidden}
.gallery-dialog{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:24px;border:0;border-radius:0;background:transparent;color:#fff;overflow:auto;overscroll-behavior:contain}
.gallery-dialog::backdrop{background:#040234f5}
.gallery-dialog [hidden]{display:none!important}
.gallery-dialog-content{width:min(1360px,100%);min-height:100%;margin:auto;display:flex;flex-direction:column;justify-content:center;gap:12px}
.gallery-dialog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}
.gallery-dialog-toolbar>p{margin:0;color:#d2d0dd;font:400 12px/1.5 var(--body)}
.gallery-dialog-toolbar>div{display:flex;gap:8px}
.gallery-dialog button{display:inline-flex;align-items:center;justify-content:center;gap:15px;min-width:44px;min-height:44px;padding:10px 14px;border:1px solid #ffffff50;border-radius:16px;background:#fff;color:#040234;cursor:pointer;font:500 12px/1.5 var(--body)}
.gallery-dialog button:is(:hover,:focus-visible){background:#ffe5db;border-color:#ff9b7a;outline:2px solid #ff9b7a;outline-offset:2px}
.gallery-dialog [data-gallery-close]>span{font-size:23px;line-height:1}
.gallery-dialog figure{margin:0;min-width:0}
.gallery-dialog-photo{display:flex;align-items:center;justify-content:center;min-height:160px}
.gallery-dialog-photo>img{display:block;width:auto;max-width:100%;height:auto;max-height:min(76dvh,900px);object-fit:contain;border-radius:16px}
.gallery-dialog-photo>[hidden]{display:none}
.gallery-dialog-photo>p{margin:40px 0;text-align:center;color:#fff;font:400 15px/1.7 var(--body)}
.gallery-dialog-photo a{display:block;color:#ffb49f;text-underline-offset:5px}
.gallery-dialog figcaption{padding:14px 0 0;color:#e5e2ea;font:400 13px/1.65 var(--body);max-width:90ch}
@media(max-width:600px){
 .gallery-dialog{padding:16px}
 .gallery-dialog-toolbar{gap:8px}
 .gallery-dialog-toolbar>div{gap:5px}
 .gallery-dialog button{padding:9px 11px}
 .gallery-dialog-photo>img{max-height:70dvh}
 .gallery-zoom-hint{right:10px;bottom:10px}
}
