.science-exhibit {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .93fr);
  align-items: center;
  gap: clamp(2rem, 6.5vw, 7.25rem);
  width: 100%;
  min-inline-size: 0;
  margin: 0;
  padding: clamp(.65rem, 2.1vw, 2.1rem) 0 clamp(2.2rem, 4.4vw, 4.5rem);
  border: 0;
}

.exhibit-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.exhibit-copy {
  max-width: 36rem;
}

.exhibit-copy h1 {
  margin: .45rem 0 clamp(1.1rem, 2.5vw, 2.3rem);
  font-size: clamp(3.5rem, 6.7vw, 7rem);
}

.exhibit-copy h1 span {
  color: var(--di-blue);
}

.exhibit-copy .exhibit-lead {
  max-width: 17em;
  color: #143653;
  font-size: clamp(1.45rem, 2.3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: -.046em;
  text-wrap: balance;
}

.exhibit-intro {
  max-width: 29rem;
  margin-top: .65rem;
  color: var(--di-muted);
  line-height: 1.5;
}

.exhibit-controls {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  margin: clamp(1.15rem, 2.7vw, 2.25rem) 0 0;
  border: 1px solid #a8c0d1;
  border-radius: 12px;
  background: #f0f6fa;
}

.exhibit-controls label {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: .45rem clamp(.8rem, 1.5vw, 1.65rem);
  border: 1px solid transparent;
  border-radius: 8px;
  color: #264965;
  font-size: clamp(.87rem, 1.25vw, 1rem);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}

.exhibit-controls label:hover {
  background: #dfebf3;
}

#film-view:checked ~ .exhibit-copy label[for="film-view"],
#room-view:checked ~ .exhibit-copy label[for="room-view"],
#micro-view:checked ~ .exhibit-copy label[for="micro-view"] {
  color: #fff;
  border-color: #214b70;
  background: #173e60;
}

#film-view:focus-visible ~ .exhibit-copy label[for="film-view"],
#room-view:focus-visible ~ .exhibit-copy label[for="room-view"],
#micro-view:focus-visible ~ .exhibit-copy label[for="micro-view"] {
  outline: 3px solid #057bd3;
  outline-offset: 2px;
}

.exhibit-study {
  margin-top: 1.35rem;
}

.exhibit-figures {
  width: min(100%, 30rem);
  justify-self: center;
}

.exhibit-figure {
  display: none;
}

#film-view:checked ~ .exhibit-figures #film-scene,
#room-view:checked ~ .exhibit-figures #room-scene,
#micro-view:checked ~ .exhibit-figures #micro-scene {
  display: block;
}

.exhibit-window {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 36rem;
  border-radius: clamp(15px, 2vw, 25px);
  border: 2px solid #96b2ca;
  background: #e6eef5;
  box-shadow: 0 0 0 1px #edf5fc, 0 10px 24px -23px #345a76;
}

.exhibit-film-window {
  background: linear-gradient(110deg, #d6e3ed, #edf3f6 48%, #d0dfe9);
}

.exhibit-film-window video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.exhibit-film-window video:focus-visible {
  outline: 3px solid #057bd3;
  outline-offset: -4px;
}

.exhibit-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#room-scene .exhibit-window img {
  object-position: 50% 22%;
}

.exhibit-figure figcaption {
  min-height: 2.9rem;
  margin-top: .6rem;
  padding-inline: .15rem;
}

.exhibit-figure figcaption strong {
  color: #23455e;
}

.evidence-heading {
  padding-top: 1.3rem;
  margin: 0 0 1rem;
  border-top: 1px solid var(--di-line);
}

@media(max-width: 720px) {
  .science-page .d-crumb {
    display: none;
  }

  .science-exhibit {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 1.15rem;
  }

  .exhibit-copy {
    display: contents;
  }

  .exhibit-copy h1 {
    margin: .32rem 0 .7rem;
    font-size: clamp(3.35rem, 12.8vw, 4.6rem);
  }

  .exhibit-copy .exhibit-lead {
    max-width: none;
    font-size: clamp(1.25rem, 4.2vw, 1.6rem);
  }

  .exhibit-intro {
    margin-top: .38rem;
    font-size: 1rem;
  }

  .exhibit-controls {
    margin-top: .9rem;
  }

  .exhibit-figures {
    width: min(100%, 27rem);
    justify-self: start;
    order: 1;
    margin-top: .9rem;
  }

  .exhibit-study {
    order: 2;
    justify-self: start;
    margin-top: .3rem;
    padding-block: .3rem;
  }

  .exhibit-window {
    aspect-ratio: 4 / 5;
    max-height: none;
  }

  #room-scene .exhibit-window img {
    object-position: 50% 32%;
  }
}

@media(forced-colors: active) {
  #film-view:checked ~ .exhibit-copy label[for="film-view"],
  #room-view:checked ~ .exhibit-copy label[for="room-view"],
  #micro-view:checked ~ .exhibit-copy label[for="micro-view"] {
    border-color: ButtonText;
    text-decoration: underline;
  }
}
