@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── CSS variables (light mode) ───────────────────────────────────── */
:root {
    --bg: #eeece8;
    --ink: #111110;
    --ink-muted: rgba(17, 17, 16, 0.62);
    --ink-light: #f0eee9;
    --text: #111110;
    --text-muted: rgba(17, 17, 16, 0.62);
    --card-bg: rgba(17, 17, 16, 0.04);
    --footer-bg: rgba(238, 236, 232, 0.7);
    --border: rgba(17, 17, 16, 0.12);
    --rule: rgba(17, 17, 16, 0.12);
    --tag-bg: rgba(255, 255, 255, 0.7);
    --header-bg: rgba(238, 236, 232, 0.88);
    --nav-active-bg: #fff;
    --nav-inactive: rgba(17, 17, 16, 0.45);
    --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    --serif: 'DM Serif Display', Georgia, serif;
}

/* ── Dark mode overrides ──────────────────────────────────────────── */
body.dark-mode {
    --bg: #111110;
    --ink: #111110;
    --ink-muted: rgba(240, 238, 233, 0.65);
    --text: #f0eee9;
    --text-muted: rgba(240, 238, 233, 0.65);
    --card-bg: rgba(255, 255, 255, 0.04);
    --footer-bg: rgba(17, 17, 16, 0.75);
    --border: rgba(255, 255, 255, 0.1);
    --rule: rgba(255, 255, 255, 0.1);
    --tag-bg: rgba(60, 60, 60, 0.7);
    --header-bg: rgba(17, 17, 16, 0.88);
    --nav-active-bg: #333;
    --nav-inactive: rgba(240, 238, 233, 0.45);
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ───────────────────────────────────────────────────────── */
header {
    font-family: var(--sans);
    position: fixed;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 40px;
    background: var(--header-bg);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, border-color 0.3s;
}

.logo {
    position: absolute;
    left: 40px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo video {
    width: 140%;
    height: 140%;
    object-fit: cover;
}

/* ── Nav icons ────────────────────────────────────────────────────── */
.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    position: absolute;
    right: 40px;
}

.nav-icons span {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    position: relative;
}

.nav-icons span:hover {
    transform: scale(1.2);
    opacity: 0.7;
}

#modeToggle {
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s;
    width: auto;
    height: auto;
    color: var(--text);
}

#modeToggle::before {
    content: '☼';
    -webkit-text-stroke: 1px var(--text);
}

#modeToggle:hover { transform: scale(1.15); }

body.dark-mode #modeToggle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid #aaa;
    overflow: hidden;
}

body.dark-mode #modeToggle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #aaa;
    background: var(--bg);
}

/* ── Main content ─────────────────────────────────────────────────── */
main {
    padding: 22px 22px 0;
}

/* ── Archive header ───────────────────────────────────────────────── */
.archive-header {
    text-align: center;
    margin-bottom: 60px;
}

.archive-title {
    font-family: var(--serif);
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    color: var(--text);
}

.archive-description {
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-muted);
}

.archive-description em {
    font-style: italic;
    opacity: 0.8;
}

  
  /* ── Side navigation ─────────────────────────────────────────── */
  .side-nav {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 999;
    align-items: flex-end;
  }
  
  .side-nav-link {
    color: var(--nav-inactive);
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding: 5px 12px 5px 0;
    text-align: right;
    display: block;
    white-space: nowrap;
    border-right: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s, font-weight 0.2s;
  }
  
  .side-nav-link:hover {
    color: var(--text);
    border-right-color: rgba(17,17,16,0.3);
  }
  
  .side-nav-link.active {
    color: var(--text);
    font-weight: 700;
    border-right-color: var(--text);
  }
  
  body.dark-mode .side-nav-link:hover {
    border-right-color: rgba(240,238,233,0.3);
  }
  
  /* ── Main gallery area ───────────────────────────────────────── */
  .gallery {
    padding-right: 160px;   /* breathing room from side-nav */
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  /* ── Gallery section ──────────────────────────────────────────── */
  .gallery-section {
    margin-bottom: 52px;
    /* filter animation */
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  
  .gallery-section.hidden {
    display: none;
  }
  
  /* Section label */
  .section-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.6;
  }
  
  /* ── Gallery rows ─────────────────────────────────────────────── */
  .gallery-row {
    display: flex;
    gap: 14px;
    width: 100%;
    margin-bottom: 14px;
    /* Fade in on scroll */
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  }
  
  .gallery-row.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Horizontal row — wider than tall */
  .horizontal-row {
    height: 340px;
  }
  
  /* Vertical row — taller than wide */
  .vertical-row {
    height: 460px;
  }
  
  /* ── Gallery items ────────────────────────────────────────────── */
  .gallery-item {
    flex: 1;
    height: 100%;
    overflow: hidden;
    cursor: zoom-in;
    border-radius: 16px;
    background: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
  }
  
  .gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 48px rgba(0,0,0,0.14);
    z-index: 2;
  }
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  .spacer {
    height: 6rem;
  }
  /* ── Lightbox ─────────────────────────────────────────────────── */
  .lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    padding: 16px;
    animation: fadeIn 0.25s ease;
  }
  
  .lightbox.active {
    display: flex;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  
  .lightbox-content {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    animation: lb-in 0.28s cubic-bezier(.22,.68,0,1.2);
  }
  
  @keyframes lb-in {
    from { opacity: 0; transform: scale(0.93) translateY(16px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
  }
  
  .lightbox-content img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    display: block;
  }
  
  /* Close button */
  .lightbox-close {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2001;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.15s;
    padding: 0;
    color: #d0d0d0;
  }
  
  .lightbox-close:hover { opacity: 0.55; }
  
  .lightbox-close svg {
    width: 36px;
    height: 36px;
  }
  
  /* Arrow buttons */
  .lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2002;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(20,20,20,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
    transition: opacity 0.15s, background 0.15s, transform 0.15s;
    padding: 0;
  }
  
  .lightbox-arrow:hover {
    opacity: 1;
    background: rgba(20,20,20,0.8);
    transform: translateY(-50%) scale(1.07);
  }
  
  .lightbox-prev { left: 24px; }
  .lightbox-next { right: 24px; }
  
  .lightbox-arrow svg {
    width: 22px;
    height: 22px;
  }
  
  /* Hide arrows when only one image visible */
  .lightbox-arrow.hidden { display: none; }

  /* ══════════════════════════════════════════════════════════════
   SPOTLIGHT SECTION  —  archive.css addition
   ══════════════════════════════════════════════════════════════ */

/* ── Section wrapper ─────────────────────────────────────────── */
.spotlight-section {
  margin-bottom: 64px;
}

/* ── Grid layout ─────────────────────────────────────────────── */
.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 500px;
  gap: 14px;
  opacity: 1;
  transform: none;
}

.spotlight-grid.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Individual card ─────────────────────────────────────────── */
.spotlight-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: default;
  background: var(--card-bg);
  transition: transform 0.28s cubic-bezier(.22,.68,0,1.1),
              box-shadow 0.28s ease;
}

.spotlight-card:hover {
  transform: scale(1.015) translateY(-3px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.16);
  z-index: 2;
}

/* ── Media area ──────────────────────────────────────────────── */
.spotlight-card__media {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.spotlight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(.22,.68,0,1.1);
}

.spotlight-card:hover .spotlight-card__media img {
  transform: scale(1.06);
}

/* Gradient overlay so text reads cleanly */
.spotlight-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.82) 0%,
    rgba(10,10,10,0.28) 42%,
    transparent 100%
  );
  pointer-events: none;
}

/* ── Text body (sits over image via absolute positioning) ─────── */
.spotlight-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ── Award badge ─────────────────────────────────────────────── */
.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6bcbe3;
  background: rgba(59, 184, 195, 0.14);
  border: 1px solid rgba(107, 203, 227, 0.3);
  border-radius: 100px;
  padding: 4px 10px 4px 8px;
  width: fit-content;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.spotlight-badge svg {
  flex-shrink: 0;
  color: #6bcbe3;
}

/* ── Title ───────────────────────────────────────────────────── */
.spotlight-card__title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #f5f3ef;
  line-height: 1.2;
  margin: 0;
}

.spotlight-card--wide .spotlight-card__title {
  font-size: 1.8rem;
}

/* ── Description ─────────────────────────────────────────────── */
.spotlight-card__desc {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(240, 238, 233, 0.78);
  max-width: 48ch;
  margin: 0;
}

/* ── Meta tag ────────────────────────────────────────────────── */
.spotlight-card__meta {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(240, 238, 233, 0.45);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Dark mode tweaks ────────────────────────────────────────── */
body.dark-mode .spotlight-card {
  background: rgba(255,255,255,0.03);
}

/* ── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(17,17,16,0.2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(17,17,16,0.35); }
body.dark-mode ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }
body.dark-mode ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
* { scrollbar-width: thin; scrollbar-color: rgba(17,17,16,0.2) transparent; }
body.dark-mode * { scrollbar-color: rgba(255,255,255,0.15) transparent; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .side-nav { display: none; }
  .gallery { padding-right: 22px; }

  header { padding: 14px 22px; }
  .logo { left: 22px; }
  .nav-icons { right: 22px; }

  .spotlight-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 380px;
  }
}

@media (max-width: 768px) {
  main {
    margin-top: 80px;
    padding: 16px 16px 0;
  }

  .archive-header { margin-bottom: 36px; }

  .archive-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
  }

  .archive-description { font-size: 0.95rem; }

  .gallery-section { margin-bottom: 36px; }

  .horizontal-row,
  .vertical-row {
    flex-direction: column;
    height: auto;
    gap: 10px;
  }

  .horizontal-row .gallery-item { height: 220px; flex: none; }
  .vertical-row .gallery-item   { height: 300px; flex: none; }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .spotlight-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
  }

  .spotlight-card { height: 340px; }
  .spotlight-card__title { font-size: 1.35rem; }
  .spotlight-card--wide .spotlight-card__title { font-size: 1.35rem; }
}

@media (max-width: 480px) {
  main { padding: 12px 12px 0; }

  .archive-title { font-size: 2rem; }
  .archive-description { font-size: 0.9rem; }
  .archive-header { margin-bottom: 28px; }

  .gallery { padding: 0 12px; }
  .gallery-section { margin-bottom: 28px; }
  .gallery-row { gap: 10px; margin-bottom: 10px; }

  .horizontal-row .gallery-item { height: 180px; }
  .vertical-row .gallery-item   { height: 240px; }

  .spotlight-card { height: 280px; }
  .spotlight-card__title { font-size: 1.2rem; }
  .spotlight-card--wide .spotlight-card__title { font-size: 1.2rem; }

  .spacer { height: 64px; }
}