/* ACMM Gallery — vertical central timeline (formal / readable) */

.acmm-gallery-by-year,
.acmm-gallery-page.acmm-gallery-by-year {
  /* Match About page palette (#acmm-about) */
  --about-navy: #0a1628;
  --about-navy-dark: #060d18;
  --about-navy-light: #132440;
  --about-blue: #3b82f6;
  --about-blue-light: #93c5fd;
  --about-blue-dark: #1d4ed8;
  --about-muted: #f8fafc;
  --about-slate: #64748b;
  --about-slate-dark: #475569;
  --about-teal: #14b8a6;
  --about-teal-light: #5eead4;
  --about-blue-rgb: 59, 130, 246;
  --gallery-text: var(--about-navy);
  --gallery-text-soft: var(--about-slate-dark);
  --gallery-muted: var(--about-slate);
  --gallery-accent: var(--about-blue);
  --gallery-accent-2: var(--about-blue-dark);
  --gallery-accent-light: var(--about-blue-light);
  --gallery-on-accent: #fff;
  --gallery-canvas: #ffffff;
  --gallery-canvas-mist: var(--about-muted);
  --gallery-canvas-edge: #e2e8f0;
  --gallery-surface: #ffffff;
  --gallery-surface-soft: var(--about-muted);
  --gallery-surface-panel: var(--about-muted);
  --gallery-border: #e2e8f0;
  --gallery-border-strong: #cbd5e1;
  --gallery-shadow: 0 8px 24px rgba(10, 22, 40, 0.1);
  --gallery-shadow-sm: 0 4px 12px rgba(10, 22, 40, 0.06);
  --gallery-brand: var(--acmm-primary, var(--about-navy));
  --gallery-brand-on: var(--acmm-on-primary, #fff);
  --gallery-brand-soft: color-mix(in srgb, var(--gallery-brand) 8%, #fff);
  --gallery-brand-border: color-mix(in srgb, var(--gallery-brand) 18%, var(--gallery-border));
  --gallery-brand-border-strong: color-mix(in srgb, var(--gallery-brand) 28%, var(--gallery-border-strong));
  --gallery-font-body: 1.0625rem;
  --gallery-line-body: 1.75;
  --gallery-measure: 42rem;
  --gallery-font-display: "Montserrat", "Inter", system-ui, sans-serif;
}

.acmm-gallery-vcentral {
  --gallery-axis-w: 3px;
  --gallery-glass: #ffffff;
  --gallery-card-radius: 0.875rem;
}

/* Page shell — same muted canvas as About */
.acmm-main:has(.acmm-gallery-page) {
  background: var(--about-muted);
}

.section-wrap.acmm-gallery-by-year,
.acmm-gallery-page.acmm-gallery-by-year.section-wrap {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background-color: var(--gallery-canvas);
  background-image: linear-gradient(180deg, var(--gallery-canvas) 0%, var(--about-muted) 100%);
}

.section-wrap.acmm-gallery-by-year::before,
.acmm-gallery-page.acmm-gallery-by-year.section-wrap::before {
  content: none;
}

.section-wrap.acmm-gallery-by-year::after,
.acmm-gallery-page.acmm-gallery-by-year.section-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(20, 184, 166, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(94, 234, 212, 0.08) 0%, transparent 40%);
}

.acmm-gallery-by-year .gallery-layout {
  position: relative;
  z-index: 1;
}

/* —— Gallery page hero (aligned with About hero) —— */
.acmm-gallery-page.gallery-page-hero {
  position: relative;
  overflow: hidden;
  padding: 2.35rem 0 2.85rem;
  background-color: var(--gallery-brand);
  background-image: none;
  border-top: 1px solid color-mix(in srgb, var(--gallery-brand-on) 14%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--gallery-brand-on) 10%, transparent);
  box-shadow:
    0 14px 34px rgba(10, 22, 40, 0.16),
    0 0 0 1px color-mix(in srgb, var(--gallery-brand-on) 6%, transparent) inset;
}

.acmm-gallery-page.gallery-page-hero::before {
  content: none;
}

.acmm-gallery-page.gallery-page-hero::after {
  content: none;
}

.acmm-gallery-page.gallery-page-hero .page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

.gallery-hub-section {
  padding-top: 1.2rem;
}

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

.gallery-hub-card {
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  border-radius: 1.25rem;
  border: 1px solid var(--gallery-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.1);
}

.gallery-hub-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -40% auto;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 65%);
  pointer-events: none;
}

.gallery-hub-card__icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: rgba(59, 130, 246, 0.12);
  color: var(--gallery-accent-2);
  font-size: 1.3rem;
}

.gallery-hub-card__count {
  margin-top: 1rem;
  font-family: var(--gallery-font-display);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--gallery-text);
}

.gallery-hub-card__title {
  margin: 0.2rem 0 0.45rem;
  font-family: var(--gallery-font-display);
  font-size: 1.3rem;
  color: var(--gallery-text);
}

.gallery-hub-card__summary {
  margin: 0;
  color: var(--gallery-text-soft);
  line-height: 1.7;
}

.gallery-hub-card__link {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--gallery-accent-2);
  text-decoration: none;
}

.gallery-hub-card__link:hover {
  color: var(--about-blue-dark);
  text-decoration: underline;
}

.gallery-mode-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.gallery-compact-head {
  margin-bottom: 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--gallery-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.05);
}

.gallery-compact-head__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gallery-accent-2);
}

.gallery-compact-head__title {
  margin: 0;
  font-family: var(--gallery-font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  color: var(--gallery-text);
}

.gallery-compact-head__lead {
  margin-top: 0.45rem;
}

.gallery-activity-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(19rem, 0.95fr);
  gap: 1rem 1.15rem;
  align-items: stretch;
  margin-bottom: 1.2rem;
  padding: 1.2rem 1.25rem;
  border-radius: 1.15rem;
  border: 1px solid color-mix(in srgb, var(--gallery-brand) 14%, var(--gallery-border));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow:
    0 18px 40px rgba(10, 22, 40, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.gallery-activity-overview__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gallery-accent-2);
}

.gallery-activity-overview__title {
  margin: 0;
  font-family: var(--gallery-font-display);
  font-size: clamp(1.28rem, 2.25vw, 1.85rem);
  line-height: 1.28;
  color: var(--gallery-text);
}

.gallery-activity-overview__lead {
  margin-top: 0.6rem;
  max-width: 42rem;
  color: var(--gallery-text-soft);
  line-height: 1.72;
}

.gallery-activity-overview__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-activity-overview__stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 0.9rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(10, 22, 40, 0.035);
}

.gallery-activity-overview__stat-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.gallery-activity-overview__stat-value {
  margin-top: 0.32rem;
  font-family: var(--gallery-font-display);
  font-size: clamp(1.18rem, 2vw, 1.62rem);
  line-height: 1.1;
  color: var(--gallery-brand);
}

.gallery-activity-overview--archives {
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 1fr);
  margin-top: 0;
  margin-bottom: 0.35rem;
}

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

.gallery-activity-archive-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--gallery-brand) 12%, var(--gallery-border));
  background: rgba(255, 255, 255, 0.94);
  color: var(--gallery-text);
  text-decoration: none;
  box-shadow:
    0 12px 28px rgba(10, 22, 40, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.gallery-activity-archive-card:hover {
  transform: translateY(-2px);
  border-color: var(--gallery-brand-border-strong);
  color: var(--gallery-brand);
  box-shadow:
    0 18px 34px rgba(10, 22, 40, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.78) inset;
}

.gallery-activity-archive-card__icon,
.gallery-activity-archive-card__arrow {
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
}

.gallery-activity-archive-card__icon {
  background: color-mix(in srgb, var(--gallery-brand) 10%, #eef4fb);
  color: var(--gallery-brand);
  font-size: 1.05rem;
}

.gallery-activity-archive-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gallery-activity-archive-card__title {
  font-weight: 700;
}

.gallery-activity-archive-card__meta {
  margin-top: 0.1rem;
  color: var(--gallery-muted);
  font-size: 0.86rem;
}

.gallery-activity-archive-card__arrow {
  margin-left: auto;
  color: color-mix(in srgb, var(--gallery-brand) 78%, #fff);
  background: color-mix(in srgb, var(--gallery-brand) 7%, #fff);
}

.gallery-mode-nav__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--gallery-brand-border);
  background: #ffffff;
  color: var(--gallery-text);
  text-decoration: none;
  box-shadow:
    0 10px 24px rgba(10, 22, 40, 0.035),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.gallery-mode-nav__link:hover {
  border-color: var(--gallery-brand-border-strong);
  background: #fff;
  color: var(--gallery-brand);
}

.gallery-mode-nav__link.is-active {
  border-color: color-mix(in srgb, var(--gallery-brand-on) 14%, transparent);
  background: var(--gallery-brand);
  color: var(--gallery-brand-on);
  box-shadow:
    0 12px 26px rgba(10, 22, 40, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.gallery-mode-nav__icon {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--gallery-brand) 8%, #eef4fb);
  color: var(--gallery-brand);
  font-size: 1.1rem;
}

.gallery-mode-nav__link.is-active .gallery-mode-nav__icon {
  background: color-mix(in srgb, var(--gallery-brand-on) 14%, transparent);
  color: var(--gallery-brand-on);
}

.gallery-mode-nav__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gallery-mode-nav__title {
  font-weight: 700;
}

.gallery-mode-nav__meta {
  margin-top: 0.1rem;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--gallery-brand) 72%, var(--gallery-muted));
}

.gallery-mode-nav__link.is-active .gallery-mode-nav__meta,
.gallery-mode-nav__link.is-active .gallery-mode-nav__title {
  color: var(--gallery-brand-on);
}

.gallery-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 12rem) minmax(0, 1fr) auto;
  gap: 1rem 1.15rem;
  align-items: center;
  margin-bottom: 0.4rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--gallery-brand-border);
  border-radius: 1.05rem;
  background: #ffffff;
  box-shadow:
    0 16px 36px rgba(10, 22, 40, 0.045),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.gallery-spotlight__media {
  position: relative;
  overflow: hidden;
  min-height: 11.5rem;
  border-radius: 0.95rem;
  background: color-mix(in srgb, var(--gallery-brand) 7%, #f8fafc);
  box-shadow:
    0 12px 26px rgba(10, 22, 40, 0.045),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.gallery-spotlight__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: rgba(15, 23, 42, 0.12);
  pointer-events: none;
}

.gallery-spotlight__media img,
.gallery-spotlight__media video {
  width: 100%;
  height: 100%;
  min-height: 11.5rem;
  display: block;
  object-fit: cover;
}

.gallery-spotlight__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gallery-brand);
}

.gallery-spotlight__year {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.gallery-spotlight__year-main {
  font-family: var(--gallery-font-display);
  font-size: clamp(1.22rem, 2.45vw, 1.62rem);
  font-weight: 700;
  color: var(--gallery-brand);
}

.gallery-spotlight__year-sub {
  color: var(--gallery-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.gallery-spotlight__count {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gallery-brand) 8%, #fff);
  color: var(--gallery-brand);
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--gallery-brand) 14%, transparent);
  box-shadow: 0 6px 14px rgba(10, 22, 40, 0.025);
}

.gallery-spotlight__title {
  margin: 0 0 0.3rem;
  font-family: var(--gallery-font-display);
  font-size: clamp(1.08rem, 1.9vw, 1.26rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--gallery-brand);
}

.gallery-spotlight__summary {
  color: var(--gallery-text-soft);
  font-size: 0.955rem;
  line-height: 1.68;
}

.gallery-spotlight__actions {
  justify-self: end;
}

.gallery-spotlight__link {
  display: inline-flex;
  align-items: center;
  padding: 0.58rem 1rem;
  border-radius: 999px;
  background: var(--gallery-brand);
  color: var(--gallery-brand-on);
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    0 10px 22px rgba(10, 22, 40, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.gallery-spotlight__link:hover {
  color: var(--gallery-brand-on);
  background: color-mix(in srgb, var(--gallery-brand) 92%, #000);
}

.gallery-year-block.is-jump-target .gallery-year-marker-text {
  animation: gallery-target-highlight 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  border-color: color-mix(in srgb, var(--gallery-accent) 44%, var(--gallery-border-strong));
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.12),
    0 18px 38px rgba(15, 23, 42, 0.08);
}

.gallery-year-block.is-jump-target .gallery-year-marker-node {
  animation: gallery-target-node 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-spotlight--video .gallery-spotlight__count {
  background: color-mix(in srgb, var(--gallery-brand) 8%, #fff);
}

.acmm-gallery-page .gallery-hero-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.88);
}

.acmm-gallery-page .gallery-hero-breadcrumb .breadcrumb a {
  color: color-mix(in srgb, var(--gallery-brand-on) 86%, transparent);
}

.acmm-gallery-page .gallery-hero-breadcrumb .breadcrumb a:hover {
  color: var(--gallery-brand-on);
}

.gallery-hero-content {
  max-width: 40rem;
}

.gallery-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.42rem 0.98rem;
  font-family: var(--gallery-font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--gallery-brand-on) 92%, transparent);
  background: color-mix(in srgb, var(--gallery-brand-on) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gallery-brand-on) 18%, transparent);
  border-radius: 999px;
  box-shadow:
    0 8px 18px rgba(10, 22, 40, 0.1),
    0 0 0 1px color-mix(in srgb, var(--gallery-brand-on) 6%, transparent) inset;
}

.gallery-hero-kicker i {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--gallery-brand-on) 88%, transparent);
  opacity: 1;
}

.gallery-hero-title {
  margin: 0 0 1rem;
  font-family: var(--gallery-font-display);
  font-size: clamp(1.82rem, 4vw, 2.48rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.024em;
  color: var(--gallery-brand-on);
  text-wrap: balance;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.12);
}

.gallery-hero-lead {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 400;
  line-height: 1.7;
  color: color-mix(in srgb, var(--gallery-brand-on) 88%, transparent);
  text-wrap: pretty;
}

.gallery-hero-lead p {
  margin: 0;
  color: inherit;
}

.gallery-hero-lead strong {
  font-weight: 700;
  color: var(--gallery-brand-on);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--gallery-brand-on) 34%, transparent);
  text-underline-offset: 0.2em;
}

.gallery-hero-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 1.35rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--gallery-brand-on) 72%, transparent);
}

.gallery-hero-scroll-hint i {
  font-size: 0.75rem;
  animation: gallery-hero-bounce 2s ease-in-out infinite;
}

@keyframes gallery-hero-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

/* Markdown / rich text inside gallery */
.acmm-gallery-by-year .content-body,
.acmm-gallery-by-year .tl-body {
  color: var(--gallery-text-soft);
  font-size: var(--gallery-font-body);
  line-height: var(--gallery-line-body);
  max-width: var(--gallery-measure);
}

.acmm-gallery-by-year .content-body h1,
.acmm-gallery-by-year .content-body h2,
.acmm-gallery-by-year .content-body h3,
.acmm-gallery-by-year .content-body h4,
.acmm-gallery-by-year .tl-body h1,
.acmm-gallery-by-year .tl-body h2,
.acmm-gallery-by-year .tl-body h3,
.acmm-gallery-by-year .tl-body h4 {
  color: var(--gallery-text);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
}

.acmm-gallery-by-year .content-body p,
.acmm-gallery-by-year .tl-body p {
  color: var(--gallery-text-soft);
  margin-bottom: 1em;
}

.acmm-gallery-by-year .content-body p:last-child,
.acmm-gallery-by-year .tl-body p:last-child {
  margin-bottom: 0;
}

.acmm-gallery-by-year .content-body ul,
.acmm-gallery-by-year .content-body ol,
.acmm-gallery-by-year .tl-body ul,
.acmm-gallery-by-year .tl-body ol {
  margin-bottom: 1em;
  padding-left: 1.35em;
}

.acmm-gallery-by-year .content-body li,
.acmm-gallery-by-year .tl-body li {
  margin-bottom: 0.35em;
}

.acmm-gallery-by-year .content-body a,
.acmm-gallery-by-year .tl-body a {
  color: var(--gallery-accent);
  font-weight: 600;
  text-underline-offset: 0.15em;
}

.acmm-gallery-by-year .content-body a:hover,
.acmm-gallery-by-year .tl-body a:hover {
  color: var(--about-blue-dark);
}

.gallery-layout {
  max-width: var(--acmm-layout-wide, 72rem);
}

.gallery-layout--xwide {
  max-width: var(--acmm-layout-xwide, 84rem);
}

/* —— Sticky year navigation (clickable pills) —— */
.gallery-year-nav,
.gallery-video-year-nav {
  position: sticky;
  top: 0.75rem;
  z-index: 30;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem 1.05rem;
  background: color-mix(in srgb, #ffffff 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid color-mix(in srgb, var(--gallery-border-strong) 70%, #fff);
  border-radius: 1rem;
  box-shadow:
    0 8px 28px rgba(21, 32, 43, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset;
  transition:
    padding 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    backdrop-filter 0.24s ease,
    opacity 0.24s ease;
}

.gallery-year-nav-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.75rem;
}

.gallery-year-nav-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gallery-text);
}

.gallery-year-nav-label i {
  color: var(--gallery-accent);
}

.gallery-year-nav-hint {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gallery-muted);
}

.gallery-year-nav-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-anchor: none;
  padding: 0.15rem 0.1rem 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-year-nav-scroll::-webkit-scrollbar {
  height: 6px;
}

.gallery-year-nav-scroll::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--gallery-accent) 45%, #c5cdd6);
  border-radius: 99px;
}

.gallery-year-pill {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  min-width: 6.75rem;
  min-height: 3.35rem;
  padding: 0.55rem 0.65rem 0.55rem 0.85rem;
  border: 2px solid var(--gallery-border);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--about-muted) 100%);
  color: var(--gallery-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: center;
  box-shadow:
    0 2px 0 rgba(21, 32, 43, 0.04),
    0 4px 12px rgba(21, 32, 43, 0.06);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.gallery-year-pill:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--gallery-accent) 45%, var(--gallery-border-strong));
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    color-mix(in srgb, var(--gallery-accent) 6%, var(--about-muted)) 100%
  );
  box-shadow:
    0 6px 18px rgba(21, 32, 43, 0.1),
    0 0 0 1px color-mix(in srgb, var(--gallery-accent) 12%, transparent);
}

.gallery-year-pill:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(21, 32, 43, 0.08);
}

.gallery-year-pill:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gallery-accent) 40%, transparent);
  outline-offset: 2px;
}

.gallery-year-pill.is-active {
  border-color: var(--about-blue-dark);
  background: linear-gradient(145deg, var(--about-blue), var(--about-blue-dark));
  box-shadow:
    0 10px 26px rgba(59, 130, 246, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  color: #fff;
}

.gallery-year-pill-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.gallery-year-pill-go {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(21, 32, 43, 0.06);
  color: var(--gallery-muted);
  font-size: 0.7rem;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.gallery-year-pill:hover .gallery-year-pill-go {
  background: color-mix(in srgb, var(--gallery-accent) 14%, #fff);
  color: var(--gallery-accent);
  transform: translateX(2px);
}

.gallery-year-pill.is-active .gallery-year-pill-go {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.gallery-year-pill.is-active:hover .gallery-year-pill-go {
  background: rgba(255, 255, 255, 0.32);
  transform: translateX(2px);
}

.gallery-year-pill-year {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: inherit;
  line-height: 1.15;
}

.gallery-year-pill-sub {
  font-size: 0.6875rem;
  font-weight: 600;
  opacity: 0.92;
  line-height: 1.2;
}

.gallery-year-pill-count {
  font-size: 0.6875rem;
  font-weight: 600;
  opacity: 0.88;
  line-height: 1.2;
}

.gallery-year-pill:not(.is-active) .gallery-year-pill-year {
  color: var(--gallery-text);
}

.gallery-year-pill:not(.is-active) .gallery-year-pill-sub,
.gallery-year-pill:not(.is-active) .gallery-year-pill-count {
  color: var(--gallery-muted);
}

/* —— Vertical timeline: rail left · date · content (wide) —— */
.acmm-gallery-vcentral {
  --gallery-rail-w: 3.25rem;
  --gallery-meta-w: 7.5rem;
  --gallery-axis-left: calc(var(--gallery-rail-w) / 2);
}

.gallery-vtimeline {
  position: relative;
  padding: 0.25rem 0 1rem;
}

.gallery-vtimeline-axis {
  position: absolute;
  left: var(--gallery-axis-left);
  top: 0;
  bottom: 0;
  width: var(--gallery-axis-w);
  transform: translateX(-50%);
  border-radius: 99px;
  background: linear-gradient(180deg, var(--about-blue), var(--about-navy));
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.gallery-vtimeline-axis::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -30%;
  width: 10px;
  height: 28%;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent
  );
  border-radius: 99px;
  animation: gallery-axis-shine 5s ease-in-out infinite;
  opacity: 0.55;
}

.gallery-year-block {
  position: relative;
  z-index: 1;
  margin-bottom: 1.25rem;
}

.gallery-year-block:last-child {
  margin-bottom: 0;
}

.gallery-year-marker {
  display: grid;
  grid-template-columns: var(--gallery-rail-w) minmax(0, 1fr);
  align-items: center;
  gap: 0 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.gallery-year-block.js-gallery-year-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-year-block.js-gallery-year-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-year-marker-node {
  grid-column: 1;
  justify-self: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--about-blue);
  border: 4px solid var(--gallery-surface);
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.45);
  z-index: 2;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-year-marker-text {
  grid-column: 2;
  justify-self: start;
  padding: 0.6rem 1.1rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--about-muted) 100%);
  border: 1px solid var(--gallery-border-strong);
  border-radius: 0.65rem;
  box-shadow: var(--gallery-shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery-year-block.is-visible .gallery-year-marker-text {
  box-shadow:
    var(--gallery-shadow-sm),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.gallery-year-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.5rem 0.75rem;
}

.gallery-year-title-main {
  font-family: var(--gallery-font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--about-navy);
}

.gallery-year-title-sub {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gallery-muted);
}

.gallery-year-meta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gallery-muted);
  margin-top: 0.25rem;
}

.gallery-vtimeline-events {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* —— Event row: icon rail | date (left) | content (right, full width) —— */
.gallery-event {
  position: relative;
  display: grid;
  grid-template-columns: var(--gallery-rail-w) var(--gallery-meta-w) minmax(0, 1fr);
  gap: 0 1rem;
  align-items: start;
  opacity: 0;
  transform: translateY(0.75rem);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--gallery-reveal-delay, 0s);
}

.gallery-event.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-event.is-visible .gallery-event-card-wrap {
  animation: gallery-slide-in-content 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--gallery-reveal-delay, 0s);
}

@keyframes gallery-slide-in-content {
  from {
    opacity: 0;
    transform: translateX(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.gallery-event-rail {
  grid-column: 1;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 0.2rem;
  z-index: 2;
}

.gallery-event-meta {
  grid-column: 2;
  padding-top: 0.45rem;
  text-align: left;
}

.gallery-event-card-wrap {
  grid-column: 3;
  position: relative;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.gallery-event-node-ring {
  position: absolute;
  top: 1rem;
  left: 50%;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--gallery-surface);
  border: 3px solid var(--gallery-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gallery-accent) 14%, transparent);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-event.is-visible .gallery-event-node-ring {
  transform: translateX(-50%) scale(1.06);
  animation: gallery-node-pulse 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gallery-event.is-visible .gallery-event-icon {
  animation: gallery-icon-pop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) both;
  animation-delay: calc(var(--gallery-reveal-delay, 0s) + 0.05s);
}

.acmm-gallery-vcentral .gallery-event-card {
  position: relative;
  padding: 1.1rem 1.15rem;
  border-radius: var(--gallery-card-radius);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--gallery-border);
  box-shadow: var(--gallery-shadow-sm);
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    box-shadow 0.35s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.acmm-gallery-vcentral .gallery-event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--about-blue), var(--about-navy), transparent);
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-event.is-visible .gallery-event-card::before {
  transform: scaleX(1);
  transition-delay: calc(var(--gallery-reveal-delay, 0s) + 0.12s);
}

.acmm-gallery-vcentral .gallery-event--split .gallery-event-card {
  border-left: 3px solid var(--gallery-accent);
}

.gallery-event-card {
  position: relative;
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  background: var(--gallery-surface);
  border: 1px solid var(--gallery-border);
  box-shadow: var(--gallery-shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.acmm-gallery-vcentral .gallery-event-card:hover {
  border-color: color-mix(in srgb, var(--gallery-accent) 22%, var(--gallery-border-strong));
  box-shadow:
    0 16px 40px -8px color-mix(in srgb, var(--gallery-accent) 14%, transparent),
    var(--gallery-shadow);
  transform: translateY(-3px);
}

.gallery-event.is-visible .gallery-event-meta .gallery-event-date {
  animation: gallery-date-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--gallery-reveal-delay, 0s) + 0.06s);
}

.gallery-event-card:hover {
  border-color: var(--gallery-border-strong);
  box-shadow: var(--gallery-shadow);
}

.gallery-event-date {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: left;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--gallery-text);
  padding: 0.45rem 0.55rem;
  background: var(--gallery-surface);
  border-radius: 0.45rem;
  border: 1px solid var(--gallery-border);
  white-space: normal;
  max-width: 7.25rem;
}

.gallery-event-icon {
  position: relative;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--about-blue);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.45);
  outline: 4px solid #fff;
}

.gallery-event-icon--logo {
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--gallery-accent) 35%, transparent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--gallery-accent) 22%, transparent);
}

.gallery-event-logo {
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
  display: block;
}

.gallery-event-title {
  margin: 0 0 0.5rem;
  font-family: var(--gallery-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--about-navy);
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.gallery-event-body {
  font-size: var(--gallery-font-body);
  line-height: var(--gallery-line-body);
  color: var(--gallery-text-soft);
}

.gallery-event-body.tl-body {
  max-width: none;
}

.gallery-event-body a {
  color: var(--gallery-accent);
  font-weight: 600;
  text-underline-offset: 0.15em;
}

.gallery-event-body a:hover {
  color: color-mix(in srgb, var(--gallery-accent) 75%, #000);
}

.gallery-event-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.6rem;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gallery-on-accent);
  background: var(--gallery-accent-2);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.gallery-event-link:hover {
  transform: translateY(-1px);
  background: var(--gallery-accent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--gallery-accent) 35%, transparent);
  color: var(--gallery-on-accent);
}

/* —— Photo album (editorial mosaic + lightbox) —— */
.gallery-event .tl-album-item {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--gallery-reveal-delay, 0s) + (var(--tl-i, 0) * 0.07s) + 0.08s);
}

.gallery-event.is-visible .tl-album-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tl-album {
  --tl-album-gap: 0.5rem;
  --tl-album-radius: 0.85rem;
  position: relative;
  display: grid;
  gap: var(--tl-album-gap);
  margin: 0 0 1rem;
  border-radius: calc(var(--tl-album-radius) + 2px);
  overflow: hidden;
  background: #e8ecf1;
  box-shadow:
    inset 0 0 0 1px rgba(21, 32, 43, 0.06),
    0 8px 28px rgba(21, 32, 43, 0.07);
}

.tl-album--count-1 {
  grid-template-columns: 1fr;
}

.tl-album--count-2 {
  grid-template-columns: repeat(2, 1fr);
}

.tl-album--count-3 {
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
}

.tl-album--count-3 .tl-album-item.is-cover {
  grid-row: 1 / span 2;
}

.tl-album--count-4 {
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 88px;
}

.tl-album--count-4 .tl-album-item.is-cover {
  grid-column: 1 / span 7;
  grid-row: 1 / span 2;
}

.tl-album--count-4 .tl-album-item:nth-child(2) {
  grid-column: 8 / span 5;
}

.tl-album--count-4 .tl-album-item:nth-child(3) {
  grid-column: 8 / span 5;
}

.tl-album--count-4 .tl-album-item:nth-child(4) {
  grid-column: 1 / span 12;
  grid-row: 3;
  min-height: 72px;
}

.tl-album--count-many {
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 76px;
}

.tl-album--count-many .tl-album-item.is-cover {
  grid-column: 1 / span 7;
  grid-row: 1 / span 3;
  min-height: 240px;
}

.tl-album--count-many .tl-album-item:not(.is-cover):nth-child(2) {
  grid-column: 8 / span 5;
}

.tl-album--count-many .tl-album-item:not(.is-cover):nth-child(3) {
  grid-column: 8 / span 5;
}

.tl-album--count-many .tl-album-item:not(.is-cover):nth-child(4) {
  grid-column: 1 / span 4;
}

.tl-album--count-many .tl-album-item:not(.is-cover):nth-child(5) {
  grid-column: 5 / span 4;
}

.tl-album--count-many .tl-album-item:not(.is-cover):nth-child(6) {
  grid-column: 9 / span 4;
}

.tl-album--count-many .tl-album-item:not(.is-cover):nth-child(n + 7) {
  grid-column: span 3;
  min-height: 64px;
}

.tl-album-item {
  position: relative;
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 0;
  border: none;
  border-radius: var(--tl-album-radius);
  overflow: hidden;
  cursor: zoom-in;
  background: #dce2ea;
  isolation: isolate;
}

.tl-album--count-1 .tl-album-item {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.tl-album--count-2 .tl-album-item {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.tl-album-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
}

.tl-album-item img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.tl-album-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0) 45%,
    rgba(15, 23, 42, 0.55) 100%
  );
  opacity: 0.75;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tl-album-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gallery-text);
  font-size: 1rem;
  opacity: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.tl-album-item:hover img,
.tl-album-item:focus-visible img {
  transform: scale(1.06);
}

.tl-album-item:hover .tl-album-shade,
.tl-album-item:focus-visible .tl-album-shade {
  opacity: 1;
}

.tl-album-item:hover .tl-album-zoom,
.tl-album-item:focus-visible .tl-album-zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.tl-album-item:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gallery-accent) 50%, transparent);
  outline-offset: 3px;
  z-index: 2;
}

.tl-album-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.55rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  text-align: left;
  pointer-events: none;
}

.tl-album-count-pill {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

/* —— Lightbox —— */
.acmm-lightbox[hidden] {
  display: none !important;
}

.acmm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
}

.acmm-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
}

.acmm-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 2rem 3.5rem;
  pointer-events: none;
}

.acmm-lightbox-dialog > * {
  pointer-events: auto;
}

.acmm-lightbox-figure {
  margin: 0;
  max-width: min(92vw, 960px);
  text-align: center;
}

.acmm-lightbox-img {
  max-width: 100%;
  max-height: min(78vh, 720px);
  border-radius: 0.75rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  animation: gallery-lb-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes gallery-lb-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.acmm-lightbox-cap {
  margin-top: 0.75rem;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.acmm-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.acmm-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.acmm-lightbox-prev {
  left: 1rem;
}

.acmm-lightbox-next {
  right: 1rem;
}

body.acmm-lightbox-open {
  overflow: hidden;
}

.acmm-gallery-by-year .text-muted {
  color: var(--gallery-muted) !important;
}

.home-gallery-preview .section-head .section-title {
  color: var(--gallery-text);
}

.home-gallery-preview .section-head i {
  color: var(--gallery-accent);
}

.acmm-gallery-by-year .section-head .section-title,
.acmm-gallery-page .section-head .section-title {
  color: var(--gallery-text);
  border-bottom-color: var(--gallery-accent-light);
}

.acmm-gallery-by-year .section-head i,
.acmm-gallery-page .section-head i {
  color: var(--gallery-accent);
}

.acmm-gallery-by-year .btn-acmm-outline,
.acmm-gallery-page .btn-acmm-outline {
  color: var(--about-blue-dark);
  border-color: var(--gallery-accent);
}

.acmm-gallery-by-year .btn-acmm-outline:hover,
.acmm-gallery-by-year .btn-acmm-outline:focus,
.acmm-gallery-page .btn-acmm-outline:hover,
.acmm-gallery-page .btn-acmm-outline:focus {
  color: #fff;
  background: var(--gallery-accent);
  border-color: var(--gallery-accent);
}

/* —— Home preview (same split layout, slightly tighter) —— */
.home-gallery-preview.acmm-gallery-vcentral {
  --gallery-meta-w: 6.5rem;
}

.home-gallery-preview .gallery-year-preview {
  margin-bottom: 1rem;
}

.home-gallery-preview .gallery-year-marker {
  margin-bottom: 0.75rem;
}

.home-gallery-preview .gallery-year-marker-text {
  padding: 0.45rem 1rem;
}

.home-gallery-preview .gallery-year-title-main {
  font-size: 1.2rem;
}

.home-gallery-preview .gallery-vtimeline-events {
  gap: 0.9rem;
}

.home-gallery-preview .tl-album {
  --tl-album-gap: 0.35rem;
}

.home-gallery-preview .tl-album--count-many {
  grid-auto-rows: 56px;
}

@media (min-width: 768px) {
  .gallery-year-nav,
  .gallery-video-year-nav {
    top: 1.25rem;
  }

  .gallery-year-nav-scroll {
    flex-wrap: wrap;
  }
}

/* —— Entrance & ambient motion —— */
.js-gallery-fade-in {
  animation: gallery-fade-down 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Opacity-only entrance — transform on sticky nav breaks position:sticky */
.gallery-year-nav.js-gallery-fade-in,
.gallery-video-year-nav.js-gallery-fade-in,
.gallery-video-section.js-gallery-fade-in {
  animation: gallery-fade-in-opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.05s;
}

@keyframes gallery-fade-in-opacity {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gallery-hero-content.js-gallery-fade-in {
  animation-delay: 0.08s;
}

.gallery-page-breadcrumb .breadcrumb-item a {
  color: var(--gallery-accent);
}

.gallery-page-breadcrumb .breadcrumb-item.active {
  color: var(--gallery-muted);
}

@keyframes gallery-fade-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gallery-target-highlight {
  0% {
    transform: translateY(0) scale(0.985);
    box-shadow:
      0 0 0 0 rgba(59, 130, 246, 0),
      0 10px 24px rgba(15, 23, 42, 0.04);
  }
  25% {
    transform: translateY(-2px) scale(1);
    box-shadow:
      0 0 0 8px rgba(59, 130, 246, 0.12),
      0 20px 40px rgba(15, 23, 42, 0.1);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 0 rgba(59, 130, 246, 0),
      0 12px 28px rgba(15, 23, 42, 0.06);
  }
}

@keyframes gallery-target-node {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.45);
  }
  40% {
    transform: scale(1.2);
    box-shadow:
      0 0 0 10px rgba(59, 130, 246, 0.14),
      0 10px 24px rgba(29, 78, 216, 0.24);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.45);
  }
}

@keyframes gallery-ambient {
  from {
    opacity: 0.75;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 1;
    transform: scale(1.04) translateY(-1%);
  }
}

@keyframes gallery-axis-shine {
  0% {
    top: -35%;
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  85% {
    opacity: 0.5;
  }
  100% {
    top: 105%;
    opacity: 0;
  }
}

@keyframes gallery-node-pulse {
  0% {
    transform: translateX(-50%) scale(0.6);
    opacity: 0.5;
  }
  70% {
    transform: translateX(-50%) scale(1.12);
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

.gallery-year-block.is-visible .gallery-year-marker-node {
  animation: gallery-year-node-pop 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes gallery-year-node-pop {
  0% {
    transform: scale(0.5);
    opacity: 0.4;
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes gallery-icon-pop {
  0% {
    transform: scale(0.7);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes gallery-date-in {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-hero-scroll-hint i {
    animation: none;
  }

  .section-wrap.acmm-gallery-by-year::after,
  .acmm-gallery-page.acmm-gallery-by-year.section-wrap::after,
  .gallery-vtimeline-axis::after {
    animation: none;
  }

  .gallery-video-year-pill.is-active,
  .gallery-video-event-card.is-active-manual::after,
  .gallery-video-event-card.is-active-manual .gallery-video-card__media::before {
    animation: none;
  }

  .js-gallery-fade-in,
  .gallery-year-block.js-gallery-year-reveal,
  .gallery-event,
  .gallery-event .tl-album-item,
  .gallery-event.is-visible .gallery-event-card-wrap,
  .gallery-event.is-visible .gallery-event-icon,
  .gallery-event.is-visible .gallery-event-node-ring,
  .gallery-year-block.is-visible .gallery-year-marker-node,
  .gallery-event.is-visible .gallery-event-meta .gallery-event-date,
  .acmm-gallery-vcentral .gallery-event-card::before {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }

  .gallery-year-block.js-gallery-year-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .acmm-gallery-vcentral {
    --gallery-rail-w: 2.65rem;
    --gallery-meta-w: 5.5rem;
  }

  .gallery-year-marker {
    grid-template-columns: var(--gallery-rail-w) minmax(0, 1fr);
    gap: 0 0.65rem;
  }

  .gallery-event {
    grid-template-columns: var(--gallery-rail-w) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.3rem 0.65rem;
  }

  .gallery-event-rail {
    grid-row: 1 / span 2;
    align-self: start;
  }

  .gallery-event-meta {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0.1rem;
  }

  .gallery-event-card-wrap {
    grid-column: 2;
    grid-row: 2;
  }

  .gallery-event-date {
    max-width: none;
    font-size: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .tl-album--count-2,
  .tl-album--count-3,
  .tl-album--count-4,
  .tl-album--count-many {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }

  .tl-album--count-3 .tl-album-item.is-cover,
  .tl-album--count-4 .tl-album-item.is-cover,
  .tl-album--count-many .tl-album-item.is-cover {
    grid-column: 1 / span 2;
    grid-row: auto;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .tl-album--count-3 .tl-album-item:not(.is-cover),
  .tl-album--count-4 .tl-album-item:not(.is-cover),
  .tl-album--count-many .tl-album-item:not(.is-cover) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1;
    min-height: 0;
  }

  .tl-album--count-4 .tl-album-item:nth-child(4),
  .tl-album--count-many .tl-album-item:not(.is-cover):nth-child(n + 7) {
    grid-column: span 1;
  }
}

@media (max-width: 575.98px) {
  .tl-album--count-2,
  .tl-album--count-3,
  .tl-album--count-4,
  .tl-album--count-many {
    grid-template-columns: 1fr;
  }

  .tl-album--count-3 .tl-album-item.is-cover,
  .tl-album--count-4 .tl-album-item.is-cover,
  .tl-album--count-many .tl-album-item.is-cover {
    grid-column: 1;
    aspect-ratio: 16 / 9;
  }

  .acmm-lightbox-dialog {
    padding: 3rem 1rem;
  }
}

/* —— Video Gallery —— */
.gallery-video-section {
  margin-top: 2.75rem;
  padding: 1.4rem;
  border: 1px solid color-mix(in srgb, var(--gallery-accent-light) 18%, var(--gallery-border));
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow:
    0 10px 28px rgba(10, 22, 40, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
  scroll-margin-top: 6rem;
}

.gallery-video-section--standalone {
  margin-top: 0;
}

.gallery-video-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gallery-brand-border);
}

.gallery-video-section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  padding: 0.34rem 0.72rem;
  border: 1px solid var(--gallery-brand-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--about-muted) 72%, #fff);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gallery-brand);
  box-shadow:
    0 6px 18px rgba(10, 22, 40, 0.035),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.gallery-video-section__title {
  margin: 0;
  font-family: var(--gallery-font-display);
  font-size: clamp(1.34rem, 2.45vw, 1.72rem);
  font-weight: 700;
  letter-spacing: -0.024em;
  color: var(--gallery-brand);
}

.gallery-video-section__intro {
  max-width: 46rem;
  margin-top: 0.55rem;
  font-size: 0.98rem;
  color: var(--gallery-text-soft);
  line-height: 1.68;
}

.gallery-video-section__count {
  display: inline-flex;
  min-width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--gallery-brand);
  color: var(--gallery-brand-on);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow:
    0 10px 24px rgba(10, 22, 40, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

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

.gallery-video-grid--featured {
  grid-template-columns: minmax(0, 56rem);
  justify-content: center;
}

.gallery-video-card {
  overflow: hidden;
  border: 1px solid var(--gallery-brand-border);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow:
    0 10px 26px rgba(10, 22, 40, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.gallery-video-card--featured {
  border-radius: 1.25rem;
  box-shadow:
    0 14px 32px rgba(10, 22, 40, 0.055),
    0 0 0 1px rgba(255, 255, 255, 0.74) inset;
}

.gallery-video-card__media {
  background: #020617;
}

.gallery-video-card__media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #020617;
  object-fit: cover;
}

.gallery-video-card__body {
  padding: 1rem 1rem 1.05rem;
}

.gallery-video-card__desc {
  margin-top: 0.6rem;
  color: var(--gallery-text-soft);
}

.gallery-video-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gallery-brand) 8%, #eef4fb);
  color: var(--gallery-brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--gallery-brand) 14%, transparent);
  box-shadow: 0 4px 12px rgba(10, 22, 40, 0.025);
}

.gallery-video-card__meta {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gallery-muted);
}

.gallery-video-card__title {
  margin: 0;
  font-size: clamp(1rem, 1.55vw, 1.14rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.015em;
  color: var(--gallery-text);
}

.gallery-video-card__file {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--gallery-text-soft);
  word-break: break-word;
}

.gallery-video-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.8rem;
  color: var(--gallery-accent-2);
  font-weight: 700;
  text-decoration: none;
}

.gallery-video-card__link:hover {
  color: var(--about-blue-dark);
  text-decoration: underline;
}

.gallery-video-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.35rem 1rem;
  border: 1px dashed color-mix(in srgb, var(--gallery-brand) 18%, var(--gallery-border-strong));
  border-radius: 1rem;
  background: color-mix(in srgb, var(--about-muted) 78%, #fff);
  color: var(--gallery-text-soft);
}

.gallery-video-empty i {
  color: var(--gallery-brand);
  font-size: 1.15rem;
}

.gallery-video-year-nav {
  display: block;
  border-color: var(--gallery-brand-border);
  background: color-mix(in srgb, #ffffff 90%, var(--gallery-brand-soft));
  box-shadow:
    0 10px 26px rgba(10, 22, 40, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.76) inset;
}

.gallery-video-year-nav::before {
  content: none;
}

.gallery-video-year-nav.is-stuck {
  padding: 0.72rem 0.95rem 0.76rem;
  background: color-mix(in srgb, #ffffff 94%, var(--about-muted));
  border-color: var(--gallery-brand-border-strong);
  box-shadow:
    0 3px 10px rgba(21, 32, 43, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.78) inset;
  backdrop-filter: blur(16px) saturate(1.12);
}

.gallery-video-year-nav.is-stuck .gallery-year-nav-scroll {
  padding-top: 0.05rem;
  padding-bottom: 0.2rem;
}

.gallery-video-year-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--gallery-brand) 12%, var(--gallery-border));
  background: #ffffff;
  color: var(--gallery-text);
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    padding 0.24s ease,
    gap 0.24s ease,
    opacity 0.24s ease,
    filter 0.24s ease;
  box-shadow:
    0 1px 4px rgba(15, 23, 42, 0.018),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.gallery-video-year-nav.is-stuck .gallery-video-year-pill {
  padding: 0.44rem 0.75rem;
  gap: 0.42rem;
}

.gallery-video-year-nav.is-stuck .gallery-video-year-pill small {
  min-width: 1.35rem;
  height: 1.35rem;
  font-size: 0.68rem;
}

.gallery-video-year-pill small {
  min-width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gallery-brand) 8%, #eef4fb);
  color: var(--gallery-accent-2);
  font-size: 0.72rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.gallery-video-year-pill:hover {
  transform: translateY(-2px);
  border-color: var(--gallery-brand-border-strong);
  background: #ffffff;
  box-shadow:
    0 8px 18px rgba(10, 22, 40, 0.04),
    0 0 0 1px color-mix(in srgb, var(--gallery-brand) 10%, transparent);
  filter: saturate(1.02);
}

.gallery-video-year-pill.is-active {
  border-color: color-mix(in srgb, var(--gallery-brand-on) 14%, transparent);
  background: var(--gallery-brand);
  color: var(--gallery-brand-on);
  box-shadow:
    0 14px 30px rgba(10, 22, 40, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  animation: gallery-video-pill-glow 4.8s ease-in-out infinite;
}

.gallery-video-year-pill.is-active small {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

@media (max-width: 767.98px) {
  .gallery-video-year-nav.is-stuck {
    padding: 0.56rem 0.72rem 0.58rem;
  }

  .gallery-video-year-nav.is-stuck .gallery-year-nav-scroll {
    gap: 0.5rem;
    padding-bottom: 0.1rem;
  }

  .gallery-video-year-nav.is-stuck .gallery-video-year-pill {
    padding: 0.4rem 0.68rem;
    gap: 0;
  }

  .gallery-video-year-nav.is-stuck .gallery-video-year-pill small {
    display: none;
  }
}

.gallery-video-year-block + .gallery-video-year-block {
  margin-top: 1.25rem;
}

.gallery-video-year-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.gallery-video-year-title {
  margin: 0;
  font-family: var(--gallery-font-display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--gallery-text);
}

.gallery-video-year-sub {
  color: var(--gallery-muted);
  font-size: 0.9rem;
}

.gallery-video-year-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gallery-brand) 8%, #fff);
  color: var(--gallery-brand);
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--gallery-brand) 14%, transparent);
  box-shadow: 0 6px 14px rgba(10, 22, 40, 0.025);
}

@media (max-width: 767.98px) {
  .gallery-spotlight {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .gallery-spotlight__media {
    width: 100%;
  }

  .gallery-spotlight__actions {
    justify-self: start;
  }

  .gallery-video-section {
    padding: 1.1rem;
  }

  .gallery-video-section__head {
    flex-direction: column;
  }
}

/* —— Video timeline upgrades —— */
.gallery-video-section {
  position: relative;
  overflow: visible;
  padding: 1.55rem 1.55rem 1.7rem;
  border-color: var(--gallery-brand-border);
  border-radius: 1.4rem;
  background: #ffffff;
  box-shadow:
    0 14px 34px rgba(10, 22, 40, 0.045),
    0 4px 12px rgba(10, 22, 40, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.gallery-video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 0 0 1px color-mix(in srgb, var(--gallery-brand) 10%, rgba(148, 163, 184, 0.04));
}

.gallery-video-section::after {
  content: none;
}

.gallery-video-section > * {
  position: relative;
  z-index: 1;
}

.gallery-video-year-pill {
  transition:
    transform 0.18s ease,
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.gallery-video-year-pill:hover {
  transform: translateY(-2px);
  border-color: var(--gallery-brand-border-strong);
  box-shadow: 0 8px 18px rgba(10, 22, 40, 0.04);
  background: #ffffff;
}

.gallery-video-year-pill.is-active {
  border-color: rgba(29, 78, 216, 0.18);
  background: var(--gallery-brand);
  color: var(--gallery-brand-on);
  box-shadow:
    0 12px 26px rgba(10, 22, 40, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.gallery-video-year-pill.is-active small {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.gallery-vtimeline--video {
  margin-top: 1.25rem;
  padding: 1.1rem 1rem 0.35rem;
  border: 1px solid var(--gallery-brand-border);
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow:
    0 10px 24px rgba(10, 22, 40, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.gallery-year-block--video .gallery-year-marker-text {
  background: #ffffff;
  border: 1px solid var(--gallery-brand-border);
  box-shadow:
    0 8px 20px rgba(10, 22, 40, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.gallery-year-block--video .gallery-year-marker-node {
  background: var(--gallery-brand);
  box-shadow: 0 10px 22px rgba(10, 22, 40, 0.16);
}

.gallery-vtimeline-events--video {
  gap: 1.1rem;
}

.gallery-video-event__icon {
  background: var(--gallery-brand);
  box-shadow:
    0 8px 18px rgba(10, 22, 40, 0.14),
    0 0 0 3px rgba(255, 255, 255, 0.9);
}

.gallery-video-event-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-left: none;
  border-radius: 1.1rem;
  background: #ffffff;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.gallery-video-event-card::before {
  background: color-mix(in srgb, var(--gallery-brand) 72%, transparent);
}

.gallery-video-event-card:hover {
  box-shadow:
    0 14px 30px rgba(10, 22, 40, 0.055),
    0 0 0 1px color-mix(in srgb, var(--gallery-brand) 10%, transparent);
  transform: translateY(-2px);
}

.gallery-video-event-card.is-active-manual {
  border-color: var(--gallery-brand-border);
  background: #ffffff;
  box-shadow:
    0 18px 38px rgba(10, 22, 40, 0.12),
    0 0 0 1px color-mix(in srgb, var(--gallery-brand) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transform: translateY(-3px);
}

.gallery-video-event-card.is-active-manual .gallery-video-card__title {
  color: var(--gallery-brand);
  font-weight: 700;
}

.gallery-video-event-card.is-active-manual .gallery-video-card__eyebrow {
  color: var(--gallery-brand);
}

.gallery-video-event-card.is-active-manual::after {
  content: "Now playing";
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: var(--gallery-brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 10px 22px rgba(10, 22, 40, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  animation: gallery-now-playing-breath 2.8s ease-in-out infinite;
}

@keyframes gallery-video-pill-glow {
  0%,
  100% {
    box-shadow:
      0 16px 30px rgba(29, 78, 216, 0.16),
      0 0 0 1px rgba(59, 130, 246, 0.12) inset,
      0 0 18px rgba(125, 211, 252, 0.12);
  }
  50% {
    box-shadow:
      0 18px 34px rgba(29, 78, 216, 0.2),
      0 0 0 1px rgba(59, 130, 246, 0.14) inset,
      0 0 30px rgba(125, 211, 252, 0.18);
  }
}

@keyframes gallery-now-playing-breath {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 10px 24px rgba(29, 78, 216, 0.24),
      0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  }
  50% {
    transform: translateY(-1px) scale(1.02);
    box-shadow:
      0 14px 28px rgba(29, 78, 216, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  }
}

@keyframes gallery-active-video-shimmer {
  0%,
  100% {
    opacity: 0.9;
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1);
  }
  50% {
    opacity: 1;
    transform: translate3d(-1.5%, 0.5%, 0) scale(1.02);
    filter: saturate(1.06);
  }
}

.gallery-video-card__media {
  position: relative;
  background: #0f172a;
}

.gallery-video-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: rgba(15, 23, 42, 0.18);
  pointer-events: none;
}

.gallery-video-event-card.is-active-manual .gallery-video-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(147, 197, 253, 0.1);
  animation: gallery-active-video-shimmer 6.5s ease-in-out infinite;
  will-change: transform, opacity, filter;
}

.gallery-video-card__body {
  padding: 1.05rem 1.1rem 1.1rem;
}

.gallery-video-card__title {
  font-family: var(--gallery-font-display);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  letter-spacing: -0.02em;
}

.gallery-video-card__desc {
  margin-top: 0.1rem;
}

.gallery-video-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.7rem;
}

.gallery-video-card__file {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--gallery-text-soft);
  font-size: 0.8rem;
  line-height: 1.45;
  word-break: break-word;
}

.gallery-video-card__link {
  margin-top: 0;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
}

.gallery-video-card__link:hover {
  background: rgba(29, 78, 216, 0.12);
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .gallery-video-card__actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* —— Photo gallery premium refinements —— */
.gallery-page-hero--photo .page-hero-inner {
  position: relative;
}

.gallery-page-hero--photo {
  padding: 1.8rem 0 1.95rem;
}

.gallery-page-hero--photo .gallery-hero-content {
  max-width: 46rem;
}

.gallery-photo-page .gallery-hero-kicker,
.gallery-photo-page .gallery-compact-head__kicker {
  color: var(--about-navy);
  letter-spacing: 0.14em;
}

.gallery-page-hero--photo .gallery-hero-kicker {
  padding: 0.45rem 1rem;
}

.gallery-page-hero--photo .gallery-hero-title {
  font-size: clamp(1.92rem, 4.3vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.gallery-page-hero--photo .gallery-hero-lead {
  max-width: 40rem;
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.92);
}

.gallery-photo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.gallery-photo-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.3rem;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  font-size: 0.765rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.gallery-page-hero--photo .gallery-photo-meta__item {
  color: var(--gallery-brand-on);
  background: color-mix(in srgb, var(--gallery-brand-on) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--gallery-brand-on) 18%, transparent);
  box-shadow:
    0 10px 22px rgba(10, 22, 40, 0.12),
    0 0 0 1px color-mix(in srgb, var(--gallery-brand-on) 8%, transparent) inset;
}

.gallery-page-hero--photo .gallery-photo-meta__item i {
  color: color-mix(in srgb, var(--gallery-brand-on) 88%, transparent);
}

.gallery-photo-meta--compact .gallery-photo-meta__item {
  color: var(--gallery-brand);
  background: color-mix(in srgb, var(--gallery-brand) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--gallery-brand) 16%, var(--gallery-border));
  box-shadow:
    0 6px 16px rgba(10, 22, 40, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.66) inset;
}

.gallery-photo-meta--compact .gallery-photo-meta__item i {
  color: var(--gallery-brand);
}

.gallery-photo-page .gallery-compact-head {
  padding: 1.1rem 1.2rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border-color: var(--gallery-brand-border);
  box-shadow:
    0 10px 28px rgba(10, 22, 40, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.gallery-photo-page.section-wrap:not(#photo-gallery) {
  padding-bottom: 0.35rem;
}

.gallery-photo-page#photo-gallery {
  padding-top: 0.7rem;
}

.gallery-photo-page .gallery-mode-nav {
  margin-bottom: 0.35rem;
}

.gallery-photo-page .gallery-page-breadcrumb {
  margin-bottom: 0.7rem !important;
}

.gallery-photo-page .gallery-compact-head__title {
  font-size: clamp(1.34rem, 2.45vw, 1.72rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--gallery-brand);
}

.gallery-year-nav--photo {
  padding: 0.92rem 1rem 0.96rem;
  background: color-mix(in srgb, #ffffff 90%, var(--gallery-brand-soft));
  border-color: var(--gallery-brand-border);
  box-shadow:
    0 10px 26px rgba(10, 22, 40, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.76) inset;
}

.gallery-year-nav--photo .gallery-year-nav-scroll {
  gap: 0.65rem;
  padding-bottom: 0.2rem;
}

.gallery-year-nav--photo .gallery-year-pill {
  min-width: 6.6rem;
  padding: 0.58rem 0.72rem 0.58rem 0.82rem;
  border-color: color-mix(in srgb, var(--gallery-brand) 12%, var(--gallery-border));
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 1px 4px rgba(15, 23, 42, 0.018),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.gallery-year-nav--photo .gallery-year-pill:hover {
  transform: translateY(-2px);
  border-color: var(--gallery-brand-border-strong);
  box-shadow:
    0 8px 18px rgba(10, 22, 40, 0.04),
    0 0 0 1px color-mix(in srgb, var(--gallery-brand) 10%, transparent);
}

.gallery-year-nav--photo .gallery-year-pill.is-active {
  border-color: color-mix(in srgb, var(--gallery-brand-on) 14%, transparent);
  background: var(--gallery-brand);
  color: var(--gallery-brand-on);
  box-shadow:
    0 14px 30px rgba(10, 22, 40, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.gallery-year-nav--photo .gallery-year-pill small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  min-height: 1.55rem;
  padding: 0.16rem 0.4rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--gallery-brand) 8%, #eef4fb);
  color: var(--gallery-brand);
  border: 1px solid color-mix(in srgb, var(--gallery-brand) 12%, transparent);
  box-shadow: 0 4px 10px rgba(10, 22, 40, 0.02);
}

.gallery-year-nav--photo .gallery-year-pill.is-active small {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.8);
}

.gallery-vtimeline--photo {
  padding: 0.9rem 0.9rem 1.25rem;
  border: 1px solid var(--gallery-brand-border);
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow:
    0 10px 24px rgba(10, 22, 40, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.gallery-vtimeline--photo .gallery-vtimeline-axis {
  background: var(--gallery-brand);
  width: 2px;
  box-shadow: none;
}

.gallery-vtimeline--photo .gallery-year-marker-node {
  width: 1rem;
  height: 1rem;
  background: #fff;
  border-color: color-mix(in srgb, var(--gallery-brand) 24%, #fff);
  box-shadow:
    0 0 0 2px rgba(15, 23, 42, 0.02),
    0 2px 6px rgba(15, 23, 42, 0.035);
}

.gallery-vtimeline--photo .gallery-year-marker-text {
  padding: 0.72rem 1rem;
  border-radius: 1rem;
  background: #ffffff;
  border-color: var(--gallery-brand-border);
  box-shadow:
    0 8px 20px rgba(10, 22, 40, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.gallery-vtimeline--photo .gallery-year-title-main {
  font-size: clamp(1.22rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gallery-brand);
}

.gallery-vtimeline--photo .gallery-year-meta {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--about-slate);
}

.gallery-vtimeline--photo .gallery-event-node-ring {
  width: 1.1rem;
  height: 1.1rem;
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--gallery-brand) 22%, #fff);
  box-shadow:
    0 0 0 2px rgba(15, 23, 42, 0.02),
    0 2px 6px rgba(15, 23, 42, 0.03);
}

.gallery-vtimeline--photo .gallery-event-icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.95rem;
  background: var(--gallery-brand);
  box-shadow:
    0 8px 18px rgba(10, 22, 40, 0.14),
    0 0 0 3px rgba(255, 255, 255, 0.9);
}

.gallery-vtimeline--photo .gallery-event-date {
  padding: 0.42rem 0.58rem;
  border-radius: 0.7rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gallery-brand);
  background: color-mix(in srgb, var(--gallery-brand) 6%, #fff);
  border-color: color-mix(in srgb, var(--gallery-brand) 18%, var(--gallery-border));
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.015);
}

.gallery-vtimeline--photo .gallery-event-card {
  padding: 1.12rem 1.18rem 1.2rem;
  border-radius: 1.1rem;
  background: #ffffff;
  border-color: var(--gallery-brand-border);
  box-shadow:
    0 10px 26px rgba(10, 22, 40, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.gallery-vtimeline--photo .gallery-event-card::before {
  height: 2px;
  background: color-mix(in srgb, var(--gallery-brand) 72%, transparent);
}

.gallery-vtimeline--photo .gallery-event--split .gallery-event-card {
  border-left: 1px solid color-mix(in srgb, var(--gallery-brand) 14%, var(--gallery-border));
}

.gallery-vtimeline--photo .gallery-event-card:hover {
  border-color: var(--gallery-brand-border-strong);
  box-shadow:
    0 14px 30px rgba(10, 22, 40, 0.055),
    0 0 0 1px color-mix(in srgb, var(--gallery-brand) 10%, transparent);
}

.gallery-vtimeline--photo .gallery-event-title {
  margin-bottom: 0.45rem;
  font-size: clamp(1rem, 1.55vw, 1.14rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--gallery-brand);
}

.gallery-vtimeline--photo .gallery-event-body {
  font-size: 0.95rem;
  line-height: 1.66;
  color: var(--about-slate-dark);
}

.gallery-vtimeline--photo .tl-album {
  --tl-album-gap: 0.6rem;
  --tl-album-radius: 1rem;
  padding: 0.3rem;
  background: color-mix(in srgb, var(--about-muted) 82%, #fff);
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.035),
    0 8px 20px rgba(10, 22, 40, 0.028);
}

.gallery-vtimeline--photo .tl-album-item {
  background: color-mix(in srgb, var(--gallery-brand) 8%, #eef2f7);
}

.gallery-vtimeline--photo .tl-album-item img {
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease;
}

.gallery-vtimeline--photo .tl-album-item:hover img,
.gallery-vtimeline--photo .tl-album-item:focus-visible img {
  transform: scale(1.07);
  filter: saturate(1.05) contrast(1.02);
}

.gallery-vtimeline--photo .tl-album-count-pill {
  top: 0.85rem;
  right: 0.85rem;
  background: color-mix(in srgb, var(--gallery-brand) 74%, rgba(10, 22, 40, 0.74));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.gallery-photo-page .gallery-back-wrap {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top-color: color-mix(in srgb, var(--gallery-border-strong) 55%, #fff);
}

.gallery-photo-page .btn-gallery-back {
  padding: 0.72rem 1.45rem;
  border-radius: 999px;
  background: #ffffff;
  border-color: var(--gallery-brand-border);
  box-shadow:
    0 8px 18px rgba(10, 22, 40, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.gallery-photo-page .btn-gallery-back:hover {
  background: #fff;
  border-color: var(--gallery-brand-border-strong);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.025);
}

/* —— Year sections without timeline —— */
.gallery-year-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.gallery-year-filter {
  margin-bottom: 1rem;
  padding: 0.88rem 0.95rem;
  border: 1px solid var(--gallery-brand-border);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow:
    0 12px 26px rgba(10, 22, 40, 0.028),
    0 0 0 1px rgba(255, 255, 255, 0.78) inset;
}

.gallery-photo-page .gallery-year-filter {
  margin-top: 0;
  margin-bottom: 0.72rem;
}

.gallery-video-page:first-of-type {
  padding-bottom: 0.4rem;
}

.gallery-video-page#video-gallery {
  padding-top: 0.75rem;
}

.gallery-video-page .gallery-mode-nav {
  margin-bottom: 0.4rem;
}

.gallery-video-page .gallery-page-breadcrumb {
  margin-bottom: 0.72rem !important;
}

.gallery-video-page .gallery-year-filter--video {
  margin-top: 0.1rem;
  margin-bottom: 0.82rem;
}

.gallery-year-filter__field {
  display: grid;
  gap: 0.4rem;
}

.gallery-year-filter__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--gallery-brand) 74%, #fff);
}

.gallery-year-filter__select {
  width: 100%;
  min-height: 3rem;
  padding: 0.72rem 2.85rem 0.72rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--gallery-brand-border-strong) 72%, #fff);
  border-radius: 0.9rem;
  background-color: #ffffff;
  color: var(--gallery-brand);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow:
    0 8px 18px rgba(10, 22, 40, 0.018),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gallery-brand) 50%),
    linear-gradient(135deg, var(--gallery-brand) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) calc(50% - 0.12rem),
    calc(100% - 0.82rem) calc(50% - 0.12rem);
  background-size: 0.42rem 0.42rem, 0.42rem 0.42rem;
  background-repeat: no-repeat;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.gallery-year-filter__select:hover {
  border-color: var(--gallery-brand-border-strong);
}

.gallery-year-filter__select:focus {
  outline: none;
  border-color: var(--gallery-brand);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--gallery-brand) 10%, transparent),
    0 8px 20px rgba(10, 22, 40, 0.025),
    0 0 0 1px rgba(255, 255, 255, 0.82) inset;
}

.gallery-year-filter__select::-ms-expand {
  display: none;
}

.gallery-year-filter__select option {
  color: #0f172a;
}

.gallery-year-filter__scroll {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery-year-filter__scroll::-webkit-scrollbar {
  height: 0.45rem;
}

.gallery-year-filter__scroll::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--gallery-brand) 22%, transparent);
  border-radius: 999px;
}

.gallery-year-filter--video {
  margin-top: 1rem;
  margin-bottom: 1.1rem;
}

.gallery-year-section {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.gallery-year-section.js-gallery-year-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-year-section.js-gallery-year-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-year-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--gallery-brand-border);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow:
    0 14px 34px rgba(10, 22, 40, 0.035),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.gallery-year-section__title-wrap {
  min-width: 0;
}

.gallery-year-section__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.gallery-year-section__count,
.gallery-year-section__toggle {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gallery-year-section__count {
  padding: 0.28rem 0.72rem;
  color: color-mix(in srgb, var(--gallery-brand) 76%, var(--gallery-text-soft));
  background: color-mix(in srgb, var(--gallery-brand) 5%, #fff);
  border: 1px solid color-mix(in srgb, var(--gallery-brand) 10%, var(--gallery-border));
}

.gallery-year-section__toggle {
  justify-content: center;
  padding: 0.28rem 0.78rem;
  color: color-mix(in srgb, var(--gallery-accent-2) 76%, var(--gallery-brand));
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--gallery-accent-2) 15%, var(--gallery-border));
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.gallery-year-section__toggle:hover {
  color: var(--gallery-accent-2);
  border-color: color-mix(in srgb, var(--gallery-accent-2) 32%, var(--gallery-border));
  background: color-mix(in srgb, var(--gallery-accent-2) 4%, #fff);
}

.gallery-year-section__events {
  display: grid;
  gap: 1rem;
}

.gallery-year-section__events.is-collapsed {
  display: none;
}

.gallery-event--stack {
  display: block;
  opacity: 0;
  transform: translateY(0.75rem);
}

.gallery-event--stack .gallery-event-card-wrap {
  width: 100%;
}

.gallery-event--stack .gallery-event-card {
  padding-top: 1rem;
}

.gallery-event-date--stack {
  display: inline-flex;
  align-items: center;
  min-height: 1.95rem;
  margin-bottom: 0.9rem;
}

.gallery-year-stack--photo .gallery-year-section__head {
  border-color: var(--gallery-brand-border);
  box-shadow:
    0 12px 28px rgba(10, 22, 40, 0.028),
    0 0 0 1px rgba(255, 255, 255, 0.78) inset;
}

.gallery-year-stack--photo .gallery-year-section__events {
  gap: 0.95rem;
}

.gallery-year-stack--video .gallery-year-section__head {
  border-color: color-mix(in srgb, var(--gallery-brand-border-strong) 70%, #fff);
  box-shadow:
    0 16px 38px rgba(10, 22, 40, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.gallery-year-stack--video .gallery-year-section__events {
  gap: 1.05rem;
}

@media (max-width: 767.98px) {
  .gallery-year-filter {
    padding: 0.72rem 0.74rem;
    border-radius: 0.92rem;
  }

  .gallery-year-filter__label {
    font-size: 0.69rem;
    letter-spacing: 0.11em;
  }

  .gallery-year-filter__select {
    min-height: 2.8rem;
    padding: 0.66rem 2.65rem 0.66rem 0.86rem;
    font-size: 0.9rem;
  }

  .gallery-year-section__head {
    padding: 0.88rem 0.92rem;
    border-radius: 0.92rem;
    align-items: flex-start;
  }

  .gallery-year-section__actions {
    justify-content: flex-start;
    width: 100%;
  }

  .gallery-year-section__count,
  .gallery-year-section__toggle {
    min-height: 2.2rem;
  }

  .gallery-year-section__toggle {
    flex: 1 1 10rem;
    justify-content: center;
  }

  .gallery-year-section__events {
    gap: 0.9rem;
  }

  .gallery-event--stack .gallery-event-card {
    padding-top: 0.92rem;
  }
}

@media (max-width: 991.98px) {
  .gallery-vtimeline--photo {
    padding: 0.82rem 0.78rem 1.05rem;
    border-radius: 1.25rem;
  }

  .gallery-vtimeline--photo .gallery-event-card {
    padding: 1rem 1rem 1.08rem;
  }
}

@media (max-width: 767.98px) {
  .gallery-page-hero--photo .gallery-hero-title {
    font-size: clamp(1.56rem, 8vw, 2.05rem);
  }

  .gallery-photo-meta {
    gap: 0.55rem;
  }

  .gallery-photo-meta__item {
    min-height: 2.1rem;
    padding: 0.44rem 0.72rem;
    font-size: 0.72rem;
  }

  .gallery-year-nav--photo {
    padding: 0.78rem 0.78rem 0.88rem;
    border-radius: 1rem;
  }

  .gallery-year-nav--photo .gallery-year-pill {
    min-width: 6rem;
    padding-left: 0.72rem;
    padding-right: 0.62rem;
  }

  .gallery-vtimeline--photo {
    padding: 0.72rem 0.64rem 0.96rem;
  }

  .gallery-vtimeline--photo .gallery-year-marker-text,
  .gallery-vtimeline--photo .gallery-event-card {
    border-radius: 1rem;
  }
}

/* —— Footer navigation —— */
.gallery-back-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--gallery-border);
}

.btn-gallery-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gallery-brand);
  background: #ffffff;
  border: 1px solid var(--gallery-brand-border);
  border-radius: 999px;
  text-decoration: none;
  box-shadow:
    0 8px 18px rgba(10, 22, 40, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn-gallery-back:hover {
  background: #fff;
  border-color: var(--gallery-brand-border-strong);
  color: var(--gallery-brand);
  box-shadow:
    0 10px 22px rgba(10, 22, 40, 0.04),
    0 0 0 1px color-mix(in srgb, var(--gallery-brand) 10%, transparent);
}

.gallery-floating-top {
  display: none;
}

@media (max-width: 767.98px) {
  .gallery-floating-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 45;
    width: 2.85rem;
    height: 2.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--gallery-accent) 18%, var(--gallery-border));
    background: color-mix(in srgb, #ffffff 92%, transparent);
    color: var(--about-blue-dark);
    text-decoration: none;
    box-shadow:
      0 10px 24px rgba(15, 23, 42, 0.16),
      0 0 0 1px rgba(255, 255, 255, 0.72) inset;
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    transition:
      transform 0.2s ease,
      background 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      color 0.2s ease;
  }

  .gallery-floating-top:hover,
  .gallery-floating-top:focus-visible {
    transform: translateY(-2px);
    background: #fff;
    border-color: var(--about-blue-light);
    color: var(--about-blue-dark);
    box-shadow:
      0 14px 28px rgba(15, 23, 42, 0.18),
      0 0 0 1px rgba(255, 255, 255, 0.82) inset;
  }
}

.gallery-activity-directory {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.gallery-activities-page.section-wrap {
  padding-bottom: 1.5rem;
}

.gallery-activities-page .gallery-activity-directory {
  margin-bottom: 0.65rem;
}

.gallery-activity-directory__head {
  margin-bottom: 1rem;
}

.gallery-activity-directory__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.gallery-activity-directory__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.3rem;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: rgba(255, 255, 255, 0.92);
  color: var(--gallery-text);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(10, 22, 40, 0.03);
}

.gallery-activity-directory__nav-link:hover {
  border-color: var(--gallery-brand-border-strong);
  color: var(--gallery-brand);
}

.gallery-activity-directory__nav-link.is-active {
  border-color: var(--gallery-brand-border-strong);
  background: var(--gallery-brand-soft);
  color: var(--gallery-brand);
  box-shadow:
    0 12px 26px rgba(10, 22, 40, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.gallery-activity-directory__nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  min-height: 1.55rem;
  padding: 0 0.42rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gallery-brand) 9%, #fff);
  color: var(--gallery-brand);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.gallery-activity-group {
  margin-bottom: 1.5rem;
  padding: 1.2rem 1.2rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.97));
  border: 1px solid color-mix(in srgb, var(--gallery-brand) 10%, rgba(15, 23, 42, 0.08));
  border-radius: 1.08rem;
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.045),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
  scroll-margin-top: 6rem;
}

.gallery-activity-group:last-child {
  margin-bottom: 0;
}

.gallery-activities-page .gallery-activity-group:last-child {
  margin-bottom: 0.15rem;
}

.gallery-activity-group__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.9rem 1.1rem;
  margin-bottom: 0.9rem;
}

.gallery-activity-group__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  align-items: center;
}

.gallery-activity-group__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.gallery-activity-group__title {
  margin: 0 0 0.3rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  color: #0f172a;
}

.gallery-activity-group__desc {
  max-width: 48rem;
  color: #64748b;
  line-height: 1.65;
}

.gallery-activity-group__count {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 2rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gallery-brand) 6%, #fff);
  color: color-mix(in srgb, var(--gallery-brand) 78%, #334155);
  border: 1px solid color-mix(in srgb, var(--gallery-brand) 10%, transparent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gallery-activity-group__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.28rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: #486079;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(10, 22, 40, 0.025);
}

.gallery-activity-group__toggle:hover {
  border-color: var(--gallery-brand-border-strong);
  color: var(--gallery-brand);
}

.gallery-activity-group__content.is-collapsed {
  display: none;
}

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

@media (min-width: 992px) {
  .gallery-activity-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gallery-activity-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 1.05rem 1.08rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.035),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gallery-activity-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--gallery-brand) 18%, rgba(15, 23, 42, 0.08));
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.055),
    0 0 0 1px rgba(255, 255, 255, 0.82) inset;
}

.gallery-activity-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, #c0a067 78%, #fff) 0%, color-mix(in srgb, #8aa7d6 76%, #fff) 100%);
  opacity: 0.42;
}

.gallery-activity-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem 0.55rem;
  align-items: center;
  margin-bottom: 0.68rem;
}

.gallery-activity-card__type {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 1.68rem;
  padding: 0.14rem 0.54rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gallery-brand) 5%, #f8fafc);
  color: #44576c;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gallery-activity-card__date {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.54rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.88);
  color: #738296;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-activity-card__title {
  margin: 0 0 0.42rem;
  font-family: var(--gallery-font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.46;
  text-wrap: balance;
  color: #0f172a;
}

.gallery-activity-card__summary {
  margin: 0;
  color: #6b7a8d;
  line-height: 1.62;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-activity-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  color: #334e73;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.gallery-activity-card__link:hover {
  color: #214f94;
}

.gallery-activity-group__empty {
  padding: 1rem 1.05rem;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 0.9rem;
}

@media (max-width: 991.98px) {
  .gallery-activity-overview {
    grid-template-columns: 1fr;
  }

  .gallery-activity-overview--archives {
    grid-template-columns: 1fr;
  }

  .gallery-activity-overview__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-activity-archive-grid {
    grid-template-columns: 1fr;
  }

  .gallery-activity-group__head {
    flex-direction: column;
  }

  .gallery-activity-group__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .gallery-activity-overview__stats {
    grid-template-columns: 1fr;
  }

  .gallery-activity-group {
    padding: 1rem;
  }

  .gallery-activity-group__actions {
    align-items: stretch;
    width: 100%;
  }

  .gallery-activity-group__count,
  .gallery-activity-group__toggle {
    min-height: 2.2rem;
  }

  .gallery-activity-group__toggle {
    flex: 1 1 10rem;
    justify-content: center;
  }
}
