:root {
  /* Logo palette — Jamaican green + gold */
  --rybj-green: #37bd49;
  --rybj-green-dim: #2ea83f;
  --rybj-green-deep: #1a6e28;
  --rybj-yellow: #f2d921;
  --rybj-yellow-soft: #fff8c4;
  --rybj-yellow-deep: #c9ae10;
  --rybj-charcoal: #1e2025;
  --rybj-ink: #12141a;
  --rybj-paper: #f5f8f2;
  --surface: #ffffff;
  --surface-soft: #eef4ea;
  --surface-dark: #0f1418;
  --line: #c8d6c0;
  --line-strong: rgba(55, 189, 73, 0.35);
  --ring: rgba(55, 189, 73, 0.28);
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(18, 40, 22, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 6px 24px rgba(18, 40, 22, 0.08);
  --shadow-lg: 0 14px 44px rgba(18, 40, 22, 0.1);
  --shadow-xl: 0 24px 64px rgba(10, 20, 14, 0.14);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --header-accent: linear-gradient(90deg, var(--rybj-green) 0%, var(--rybj-yellow) 50%, var(--rybj-green) 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--rybj-ink);
  scroll-behavior: smooth;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--rybj-paper);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(55, 189, 73, 0.12), transparent 52%),
    radial-gradient(ellipse 70% 50% at 100% 10%, rgba(242, 217, 33, 0.1), transparent 48%),
    radial-gradient(ellipse 60% 40% at 0% 90%, rgba(55, 189, 73, 0.06), transparent 50%),
    linear-gradient(180deg, #fafdf7 0%, var(--rybj-paper) 42%, #f0f6ec 100%);
  min-height: 100vh;
}

.container {
  width: min(1140px, 90vw);
  margin: 0 auto;
}

section.container {
  margin-block: 4.5rem;
}

main > section.container {
  position: relative;
  isolation: isolate;
  padding: clamp(1.15rem, 2.2vw, 1.7rem);
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid rgba(55, 189, 73, 0.16);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(242, 217, 33, 0.06);
  overflow: hidden;
}

main > section.container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.95;
}

main > section.container:nth-of-type(4n + 1)::before {
  background:
    radial-gradient(circle at 16% 12%, rgba(55, 189, 73, 0.11), transparent 48%),
    linear-gradient(165deg, #f9fcf8 0%, #f2f7ef 56%, #ecf4e9 100%);
}

main > section.container:nth-of-type(4n + 2)::before {
  background:
    radial-gradient(circle at 82% 20%, rgba(242, 217, 33, 0.14), transparent 44%),
    linear-gradient(170deg, #fffef7 0%, #fbf8e8 56%, #f6f2df 100%);
}

main > section.container:nth-of-type(4n + 3)::before {
  background:
    radial-gradient(circle at 75% 82%, rgba(55, 189, 73, 0.09), transparent 45%),
    linear-gradient(170deg, #f6fafb 0%, #edf5f7 52%, #e8f1f4 100%);
}

main > section.container:nth-of-type(4n + 4)::before {
  background:
    radial-gradient(circle at 20% 85%, rgba(242, 217, 33, 0.11), transparent 48%),
    linear-gradient(165deg, #fcfaf5 0%, #f8f4ec 52%, #f2ece1 100%);
}

/* ─── Header ──────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 252, 246, 0.95) 100%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(55, 189, 73, 0.12);
  box-shadow: 0 4px 28px rgba(18, 40, 22, 0.06);
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--header-accent);
  opacity: 0.92;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0;
}

.brand-logo {
  width: 152px;
  max-width: 30vw;
  height: auto;
  transition: opacity 0.25s var(--ease);
}

.brand-logo:hover {
  opacity: 0.85;
}

/* ─── Navigation ──────────────────────────────── */

.main-nav {
  display: flex;
  gap: 0.12rem;
  flex-wrap: nowrap;
  align-items: center;
}

.main-nav a {
  color: #2d3338;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  border-radius: 8px;
  padding: 0.42rem 0.58rem;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  position: relative;
}

.main-nav a:hover {
  color: var(--rybj-green-deep);
  background: linear-gradient(135deg, rgba(55, 189, 73, 0.12), rgba(242, 217, 33, 0.1));
}

.main-nav a.is-active {
  color: var(--rybj-green-deep);
  background: linear-gradient(135deg, rgba(55, 189, 73, 0.14), rgba(242, 217, 33, 0.12));
  font-weight: 700;
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--rybj-green);
}

.main-nav a::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--rybj-green-dim);
  width: 1.1rem;
  text-align: center;
}

.main-nav a[href="./index.html"]::before { content: "⌂"; }
.main-nav a[href="./about.html"]::before { content: "◉"; }
.main-nav a[href="./events.html"]::before { content: "◷"; }
.main-nav a[href="./photos.html"]::before { content: "▣"; }
.main-nav a[href="./videos.html"]::before { content: "▶"; }
.main-nav a[href="./contact.html"]::before { content: "✉"; }
.main-nav a[href="./register.html"]::before { content: "✓"; }
.main-nav a[href="./admin.html"]::before { content: "⚙"; }

.menu-toggle {
  display: none;
}

/* ─── Hero ────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 15% 85%, rgba(55, 189, 73, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 88% 12%, rgba(242, 217, 33, 0.12) 0%, transparent 48%),
    linear-gradient(155deg, #070b0a 0%, #0f1814 38%, #121f18 65%, #0a100d 100%);
}

.hero.hero-subpage .hero-content {
  grid-template-columns: 1fr;
  padding: 3rem 0 2.5rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(55, 189, 73, 0.18) 0%, transparent 52%),
    radial-gradient(ellipse at 80% 20%, rgba(242, 217, 33, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 40%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: stretch;
  padding: 5rem 0 4.5rem;
}

.hero-copy {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.eyebrow {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--rybj-yellow);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero:not(.hero-subpage) .eyebrow {
  font-size: 3rem;
  background: linear-gradient(92deg, var(--rybj-yellow) 0%, #fff2a0 42%, var(--rybj-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow::before {
  content: "✦";
  font-size: 0.7em;
  color: var(--rybj-yellow);
  -webkit-text-fill-color: currentColor;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  background: linear-gradient(108deg, #ffffff 0%, var(--rybj-yellow-soft) 38%, #b8e8bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  margin: 0;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.7;
}

/* ─── Hero Countdown ──────────────────────────── */

.hero-countdown {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(242, 217, 33, 0.45);
  background: linear-gradient(165deg, #1a2818 0%, #1f4a24 42%, #163820 100%);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(242, 217, 33, 0.15),
    0 0 0 1px rgba(55, 189, 73, 0.25);
}

.countdown-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.countdown-unit {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffe88a;
  margin-top: 0.2rem;
}

/* ─── Hero Stats / CTA ────────────────────────── */

.hero-promo {
  margin: 0;
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 0.7rem 0.7rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  align-self: stretch;
}

.hero-promo-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 760px);
  object-fit: contain;
  object-position: center top;
  margin-inline: auto;
  border-radius: calc(var(--radius) + 2px);
}

.hero-promo-caption {
  margin: 0;
  padding: 0 0.75rem 0.95rem;
  text-align: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
}

.hero-stats {
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: #1f262c;
}

.hero-stats h2 {
  margin: 0 0 0.6rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.3rem;
  color: #182028;
}

.hero-stats ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #34404a;
}

.hero-cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ─── Buttons ─────────────────────────────────── */

.btn {
  border: 0;
  border-radius: 10px;
  padding: 0.72rem 1.35rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.25s var(--ease);
}

.btn-primary {
  background: linear-gradient(145deg, var(--rybj-green) 0%, var(--rybj-green-dim) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(55, 189, 73, 0.38), 0 0 0 1px rgba(242, 217, 33, 0.2);
}

.btn-primary::after {
  content: "→";
  font-size: 1em;
  transition: transform 0.25s var(--ease);
}

.btn-primary:hover {
  background: linear-gradient(145deg, #42c955 0%, var(--rybj-green) 100%);
}

.btn-primary:hover::after {
  transform: translateX(3px);
}

.btn-outline {
  color: #fff;
  border: 2px solid rgba(242, 217, 33, 0.65);
  background: rgba(55, 189, 73, 0.12);
}

.btn-outline:hover {
  border-color: var(--rybj-yellow);
  background: rgba(55, 189, 73, 0.22);
}

.btn-ghost {
  color: var(--rybj-charcoal);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: #e8ede5;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* ─── Quick Links ─────────────────────────────── */

.quick-links {
  margin-top: -2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.quick-links .card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.6rem;
}

.quick-links .card h2 {
  margin-bottom: 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-links .card[data-icon] h2::before {
  content: attr(data-icon);
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #1a6e28;
  background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
  border: 1px solid #a5d6a7;
}

.quick-links .card p {
  margin: 0;
  color: #4a5258;
  font-size: 0.92rem;
  line-height: 1.6;
}

.quick-links .card a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: #1a7028;
  transition: color 0.25s var(--ease);
}

.quick-links .card a:hover {
  color: #0d5418;
}

.quick-links .card a::after {
  content: "→";
  font-size: 0.9em;
  transition: transform 0.25s var(--ease);
}

.quick-links .card a:hover::after {
  transform: translateX(3px);
}

/* ─── Cards & Surfaces ────────────────────────── */

.card,
.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card h2,
.section-heading h2,
.compact-form h3,
.admin-login-form h3 {
  margin-top: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  color: var(--rybj-charcoal);
}

.card a,
.tip-item,
.footer-content a {
  color: #1a7028;
}

.accent {
  border-top: 4px solid var(--rybj-green);
}

/* ─── Section Headings ────────────────────────── */

.section-heading h2 {
  margin-bottom: 0.15rem;
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.section-heading h2::before {
  content: "";
  width: 5px;
  height: 1.2em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--rybj-yellow) 0%, var(--rybj-green) 100%);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(55, 189, 73, 0.2);
}

.section-heading p {
  margin-top: 0.15rem;
  color: #5a6368;
  font-size: 0.95rem;
}

.section-heading.compact h3 {
  margin-bottom: 0.25rem;
}

.tips-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tip-item {
  text-decoration: none;
  font-weight: 700;
  border-left: 4px solid var(--rybj-yellow);
  background: var(--surface-soft);
  border-radius: var(--radius);
  padding: 0.9rem;
}

/* ─── Forms ───────────────────────────────────── */

.forms-zone {
  scroll-margin-top: 96px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3a4045;
}

input,
select,
textarea {
  width: 100%;
  border: 1.5px solid #d0d7cc;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--rybj-green);
  box-shadow: 0 0 0 3px var(--ring);
}

.full-row {
  grid-column: 1 / -1;
}

.registration-shell {
  display: grid;
  gap: 1.1rem;
}

.form-section-title {
  margin: 0.5rem 0 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--rybj-charcoal);
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--surface-soft);
}

.registration-note {
  margin: -0.1rem 0 0.25rem;
  color: #5a6368;
  font-size: 0.88rem;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-line input {
  width: auto;
}

/* ─── Admin ───────────────────────────────────── */

.admin-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-alert p {
  margin: 0;
}

.admin-login-form {
  margin-bottom: 1.25rem;
}

.admin-access-notice {
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--rybj-yellow);
}

.admin-access-notice h2 {
  margin-top: 0;
}

.admin-login-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.admin-login-actions {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.gallery-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.1rem;
}

.compact-form {
  display: grid;
  gap: 0.85rem;
}

.admin-user-list {
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 0.85rem;
}

.admin-user-list ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.admin-user-list li {
  font-size: 0.88rem;
  color: #3a4045;
}

/* ─── Gallery ─────────────────────────────────── */

.gallery-feed-wrap {
  margin-top: 1.25rem;
}

.gallery-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-event-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease);
}

.gallery-event-card:hover {
  box-shadow: var(--shadow-md);
}

.gallery-event-card h4 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.gallery-event-card p {
  margin: 0.15rem 0 0.7rem;
  font-size: 0.82rem;
  color: #6a7278;
}

.gallery-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.gallery-media-item {
  position: relative;
}

.gallery-pagination {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.gallery-pagination-status {
  margin: 0;
  font-size: 0.82rem;
  color: #5f676c;
  font-weight: 600;
}

.gallery-video-link {
  margin: 0;
  grid-column: 1 / -1;
}

.gallery-video-link a {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--rybj-green-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.gallery-video-link a:hover {
  color: var(--rybj-green);
}

.gallery-view-link {
  margin: 0.7rem 0 0;
}

.gallery-view-link a {
  font-weight: 700;
  color: var(--rybj-green-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.gallery-view-link a:hover {
  color: var(--rybj-green);
}

.gallery-feed[data-media-filter="video"] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1.25rem;
}

.gallery-feed[data-media-filter="video"] .gallery-media-grid {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.gallery-feed[data-media-filter="video"] .media-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid #d7e0d4;
  background: #0f0f0f;
  box-shadow: 0 12px 24px rgba(8, 15, 10, 0.18);
}

.media-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid #e2e8de;
  background: #f0f4ee;
}

.media-thumb-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
}

.media-thumb-link:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.media-delete-btn {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(149, 34, 34, 0.92);
  color: #fff;
  cursor: pointer;
}

.media-delete-btn:hover {
  background: #8f1f1f;
}

.media-delete-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

body.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 6, 0.82);
  padding: 1.2rem;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox-panel {
  position: relative;
  width: min(96vw, 1080px);
  max-height: 92vh;
  display: grid;
  gap: 0.55rem;
}

.gallery-lightbox-image {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #0f1512;
  box-shadow: var(--shadow-xl);
}

.gallery-lightbox-caption {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.gallery-lightbox-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 15, 12, 0.72);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-close:hover {
  background: rgba(10, 15, 12, 0.9);
}

.gallery-lightbox-back {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  background: rgba(10, 15, 12, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.gallery-lightbox-back:hover {
  background: rgba(10, 15, 12, 0.9);
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 15, 12, 0.72);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-prev {
  left: 0.45rem;
}

.gallery-lightbox-next {
  right: 0.45rem;
}

.gallery-lightbox-nav:hover {
  background: rgba(10, 15, 12, 0.9);
}

.gallery-lightbox-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gallery-empty {
  border: 2px dashed #c5d4bf;
  border-radius: var(--radius);
  padding: 1.25rem;
  background: #f8fbf6;
  font-weight: 600;
  font-size: 0.9rem;
  color: #5a6368;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.gallery-empty::before {
  content: "ℹ";
  font-size: 1.1em;
}

/* ─── Instagram Feed ──────────────────────────── */

.instagram-section {
  padding-bottom: 1.5rem;
}

.instagram-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.instagram-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-decoration: none;
  color: inherit;
}

.instagram-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.instagram-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #f0f4ee;
}

.instagram-content {
  padding: 0.8rem;
  display: grid;
  gap: 0.4rem;
}

.instagram-caption {
  margin: 0;
  font-size: 0.84rem;
  color: #3a4045;
  line-height: 1.45;
}

.instagram-date {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: #6a7278;
}

/* ─── Route / Elevation Embeds ───────────────── */

.map-embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
}

.map-embed-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.map-embed-card h2 {
  margin: 0 0 0.65rem;
}

.map-frame-wrap {
  border: 1px solid #dfe6da;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f0f4ee;
}

.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.map-embed-card p {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
}

/* ─── Sponsors ────────────────────────────────── */

.sponsors {
  padding-bottom: 1.5rem;
}

.sponsor-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.sponsor-pill {
  text-align: center;
  border-radius: var(--radius);
  padding: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #3a4045;
  border: 1.5px dashed #b5c4b0;
  background: linear-gradient(160deg, #fff, #f5f8f3);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.sponsor-pill:hover {
  border-color: var(--rybj-green);
  box-shadow: var(--shadow-sm);
}

/* ─── Payment Status ──────────────────────────── */

.payment-status-wrap {
  margin-top: 0.85rem;
  margin-bottom: -2rem;
}

.payment-status {
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-status[data-state="success"] {
  border-color: #81c784;
  background: #e8f5e9;
  color: #1b5e20;
}

.payment-status[data-state="success"]::before {
  content: "✓";
  font-size: 1.1em;
}

.payment-status[data-state="error"] {
  border-color: #e57373;
  background: #ffebee;
  color: #b71c1c;
}

.payment-status[data-state="error"]::before {
  content: "⚠";
  font-size: 1.1em;
}

/* ─── Form Feedback ───────────────────────────── */

.form-feedback {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-feedback[data-state="error"] {
  color: #c62828;
}

.form-feedback[data-state="error"]::before {
  content: "⚠ ";
}

.form-feedback[data-state="success"] {
  color: #2e7d32;
}

.form-feedback[data-state="success"]::before {
  content: "✓ ";
}

.upload-progress-wrap {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.upload-progress {
  width: 100%;
  height: 0.75rem;
}

.upload-progress-text {
  margin: 0;
  font-size: 0.8rem;
  color: #556067;
}

/* ─── Footer ──────────────────────────────────── */

.site-footer {
  position: relative;
  background: linear-gradient(180deg, #121a16 0%, #0a0f0d 100%);
  color: rgba(255, 255, 255, 0.72);
  padding: 1.75rem 0;
  margin-top: 2.5rem;
  font-size: 0.88rem;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--rybj-green), var(--rybj-yellow), var(--rybj-green)) 1;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-content p {
  margin: 0;
}

.footer-content a {
  color: var(--rybj-yellow);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.footer-content a:hover {
  color: #fff;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--rybj-yellow);
  transition: all 0.25s var(--ease);
}

.social-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.social-icon:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

/* ─── Animations ──────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* ─── Utilities ───────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ─── Responsive ──────────────────────────────── */

@media (max-width: 980px) {
  .hero-content,
  .register-grid,
  .video-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    padding: 4rem 0 3.5rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .quick-links {
    margin-top: 1.25rem;
  }

  .hero-promo-image {
    height: auto;
    max-height: min(70vh, 560px);
  }

  .hero-promo-caption {
    font-size: clamp(1.4rem, 5.2vw, 2.2rem);
  }

  .gallery-feed[data-media-filter="video"] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .header-inner {
    gap: 0.65rem;
  }

  .menu-toggle {
    display: inline-flex;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 0.45rem 0.75rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s var(--ease);
  }

  .menu-toggle:hover {
    background: var(--surface-soft);
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: min(360px, 94vw);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    padding: 0.75rem;
    display: none;
    flex-direction: column;
    gap: 0.1rem;
    box-shadow: var(--shadow-xl);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .main-nav a {
    justify-content: flex-start;
    font-size: 0.92rem;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
  }

  .main-nav a::before {
    width: 1.3rem;
    font-size: 1.05rem;
  }

  .main-nav a.is-active::after {
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .admin-alert {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  section.container {
    margin-block: 3rem;
  }

  main > section.container {
    padding: 1rem;
    border-radius: var(--radius-lg);
  }

  .card,
  .surface {
    padding: 1.1rem;
    border-radius: var(--radius);
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .hero-countdown {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .countdown-box {
    min-width: 4rem;
    padding: 0.6rem 0.65rem;
  }

  .countdown-num {
    font-size: 2.2rem;
  }

  .map-frame {
    height: 260px;
  }

  .hero-promo {
    border-radius: var(--radius);
    gap: 0.6rem;
    padding: 0.5rem 0.5rem 0;
  }

  .hero-promo-image {
    max-height: min(72vh, 520px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal.show {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .card:hover,
  .instagram-card:hover,
  .social-icon:hover {
    transform: none;
  }
}
