/* ================================================
   Sylvia Schuster Foundation
   ================================================ */

/* --- Custom Properties --- */
:root {
  --color-bg: #faf8f5;
  --color-bg-alt: #f0ece6;
  --color-text: #1c1917;
  --color-text-secondary: #57534e;
  --color-text-tertiary: #a8a29e;
  --color-border: #d6d3d1;
  --color-border-light: #e7e5e4;
  --color-overlay: rgba(12, 10, 9, 0.92);

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1200px;
  --max-width-narrow: 780px;
  --nav-height: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-fast: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* --- Base --- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #d6d3d1;
  color: #1c1917;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; }
h4 { font-size: 1.125rem; font-weight: 500; }

.display-text {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.subtitle {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.body-large {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: 5rem 0;
}

.section--large {
  padding: 7rem 0;
}

.text-center { text-align: center; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  bottom: 1.75rem;
  right: 2.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background var(--transition-fast), transform var(--transition-fast);
  padding: 0;
}

.hero-dot.active {
  background: rgba(255, 255, 255, 0.92);
  transform: scale(1.35);
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem 3rem 3rem;
  background: linear-gradient(to top, rgba(12, 10, 9, 0.55) 0%, transparent 100%);
}

.hero-overlay h1 {
  color: #fff;
  font-weight: 300;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  animation: hero-text-in 0.9s var(--ease-out) 0.3s both;
}

.hero-overlay .subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
  animation: hero-text-in 0.7s var(--ease-out) 0.55s both;
}

/* --- Page Hero (smaller, for inner pages) --- */
.page-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 350px;
  max-height: 600px;
  overflow: hidden;
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem;
  background: linear-gradient(to top, rgba(12, 10, 9, 0.5) 0%, transparent 100%);
}

.page-hero-overlay h1 {
  color: #fff;
  font-weight: 300;
  animation: hero-text-in 0.8s var(--ease-out) 0.2s both;
}

/* --- Page Header (text only, for pages without hero image) --- */
.page-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--color-border-light);
}

.page-header h1 {
  font-weight: 300;
}

.page-header .subtitle {
  margin-top: 0.75rem;
}

/* --- Home: Vision --- */
.vision {
  padding: 5rem 0;
  background: var(--color-bg-alt);
}

.vision .container {
  display: grid;
  grid-template-columns: 140px 1fr;
  column-gap: 4rem;
  align-items: start;
  max-width: 920px;
}

.vision-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 0;
  padding-top: 0.4rem;
}

.vision-text p {
  font-size: 1.0625rem;
  line-height: 1.875;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.vision-text p:last-child {
  margin-bottom: 0;
}

/* --- Video Facade --- */
.video-section {
  padding: 3.5rem 0 4rem;
  border-top: 1px solid var(--color-border-light);
}

.video-section .container {
  max-width: 920px;
}

.video-section-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 1.25rem;
}

.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-text);
  cursor: pointer;
  overflow: hidden;
  display: block;
}

.video-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition);
}

.video-facade:hover img {
  opacity: 0.88;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(250, 248, 245, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: transform var(--transition-fast), background var(--transition-fast);
  pointer-events: none;
}

.video-facade:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--color-bg);
}

.video-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* On exhibit page — inset within the article column */
.exhibit-video {
  margin: 3rem 0;
}

/* --- Home: Featured Works --- */
.featured-works {
  padding: 4rem 0 6rem;
}

.featured-works-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.featured-works h2 {
  margin-bottom: 0;
  font-weight: 300;
}

.gallery-link-header {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.gallery-link-header:hover {
  color: var(--color-text);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.featured-grid figure {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.featured-grid figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity var(--transition);
}

.featured-grid figure:hover img {
  opacity: 0.85;
}

.gallery-cta {
  margin-top: 2.5rem;
  text-align: right;
}

.gallery-cta a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.gallery-cta a:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

/* --- Gallery --- */
.gallery-grid {
  columns: 4;
  column-gap: 1rem;
  padding-bottom: 4rem;
}

.gallery-grid figure {
  break-inside: avoid;
  margin-bottom: 1rem;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.gallery-grid figure img {
  width: 100%;
  display: block;
  transition: opacity var(--transition);
}

.gallery-grid figure:hover img {
  opacity: 0.85;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s var(--ease-out-fast);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  color: #fff;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition-fast);
  padding: 1.25rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  color: rgba(255, 255, 255, 0.9);
}

.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }

.lightbox-footer {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.lightbox-counter {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-inquiry {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.lightbox-inquiry:hover {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.35);
}

/* --- About --- */
.about-content {
  padding: 4rem 0;
}

.about-bio {
  max-width: var(--max-width-narrow);
  margin: 0 auto 4rem;
}

.about-bio p {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.about-bio p:first-child {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  line-height: 1.7;
  color: var(--color-text);
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 3rem 0 4rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.about-images img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-sections {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3.5rem;
}

.about-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border-light);
}

.about-section--wide {
  grid-column: 1 / -1;
}

.about-section h3 {
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.about-section ul li {
  padding: 0.4rem 0;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.about-section ul li strong {
  color: var(--color-text);
  font-weight: 500;
}

/* Studied With — flowing prose */
.studied-with-text {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  max-width: 680px;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
}

.timeline-year {
  flex-shrink: 0;
  width: 80px;
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.timeline-desc {
  color: var(--color-text-secondary);
}

/* --- Exhibits --- */
.exhibits-content {
  padding: 4rem 0;
}

.exhibits-list {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.exhibits-decade {
  margin-bottom: 3rem;
}

.exhibits-decade h3 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border-light);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.exhibit-item {
  display: flex;
  gap: 1.5rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.exhibit-item:hover {
  border-bottom-color: var(--color-border-light);
}

.exhibit-year {
  flex-shrink: 0;
  width: 90px;
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--color-text-tertiary);
  font-variant-numeric: tabular-nums;
}

.exhibit-detail {
  color: var(--color-text-secondary);
}

.exhibit-detail a {
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.exhibit-detail a:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

.exhibit-detail-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}

.exhibit-link-arrow {
  flex-shrink: 0;
  position: relative;
  top: -0.5px;
  opacity: 0.5;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.exhibit-detail-link:hover .exhibit-link-arrow {
  opacity: 1;
  transform: translate(1px, -1px);
}

.exhibit-type {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  background: var(--color-bg-alt);
  padding: 0.125rem 0.5rem;
  border-radius: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* --- Foundation --- */
.foundation-content {
  padding: 4rem 0;
}

.foundation-name {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 3rem;
}

.foundation-mission {
  max-width: var(--max-width-narrow);
  margin: 0 auto 4rem;
  text-align: center;
}

.foundation-mission .display-text {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 2rem;
  font-weight: 300;
}

.foundation-mission p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.foundation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 5rem;
  max-width: 780px;
  margin: 0 auto;
}

.foundation-block h3 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border-light);
}

.foundation-block ul li {
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.foundation-block ul li strong {
  font-weight: 500;
  color: var(--color-text);
}

.foundation-block p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.foundation-block a {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: border-color var(--transition-fast);
}

.foundation-block a:hover {
  border-color: var(--color-text);
}

/* --- Exhibit Detail Page --- */
.exhibit-hero {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 420px;
  max-height: 700px;
  overflow: hidden;
}

.exhibit-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 33.5%;
}

.exhibit-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12, 10, 9, 0.65) 0%, rgba(12, 10, 9, 0.05) 55%, transparent 100%),
    linear-gradient(to left, rgba(12, 10, 9, 0.45) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 3.5rem;
  text-align: right;
}

.exhibit-hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.85rem;
  animation: hero-text-in 0.7s var(--ease-out) 0.15s both;
}

.exhibit-hero-overlay h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  max-width: 560px;
  animation: hero-text-in 0.9s var(--ease-out) 0.3s both;
}

.exhibit-hero-venue {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1rem;
  animation: hero-text-in 0.7s var(--ease-out) 0.5s both;
}

.exhibit-body {
  padding: 5rem 0 6rem;
}

.exhibit-content {
  max-width: 680px;
  margin: 0 auto;
}

.exhibit-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border-light);
}

.exhibit-meta-tag {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.exhibit-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
}

.exhibit-lede {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: 2.25rem;
}

.exhibit-section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
}

.exhibit-content p {
  font-size: 1.0625rem;
  line-height: 1.875;
  color: var(--color-text-secondary);
  margin-bottom: 1.75rem;
}

.exhibit-content p:last-of-type {
  margin-bottom: 0;
}

.exhibit-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 3rem -4rem;
}

.exhibit-spread-single {
  margin: 3rem -4rem;
}

.exhibit-spread figure,
.exhibit-spread-single figure {
  overflow: hidden;
}

.exhibit-spread figure img,
.exhibit-spread-single figure img {
  width: 100%;
  height: auto;
  display: block;
}

.exhibit-spread figcaption,
.exhibit-spread-single figcaption {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-text-tertiary);
  margin-top: 0.6rem;
  font-style: italic;
}

.exhibit-link-out {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border-light);
}

.exhibit-link-out p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.6rem;
}

.exhibit-link-out p:last-child {
  margin-bottom: 0;
}

.exhibit-link-out a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.exhibit-link-out a:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

.exhibit-back {
  max-width: 680px;
  margin: 3.5rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border-light);
}

.exhibit-back a {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

.exhibit-back a:hover {
  color: var(--color-text);
}

@media (max-width: 900px) {
  .exhibit-spread,
  .exhibit-spread-single {
    margin: 2.5rem 0;
  }
}

@media (max-width: 768px) {
  .exhibit-hero-overlay {
    padding: 2rem 1.5rem;
  }
  .exhibit-spread {
    grid-template-columns: 1fr;
    margin: 2rem 0;
  }
  .exhibit-spread figure {
    height: 260px;
  }
  .exhibit-spread-single {
    margin: 2rem 0;
  }
  .exhibit-spread-single figure {
    height: 300px;
  }
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--color-border-light);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
}

.footer-address,
.footer-email,
.footer-copyright {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

.footer-email a {
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.footer-email a:hover {
  border-bottom-color: var(--color-text-tertiary);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-text);
}

/* --- Keyframes --- */
@keyframes hero-text-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes vt-fade-out {
  to { opacity: 0; }
}

@keyframes vt-fade-in {
  from { opacity: 0; }
}

/* --- Page Fade In --- */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transform: none;
    transition: opacity 0.3s ease;
  }
  .hero-slide {
    transition: none;
  }
  .hero-overlay h1,
  .hero-overlay .subtitle,
  .page-hero-overlay h1 {
    animation: none;
    opacity: 1;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* --- Page Transitions (View Transitions API) --- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-fade-out 0.15s var(--ease-out-fast) both;
}

::view-transition-new(root) {
  animation: vt-fade-in 0.25s var(--ease-out) both;
}


/* --- Responsive --- */
@media (max-width: 1024px) {
  .gallery-grid {
    columns: 3;
  }

}

@media (max-width: 768px) {
  .vision .container {
    grid-template-columns: 1fr;
  }

  .vision-label {
    padding-top: 0;
    margin-bottom: 1.25rem;
  }

  .nav {
    padding: 0 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border-light);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 0.875rem 0;
    font-size: 0.875rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    height: 60vh;
    min-height: 380px;
  }

  .page-hero {
    height: 40vh;
    min-height: 280px;
  }

  .hero-overlay {
    padding: 2.5rem 1.5rem 2rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section--large {
    padding: 4.5rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .gallery-grid {
    columns: 2;
    column-gap: 0.75rem;
  }

  .gallery-grid figure {
    margin-bottom: 0.75rem;
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .featured-grid figure:nth-child(n+5) {
    display: none;
  }

  .gallery-cta {
    text-align: left;
  }

  .about-sections {
    grid-template-columns: 1fr;
  }

  .about-images {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-images img {
    height: 300px;
  }

  .foundation-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer {
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .footer-right {
    align-items: flex-start;
  }

  .lightbox-nav {
    padding: 0.75rem;
  }

  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }

  .lightbox-footer {
    bottom: 1.25rem;
    max-width: calc(100vw - 6rem);
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    columns: 2;
  }

  .display-text {
    font-size: 2.25rem;
  }

}
