.exhibition-opening {
  display: grid;
  gap: 8px;
}

.exhibition-opening + .exhibition-introduction {
  margin-top: -12px;
  padding-top: 0;
}

.exhibition-hero.exhibition-hero-has-film {
  min-height: calc(min(68vh, 680px) + 92px);
}

.exhibition-hero.exhibition-hero-has-film::after {
  background: linear-gradient(180deg, rgba(18, 23, 21, .06) 28%, rgba(18, 23, 21, .65) 72%, rgba(18, 23, 21, .94));
}

.exhibition-hero-has-film .exhibition-hero-copy {
  padding-bottom: 128px;
}

.exhibition-hero-has-film .exhibition-hero-slideshow-button {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  top: auto;
  left: auto;
  right: 36px;
  bottom: 36px;
  transform: none;
}

.exhibition-hero-has-film .exhibition-hero-slideshow-button svg {
  width: 27px;
  height: 27px;
}

.exhibition-hero-has-film .exhibition-hero-slideshow-button::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
}

.exhibition-hero-has-film .exhibition-hero-slideshow-button:hover,
.exhibition-hero-has-film .exhibition-hero-slideshow-button:focus-visible {
  background: rgba(110, 116, 112, .72);
  color: white;
  transform: scale(1.05);
}

@media (max-width: 820px) {
  .exhibition-hero.exhibition-hero-has-film {
    min-height: calc(min(62vh, 560px) + 80px);
  }

  .exhibition-hero-has-film .exhibition-hero-copy {
    padding-bottom: 104px;
  }

  .exhibition-hero-has-film .exhibition-hero-slideshow-button {
    right: 24px;
    bottom: 24px;
  }
}

@media (max-width: 560px) {
  .exhibition-hero.exhibition-hero-has-film {
    min-height: calc(54vh + 80px);
  }
}

.exhibition-intro-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 0;
}

.exhibition-intro-options .exhibition-intro-text-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--exhibition-chapter-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  text-underline-offset: 4px;
  cursor: pointer;
}

.exhibition-intro-options .exhibition-intro-text-action:hover,
.exhibition-intro-options .exhibition-intro-text-action:focus-visible {
  text-decoration: underline;
}

.exhibition-intro-dialog {
  width: min(1060px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  color: #fff;
  background: #262b29;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
  overflow: auto;
}

.exhibition-intro-dialog::backdrop {
  background: rgba(12, 16, 14, .82);
}

.exhibition-intro-header,
.exhibition-intro-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.exhibition-intro-header h2 {
  min-width: 0;
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.exhibition-intro-header h2 span {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #d5d9d7;
}

.exhibition-intro-actions .exhibition-artwork-control {
  position: relative;
  flex-shrink: 0;
}

.exhibition-intro-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.exhibition-intro-dialog video {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 180px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.exhibition-intro-footer {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.exhibition-intro-footer p {
  margin: 0;
  color: #e0e3e1;
  font-size: 14px;
  line-height: 1.5;
}

.exhibition-intro-footer .button {
  flex-shrink: 0;
  color: #fff;
  border-color: #a9b5af;
}

@media (max-width: 600px) {
  .exhibition-intro-dialog { width: calc(100vw - 16px); }
  .exhibition-intro-options { font-size: 14px; }
}

.exhibition-intro-dialog.is-immersive {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #000;
}

.exhibition-intro-dialog.is-immersive video,
.exhibition-intro-dialog video:fullscreen {
  width: 100%;
  height: 100dvh;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}

.exhibition-intro-dialog.is-immersive .exhibition-intro-header {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-right: max(12px, env(safe-area-inset-right));
}

.exhibition-intro-dialog.is-immersive .exhibition-intro-header h2,
.exhibition-intro-dialog.is-immersive .exhibition-intro-footer p {
  display: none;
}

.exhibition-intro-dialog.is-immersive .exhibition-intro-footer {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  max-width: calc(100% - 112px - env(safe-area-inset-right));
  padding-top: max(8px, env(safe-area-inset-top));
  padding-left: max(12px, env(safe-area-inset-left));
}

.exhibition-intro-dialog.is-immersive .exhibition-intro-footer .button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}
