/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
  --ink:        #0d1526;   /* near-black navy, primary text + dark surfaces */
  --ink-soft:   #33415a;   /* secondary text on light surfaces */
  --paper:      #fbfaf8;   /* warm-white page background */
  --panel:      #f2efe9;   /* alternate section background */
  --line:       #e2ddd2;   /* hairline borders */
  --accent:     #b5461f;   /* burnt amber-red — used sparingly for emphasis */
  --accent-dim: #8a3717;
  --steel:      #345b73;   /* muted blue-steel — links, secondary accents */
  --white:      #ffffff;

  --shadow-sm: 0 1px 2px rgba(13, 21, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 21, 38, 0.10);

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* { box-sizing: border-box; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

p { margin: 0 0 1em; }
a { color: var(--steel); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 2000;
  background: var(--ink); color: var(--white); padding: 12px 24px; border-radius: 6px;
  text-decoration: none; font-weight: 700; transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   REVEAL (single orchestrated entrance, not per-card scatter)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
#main-nav {
  position: fixed; width: 100%; top: 0; z-index: 1000;
  background: rgba(251, 250, 248, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
}

.nav-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 28px;
  align-items: center;
  flex: 1;
}

.nav-menu.left { order: 1; }
.nav-menu.right { order: 3; justify-content: flex-end; }

.nav-menu a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav-menu a:hover { color: var(--accent); }

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 4px;
  transition: background 0.2s ease !important;
}
.nav-cta:hover { background: var(--accent) !important; }

.nav-logo-wrapper { padding: 0 20px; order: 2; }
.nav-logo { height: 58px; width: auto; display: block; border-radius: 6px; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 8px;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px; order: 0;
}
.nav-toggle .bar { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s ease; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  text-align: left;
  padding: 150px 0 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 90%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 30% 20%, rgba(181, 70, 31, 0.22), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-content {
  max-width: 640px;
}

.hero-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-big {
  height: clamp(140px, 20vw, 260px);
  width: auto;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.hero-eyebrow {
  font-size: 0.95rem;
  color: #c9d3de;
  margin-bottom: 14px;
  font-weight: 500;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.04;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--white);
}

.hero-subtext {
  font-size: 1.15rem;
  color: #d7dce3;
  max-width: 56ch;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dim); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-ghost.btn-dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost.btn-dark:hover { background: var(--ink); color: var(--white); }

.hero-notice {
  position: relative;
  z-index: 2;
  width: 100%;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.14);
}

.hero-notice-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 32px;
  font-size: 0.92rem;
  color: #dfe4ea;
}

.notice-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.notice-line--lead { flex-wrap: wrap; }

.notice-icon {
  flex-shrink: 0;
  color: var(--accent);
}

.notice-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ==========================================================================
   SHARED SECTION STYLES
   ========================================================================== */
.section { padding: 96px 0; }
.section-alt { background: var(--panel); }

.section-kicker {
  font-size: 0.9rem;
  color: var(--steel);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 28px;
  max-width: 18ch;
}

.bio-text {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.image-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 240px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-md);
}

.image-blob {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 30%, rgba(181,70,31,0.5), transparent 60%);
}

.about-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 8px;
}

/* ==========================================================================
   MISSION / WHAT WE DO
   ========================================================================== */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mission-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
}

.mission-card--wide { grid-column: span 1; border-left: 3px solid var(--accent); }

.mission-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.mission-card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

.mission-photo {
  margin: 40px 0 0;
}

.mission-photo-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  display: block;
}

.mission-photo figcaption {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ==========================================================================
   FUNDRAISING
   ========================================================================== */
.fundraising-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: start;
}

.fund-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.fund-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.fund-list li span {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-head);
  margin-bottom: 4px;
}

.fundraising-stat {
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  padding: 40px 32px;
}

.stat-number {
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.stat-label { color: #d7dce3; font-size: 0.98rem; margin: 0; }

/* ==========================================================================
   PARTNERS
   ========================================================================== */
.partners-intro { max-width: 68ch; }
.partners-cta { margin-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Contact */
.contact-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  padding: 24px 32px;
  text-decoration: none;
  min-width: 240px;
  flex: 1 1 240px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }

.contact-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
}

.team-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.team-role {
  font-size: 0.9rem;
  color: var(--steel);
  font-weight: 600;
  margin: 0;
}

/* Standalone page header (partners.html) */
.page-header {
  background: var(--ink);
  color: var(--white);
  padding: 160px 0 64px;
}
.page-title {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
  max-width: 20ch;
}
.page-lede { color: #d7dce3; max-width: 60ch; }

.active-link { color: var(--accent) !important; }

/* Partner cards */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px 32px;
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.partner-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }

.partner-logo {
  height: 64px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
}
.partner-logo--small { height: 52px; }
.partner-logo--svg svg { height: 64px; width: auto; display: block; }

.partner-card h2 {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0;
}

/* Textarea (shared form styling) */
.form-row textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.form-row textarea:focus { border-color: var(--steel); }

/* ==========================================================================
   GET INVOLVED / FORM
   ========================================================================== */
.get-involved-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

#registration-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-embed {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.form-embed iframe {
  display: block;
  width: 100%;
  height: 1100px;
  border: none;
}

.form-row { margin-bottom: 20px; display: flex; flex-direction: column; }

.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-row input,
.form-row select {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--paper);
  color: var(--ink);
}

.form-row input:focus,
.form-row select:focus { border-color: var(--steel); }

.form-row input.has-error { border-color: var(--accent); }

.field-error {
  color: var(--accent);
  font-size: 0.85rem;
  margin: 6px 0 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 4px;
}

.submit-btn:disabled { opacity: 0.7; cursor: default; }

.form-success {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
  margin: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #cfd6df;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { height: 40px; width: auto; border-radius: 6px; }
.footer-brand p { margin: 0; font-size: 0.9rem; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #cfd6df; text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--white); }

.footer-note { font-size: 0.88rem; max-width: 32ch; margin: 0; }
.footer-note a { color: var(--white); font-weight: 600; }

.footer-copyright {
  text-align: center;
  font-size: 0.82rem;
  color: #8b94a0;
  margin: 24px 0 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .about-grid, .fundraising-grid, .get-involved-grid { grid-template-columns: 1fr; }
  .about-image-area { order: -1; }
  .mission-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }

  .hero-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .hero-logo-wrap { align-self: center; }
  .hero-logo-big { height: clamp(100px, 28vw, 160px); }

  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 32px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
  }
  .nav-menu.left.open, .nav-menu.right.open { display: flex; }
  .nav-menu.right { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 130px; }
  .hero-content { padding-bottom: 64px; }
}

/* Hero: stack the intro above the full-width notice bar */
.hero { flex-direction: column; align-items: stretch; }
.hero-inner { width: 100%; margin: auto; }
.notice-emoji { font-size: 1.05rem; }

/* Footer logo: keep its natural width */
.footer-logo { align-self: flex-start; }

/* ==========================================================================
   EVENTS (alternating cards + slideshow)
   ========================================================================== */
#events, #global-freedom-summit, #aat-3v3-fundraiser, #hygiene-product-drive { scroll-margin-top: 90px; }

/* Section header: title left, intro right */
.events-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
}
.events-head .section-title { margin-bottom: 0; }
.events-intro {
  max-width: 46ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.events-list {
  display: grid;
  gap: 40px;
  margin-top: 56px;
}

/* Event card */
.event {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.event--reverse .event-media-col { order: 2; }

/* Text column */
.event-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.event-index {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.event-rule {
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.event-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.event-title {
  margin: 0;
  font-size: clamp(1.65rem, 2.7vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.event-facts {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 22px 0 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.event-facts li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}
.event-facts svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--accent);
}

.event-lead {
  margin: 0 0 14px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

.event-description {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* --- Gallery fallback (no JavaScript): simple grid ----------------------- */
.event-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.event-media {
  position: relative;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink);
}
.event-media img,
.event-media video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--ink);
}
.event-media figcaption {
  padding: 8px 10px;
  background: var(--panel);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

/* --- Slideshow (built by script.js) ------------------------------------- */
.event-gallery.is-carousel { display: block; }

.carousel-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  outline: none;
}
.carousel-stage:focus-visible { box-shadow: 0 0 0 3px var(--steel); }

/* blurred copy of the current slide fills any empty space */
.carousel-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.carousel-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(24px) brightness(0.5) saturate(1.15);
  transform: scale(1.2);
  transition: opacity 0.45s ease;
}

.is-carousel .carousel-slide {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.is-carousel .carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.is-carousel .carousel-slide img,
.is-carousel .carousel-slide video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}
.is-carousel .carousel-slide img { cursor: zoom-in; }
.is-carousel .carousel-slide figcaption { display: none; }

.carousel-btn {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-stage:hover .carousel-btn,
.carousel-btn:focus-visible { opacity: 1; }

.carousel-prev,
.carousel-next {
  top: 50%;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(13, 21, 38, 0.25);
}
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-prev:hover,
.carousel-next:hover { background: var(--accent); color: var(--white); }

.carousel-expand {
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(13, 21, 38, 0.6);
  color: var(--white);
}
.carousel-expand svg { width: 17px; height: 17px; }
.carousel-expand:hover { background: var(--accent); }

@media (hover: none) {
  .carousel-btn { opacity: 1; }
}

.carousel-count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(13, 21, 38, 0.62);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.carousel-count span { color: #b8c1cc; font-weight: 500; }
/* keep the counter clear of video controls */
.carousel-stage.is-video .carousel-count { bottom: auto; top: 12px; }

.carousel-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 3px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-thumbs::-webkit-scrollbar { display: none; }

.carousel-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.carousel-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-thumb:hover { opacity: 0.85; }
.carousel-thumb.is-active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--accent);
}
.carousel-thumb--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='rgba(13,21,38,0.55)'/%3E%3Cpath fill='white' d='M10 8v8l6-4z'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* --- Full-screen viewer -------------------------------------------------- */
body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 96px;
  background: rgba(9, 14, 26, 0.95);
}
.lightbox[hidden] { display: none; }

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}
.lightbox-media img,
.lightbox-media video {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1120px, calc(100vw - 192px));
  max-height: calc(100vh - 180px);
  border-radius: 6px;
  background: #000;
}
.lightbox-figure figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  width: 100%;
  margin-top: 14px;
  color: #d7dce3;
  font-size: 0.95rem;
}
.lightbox-count {
  flex-shrink: 0;
  color: #8b94a0;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.lightbox-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lightbox-btn:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-btn[hidden] { display: none; }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .event {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 24px;
  }
  .event--reverse .event-media-col { order: 0; }
}

@media (max-width: 760px) {
  .events-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .events-list { gap: 28px; margin-top: 36px; }
  .event { padding: 16px 16px 24px; gap: 22px; }
  .event-content { padding: 0 4px; }

  .carousel-prev, .carousel-next { width: 38px; height: 38px; margin-top: -19px; }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }
  .carousel-thumb { width: 56px; height: 42px; }

  .lightbox { padding: 64px 12px 96px; }
  .lightbox-media img,
  .lightbox-media video {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 220px);
  }
  .lightbox-figure figcaption { padding: 0 4px; }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 24px; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}
