/* ============================================================
   JUJU Gallery — premium, photo-first
   Bento hero · horizontal event showcase · editorial masonry · lightbox
   ============================================================ */
.gallery-page {
  --ivory: #f8f5ef; --ink: #16131d; --ink-2: #4b4656; --muted: #77707f; --line: rgba(22,19,29,.1);
  --pink: #ec1c8c; --green: #3fae2a; --blue: #12a6e8; --yellow: #f2b200;
  --serif: 'DM Serif Display', Georgia, serif; --ease: cubic-bezier(.22,1,.36,1);
  --e1: 0 1px 2px rgba(22,19,29,.06), 0 12px 30px rgba(22,19,29,.08);
  --e2: 0 2px 6px rgba(22,19,29,.08), 0 34px 80px rgba(22,19,29,.18);
  background: var(--ivory);
}
.gl { color: var(--ink); overflow-x: clip; }
.gl .reveal { transition-delay: var(--d, 0s); }
.gl h1, .gl h2, .gl h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -.005em; }
.gl h1 em, .gl h2 em { font-style: italic; color: var(--pink); }
.gl-kick { display: inline-flex; align-items: center; gap: .7rem; margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.gl-kick::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--pink) 0 25%, var(--green) 25% 50%, var(--blue) 50% 75%, var(--yellow) 75%); }
.gl-kick--light { color: #e9e4f0; }
.gl-tag { display: inline-flex; align-items: center; gap: .45rem; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.gl-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.gl-btn { display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.5rem; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 800 .95rem 'Quicksand', sans-serif; text-decoration: none; cursor: pointer; transition: transform .3s var(--ease), background .3s; }
.gl-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.gl-btn:hover { transform: translateY(-2px); background: var(--c, var(--pink)); color: #fff; }
.gl-btn:hover svg { transform: translateX(4px); }
.gl-btn--light { background: #fff; color: var(--ink); }
.gl-btn--light:hover { background: var(--yellow); color: var(--ink); }
.gl-link { font-weight: 800; font-size: .92rem; color: var(--ink-2); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.gl-link:hover { color: var(--c, var(--pink)); }
.gl-link--light { color: #fff; }

/* ---------- BENTO HERO ---------- */
.gl-hero { padding: clamp(1.6rem, 3vw, 2.6rem) 0 clamp(3rem, 6vw, 4.5rem); }
.gl-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto repeat(2, minmax(190px, 16vw)); gap: 14px; grid-template-areas: "t t a a" "b c a a" "b d e e"; }
.gl-b { position: relative; overflow: hidden; border: 0; padding: 0; border-radius: 26px; background: #e9e4dc; cursor: zoom-in; box-shadow: var(--e1); }
.gl-b img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease), filter .6s; }
.gl-b:hover img { transform: scale(1.05); }
.gl-b::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,8,14,.55)); opacity: .8; transition: opacity .4s; pointer-events: none; }
.gl-b-cap { position: absolute; left: 1rem; bottom: .9rem; z-index: 1; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--ink); font: 800 .72rem 'Quicksand', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.gl-b-cap i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.gl-b--a { grid-area: a; } .gl-b--b { grid-area: b; } .gl-b--c { grid-area: c; } .gl-b--d { grid-area: d; } .gl-b--e { grid-area: e; }
.gl-b--title { grid-area: t; cursor: default; min-height: 300px; display: flex; flex-direction: column; justify-content: center; padding: clamp(1.4rem, 3vw, 2.4rem); background: #fff; }
.gl-b--title::after { display: none; }
.gl-b--title::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: conic-gradient(var(--pink) 0 25%, var(--green) 0 50%, var(--blue) 0 75%, var(--yellow) 0); opacity: .08; }
.gl-crumb { margin: 0 0 .8rem; font-size: .82rem; color: var(--muted); }
.gl-crumb a { color: var(--ink-2); font-weight: 700; text-decoration: none; }
.gl-b--title h1 { margin: .7rem 0 .6rem; font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.02; }
.gl-lead { margin: 0; max-width: 520px; color: var(--ink-2); line-height: 1.65; font-size: 1rem; }
.gl-stats { display: flex; gap: 1.8rem; margin-top: 1.2rem; }
.gl-stats span { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.gl-stats b { display: block; font: 1.9rem/1 var(--serif); color: var(--ink); letter-spacing: 0; }
.gl-stats span:nth-child(1) b { color: var(--pink); } .gl-stats span:nth-child(2) b { color: var(--blue); } .gl-stats span:nth-child(3) b { color: var(--green); }

/* ---------- EVENT SHOWCASE ---------- */
.gl-events { position: relative; padding: clamp(4rem, 8vw, 6rem) 0; background: var(--ink); color: #fff; scroll-margin-top: 80px; }
.gl-events::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 0% 0%, rgba(236,28,140,.12), transparent 60%), radial-gradient(700px 400px at 100% 100%, rgba(18,166,232,.12), transparent 60%); pointer-events: none; }
.gl-events-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.4rem; }
.gl-events h2 { margin: .7rem 0 0; color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; }
.gl-events h2 em { color: var(--yellow); }
.gl-nav { display: flex; gap: .6rem; }
.gl-arrow { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); background: none; color: #fff; cursor: pointer; transition: all .25s; }
.gl-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gl-arrow:hover { background: #fff; color: var(--ink); }
.gl-arrow:disabled { opacity: .3; pointer-events: none; }
.gl-track { position: relative; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(16px, calc((100vw - 1200px) / 2)); padding: 0 max(16px, calc((100vw - 1200px) / 2)) 1.2rem; scrollbar-width: none; outline: none; }
.gl-track::-webkit-scrollbar { display: none; }
.gl-ev { flex: 0 0 min(1000px, 86vw); scroll-snap-align: start; display: grid; grid-template-columns: 1.35fr 1fr; overflow: hidden; border-radius: 30px; background: #211d2a; border: 1px solid rgba(255,255,255,.08); }
.gl-ev-end { flex: 0 0 1px; }
.gl-ev-img { position: relative; border: 0; padding: 0; min-height: 440px; overflow: hidden; cursor: zoom-in; background: #2a2533; }
.gl-ev-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.gl-ev:hover .gl-ev-img img { transform: scale(1.05); }
.gl-ev-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--c); }
.gl-ev-b { display: flex; flex-direction: column; gap: .9rem; padding: clamp(1.6rem, 3vw, 2.6rem); }
.gl-ev h3 { margin: 0; color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
.gl-ev-b > p:not(.gl-tag) { margin: 0; color: #c9c3d3; line-height: 1.7; font-size: .97rem; }
.gl-ev-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: .3rem; }
.gl-ev-strip button { aspect-ratio: 1; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #2a2533; }
.gl-ev-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; opacity: .85; }
.gl-ev-strip button:hover img { transform: scale(1.1); opacity: 1; }
.gl-ev-act { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: auto; padding-top: .6rem; }
.gl-ev .gl-btn { background: #fff; color: var(--ink); }
.gl-ev .gl-btn:hover { background: var(--c); color: #fff; }
.gl-ev .gl-link { color: #e9e4f0; }

/* ---------- MASONRY ---------- */
.gl-photos { padding: clamp(4rem, 8vw, 6rem) 0; scroll-margin-top: 80px; }
.gl-head { text-align: center; margin-bottom: 2rem; }
.gl-head h2 { margin: .7rem 0 .4rem; font-size: clamp(2.1rem, 4vw, 3.2rem); }
.gl-head p:last-child { margin: 0; color: var(--muted); }
.gl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.4rem; }
.gl-ytabs { margin-bottom: 2rem; }
.gl-chips button { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.15rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font: 700 .9rem 'Quicksand', sans-serif; cursor: pointer; transition: all .25s var(--ease); }
.gl-chips button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.gl-chips button span { padding: 0 .5rem; border-radius: 999px; background: var(--ivory); font-size: .78rem; }
.gl-chips button:hover { border-color: var(--ink); }
.gl-chips button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.gl-chips button.is-on span { background: rgba(255,255,255,.18); }
.gl-masonry { columns: 3; column-gap: 18px; }
.gl-m { break-inside: avoid; margin: 0 0 18px; }
.gl-m[hidden] { display: none; }
.gl-m button { position: relative; display: block; width: 100%; border: 0; padding: 0; border-radius: 20px; overflow: hidden; cursor: zoom-in; background: #e9e4dc; box-shadow: var(--e1); }
.gl-m img { display: block; width: 100%; height: auto; transition: transform 1s var(--ease); }
.gl-m button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--c); transition: box-shadow .35s var(--ease); }
.gl-m button:hover img { transform: scale(1.04); }
.gl-m button:hover::after { box-shadow: inset 0 0 0 4px var(--c); }
.gl-m figcaption { display: flex; flex-direction: column; gap: .2rem; padding: .7rem .3rem 0; font-size: .92rem; font-weight: 600; color: var(--ink-2); line-height: 1.4; }

/* ---------- CTA ---------- */
.gl-cta { padding: 0 0 clamp(4rem, 8vw, 6rem); }
.gl-cta-card { position: relative; overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; border-radius: 34px; box-shadow: var(--e2); }
.gl-cta-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gl-cta-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,11,20,.88) 0%, rgba(14,11,20,.6) 45%, rgba(14,11,20,.1)); }
.gl-cta-b { position: relative; z-index: 1; max-width: 560px; padding: clamp(1.8rem, 5vw, 3.4rem); }
.gl-cta-b h2 { color: #fff; margin: .7rem 0 .6rem; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1; }
.gl-cta-b p:not(.gl-kick) { color: #e4dfea; margin: 0 0 1.4rem; line-height: 1.65; }
.gl-cta-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }

/* ---------- LIGHTBOX ---------- */
.gl-lb { position: fixed; inset: 0; z-index: 3000; display: grid; grid-template-columns: 80px 1fr 80px; grid-template-rows: auto 1fr auto; background: rgba(10,8,14,.96); backdrop-filter: blur(12px); color: #fff; animation: glFade .3s ease; }
.gl-lb[hidden] { display: none; }
.gl-lb-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.4rem; }
.gl-lb-meta { display: flex; align-items: center; gap: 1rem; margin: 0; font-weight: 700; font-size: .9rem; color: #bdb6c8; }
.gl-lb-meta .gl-tag { padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.08); }
.gl-lb-x { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); background: none; color: #fff; font-size: 1.1rem; cursor: pointer; transition: all .2s; }
.gl-lb-x:hover { background: #fff; color: var(--ink); }
.gl-lb-nav { align-self: center; justify-self: center; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; transition: all .2s; }
.gl-lb-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gl-lb-nav:hover { background: #fff; color: var(--ink); }
.gl-lb-fig { margin: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 0 .5rem; }
.gl-lb-fig img { max-width: 100%; max-height: calc(100vh - 230px); border-radius: 14px; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.5); transition: opacity .25s; }
.gl-lb-fig img.is-loading { opacity: .3; }
.gl-lb-fig figcaption { font: 1.2rem var(--serif); text-align: center; color: #f1edf6; }
.gl-lb-thumbs { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; padding: .8rem 1.4rem 1.2rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
.gl-lb-thumbs button { flex: none; width: 74px; height: 54px; border: 0; padding: 0; border-radius: 8px; overflow: hidden; opacity: .45; cursor: pointer; transition: opacity .2s, outline-color .2s; outline: 2px solid transparent; outline-offset: 2px; background: #2a2533; }
.gl-lb-thumbs button.is-on { opacity: 1; outline-color: var(--c, #fff); }
.gl-lb-thumbs button:hover { opacity: .9; }
.gl-lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
html.gl-lock { overflow: hidden; }
@keyframes glFade { from { opacity: 0; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .gl-masonry { columns: 2; }
  .gl-ev { grid-template-columns: 1fr; }
  .gl-ev-img { min-height: 300px; }
}
@media (max-width: 760px) {
  .gl-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto 240px 170px 170px 200px; grid-template-areas: "t t" "a a" "b c" "b d" "e e"; gap: 10px; }
  .gl-b { border-radius: 20px; }
  .gl-stats { gap: 1.2rem; }
  .gl-events-head { flex-direction: column; align-items: flex-start; }
  .gl-nav { display: none; }
  .gl-ev { flex-basis: 88vw; }
  .gl-ev-img { min-height: 230px; }
  .gl-masonry { column-gap: 10px; }
  .gl-m { margin-bottom: 14px; }
  .gl-m button { border-radius: 14px; }
  .gl-m figcaption { font-size: .8rem; }
  .gl-m figcaption .gl-tag { display: none; }
  .gl-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: .3rem; }
  .gl-chips button { flex: none; }
  .gl-cta-card::after { background: linear-gradient(180deg, rgba(14,11,20,.15), rgba(14,11,20,.9) 55%); }
  .gl-cta-card { min-height: 460px; }
  .gl-lb { grid-template-columns: 1fr; }
  .gl-lb-nav { position: absolute; top: 50%; width: 44px; height: 44px; background: rgba(0,0,0,.4); }
  .gl-lb-prev { left: 8px; } .gl-lb-next { right: 8px; }
  .gl-lb-fig img { max-height: calc(100vh - 220px); border-radius: 8px; }
  .gl-lb-fig figcaption { font-size: 1rem; padding: 0 1rem; }
}
@media (prefers-reduced-motion: reduce) { .gl *, .gl *::after { transition: none !important; animation: none !important; } }

/* ---------- ALBUMS ---------- */
.gl-albums { padding: clamp(4rem, 8vw, 6rem) 0 0; scroll-margin-top: 80px; }
.gl-algrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gl-al { display: flex; flex-direction: column; border: 0; padding: 0; text-align: left; background: #fff; border-radius: 22px; overflow: hidden; cursor: pointer; box-shadow: var(--e1); transition: transform .4s var(--ease), box-shadow .4s; font-family: inherit; }
.gl-al[hidden] { display: none; }
.gl-al:hover { transform: translateY(-6px); box-shadow: var(--e2); }
.gl-al-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e9e4dc; }
.gl-al-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gl-al:hover .gl-al-img img { transform: scale(1.06); }
.gl-al-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); }
.gl-al-n { position: absolute; right: .7rem; top: .7rem; min-width: 34px; padding: .25rem .55rem; border-radius: 999px; background: rgba(22,19,29,.72); backdrop-filter: blur(6px); color: #fff; font: 800 .78rem 'Quicksand', sans-serif; text-align: center; }
.gl-al-b { display: flex; flex-direction: column; gap: .3rem; padding: .95rem 1.1rem 1.1rem; }
.gl-al-b b { font: 1.12rem/1.25 var(--serif); font-weight: 400; color: var(--ink); }
.gl-al-b small { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .8rem; color: var(--muted); }
.gl-al-b small i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.gl-ev-yr { position: absolute; left: 1rem; top: 1rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font: 800 .8rem 'Quicksand', sans-serif; letter-spacing: .08em; }
.gl-more { display: flex; justify-content: center; margin-top: 2rem; }
.gl-more[hidden] { display: none; }
.gl-more span { opacity: .7; font-weight: 700; }
@media (max-width: 1024px) { .gl-algrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .gl-algrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gl-al { border-radius: 16px; }
  .gl-al-b { padding: .7rem .8rem .85rem; }
  .gl-al-b b { font-size: .98rem; }
  .gl-al-b small { font-size: .72rem; }
}
/* accessibility: readable tags */
.gl-tag { color: #4b4656; }
.gl-events .gl-tag, .gl-lb .gl-tag, .gl-cta .gl-tag { color: #ece7f4; }
@media (max-width: 760px) { .gl-b--title { min-height: 330px; } }

.gl-events,.gl-albums{content-visibility:auto;contain-intrinsic-size:auto 900px}.gl-photos{content-visibility:auto;contain-intrinsic-size:auto 2400px}.gl-cta{content-visibility:auto;contain-intrinsic-size:auto 420px}
