body.gallery-modal-open{overflow:hidden!important}
.gallery-modal{padding:20px!important;overflow:hidden!important;overscroll-behavior:contain}
.gallery-modal .gallery-modal__panel{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;width:min(92vw,1100px)!important;max-width:100%!important;height:90vh;height:90dvh;max-height:calc(100dvh - 40px)!important;padding:48px 54px 12px!important;overflow:hidden!important;background:#160207!important;border:1px solid #b98c50!important;border-radius:10px!important}
.gallery-modal__viewport,.gallery-modal__viewport.is-portrait{flex:1;min-height:0;min-width:0;width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
.gallery-modal #galleryModalImage,.gallery-modal .is-portrait #galleryModalImage{display:block;width:auto!important;height:auto!important;min-width:0;min-height:0;max-width:100%!important;max-height:100%!important;margin:auto!important;object-fit:contain;border-radius:4px;touch-action:pan-y pinch-zoom;image-rendering:auto}
.gallery-modal__caption{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:42px;color:#f8e8cb}
.gallery-modal .gallery-modal__caption h2{font-size:18px!important;margin:8px 0!important;line-height:1.3}
#galleryCount{flex-shrink:0;font:500 13px Arial,sans-serif}
.gallery-modal .gallery-modal__close{top:12px!important;right:12px!important;width:36px!important;height:36px!important;z-index:4}
.gallery-modal__arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;display:grid;place-items:center;width:44px;height:56px;border:1px solid #b98c50;border-radius:8px;background:#4b0b1be6;color:#ffe3ad;font:38px/1 Arial,sans-serif;cursor:pointer}
.gallery-modal__arrow:hover{background:#792139}.gallery-modal__arrow:focus-visible{outline:2px solid #fff;outline-offset:3px}.gallery-modal__arrow[hidden]{display:none}
.gallery-modal__prev{left:10px}.gallery-modal__next{right:10px}
@media(max-width:699px){.gallery-modal{padding:12px!important}.gallery-modal .gallery-modal__panel{width:100%!important;max-width:100%!important;height:88dvh;max-height:calc(100dvh - 24px)!important;padding:48px 10px 10px!important}.gallery-modal__arrow{width:38px;height:46px;background:#350814cf}.gallery-modal__prev{left:8px}.gallery-modal__next{right:8px}.gallery-modal .gallery-modal__caption h2{font-size:15px!important}.gallery-modal__caption{padding:0 4px}}
