/*
Theme Name: Les Enfants du Cap-Vert Florange
Theme URI: https://les-enfants-du-cap-vert-florange.annephili75.chatgpt.site/
Author: Les Enfants du Cap-Vert Florange
Description: Theme vitrine one-page pour l'association Les Enfants du Cap-Vert Florange.
Version: 1.2.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: les-enfants-du-cap-vert
*/

:root {
  --navy: #061c3b;
  --blue: #114b9b;
  --red: #d21f2b;
  --gold: #ebb340;
  --paper: #fbf7ef;
  --cream: #f2eadb;
  --ink: #142033;
  --muted: #687383;
  --line: rgba(20, 32, 51, 0.14);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(6, 28, 59, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

main {
  overflow: hidden;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(128px, 1fr);
  align-items: center;
  gap: 22px;
  height: 82px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 19, 33, 0.7);
  backdrop-filter: blur(14px);
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
}

nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: inherit;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

nav a:hover::after,
nav a:focus-visible::after,
nav a[aria-current]::after {
  transform: scaleX(1);
}

.header-action {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  padding: 0 18px;
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease;
}

.header-action:hover,
.header-action:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.site-header.is-scrolled,
.site-header.is-solid {
  border-color: var(--line);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.97);
}

.site-header.is-scrolled .header-action,
.site-header.is-solid .header-action {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.site-header.is-scrolled .header-action:hover,
.site-header.is-scrolled .header-action:focus-visible,
.site-header.is-solid .header-action:hover,
.site-header.is-solid .header-action:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.site-nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 128px clamp(20px, 6vw, 86px) 150px;
  color: var(--white);
}

.hero-carousel,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-carousel {
  overflow: hidden;
  background: var(--navy);
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
}

.hero-slide figcaption {
  display: none;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 15, 35, 0.94) 0%, rgba(3, 15, 35, 0.78) 44%, rgba(3, 15, 35, 0.26) 100%),
    linear-gradient(180deg, rgba(3, 15, 35, 0.2), rgba(3, 15, 35, 0.82));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.hero-logo {
  width: clamp(104px, 16vw, 164px);
  height: clamp(104px, 16vw, 164px);
  border-radius: 0;
  object-fit: contain;
  opacity: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.36));
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 64%, rgba(0, 0, 0, 0.72) 78%, transparent 96%);
  mask-image: radial-gradient(ellipse at center, #000 0 64%, rgba(0, 0, 0, 0.72) 78%, transparent 96%);
  transform: translateY(14px) scale(0.96);
  animation:
    logoFadeIn 1.3s ease 0.3s forwards,
    logoFloat 7s ease-in-out 1.8s infinite;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-top: 34px;
  color: var(--gold);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 980px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(50px, 6.8vw, 94px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.button.primary {
  background: var(--red);
  color: var(--white);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  right: clamp(20px, 6vw, 86px);
  bottom: 148px;
  left: clamp(20px, 6vw, 86px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-caption {
  border-left: 2px solid var(--gold);
  padding-left: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.carousel-buttons,
.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dots {
  gap: 0;
}

.icon-button,
.carousel-dots button {
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  font-size: 24px;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.carousel-dots button {
  display: grid;
  width: 24px;
  height: 42px;
  place-items: center;
}

.carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.carousel-dots [aria-pressed="true"] span {
  width: 8px;
  height: 8px;
  background: var(--gold);
}

[data-paused="false"] .play-icon,
[data-paused="true"] .pause-icon {
  display: none;
}

.play-icon,
.pause-icon {
  font-size: 13px;
  line-height: 1;
}

.hero-strip {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 6vw, 86px);
  right: clamp(20px, 6vw, 86px);
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-strip div {
  min-height: 86px;
  padding: 18px 18px 8px 0;
}

.hero-strip strong,
.hero-strip span {
  display: block;
}

.hero-strip strong {
  color: var(--gold);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
}

.hero-strip span {
  max-width: 180px;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.section {
  padding: clamp(74px, 9vw, 128px) clamp(20px, 6vw, 86px);
}

.section-heading {
  width: min(850px, 100%);
  margin-bottom: 42px;
}

.section-heading.compact {
  width: min(720px, 100%);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.78fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: start;
}

.intro-copy {
  display: grid;
  gap: 20px;
}

.intro-copy p,
.project-copy p,
.contact-section p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.feature-image {
  margin: 0;
}

.feature-image img {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.feature-image figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.missions {
  background: var(--cream);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.mission-card {
  min-height: 270px;
  padding: 28px;
}

.mission-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.mission-card h3 {
  margin-top: 24px;
}

.mission-card p,
.event-card p,
.agenda-item p,
.track-card span,
.resource-link,
.partners span,
.footer p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.action-band {
  background: var(--paper);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.event-card {
  overflow: hidden;
}

.event-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.event-card div {
  padding: 22px;
}

.event-card span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.event-card h3 {
  margin-top: 8px;
  font-size: 21px;
}

.project-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  min-height: 760px;
  background: var(--navy);
  color: var(--white);
}

.project-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 8vw, 96px);
}

.project-copy h2 {
  color: var(--white);
}

.project-copy p {
  color: rgba(255, 255, 255, 0.74);
  margin-top: 24px;
}

.names {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.names span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--white);
  font-size: 13px;
  font-weight: 850;
}

.project-callout {
  margin-top: 34px;
  border-left: 4px solid var(--gold);
  padding: 4px 0 4px 22px;
}

.project-callout strong {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-callout p {
  margin-top: 10px;
}

.project-callout a {
  color: var(--white);
  font-weight: 900;
}

.agenda-section {
  background: var(--cream);
}

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.agenda-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 142px;
  border-top: 2px solid var(--navy);
  padding-top: 20px;
}

.agenda-item span {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(210, 31, 43, 0.11);
}

.agenda-item p {
  margin: 0;
  color: var(--ink);
  font-weight: 740;
}

.news-section {
  background:
    linear-gradient(135deg, rgba(239, 180, 52, 0.1), rgba(239, 180, 52, 0) 36%),
    #061b38;
  color: var(--white);
}

.news-section h2,
.news-section h3 {
  color: var(--white);
}

.news-section .eyebrow {
  color: var(--gold);
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(520px, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.news-layout.feed-only {
  grid-template-columns: minmax(0, 1040px);
  justify-content: center;
}

.instagram-feed {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--navy);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.instagram-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.instagram-avatar,
.instagram-story span {
  display: block;
  border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    #feda75,
    #fa7e1e,
    #d62976,
    #962fbf,
    #4f5bd5,
    #feda75
  );
}

.instagram-avatar {
  width: 62px;
  height: 62px;
  padding: 3px;
}

.instagram-avatar img,
.instagram-story img {
  display: block;
  width: 100%;
  height: 100%;
  border: 3px solid var(--white);
  border-radius: 50%;
  object-fit: cover;
}

.instagram-profile-text {
  min-width: 0;
}

.instagram-profile-text strong,
.instagram-profile-text span {
  display: block;
}

.instagram-profile-text strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instagram-profile-text span {
  margin-top: 5px;
  color: rgba(7, 31, 63, 0.62);
  font-size: 13px;
  font-weight: 760;
}

.instagram-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.instagram-follow {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.instagram-follow.facebook {
  background: #1877f2;
}

.instagram-stories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.instagram-story {
  display: grid;
  min-width: 0;
  gap: 8px;
  justify-items: center;
  color: rgba(7, 31, 63, 0.78);
  font-weight: 850;
}

.instagram-story span {
  width: 72px;
  height: 72px;
  padding: 3px;
}

.instagram-story small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 14px);
  padding: clamp(8px, 1.2vw, 14px);
  background: #fff;
}

.instagram-post {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream);
  color: var(--white);
}

.instagram-post img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.instagram-post-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(6, 28, 59, 0) 22%, rgba(6, 28, 59, 0.88) 100%);
}

.instagram-post-overlay small {
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.instagram-post-overlay strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.4vw, 21px);
  line-height: 1;
}

.instagram-post-overlay em {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.35;
}

.instagram-post:hover img {
  transform: scale(1.05);
}

.gallery-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(251, 247, 239, 0.94)),
    var(--paper);
}

.chronological-gallery {
  display: grid;
  gap: clamp(54px, 8vw, 108px);
}

.gallery-event {
  display: grid;
  gap: 24px;
}

.gallery-event-heading {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) auto;
  gap: clamp(16px, 4vw, 46px);
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.gallery-date {
  margin: 0;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 900;
  line-height: 0.9;
  white-space: nowrap;
}

.gallery-event-heading h3 {
  max-width: 780px;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4.2vw, 58px);
  line-height: 0.96;
}

.gallery-event-heading p:not(.gallery-date) {
  max-width: 680px;
  margin-top: 12px;
  color: rgba(20, 32, 51, 0.68);
  font-size: 15px;
  line-height: 1.55;
}

.gallery-count {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(6, 28, 59, 0.16);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.chronology-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: clamp(180px, 13vw, 238px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.3vw, 18px);
}

.timeline-photo {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 20px 50px rgba(6, 28, 59, 0.16);
  cursor: zoom-in;
}

.timeline-photo.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.timeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.photo-hover {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  background: rgba(6, 28, 59, 0.72);
  color: var(--white);
  font-size: 30px;
  font-weight: 300;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.timeline-photo:hover img {
  filter: brightness(0.86);
  transform: scale(1.04);
}

.timeline-photo:hover .photo-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.timeline-photo:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.lightbox-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(3, 12, 26, 0.92);
}

.lightbox-backdrop[hidden] {
  display: none;
}

.lightbox-frame {
  display: grid;
  max-width: min(1180px, 84vw);
  max-height: 88vh;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #071f3f;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
}

.lightbox-frame img {
  width: 100%;
  max-height: calc(88vh - 116px);
  object-fit: contain;
  background: #041226;
}

.lightbox-frame figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  padding: 18px 20px;
  color: var(--white);
}

.lightbox-frame figcaption span,
.lightbox-frame figcaption small {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-frame figcaption strong {
  min-width: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.lightbox-frame figcaption em {
  grid-column: 2 / 3;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  line-height: 1.4;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 28px;
}

.lightbox-nav {
  top: 50%;
  width: 54px;
  height: 54px;
  font-size: 42px;
  transform: translateY(-50%);
}

.lightbox-nav.previous {
  left: 24px;
}

.lightbox-nav.next {
  right: 24px;
}

.music-section {
  background: var(--navy);
}

.music-section h2 {
  color: var(--white);
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.track-card {
  padding: 24px;
  background: #092850;
  border-color: rgba(255, 255, 255, 0.12);
}

.track-card h3 {
  margin-top: 5px;
  color: var(--white);
}

.track-card span {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.track-card audio {
  width: 100%;
  margin: 22px 0 14px;
}

.track-card a {
  color: var(--white);
  font-size: 13px;
  font-weight: 850;
}

.documents-section {
  background: var(--paper);
}

.resource-columns {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 58px);
}

.resource-columns.press-only {
  grid-template-columns: minmax(0, 860px);
}

.resource-columns h3 {
  margin-bottom: 16px;
}

.resource-link {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 62px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  color: var(--ink);
  font-weight: 760;
}

.resource-link span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--cream);
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
}

.partners {
  padding: 42px clamp(20px, 6vw, 86px);
  background: var(--cream);
}

.partners div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.partners span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(30px, 6vw, 76px);
  padding: clamp(76px, 9vw, 128px) clamp(20px, 6vw, 86px);
  background: linear-gradient(120deg, #ffffff 0%, #f8efe0 58%, #e9f0f8 100%);
}

.contact-section h2 {
  max-width: 720px;
}

.contact-section p {
  max-width: 680px;
  margin-top: 22px;
}

address {
  display: grid;
  gap: 9px;
  align-content: start;
  min-height: 260px;
  border-radius: 8px;
  background: var(--navy);
  padding: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  box-shadow: var(--shadow);
}

address strong {
  color: var(--white);
  font-size: 22px;
}

address a {
  color: var(--gold);
  font-weight: 850;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 112px;
  padding: 24px clamp(20px, 6vw, 86px);
  background: #041226;
}

.footer img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.footer p {
  color: rgba(255, 255, 255, 0.62);
}

@keyframes heroFade {
  0%,
  30% {
    opacity: 1;
  }

  34%,
  100% {
    opacity: 0;
  }
}

@keyframes heroZoom {
  0% {
    transform: scale(1.06);
  }

  33% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1.12);
  }
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-action {
    grid-column: 2;
  }

  nav {
    display: none;
  }

  .mission-grid,
  .event-grid,
  .news-layout,
  .agenda-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-section,
  .resource-columns,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .chronology-grid {
    grid-auto-rows: clamp(168px, 20vw, 230px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-media img {
    max-height: 560px;
  }
}

@media (max-width: 900px) {
  .gallery-event-heading {
    grid-template-columns: 1fr auto;
  }

  .gallery-date {
    grid-column: 1 / -1;
  }

  .chronology-grid {
    grid-auto-rows: clamp(170px, 30vw, 240px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-photo.featured {
    grid-column: span 2;
  }

  .lightbox-frame {
    max-width: calc(100vw - 32px);
  }

  .lightbox-nav {
    top: auto;
    bottom: 22px;
    transform: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 72px;
    padding-inline: 16px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 720px;
    padding: 112px 18px 170px;
  }

  .hero-slide figcaption {
    display: none;
  }

  .hero-controls {
    right: 18px;
    bottom: 166px;
    left: 18px;
    justify-content: flex-end;
  }

  .hero-caption {
    display: none;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .carousel-dots button {
    width: 18px;
    height: 38px;
  }

  .hero-strip {
    left: 18px;
    right: 18px;
    bottom: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-strip div {
    min-height: 68px;
  }

  .hero-strip strong {
    font-size: 30px;
  }

  .hero-strip span {
    font-size: 10px;
  }

  .section {
    padding-inline: 18px;
  }

  .intro-grid,
  .mission-grid,
  .event-grid,
  .news-layout,
  .agenda-grid,
  .track-grid {
    grid-template-columns: 1fr;
  }

  .instagram-profile {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .instagram-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .instagram-stories {
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    overflow-x: auto;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instagram-post-overlay em {
    display: none;
  }

  .mission-card {
    min-height: auto;
  }

  .chronological-gallery {
    gap: 58px;
  }

  .gallery-event-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .gallery-count {
    width: fit-content;
  }

  .chronology-grid {
    grid-auto-rows: clamp(158px, 48vw, 220px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-photo.featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  .timeline-photo.featured {
    grid-column: span 2;
  }

  .lightbox-backdrop {
    padding: 14px;
  }

  .lightbox-frame {
    max-width: calc(100vw - 28px);
    max-height: 86vh;
  }

  .lightbox-frame img {
    max-height: calc(86vh - 150px);
  }

  .lightbox-frame figcaption {
    grid-template-columns: 1fr auto;
    padding: 14px;
  }

  .lightbox-frame figcaption strong {
    grid-column: 1 / -1;
  }

  .lightbox-frame figcaption em {
    grid-column: 1 / -1;
    font-size: 13px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .lightbox-nav {
    width: 46px;
    height: 46px;
    font-size: 34px;
  }

  .project-copy {
    padding: 54px 20px;
  }

  .contact-section {
    padding-inline: 18px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .chronology-grid {
    grid-auto-rows: clamp(210px, 70vw, 300px);
    grid-template-columns: 1fr;
  }

  .timeline-photo.featured {
    grid-column: span 1;
  }
}

@media (hover: none) {
  .photo-hover {
    display: none;
  }

  .timeline-photo:hover img {
    filter: none;
    transform: none;
  }
}

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

  .hero-slide,
  .hero-slide img,
  .hero-logo,
  .timeline-photo img,
  .photo-hover,
  .instagram-post img {
    animation: none;
    transition: none;
  }

  .hero-slide:first-child {
    opacity: 1;
  }

  .hero-logo {
    opacity: 1;
    transform: none;
  }
}


.admin-bar .site-header {
  top: 32px;
}

.edcv-social-section,
.edcv-video-section {
  background: var(--paper);
}

.edcv-social-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.edcv-instagram-grid,
.edcv-youtube-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.edcv-instagram-card {
  overflow: hidden;
  border: 1px solid rgba(235, 179, 64, 0.35);
  border-radius: 6px;
  background: var(--navy);
  box-shadow: 0 18px 44px rgba(6, 28, 59, 0.14);
}

.edcv-instagram-card a {
  display: block;
  color: var(--white);
}

.edcv-instagram-photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-top: 6px solid var(--red);
  background: var(--white);
}

.edcv-instagram-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.edcv-instagram-card:hover img {
  transform: scale(1.04);
}

.edcv-instagram-photo > span {
  position: absolute;
  top: 16px;
  right: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(6, 28, 59, 0.65);
}

.edcv-instagram-copy {
  display: grid;
  min-height: 188px;
  padding: 22px;
  border-bottom: 6px solid var(--gold);
}

.edcv-instagram-copy small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.edcv-instagram-copy > span {
  display: -webkit-box;
  min-height: 62px;
  margin-top: 12px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.edcv-instagram-copy strong {
  align-self: end;
  margin-top: 16px;
  font-family: Georgia, serif;
  font-size: 20px;
}

.edcv-youtube-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.edcv-youtube-card button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--navy);
  cursor: pointer;
}

.edcv-youtube-card button img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.edcv-youtube-card button span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  transform: translate(-50%, -50%);
}

.edcv-youtube-card > div {
  padding: 20px;
}

.edcv-youtube-card small,
.edcv-youtube-card a {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.edcv-youtube-card h3 {
  margin: 8px 0 18px;
  font-family: Georgia, serif;
  font-size: 22px;
}

.edcv-section-action {
  width: fit-content;
  margin: 34px auto 0;
}

.edcv-page-hero {
  min-height: 650px;
  padding: 170px clamp(22px, 6vw, 90px) 90px;
  background: var(--navy);
  color: var(--white);
}

.edcv-page-hero h1 {
  max-width: 800px;
  margin: 20px 0;
  font-family: Georgia, serif;
  font-size: clamp(58px, 8vw, 112px);
  line-height: 0.95;
}

.edcv-page-hero > p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.7;
}

.edcv-page-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.edcv-feed-fallback {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
}

.edcv-video-modal[hidden] {
  display: none;
}

.edcv-video-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(3, 15, 35, 0.92);
}

.edcv-video-frame {
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
}

.edcv-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.edcv-video-close {
  position: fixed;
  top: 24px;
  right: 28px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 48px;
  cursor: pointer;
}

.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .edcv-instagram-grid,
  .edcv-youtube-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .edcv-instagram-grid,
  .edcv-youtube-grid {
    grid-template-columns: 1fr;
  }

  .edcv-social-heading,
  .edcv-page-account {
    align-items: flex-start;
    flex-direction: column;
  }

  .edcv-page-hero {
    min-height: auto;
    padding: 120px 20px 64px;
  }

  .edcv-page-hero h1 {
    font-size: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edcv-instagram-photo img {
    transition: none;
  }

  .edcv-instagram-card:hover img {
    transform: none;
  }
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 72px;
    padding-inline: 16px;
  }

  .site-nav-toggle {
    grid-column: 2;
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    border: 1px solid currentColor;
    border-radius: 6px;
    color: inherit;
    background: transparent;
    cursor: pointer;
  }

  .site-nav-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 200ms ease, opacity 200ms ease;
  }

  .site-header.menu-open .site-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.menu-open .site-nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .site-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header nav {
    position: absolute;
    grid-column: 1 / -1;
    top: 72px;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    display: none;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 18px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
  }

  .site-header.menu-open nav {
    display: flex;
  }

  .site-header nav a {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    white-space: normal;
  }

  .site-header .header-action {
    display: none;
  }
}
