.exhibition-body {
  background:
    radial-gradient(circle at top left, rgba(30, 141, 151, 0.16), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(114, 191, 192, 0.18), transparent 24%),
    linear-gradient(180deg, #f5fdfc 0%, #deefee 42%, #d0e6e2 100%);
}

.exhibition-shell {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  padding-bottom: calc(72px + var(--safe-bottom));
}

.exhibition-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: calc(16px + var(--safe-top)) 0 16px;
  background: rgba(245, 253, 252, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.exhibition-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(420px, 1.16fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: calc(100svh - 88px - var(--safe-top));
  min-height: calc(100dvh - 88px - var(--safe-top));
  padding: 28px 0 56px;
}

.exhibition-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 4vh 0 0;
}

.exhibition-hero-copy h1 {
  display: block;
  max-width: none;
  font-size: clamp(4.8rem, 10vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.hero-title-en {
  max-width: 24ch;
  margin-top: 4px;
  color: rgba(22, 54, 54, 0.78);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exhibition-hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  min-height: min(78vh, 860px);
}

.hero-image-frame {
  position: relative;
  width: min(100%, 820px);
  height: min(78vh, 860px);
  overflow: hidden;
  border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.14)),
    rgba(244, 252, 251, 0.7);
  box-shadow:
    0 26px 60px rgba(18, 54, 54, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.hero-image-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 24, 28, 0.12) 100%);
  pointer-events: none;
}

.exhibition-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(0.94) contrast(1.02);
}

.preface-section,
.chapter-section,
.documentary-section {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.preface-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 18px);
  align-items: start;
}

.preface-meta {
  grid-column: 1 / 5;
  display: grid;
  align-content: start;
  gap: 14px;
  padding-right: clamp(14px, 2vw, 30px);
  border-right: 1px solid rgba(22, 54, 54, 0.14);
}

.preface-copy {
  grid-column: 5 / 13;
  display: grid;
  gap: 18px;
  max-width: 62ch;
  padding-left: clamp(6px, 1vw, 12px);
  color: var(--muted);
}

.preface-copy p:first-child {
  color: rgba(22, 54, 54, 0.9);
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.88;
}

.preface-meta h2 {
  display: grid;
  gap: 4px;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 0.92;
}

.chapter-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 68ch;
}

.chapter-en {
  display: inline-block;
  margin-left: 10px;
  color: var(--accent);
  font-size: 0.6em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chapter-rows {
  display: grid;
  gap: 16px;
}

.chapter-row {
  display: flex;
  gap: 16px;
  align-items: start;
}

.chapter-strip {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 141, 151, 0.45) rgba(255, 255, 255, 0.45);
}

.chapter-strip.is-pending {
  min-height: clamp(240px, 28vw, 360px);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08)),
    rgba(247, 255, 253, 0.28);
  background-size: 220% 100%, auto;
  animation: strip-pulse 1.8s ease-in-out infinite;
}

.chapter-strip::-webkit-scrollbar {
  height: 10px;
}

.chapter-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(30, 141, 151, 0.38);
}

.chapter-strip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.42);
}

.documentary-section {
  display: grid;
  gap: 28px;
}

.documentary-heading {
  display: grid;
  gap: 10px;
  max-width: 76ch;
}

.documentary-heading h2 {
  font-size: clamp(1.35rem, 2.7vw, 2.2rem);
  line-height: 1.08;
}

.documentary-heading p:last-child {
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.2vw, 1.14rem);
  line-height: 1.82;
}

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

.documentary-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 100%;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(247, 255, 253, 0.78), rgba(235, 247, 245, 0.64)),
    rgba(247, 255, 253, 0.66);
  box-shadow: var(--shadow);
}

.documentary-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.documentary-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  margin: clamp(-30px, -2.6vw, -22px) clamp(-30px, -2.6vw, -22px) 2px;
  border-radius: 28px 28px 18px 18px;
  background: rgba(22, 54, 54, 0.12);
}

.documentary-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 26, 28, 0.04), rgba(7, 26, 28, 0.22)),
    radial-gradient(circle at center, rgba(7, 26, 28, 0.04), rgba(7, 26, 28, 0.18));
  pointer-events: none;
  transition: opacity 220ms ease;
}

.documentary-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 360ms ease;
}

.documentary-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(247, 255, 253, 0.9);
  box-shadow: 0 18px 44px rgba(7, 26, 28, 0.22);
  transform: translate(-50%, -50%);
  transition:
    transform 220ms ease,
    background-color 220ms ease;
}

.documentary-play::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid var(--ink);
}

.documentary-thumb:hover img {
  transform: scale(1.035);
}

.documentary-thumb:hover::after {
  opacity: 0.72;
}

.documentary-thumb:hover .documentary-play {
  background: #ffffff;
  transform: translate(-50%, -50%) scale(1.06);
}

.documentary-card h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.06;
}

.documentary-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.78;
}

.documentary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 18px;
  border-radius: 999px;
  color: #f7fffe;
  font-weight: 700;
  background: var(--ink);
  box-shadow: 0 14px 32px rgba(22, 54, 54, 0.14);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.documentary-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(22, 54, 54, 0.18);
}

.story-section {
  padding: 64px 0 12px;
  border-top: 1px solid var(--line);
}

.story-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: start;
}

.story-figure {
  margin: 0;
  padding: 12px;
  border-radius: 28px;
  background: rgba(247, 255, 253, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.story-figure.is-pending {
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08)),
    rgba(247, 255, 253, 0.28);
  background-size: 220% 100%, auto;
  animation: strip-pulse 1.8s ease-in-out infinite;
}

.story-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.story-copy {
  display: grid;
  gap: 20px;
  max-width: 68ch;
  color: var(--muted);
  align-content: start;
  font-size: clamp(1.06rem, 1.18vw, 1.18rem);
  line-height: 1.88;
}

.exhibit-item {
  flex: 0 0 auto;
  margin: 0;
  height: clamp(240px, 28vw, 360px);
  padding: 10px;
  border-radius: 22px;
  background: rgba(247, 255, 253, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.exhibit-trigger {
  display: flex;
  align-items: flex-start;
  width: auto;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.exhibit-item img {
  width: auto;
  height: 100%;
  max-width: none;
  display: block;
  border-radius: 14px;
}

img.lazyload,
img.lazyloading {
  opacity: 0;
  filter: blur(12px);
}

img.lazyloaded {
  opacity: 1;
  filter: blur(0);
  transition:
    opacity 360ms ease,
    filter 420ms ease;
}

@keyframes strip-pulse {
  0% {
    background-position: 100% 0, 0 0;
  }

  100% {
    background-position: -100% 0, 0 0;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding:
    calc(20px + var(--safe-top))
    calc(20px + var(--safe-right))
    calc(20px + var(--safe-bottom))
    calc(20px + var(--safe-left));
  background: rgba(7, 26, 28, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  display: grid;
  place-items: center;
  width: min(72vw, 980px);
  height: min(72vh, 760px);
  position: relative;
}

.lightbox-stage.is-loading::after {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.92);
  position: absolute;
  animation: lightbox-spin 0.9s linear infinite;
}

.lightbox-image {
  max-width: min(72vw, 980px);
  max-height: min(72vh, 760px);
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 180ms ease;
}

.lightbox-image.is-ready {
  opacity: 1;
}

.lightbox-image.is-portrait {
  max-height: min(80vh, 860px);
  max-width: min(52vw, 700px);
}

.lightbox-close,
.lightbox-nav {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #f6fffe;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: calc(18px + var(--safe-top));
  right: calc(18px + var(--safe-right));
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: calc(18px + var(--safe-left));
}

.lightbox-next {
  right: calc(18px + var(--safe-right));
}

@keyframes lightbox-spin {
  to {
    transform: rotate(360deg);
  }
}

.exhibition-hero .hero-text {
  max-width: 31ch;
  margin-top: 8px;
  color: rgba(22, 54, 54, 0.8);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.exhibition-hero .hero-actions {
  margin-top: 20px;
}

@media (max-width: 980px) {
  .exhibition-hero,
  .preface-section {
    grid-template-columns: 1fr;
  }

  .exhibition-hero {
    min-height: auto;
    padding-top: 20px;
  }

  .exhibition-hero-copy {
    padding-top: 0;
  }

  .exhibition-hero-copy h1 {
    font-size: clamp(4rem, 14vw, 6rem);
  }

  .hero-title-en {
    max-width: 28ch;
  }

  .exhibition-hero-visual,
  .hero-image-frame {
    min-height: 52vh;
    height: 52vh;
  }

  .preface-meta,
  .preface-copy {
    grid-column: auto;
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .documentary-grid {
    grid-template-columns: 1fr;
  }

  .exhibit-item {
    height: min(42vw, 340px);
  }
}

@media (max-width: 720px) {
  .exhibition-shell {
    width: min(100% - 40px, 1320px);
  }

  .exhibition-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: calc(14px + var(--safe-top));
    margin-inline: -20px;
    padding-inline: 20px;
    border-bottom: 1px solid rgba(22, 54, 54, 0.08);
  }

  .exhibition-header .site-nav {
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .exhibition-header .site-nav::-webkit-scrollbar {
    display: none;
  }

  .exhibition-header .site-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 0;
  }

  .exhibition-hero {
    gap: 22px;
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .exhibition-hero-copy h1 {
    white-space: normal;
    line-height: 1.12;
  }

  .exhibition-hero-visual img {
    object-position: center 52%;
  }

  .hero-image-frame {
    height: min(58svh, 58dvh, 500px);
    min-height: min(58svh, 58dvh, 500px);
  }

  .preface-section,
  .chapter-section,
  .documentary-section,
  .story-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .preface-meta {
    gap: 10px;
  }

  .preface-meta h2 {
    font-size: clamp(2.5rem, 12vw, 4.2rem);
    line-height: 1.08;
  }

  .preface-copy {
    gap: 16px;
  }

  .exhibit-item {
    height: min(76vw, 320px);
  }

  .chapter-strip {
    gap: 12px;
    margin-right: -2px;
    padding-right: 2px;
  }

  .documentary-section {
    gap: 22px;
  }

  .documentary-heading h2,
  .documentary-card h3 {
    line-height: 1.24;
  }

  .documentary-thumb {
    margin-bottom: 0;
  }

  .documentary-play {
    width: 52px;
    height: 52px;
  }

  .documentary-play::before {
    left: 21px;
    top: 16px;
  }

  .documentary-link {
    width: 100%;
  }

  .story-figure.is-pending {
    min-height: min(98vw, 420px);
  }

  .lightbox-nav {
    top: auto;
    bottom: calc(18px + var(--safe-bottom));
    transform: none;
  }

  .lightbox-prev {
    left: calc(14px + var(--safe-left));
  }

  .lightbox-next {
    right: calc(14px + var(--safe-right));
  }

  .lightbox-close {
    top: calc(14px + var(--safe-top));
    right: calc(14px + var(--safe-right));
  }

  .lightbox-stage {
    width: min(100%, 88vw);
    height: min(62svh, 62dvh, 520px);
  }

  .lightbox-image {
    max-width: min(100%, 88vw);
    max-height: min(62svh, 62dvh, 520px);
  }

  .lightbox-image.is-portrait {
    max-width: min(72vw, 420px);
    max-height: min(72svh, 72dvh, 620px);
  }
}
