/* ═══════════════════════════════════════════
   THE LUNG BLOCK — Site Styles
   Aesthetic: Archival Editorial / Museum Catalog
   ═══════════════════════════════════════════ */

:root {
  /* Palette */
  --bg:          #111111;
  --bg-elevated: #1a1917;
  --bg-card:     #1f1e1b;
  --cream:       #e8e0d0;
  --cream-dim:   #b5a998;
  --cream-faint: #8a7e70;
  --teal:        #4a9bb5;
  --teal-dim:    #3a7d93;
  --sepia:       #c4a26e;
  --sepia-dim:   #8a7350;
  --red-muted:   #a04040;
  --white:       #f5f0e8;

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Cormorant Garamond', 'Garamond', serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Layout */
  --container: 1200px;
  --gap: clamp(1.5rem, 4vw, 4rem);
  --section-pad: clamp(4rem, 10vw, 10rem);
}

/* ── Light Theme: Aged Parchment ──────────── */
[data-theme="light"] {
  --bg:          #f0ebe1;
  --bg-elevated: #e6dfd3;
  --bg-card:     #ddd6c8;
  --cream:       #2c2520;
  --cream-dim:   #5a4f44;
  --cream-faint: #75695c;
  --teal:        #2e7d93;
  --teal-dim:    #256878;
  --sepia:       #8a6530;
  --sepia-dim:   #6b4e24;
  --red-muted:   #8a3030;
  --white:       #1a1511;
}

/* ── Theme Toggle ─────────────────────────── */
.theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(200, 180, 150, 0.15);
  background: var(--bg-elevated);
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.theme-toggle:hover {
  border-color: var(--teal);
  transform: scale(1.08);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: opacity 0.3s, transform 0.4s;
}
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }
[data-theme="light"] .theme-toggle__sun { display: block; }
[data-theme="light"] .theme-toggle__moon { display: none; }

/* ── Light theme-specific overrides ───────── */
[data-theme="light"] .grain { opacity: 0.02; }

[data-theme="light"] .nav--scrolled {
  background: rgba(240, 235, 225, 0.92);
  border-bottom-color: rgba(100, 80, 60, 0.1);
}

[data-theme="light"] .nav__logo-img {
  filter: none;
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .nav__toggle span {
  background: var(--cream);
}

[data-theme="light"] .hero__image {
  filter: sepia(0.08) contrast(1.1) brightness(1.05);
}

[data-theme="light"] .hero__image-overlay {
  background:
    linear-gradient(to top,
      rgba(240,235,225,1) 0%,
      rgba(240,235,225,0.9) 25%,
      rgba(240,235,225,0.4) 50%,
      rgba(240,235,225,0.2) 70%,
      rgba(240,235,225,0.35) 100%
    );
}

[data-theme="light"] .hero__title {
  color: #1a1511;
  text-shadow: 0 0 20px rgba(240,235,225,0.8), 0 0 60px rgba(240,235,225,0.6);
}

[data-theme="light"] .hero__kicker {
  color: #1a4e5e;
  text-shadow: 0 0 12px rgba(240,235,225,0.8), 0 0 30px rgba(240,235,225,0.6);
  background: rgba(240, 235, 225, 0.7);
  padding: 2px 8px;
  border-radius: 2px;
  display: inline-block;
}

[data-theme="light"] .hero__subtitle {
  color: #2c2520;
  text-shadow: 0 0 15px rgba(240,235,225,0.9), 0 0 40px rgba(240,235,225,0.7);
}

[data-theme="light"] .curator {
  background: var(--bg-elevated);
  border-color: rgba(100, 80, 60, 0.1);
  border-top-color: var(--teal);
}

[data-theme="light"] .themes-list li {
  background: rgba(100, 80, 60, 0.04);
}

[data-theme="light"] .themes-list li:hover {
  background: rgba(100, 80, 60, 0.07);
}

[data-theme="light"] .exhibition__figure img {
  border-color: rgba(100, 80, 60, 0.15);
}

[data-theme="light"] .press__item {
  border-bottom-color: rgba(100, 80, 60, 0.1);
}
[data-theme="light"] .press__item:first-child {
  border-top-color: rgba(100, 80, 60, 0.1);
}

[data-theme="light"] .press__link:hover {
  background: rgba(100, 80, 60, 0.04);
}

[data-theme="light"] .de-card {
  border-color: rgba(100, 80, 60, 0.1);
  border-left-color: var(--teal);
}

[data-theme="light"] .de-card:hover {
  background: rgba(46, 125, 147, 0.06);
}

[data-theme="light"] .embed-wrap {
  border-color: rgba(100, 80, 60, 0.12);
}

[data-theme="light"] .footer {
  border-top-color: rgba(100, 80, 60, 0.1);
}

[data-theme="light"] .partners__list li {
  border-bottom-color: rgba(100, 80, 60, 0.08);
}

[data-theme="light"] .lightbox__close:hover { color: var(--teal); }

[data-theme="light"] .theme-toggle {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

[data-theme="light"] .section--digital,
[data-theme="light"] .section--explore,
[data-theme="light"] .section--partners {
  background: var(--bg-elevated);
}

[data-theme="light"] .section--exhibition,
[data-theme="light"] .section--documentary,
[data-theme="light"] .section--curators,
[data-theme="light"] .section--press {
  background: var(--bg);
}

[data-theme="light"] ::selection {
  background: var(--teal);
  color: #f0ebe1;
}

[data-theme="light"] .nav__links a:hover,
[data-theme="light"] .nav__links a.active {
  color: var(--white);
}

[data-theme="light"] .nav--open .nav__links {
  background: rgba(240, 235, 225, 0.97);
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--sepia); }

/* Global focus indicator */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10001;
  padding: 0.8rem 1.5rem;
  background: var(--teal);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  color: var(--bg);
}

::selection {
  background: var(--teal);
  color: var(--bg);
}

/* ── Grain Overlay ────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* ── Container ────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ── Navigation ───────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--gap);
  transition: background 0.5s, backdrop-filter 0.5s, padding 0.4s;
}

.nav--scrolled {
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem var(--gap);
  border-bottom: 1px solid rgba(200, 180, 150, 0.08);
}

.nav__logo-img {
  height: 40px;
  width: auto;
  filter: brightness(1.3);
  transition: opacity 0.3s;
  opacity: 0;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 6px;
  border-radius: 3px;
}
.nav--scrolled .nav__logo-img { opacity: 1; }
.nav__logo:hover .nav__logo-img { opacity: 0.8; }
.nav--scrolled .nav__logo:hover .nav__logo-img { opacity: 0.8; }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  position: relative;
  padding-bottom: 2px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--cream);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__image-wrap {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  filter: sepia(0.15) contrast(1.05);
}

.hero__image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(17,17,17,1) 0%,
      rgba(17,17,17,0.92) 25%,
      rgba(17,17,17,0.6) 50%,
      rgba(17,17,17,0.4) 70%,
      rgba(17,17,17,0.55) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gap) clamp(3rem, 8vw, 6rem);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero__kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
  animation: fadeUp 1s 0.2s both;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  text-shadow: 0 2px 30px rgba(0,0,0,0.7), 0 0 80px rgba(0,0,0,0.4);
  font-weight: 900;
  line-height: 0.88;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp 1s 0.4s both;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.5;
  animation: fadeUp 1s 0.6s both;
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
}

.hero__line {
  width: 60px;
  height: 1px;
  background: var(--teal);
  margin: 2.5rem 0;
  animation: fadeUp 1s 0.8s both;
}

.hero__scroll {
  display: inline-flex;
  color: var(--cream-dim);
  animation: fadeUp 1s 1s both, float 3s 2s ease-in-out infinite;
}
.hero__scroll:hover { color: var(--teal); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ── Sections ─────────────────────────────── */
.section {
  position: relative;
  padding: var(--section-pad) 0;
}

.section--exhibition { background: var(--bg); }
.section--digital    { background: var(--bg-elevated); }
.section--documentary { background: var(--bg); }
.section--explore    { background: var(--bg-elevated); }
.section--curators   { background: var(--bg); }
.section--partners   { background: var(--bg-elevated); }
.section--press      { background: var(--bg); }

.section__marker {
  position: absolute;
  top: var(--section-pad);
  right: var(--gap);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cream-faint);
  letter-spacing: 0.15em;
  opacity: 0.5;
}

.section__header {
  margin-bottom: clamp(2rem, 5vw, 4rem);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.section__header.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.section__rule {
  width: 50px;
  height: 2px;
  background: var(--teal);
  margin-top: 1rem;
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-top: 0.8rem;
}

.section__intro {
  font-size: 1.2rem;
  color: var(--cream-dim);
  max-width: 700px;
  margin-bottom: 2rem;
}

/* Scroll reveal base */
.exhibition__text,
.exhibition__sidebar,
.exhibition__themes,
.curator,
.partners__col,
.press__item,
.embed-wrap {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* stagger */
.press__item:nth-child(1) { transition-delay: 0s; }
.press__item:nth-child(2) { transition-delay: 0.05s; }
.press__item:nth-child(3) { transition-delay: 0.1s; }
.press__item:nth-child(4) { transition-delay: 0.15s; }
.press__item:nth-child(5) { transition-delay: 0.2s; }
.press__item:nth-child(6) { transition-delay: 0.25s; }
.press__item:nth-child(7) { transition-delay: 0.3s; }
.press__item:nth-child(8) { transition-delay: 0.35s; }
.press__item:nth-child(9) { transition-delay: 0.4s; }

/* ── Exhibition ───────────────────────────── */
.exhibition__grid {
  display: grid;
  grid-template-columns: 1fr 0.45fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.exhibition__text p {
  margin-bottom: 1.3em;
}

.lead {
  font-size: 1.2em;
  font-weight: 500;
  color: var(--white);
  line-height: 1.6;
}

.exhibition__figure img {
  width: 100%;
  filter: sepia(0.1) contrast(1.05);
  border: 1px solid rgba(200, 180, 150, 0.1);
}

.exhibition__figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cream-faint);
  margin-top: 0.8rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.exhibition__themes {
  border-top: 1px solid rgba(200, 180, 150, 0.1);
  padding-top: clamp(2rem, 4vw, 4rem);
  max-width: 900px;
}

.exhibition__themes h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.2em;
}

.exhibition__themes > p {
  margin-bottom: 1.3em;
}

.themes-list {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.themes-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(200, 180, 150, 0.03);
  border-left: 2px solid var(--teal);
  transition: background 0.3s;
}

.themes-list li:hover {
  background: rgba(200, 180, 150, 0.06);
}

.themes-list__marker {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  background: var(--teal);
  border-radius: 50%;
  display: none;
}

/* ── Embeds ───────────────────────────────── */
.embed-wrap {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(200, 180, 150, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.embed-wrap iframe {
  width: 100%;
  border: none;
}

.embed-wrap--storymap {
  aspect-ratio: 16/10;
}
.embed-wrap--storymap iframe {
  height: 100%;
  position: absolute;
  inset: 0;
}

.embed-wrap--video {
  aspect-ratio: 16/9;
}
.embed-wrap--video iframe {
  height: 100%;
  position: absolute;
  inset: 0;
}

.embed-wrap--3d {
  aspect-ratio: 16/10;
}
.embed-wrap--3d iframe {
  height: 100%;
  position: absolute;
  inset: 0;
}

/* ── Curators ─────────────────────────────── */
.curators__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.curator {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg-elevated);
  border: 1px solid rgba(200, 180, 150, 0.06);
  border-top: 2px solid var(--teal);
}

.curator__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.curator p {
  margin-bottom: 1em;
  font-size: 0.95rem;
}

.curator__email {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--teal);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.curator__email:hover {
  border-color: var(--teal);
}

/* ── Partners ─────────────────────────────── */
.partners__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.partners__col h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.partners__col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.partners__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.partners__list li {
  font-size: 0.95rem;
  line-height: 1.5;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(200, 180, 150, 0.06);
}

.partners__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.partners__list--orgs li {
  padding-bottom: 0.8rem;
}

.partners__list--orgs a {
  font-style: italic;
}

/* ── Press ─────────────────────────────────── */
.press__list {
  list-style: none;
}

.press__item {
  border-bottom: 1px solid rgba(200, 180, 150, 0.06);
}
.press__item:first-child {
  border-top: 1px solid rgba(200, 180, 150, 0.06);
}

.press__link {
  display: grid;
  grid-template-columns: 160px 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.3rem 0;
  color: var(--cream);
  transition: background 0.3s, padding-left 0.3s;
}

.press__link:hover {
  color: var(--white);
  padding-left: 1rem;
  background: rgba(200, 180, 150, 0.02);
}

.press__source {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.press__headline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
}

.press__date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cream-faint);
  white-space: nowrap;
}

.press__arrow {
  font-size: 1.2rem;
  color: var(--cream-faint);
  transition: color 0.3s, transform 0.3s;
}
.press__link:hover .press__arrow {
  color: var(--teal);
  transform: translateX(4px);
}

/* ── Digital Exhibition Card ──────────────── */
.de-card {
  display: block;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--bg-card);
  border: 1px solid rgba(200, 180, 150, 0.08);
  border-left: 3px solid var(--teal);
  text-decoration: none;
  color: var(--cream);
  transition: background 0.4s, border-color 0.4s, transform 0.3s;
}
.de-card:hover {
  background: rgba(74, 155, 181, 0.06);
  border-color: var(--teal);
  transform: translateX(4px);
  color: var(--white);
}

.de-card__desc {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.de-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  transition: gap 0.3s;
}
.de-card:hover .de-card__cta { gap: 1rem; }

/* ── Lightbox ─────────────────────────────── */
.lightbox-trigger {
  position: relative;
  display: block;
  cursor: zoom-in;
}

.zoom-hint {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(0,0,0,0.6);
  color: var(--cream);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox-trigger:hover .zoom-hint { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.lightbox--open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
  z-index: 2;
}
.lightbox__close:hover { color: var(--teal); }

.lightbox__content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid rgba(200, 180, 150, 0.1);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s 0.1s, transform 0.4s 0.1s;
}
.lightbox--open .lightbox__img {
  opacity: 1;
  transform: scale(1);
}

.lightbox__caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  margin-top: 1rem;
  text-align: center;
}

/* ── Footer ───────────────────────────────── */
.footer {
  background: var(--bg);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  border-top: 1px solid rgba(200, 180, 150, 0.06);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer__logo {
  height: 70px;
  width: auto;
  filter: brightness(1.1);
  margin-bottom: 0.8rem;
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--cream-faint);
  line-height: 1.6;
}

.footer__credits {
  text-align: right;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.footer__institutions {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--cream-faint);
  margin-top: 0.5rem;
}

.footer__institutions a {
  color: var(--cream-faint);
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.footer__institutions a:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.footer__copyright {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--cream-faint);
  letter-spacing: 0.1em;
  margin-top: 0.8rem;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
  .exhibition__grid {
    grid-template-columns: 1fr;
  }

  .curators__grid,
  .partners__columns {
    grid-template-columns: 1fr;
  }

  .press__link {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .press__arrow { display: none; }

  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(17, 17, 17, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem var(--gap) 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(200, 180, 150, 0.08);
  }

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

  .nav__toggle {
    display: flex;
  }

  .nav--open .nav__toggle span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  .nav--open .nav__toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav--open .nav__toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__credits {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .hero__title {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .section__marker {
    display: none;
  }
}
