:root {
    --gallery-gold: var(--bloom-gold, #d9ad68);
    --gallery-pink: var(--bloom-pink, #ef6e9f);
    --gallery-ink: var(--bloom-bg, #090709);
    --gallery-text: var(--bloom-text, #fff8f4);
    --gallery-muted: var(--bloom-muted, #d4c5cc);
    --gallery-panel: var(--bloom-panel, rgba(31, 15, 23, .92));
    --gallery-line: var(--bloom-line, rgba(217, 173, 104, .3));
}
body[data-page="gallery"] { min-height: 100vh; color: var(--gallery-text); background: radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--gallery-pink) 18%, transparent), transparent 34rem), linear-gradient(155deg, var(--bloom-bg), var(--bloom-bg-soft), var(--bloom-bg)); }
.gallery-shell { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 44px 0 120px; }
.gallery-hero { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.gallery-hero .back-link { width: max-content; display: block; margin: 0 auto 24px 0; color: var(--bloom-gold-bright); text-decoration: none; }
.gallery-eyebrow { margin: 0 0 10px; color: var(--gallery-gold); font-size: .74rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; }
.gallery-hero h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.8rem, 8vw, 6.4rem); font-weight: 400; letter-spacing: -.045em; }
.gallery-hero > p:last-child { color: var(--gallery-muted); line-height: 1.65; }
.gallery-status { margin: 18px auto 28px; text-align: center; color: var(--gallery-muted); }
.gallery-events { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.gallery-highlights { grid-column: 1 / -1; margin-bottom: 38px; padding: clamp(20px, 4vw, 34px); border: 1px solid rgba(230, 194, 138, .28); border-radius: 28px; background: radial-gradient(circle at 88% 12%, rgba(255, 68, 149, .18), transparent 34%), linear-gradient(145deg, rgba(50, 27, 38, .96), rgba(13, 8, 11, .98)); box-shadow: 0 24px 64px rgba(0, 0, 0, .34); }
.gallery-section-heading { grid-column: 1 / -1; margin: 0 0 18px; }
.gallery-section-heading small { color: var(--gallery-gold); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.gallery-section-heading h2 { margin: 6px 0; color: var(--gallery-text); font: 500 clamp(2rem, 5vw, 3.5rem)/1 Georgia, serif; }
.gallery-section-heading p { max-width: 680px; margin: 0; color: var(--gallery-muted); line-height: 1.6; }
.gallery-event-heading { margin-top: 10px; }
.gallery-highlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gallery-highlight-photo { aspect-ratio: 4 / 5; overflow: hidden; border-color: rgba(255, 255, 255, .14); background: #130c10; }
.gallery-highlight-photo:only-child { grid-column: 1 / -1; width: min(100%, 540px); justify-self: center; }
.gallery-highlight-photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-event-card { grid-column: span 6; display: grid; grid-template-columns: minmax(160px, .72fr) 1fr; min-height: 340px; overflow: hidden; border: 1px solid var(--gallery-line); border-radius: 24px; background: linear-gradient(145deg, var(--gallery-panel), color-mix(in srgb, var(--bloom-panel-solid) 94%, transparent)); box-shadow: var(--bloom-shadow); color: inherit; text-decoration: none; }
.gallery-event-frame:first-child .gallery-event-card { grid-template-columns: minmax(300px, .9fr) 1.1fr; }
.gallery-event-frame { grid-column: span 6; position: relative; display: grid; }
.gallery-event-frame:first-child { grid-column: 1 / -1; }
.gallery-event-frame .gallery-event-card { grid-column: auto; height: 100%; }
.gallery-event-card picture, .gallery-photo picture { display: block; height: 100%; }
.gallery-event-card img { width: 100%; height: 100%; object-fit: cover; }
.gallery-event-copy { align-self: center; padding: clamp(24px, 5vw, 54px); }
.gallery-event-copy small { color: var(--gallery-gold); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.gallery-event-copy h2 { margin: 10px 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 4.1rem); font-weight: 400; }
.gallery-event-copy span { color: var(--gallery-muted); }
.gallery-photo-grid { grid-column: 1 / -1; columns: 3 260px; column-gap: 18px; }
.gallery-photo-grid.is-single { columns: auto; }
.gallery-photo-grid.is-single .gallery-photo-frame { width: min(100%, 540px); margin-inline: auto; }
.gallery-photo-frame { position: relative; width: 100%; margin: 0 0 18px; break-inside: avoid; }
.gallery-photo { width: 100%; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--gallery-line); border-radius: 18px; background: var(--bloom-panel-solid); cursor: zoom-in; }
.gallery-photo img { display: block; width: 100%; height: auto; transition: transform .35s ease, filter .35s ease; }
.gallery-image-error { min-height: 180px; display: grid; place-items: center; padding: 24px; color: var(--gallery-muted); text-align: center; background: var(--gallery-panel); }
.gallery-image-retry { position: absolute; left: 50%; bottom: 18px; z-index: 2; min-height: 40px; padding: 8px 14px; transform: translateX(-50%); color: #1b0d12; font-weight: 800; white-space: nowrap; background: var(--bloom-gold-bright); border: 0; border-radius: 999px; cursor: pointer; }
.gallery-photo:hover img, .gallery-photo:focus-visible img { transform: scale(1.02); filter: saturate(1.08); }
.gallery-photo:focus-visible { outline: 3px solid var(--gallery-pink); outline-offset: 3px; }
.gallery-empty { grid-column: 1 / -1; max-width: 680px; margin: 20px auto; padding: 46px; border: 1px solid var(--gallery-line); border-radius: 24px; text-align: center; background: var(--gallery-panel); }
.gallery-empty h2 { font-family: Georgia, serif; font-size: 2.4rem; font-weight: 400; }
.gallery-empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.gallery-empty-action { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 16px; color: #1b0d12; font-weight: 800; text-decoration: none; background: linear-gradient(135deg, var(--bloom-gold-bright), var(--bloom-pink-bright)); border: 0; border-radius: 999px; cursor: pointer; }
.gallery-lightbox { width: min(1100px, calc(100% - 24px)); height: min(90vh, 900px); padding: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--gallery-gold) 50%, transparent); border-radius: 24px; background: var(--bloom-bg); color: var(--gallery-text); }
.gallery-lightbox::backdrop { background: rgba(3,2,3,.92); backdrop-filter: blur(10px); }
.gallery-lightbox figure { width: 100%; height: 100%; margin: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; }
.gallery-lightbox picture { min-height: 0; display: grid; place-items: center; }
.lightbox-error { align-self: center; justify-self: center; padding: 28px; color: var(--gallery-muted); text-align: center; }
.lightbox-error button { min-height: 42px; padding: 9px 15px; color: #1b0d12; font-weight: 800; background: var(--bloom-gold-bright); border: 0; border-radius: 999px; cursor: pointer; }
.gallery-lightbox img { max-width: 100%; max-height: 76vh; object-fit: contain; }
.gallery-lightbox figcaption { min-height: 64px; display: grid; gap: 4px; padding: 16px 100px; text-align: center; color: var(--gallery-muted); }
.gallery-lightbox figcaption strong { color: var(--bloom-gold-bright); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.lightbox-close, .lightbox-arrow { position: absolute; z-index: 2; border: 1px solid var(--gallery-line); background: color-mix(in srgb, var(--bloom-bg) 78%, transparent); color: var(--gallery-text); cursor: pointer; }
.lightbox-close { top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; }
.lightbox-arrow { top: 50%; width: 48px; height: 68px; border-radius: 999px; font-size: 2rem; transform: translateY(-50%); }
.lightbox-arrow.previous { left: 16px; } .lightbox-arrow.next { right: 16px; }
.lightbox-download { position: absolute; top: 18px; right: 76px; z-index: 3; min-height: 40px; display: inline-flex; align-items: center; padding: 0 13px; color: var(--gallery-gold); font-weight: 800; text-decoration: none; background: color-mix(in srgb, var(--bloom-bg) 78%, transparent); border: 1px solid var(--gallery-line); border-radius: 999px; }
@media (max-width: 760px) { .gallery-shell { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } .gallery-highlight-grid { grid-template-columns: 1fr; } .gallery-event-frame, .gallery-event-frame:first-child { grid-column: 1 / -1; } .gallery-event-card, .gallery-event-frame:first-child .gallery-event-card { grid-column: auto; grid-template-columns: 1fr; } .gallery-event-card picture { max-height: 440px; } .gallery-photo-grid { columns: 2 150px; } .gallery-lightbox { height: min(92dvh, 900px); } .gallery-lightbox figcaption { padding: 14px 62px 64px; } }
@media (prefers-reduced-motion: reduce) { .gallery-photo img { transition: none; } }
