/* Scoped photo presentation; form, quote, payment and consent styles stay local. */
.event-gallery-ready .hero-photo{touch-action:pan-y pinch-zoom}
.event-gallery-controls{position:absolute;top:12px;left:12px;z-index:3;display:flex;gap:4px}
.event-gallery-button,.event-gallery-ready #gallery-open,#gallery.event-gallery-lightbox #gallery-close{min-width:44px;min-height:44px;box-sizing:border-box;border:1px solid #ffffff60;border-radius:999px;background:#101719eb;color:#fff;display:inline-flex;align-items:center;justify-content:center;font:500 15px/1.2 Lora,Georgia,serif;padding:10px 14px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.event-gallery-controls .event-gallery-button{width:44px;padding:0;font-family:Arial,sans-serif;font-size:27px}
.event-gallery-controls #event-gallery-pause{font-size:19px}
.event-gallery-button:hover,.event-gallery-ready #gallery-open:hover{background:#2b3638}
.event-gallery-button:focus-visible,.event-gallery-ready #gallery-open:focus-visible,#gallery.event-gallery-lightbox #gallery-close:focus-visible,.event-gallery-viewport:focus-visible{outline:3px solid #fee0b3;outline-offset:3px}
.event-gallery-button:disabled{cursor:default;opacity:.7}
.event-gallery-ready #gallery-open{top:12px;right:12px;z-index:3;gap:0;font-size:12px;padding:10px 13px}
.event-gallery-counter{position:absolute;right:14px;bottom:14px;z-index:2;padding:6px 9px;border-radius:999px;background:#101719da;color:#fff;font:500 11px/1.2 Arial,sans-serif;font-variant-numeric:tabular-nums}
.event-gallery-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#gallery.event-gallery-lightbox{box-sizing:border-box;width:min(1120px,calc(100vw - 32px));height:min(920px,calc(100dvh - 32px));max-width:none;max-height:none;margin:auto;padding:16px;border:1px solid #ffffff35;border-radius:16px;background:#080d10;color:#fff;overflow:hidden}
#gallery.event-gallery-lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
#gallery.event-gallery-lightbox::backdrop{background:#000e;backdrop-filter:blur(8px)}
#gallery.event-gallery-lightbox .gallery-head{position:static;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:0;background:transparent;z-index:auto}
#gallery.event-gallery-lightbox .gallery-head h2{font-size:clamp(19px,3vw,27px);line-height:1.1}
#gallery.event-gallery-lightbox #gallery-close{flex:none;padding:0;font:400 28px/1 Arial,sans-serif}
#gallery.event-gallery-lightbox .gallery-grid[hidden]{display:none!important}
#gallery.event-gallery-lightbox .event-gallery-viewer{min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:10px;margin:0}
.event-gallery-viewport{position:relative;min-width:0;min-height:0;overflow:hidden;background:#05080a;border-radius:8px;touch-action:pan-y pinch-zoom;overscroll-behavior:contain}
.event-gallery-stage{width:100%;height:100%;min-width:0;min-height:0}
#gallery.event-gallery-lightbox .event-gallery-image{display:block;width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:auto;object-fit:contain;border-radius:0;user-select:none;-webkit-user-select:none}
.event-gallery-viewport.is-zoomed{overflow:auto;touch-action:auto}
.event-gallery-viewport.is-zoomed .event-gallery-stage{width:200%;height:200%}
#gallery.event-gallery-lightbox .event-gallery-caption{margin:0;max-width:100%;color:#e2e7e5;font:400 14px/1.45 Lora,Georgia,serif;overflow-wrap:anywhere;text-align:center}
.event-gallery-toolbar{display:flex;align-items:center;justify-content:center;gap:10px}
.event-gallery-toolbar .event-gallery-button{flex:none;min-height:44px}
.event-gallery-toolbar #event-gallery-lightbox-previous,.event-gallery-toolbar #event-gallery-lightbox-next{width:48px;padding:0;font:400 28px/1 Arial,sans-serif}
.event-gallery-toolbar #event-gallery-zoom{min-width:150px;font-size:14px}
.event-gallery-modal-open{overflow:hidden}
@media(max-width:600px){
 #gallery.event-gallery-lightbox{width:100vw;width:100dvw;height:100vh;height:100dvh;border:0;border-radius:0;margin:0;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
 #gallery.event-gallery-lightbox[open]{gap:10px}
 #gallery.event-gallery-lightbox .event-gallery-caption{font-size:13px;line-height:1.4}
 .event-gallery-controls{top:10px;left:10px}
 .event-gallery-ready #gallery-open{top:10px;right:10px}
 .event-gallery-counter{right:10px;bottom:10px}
}
@media(prefers-reduced-motion:reduce){.event-gallery-ready .hero-photo,#gallery.event-gallery-lightbox *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
