.exhibit {
  scroll-margin-top: 1rem;
}

.exhibit > h2 {
  max-width: none;
}

.exhibit-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  min-height: 350px;
  margin: 1.35rem 0 1.1rem;
  background: #243a32;
  color: #f8eedc;
}

.exhibit-feature .exhibit-copy {
  align-self: center;
  padding: clamp(1.35rem, 4.4vw, 3.8rem);
}

.exhibit-feature h3 {
  margin: .35rem 0 .8rem;
  color: #fff5e2;
  font: 500 clamp(2rem, 4vw, 3.5rem)/1.03 Georgia, serif;
  letter-spacing: -.043em;
}

.exhibit-feature p {
  max-width: 38ch;
  margin: 0 0 1.2rem;
}

.exhibit-feature .exhibit-meta {
  color: #efca8c;
}

.exhibit-feature .button {
  display: inline-block;
  background: #f1dca9;
  border-color: #f1dca9;
  color: #243a32;
}

.exhibit-feature .exhibit-book {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 312px;
  margin: 0;
  padding: 1.35rem;
  background: #456055;
}

.exhibit-book img {
  display: block;
  width: min(80%, 260px);
  max-height: 390px;
  object-fit: contain;
  box-shadow: 0 8px 24px #121e1895;
}

.exhibit-feature .exhibit-map img {
  width: min(100%, 380px);
  height: auto;
}

.exhibit-book figcaption {
  margin-top: .4rem;
  color: #fbf0db;
  font-size: .88rem;
}

.exhibit-meta {
  color: #694429;
  font: 700 .86rem/1.3 system-ui, sans-serif;
}

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

.exhibit-card {
  min-width: 0;
  background: var(--bone);
  border: 1px solid var(--line);
}

.exhibit-card figure {
  margin: 0;
  padding: 0;
}

.exhibit-card .exhibit-picture {
  display: flex;
  width: 100%;
  height: clamp(205px, 24vw, 290px);
  align-items: center;
  justify-content: center;
  background: #e4dccd;
  overflow: hidden;
}

.exhibit-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 31%;
}

.exhibit-picture.show-whole img {
  object-fit: contain;
  object-position: 50%;
}

.exhibit-card figcaption {
  padding: .5rem .95rem;
  color: #5b5447;
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
}

.exhibit-card .exhibit-copy {
  padding: .95rem 1.05rem 1.2rem;
}

.exhibit-card h3 {
  margin: .4rem 0 .55rem;
  color: var(--forest);
  font: 500 clamp(1.38rem, 2.2vw, 1.82rem)/1.12 Georgia, serif;
}

.exhibit-card p {
  margin: 0;
}

.exhibit-card .exhibit-title {
  text-decoration-thickness: 1px;
  text-underline-offset: .17em;
}

.book-history p {
  max-width: 76ch;
}

.book-reader {
  scroll-margin-top: 1rem;
  background: #e8e0d0;
  border: 1px solid #cfc0a3;
  margin-top: 1.2rem;
}

.reader-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  padding: .75rem 1rem;
  background: #faf6ed;
  border-bottom: 1px solid #cfc0a3;
}

.reader-controls[hidden] {
  display: none;
}

.reader-controls label {
  font-weight: 650;
}

.reader-controls button,
.reader-controls select {
  padding: .5rem .65rem;
  min-height: 2.7rem;
  font: inherit;
  color: var(--forest);
  background: #fefbf5;
  border: 1px solid #a99675;
  border-radius: 3px;
}

.reader-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.reader-controls button:disabled {
  opacity: .52;
}

.reader-controls select:focus-visible,
.exhibit a:focus-visible,
.book-reader a:focus-visible {
  outline: 3px solid #9a5e29;
  outline-offset: 3px;
}

.reader-scans {
  margin: 0;
  padding: clamp(.75rem, 2.4vw, 1.6rem);
}

.reader-scan {
  margin: 0 auto 1.35rem;
  max-width: 49rem;
}

.reader-scan:last-child,
.reader-scan.is-current {
  margin-bottom: 0;
}

.reader-scan img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid #d4c7ad;
}

.reader-scan figcaption {
  padding-top: .6rem;
  color: #514838;
  font-size: .9rem;
}

.book-hero {
  align-items: center;
}

.book-hero .book-jacket {
  max-width: 320px;
  justify-self: center;
}

.book-hero .book-jacket figcaption {
  padding: .55rem .5rem;
}

.people-notes {
  padding: 1.05rem 0;
}

.people-notes summary {
  cursor: pointer;
  color: var(--forest);
  font-weight: 650;
}

.people-notes li + li {
  margin-top: .45rem;
}

.profile-artifact {
  margin: 1rem 0 0;
}

.profile-artifact img {
  display: block;
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  border: 1px solid #cfc4ae;
}

.profile-artifact figcaption {
  margin-top: .5rem;
  font-size: .9rem;
}

@media (max-width: 865px) {
  .exhibit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .exhibit-feature {
    grid-template-columns: 1fr;
  }

  .exhibit-feature .exhibit-book {
    min-height: 0;
  }

  .exhibit-book img {
    width: min(69%, 235px);
  }
}

@media (max-width: 545px) {
  .exhibit-grid {
    grid-template-columns: 1fr;
  }

  .exhibit-card .exhibit-picture {
    height: 248px;
  }
}
