body.gallery-mode { background: #000; }
.exhibition-index { width: min(1440px, calc(100% - clamp(40px, 9vw, 144px))); margin-inline: auto; }
.exhibition-kicker, .exhibition-index__number {
  color: #aaa59c;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.exhibition-index { padding-block: clamp(32px, 6vw, 88px); border-top: 1px solid #37342f; }
.exhibition-index h2 { margin: 8px 0 28px; color: #eee9e0; font-family: var(--font-serif); font-weight: 500; }
.exhibition-index__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 5vw, 72px) clamp(20px, 4vw, 56px); }
.exhibition-index__card { display: block; color: #eee9e0; text-decoration: none; }
.exhibition-index__card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #10100f; }
.exhibition-index__label { display: flex; align-items: baseline; gap: 14px; margin-top: 16px; }
.exhibition-index__name { font-family: var(--font-serif); font-size: clamp(20px, 2.4vw, 32px); line-height: 1.3; }
.exhibition-index__arrow { margin-inline-start: auto; }
.exhibition-index__note { display: block; margin-top: 5px; color: #b6b0a7; line-height: 1.6; }
.exhibition-index__card:hover .exhibition-index__name { text-decoration: underline; text-underline-offset: .2em; }
.exhibition-index__card:focus-visible { outline: 2px solid #eee9e0; outline-offset: 6px; }
@media (max-width: 700px) {
  .exhibition-index__grid { grid-template-columns: minmax(0, 1fr); }
}

.gallery-mode .chapter[hidden] { display: none; }
.art-viewer button.art-viewer__previous,
.art-viewer button.art-viewer__next {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0 0 4px;
  border: 1px solid #eee9e0;
  background: #eee9e0;
  color: #161410;
  font-size: 40px;
  font-weight: 500;
}
.art-viewer button.art-viewer__previous:hover,
.art-viewer button.art-viewer__next:hover { background: #fff; }
.art-viewer button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

@media (max-width: 640px) {
  .art-viewer button.art-viewer__previous,
  .art-viewer button.art-viewer__next { width: 48px; height: 48px; font-size: 34px; }
}

.gallery-mode .hero { background-color: #000; }
.gallery-mode .hero__copy { text-shadow: 0 2px 18px rgb(0 0 0 / 75%); }

@media (max-width: 640px) {
  .gallery-mode .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(25deg, rgb(0 0 0 / 78%), transparent 62%);
    pointer-events: none;
  }
  .gallery-mode .hero__copy {
    position: absolute;
    inset: auto auto clamp(10px, 4vw, 25px) clamp(12px, 4vw, 25px);
    max-width: 64%;
    padding: 0;
    background: none;
  }
  .gallery-mode .hero h1 {
    max-width: none;
    margin: 0 0 5px;
    font-size: clamp(19px, 5.5vw, 34px);
  }
  .gallery-mode .hero p { margin: 0; font-size: clamp(12px, 3.2vw, 18px); }
}

.emotion-header .section-heading { grid-column: 1 / -1; }

.art-hero-frame {
  position: relative;
  margin-inline: auto;
}

@media (min-width: 641px) {
  .gallery-mode .hero {
    display: grid;
    align-items: center;
    min-height: calc(100vh - var(--shared-header-height));
    min-height: calc(100svh - var(--shared-header-height));
  }
  .art-hero-frame {
    width: min(100%, calc((100vh - var(--shared-header-height)) * 1600 / 1280));
    width: min(100%, calc((100svh - var(--shared-header-height)) * 1600 / 1280));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .exhibition-index.is-revealed { animation: exhibition-index-enter 380ms ease-out; }
}

@keyframes exhibition-index-enter {
  from { opacity: .55; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.art-hero-stage { position: relative; width: 100%; }
.art-hero-stage .gallery-hero-image {
  -webkit-user-select: none;
  user-select: none;
}
@media (prefers-reduced-motion: no-preference) {
  .art-hero-stage .gallery-hero-image {
    animation: art-hero-unfold 1.15s cubic-bezier(.25, .65, .3, 1);
  }

  .art-hero-stage .hero__copy {
    animation: art-hero-title-in 460ms ease-out 560ms backwards;
  }
}

@keyframes art-hero-unfold {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

@keyframes art-hero-title-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 641px) {
  .gallery-mode .hero h1 {
    margin-bottom: 16px;
    font-size: clamp(28px, 3.2vw, 48px);
  }
  .gallery-mode .hero p { font-size: clamp(14px, 1.45vw, 22px); }
}

.exhibition-index__emotions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 10px;
  color: #aaa59c;
  font-size: 13px;
  line-height: 1.5;
}

.exhibition-index__emotions > span { white-space: nowrap; }
.exhibition-index__emotion-label { color: #c9c2b7; }

@media (max-width: 480px) {
  .exhibition-index__emotions { column-gap: 10px; }
}
