.gallery-event__images .gallery-image-item { cursor: zoom-in; }
.gallery-event__images .gallery-image-item:focus-visible { outline: 3px solid #dba341; outline-offset: 3px; }
.gb-gallery-preview { position: fixed; inset: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; }
.gb-gallery-preview::backdrop { background: rgba(8, 19, 29, .88); backdrop-filter: blur(6px); }
.gb-gallery-preview[open] { display: grid; place-items: center; animation: gb-preview-open .25s ease-out both; }
.gb-gallery-preview__frame { position: relative; display: grid; place-items: center; width: min(96vw, 1400px); height: min(94vh, 960px); }
.gb-gallery-preview__image { display: block; max-width: calc(100% - 96px); max-height: calc(100% - 72px); width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 16px 50px rgba(0,0,0,.35); }
.gb-gallery-preview__image--enter { animation: gb-preview-image .3s ease-out both; }
.gb-gallery-preview button { cursor: pointer; color: #fff; background: rgba(19,42,59,.8); border: 1px solid rgba(255,255,255,.45); border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; font: 28px/1 Arial, sans-serif; }
.gb-gallery-preview button:hover, .gb-gallery-preview button:focus-visible { background: #ad772c; outline: 2px solid white; outline-offset: 2px; }
.gb-gallery-preview__close { position: absolute; top: 4px; right: 6px; z-index: 2; }
.gb-gallery-preview__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.gb-gallery-preview__prev { left: 0; } .gb-gallery-preview__next { right: 0; }
.gb-gallery-preview button[hidden] { display: none; }
.gb-gallery-preview__count { position: absolute; bottom: 6px; font: 600 14px/1.4 Arial, sans-serif; letter-spacing: .08em; }
@keyframes gb-preview-open { from { opacity: 0; } to { opacity: 1; } }
@keyframes gb-preview-image { from { opacity: .3; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 600px) { .gb-gallery-preview__frame { width: 100vw; height: 100dvh; } .gb-gallery-preview__image { max-width: calc(100% - 24px); max-height: calc(100% - 110px); } .gb-gallery-preview__nav { top: auto; bottom: 10px; transform: none; } .gb-gallery-preview__prev { left: 16px; } .gb-gallery-preview__next { right: 16px; } .gb-gallery-preview__close { top: 16px; right: 16px; } .gb-gallery-preview__count { bottom: 23px; } }
@media (prefers-reduced-motion: reduce) { .gb-gallery-preview[open], .gb-gallery-preview__image--enter { animation: none; } }
.gb-gallery-preview__image { max-height: min(80dvh, 850px); max-width: min(calc(100vw - 112px), 1250px); }
@media (max-width: 600px) { .gb-gallery-preview__image { max-height: calc(100dvh - 128px); max-width: calc(100vw - 24px); } }
