/*
  Event page: Golden Gear Gala (/calendar/golden-gear-gala), the custom section at the top of the event description.
  Markup: src/blocks/events/gala-event.html (pasted in a Squarespace Code block). Behavior: gala-event.js.
  Design: option B on the canvas board "Gala event page: custom section options".
  It sits on the event page's Teal Green background, inside the description column (about 900 px wide on a laptop,
  340 px on a phone), so its layout follows the column's width (container queries), not the screen's.
  Brand colors come from src/tokens.css, with the same hex as fallback. Every rule is scoped under .bc-gev.
*/

.bc-gev{--teal:var(--bc-teal-green,#226550);--deep:var(--bc-teal-deep,#1A4D3D);--green:var(--bc-spring-green,#C7EC7A);--mist:var(--bc-mist,#EEF3EA);
 container-type:inline-size;display:flex;flex-direction:column;gap:40px;color:#fff;font-family:Inter,system-ui,sans-serif;font-size:18px;line-height:1.55;-webkit-font-smoothing:antialiased}
.bc-gev *{box-sizing:border-box}
.bc-gev p,.bc-gev figure,.bc-gev ol{margin:0;padding:0}
.bc-gev h2,.bc-gev h3{margin:0;padding:0}
.bc-gev .bc-gev__label{display:block;font-weight:600;font-size:13px;line-height:1.3;letter-spacing:0.12em;text-transform:uppercase;color:var(--green)}

/* Intro: the words, then the reel in the sprocket arch */
.bc-gev .bc-gev__intro{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;align-items:center}
.bc-gev .bc-gev__text{display:flex;flex-direction:column;gap:18px}
.bc-gev .bc-gev__title{font-family:var(--bc-font-display,'Obviously','Archivo Black','Archivo',system-ui,sans-serif);font-weight:800;font-size:clamp(40px,11cqi,72px);line-height:0.95;letter-spacing:-0.02em;text-transform:uppercase;color:var(--green);text-wrap:balance}
.bc-gev .bc-gev__text p{font-size:18px;color:#fff}
.bc-gev .bc-gev__btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:4px}
.bc-gev .bc-gev__btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 26px;border-radius:999px;background:var(--green);color:var(--teal);font-weight:700;font-size:17px;line-height:1.2;text-decoration:none;border:2px solid var(--green);transition:transform .15s}
.bc-gev .bc-gev__btn:hover{transform:translateY(-2px);color:var(--teal)}
.bc-gev a:focus-visible,.bc-gev button:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.bc-gev .bc-gev__reel{position:relative;justify-self:center;width:100%;max-width:min(260px,72cqi);aspect-ratio:300/520;border-radius:150px 150px 28px 28px;overflow:hidden;background:#161614;box-shadow:0 24px 60px -24px rgba(0,0,0,0.5)}
.bc-gev .bc-gev__reel video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.bc-gev .bc-gev__pause{position:absolute;right:16px;bottom:16px;width:44px;height:44px;margin:0;padding:0;border-radius:50%;border:none;background:var(--green);color:var(--teal);font:700 15px/1 Inter,system-ui,sans-serif;display:flex;align-items:center;justify-content:center;cursor:pointer}
.bc-gev .bc-gev__pause[hidden]{display:none}

/* Four snapshots tossed on the table: they straighten up when you point at them */
.bc-gev .bc-gev__snaps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 14px;align-items:center;padding:8px 8px 0}
.bc-gev .bc-gev__snap{background:#fff;padding:8px 8px 0;border-radius:6px;box-shadow:0 18px 40px -18px rgba(0,0,0,0.55);transform:rotate(var(--tilt,0deg));transition:transform .2s}
.bc-gev .bc-gev__snap:nth-child(1){--tilt:-4deg}
.bc-gev .bc-gev__snap:nth-child(2){--tilt:3deg;margin-top:14px}
.bc-gev .bc-gev__snap:nth-child(3){--tilt:-2deg}
.bc-gev .bc-gev__snap:nth-child(4){--tilt:4deg;margin-top:14px}
.bc-gev .bc-gev__snap:hover{transform:rotate(0deg) translateY(-6px)}
.bc-gev .bc-gev__snap img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:2px}
/* The group photo is shown whole (no one cropped out), so it's a wide print: a full row on phones, two columns' worth from 560 px */
.bc-gev .bc-gev__snap.is-wide{grid-column:1 / -1}
.bc-gev .bc-gev__snap.is-wide img{aspect-ratio:1000/795}
.bc-gev .bc-gev__snap figcaption{display:block;padding:8px 2px 10px;font-weight:700;font-size:14px;line-height:1.3;color:var(--teal);text-align:center}

/* What to expect: five numbered tiles */
.bc-gev .bc-gev__expect{display:flex;flex-direction:column;gap:14px}
.bc-gev .bc-gev__tiles{list-style:none;display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.bc-gev .bc-gev__tile{display:grid;grid-template-columns:52px minmax(0,1fr);gap:4px 14px;align-items:start;align-content:start;background:var(--deep);border-radius:18px;padding:18px 16px;margin:0}
.bc-gev .bc-gev__num{grid-row:span 2;font-family:var(--bc-font-display,'Obviously','Archivo Black','Archivo',system-ui,sans-serif);font-weight:800;font-size:34px;line-height:0.95;letter-spacing:-0.02em;color:var(--green)}
.bc-gev .bc-gev__tile b{font-size:17px;line-height:1.3;color:#fff}
.bc-gev .bc-gev__tile span:last-child{font-size:16px;line-height:1.45;color:var(--mist)}

/* What to wear */
.bc-gev .bc-gev__wear{display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px;border:2px solid var(--green);border-radius:20px;padding:20px 24px}
.bc-gev .bc-gev__wear p{font-size:18px;color:#fff}
/* Fabric swatches: four square swatches (ruby satin, emerald satin, sapphire velvet, amethyst silk), each in a white frame.
   Narrow columns: two by two, with the name underneath. From 560 px: one row. From 720 px: the name sits in a pill. */
.bc-gev .bc-gev__swatches{flex:1 1 100%;list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 14px}
.bc-gev .bc-gev__swatch{display:flex;flex-direction:column;align-items:center;margin:0;padding:0;transition:transform .2s}
.bc-gev .bc-gev__swatch::before{content:none}
.bc-gev .bc-gev__swatch img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border:4px solid #fff;border-radius:16px;background:var(--deep)}
.bc-gev .bc-gev__pill{margin:6px 0 0;max-width:100%;text-align:center;color:var(--green);font-weight:700;font-size:14px;line-height:1.25}
.bc-gev .bc-gev__swatch:hover{transform:translateY(-4px)}

/* Wider columns (a tablet or a laptop): four snapshots in a row, tiles in two columns */
@container (min-width:560px){
 .bc-gev .bc-gev__snaps{grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));gap:18px}
 .bc-gev .bc-gev__snap.is-wide{grid-column:auto}
 .bc-gev .bc-gev__snap figcaption{font-size:15px}
 .bc-gev .bc-gev__snap:nth-child(2){margin-top:18px}
 .bc-gev .bc-gev__snap:nth-child(4){margin-top:22px}
 .bc-gev .bc-gev__tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bc-gev .bc-gev__tile:last-child{grid-column:1 / -1}
 .bc-gev .bc-gev__swatches{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
}
/* The laptop column (about 900 px): the reel beside the words, five tiles in a row */
@container (min-width:720px){
 .bc-gev .bc-gev__intro{grid-template-columns:minmax(0,1fr) 300px;gap:44px}
 .bc-gev .bc-gev__swatch:nth-child(even){margin-top:12px}
 .bc-gev .bc-gev__pill{position:relative;margin:-13px 0 0;white-space:nowrap;background:var(--green);color:var(--teal);border-radius:999px;padding:3px 10px}
 .bc-gev .bc-gev__reel{max-width:300px}
}
@container (min-width:820px){
 .bc-gev .bc-gev__tiles{grid-template-columns:repeat(5,minmax(0,1fr))}
 .bc-gev .bc-gev__tile:last-child{grid-column:auto}
 .bc-gev .bc-gev__tile{display:block;padding:20px 16px}
 .bc-gev .bc-gev__num{display:block;margin-bottom:10px}
 .bc-gev .bc-gev__tile b{display:block}
 .bc-gev .bc-gev__tile span:last-child{display:block;margin-top:4px}
}

@media (prefers-reduced-motion:reduce){
 .bc-gev .bc-gev__btn,.bc-gev .bc-gev__snap,.bc-gev .bc-gev__swatch{transition:none}
 .bc-gev .bc-gev__swatch:hover{transform:none}
 .bc-gev .bc-gev__btn:hover{transform:none}
 .bc-gev .bc-gev__snap:hover{transform:rotate(var(--tilt,0deg))}
}
