/* Personal collections page */
.nightstand-shelf {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(.75rem, 2vw, 1.8rem);
  max-width: none;
  margin: 2.1rem 0 1rem;
}
.nightstand-choice img,
.nightstand-choice:nth-child(2) img {
  aspect-ratio: 3/2;
  object-fit: cover;
}
.nightstand-choice:first-child img {object-position: center 7%}
.nightstand-choice:last-child img {object-position: center 22%}
.nightstand-choice span {font-weight: 500}
.nightstand-letter {margin: 1rem 0 2rem}
.collection-layout {
  display: grid;
  grid-template-columns: minmax(10rem, .75fr) minmax(0, 3fr);
  gap: clamp(1.75rem, 5vw, 5.5rem);
  border-top: 1px solid var(--ink);
}
.collection-contents {
  align-self: start;
  position: sticky;
  top: 1rem;
  padding: 1.6rem 0;
}
.collection-contents h2 {
  margin: 0 0 .7rem;
  font: 600 1rem/1.3 var(--sans);
}
.collection-contents ul,.collection-sources {
  padding: 0;
  list-style: none;
}
.collection-contents ul {margin: 0}
.collection-contents a {
  display: inline-block;
  padding: .46rem 0;
  font-size: 1rem;
  line-height: 1.35;
}
.collection-chapter {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  scroll-margin-top: 1.25rem;
}
.collection-chapter + .collection-chapter {border-top: 1px solid var(--line)}
.collection-chapter > h2 {
  font: 500 clamp(2rem, 3.4vw, 3.1rem)/1.03 var(--sans);
  letter-spacing: -.05em;
  margin: 0 0 .7rem;
}
.collection-chapter h3 {
  margin: 0 0 .75rem;
  font: 500 clamp(1.45rem, 2.3vw, 2.1rem)/1.15 var(--serif);
  letter-spacing: -.025em;
}
.collection-chapter > p {margin: 0 0 1.35rem; max-width: 55ch}
.collection-chapter .meta {font-size: .84rem; line-height: 1.5}
.collection-chapter figure {min-width: 0}
.collection-text-link,.collection-work-link,.collection-sources a,.people-directory dt a {
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
.collection-text-link {display: block; width: fit-content; padding: .55rem 0}
.collection-playlists,.shelf-titles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
}
.collection-playlists .linkbutton,.shelf-titles li {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: .7rem 0;
  margin: 0;
  font-size: 1rem;
}
.shelf-titles {list-style: none; padding: 0; margin-bottom: 1.8rem}
.collection-chapters .archive-music {margin: 1.6rem 0 0}
.archive-music .supporting-photos.single-photo {max-width: none}
.archive-music .editorial-photo {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(5.5rem, 9rem) minmax(0, 38ch);
  gap: clamp(1rem, 3vw, 2.3rem);
  align-items: center;
}
.collection-chapter .book-photographs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.collection-chapter .book-photographs img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: contain;
  background: #eeece7;
}
.collection-chapter .person-in-the-family {
  margin: 1.7rem 0;
  padding: clamp(1rem, 2.5vw, 2rem);
  background: #eee7e2;
  border: 0;
}
.collection-chapter .person-in-the-family h3 {margin-top: .45rem}
.collection-chapter .person-feature {
  grid-template-columns: minmax(0,.8fr) minmax(0,1.4fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: .85rem 0 0;
}
.collection-chapter .person-feature p {font-size: 1rem; margin-top: 0}
.people-directory {margin: 2.2rem 0 0}
.people-directory dl {
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem clamp(1.25rem, 3vw, 2.5rem);
}
.people-directory dl > div {padding-top: .8rem; border-top: 1px solid var(--line)}
.people-directory dt {font: 600 1.03rem/1.4 var(--sans)}
.people-directory dd {margin: .45rem 0 0}
.people-directory dd p {margin: 0}
.collection-work-links {display: flex; flex-wrap: wrap; column-gap: 1.25rem}
.collection-work-link {display: inline-block; margin-top: .5rem; font-size: .94rem}
.collection-feature {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr);
  gap: clamp(1rem, 3vw, 2.7rem);
  align-items: start;
  margin-top: 1.3rem;
}
.collection-feature p {max-width: 56ch; margin: 0 0 .85rem}
.collection-feature .linkbutton {margin: .25rem 0 .75rem}
.collection-sources {margin: .8rem 0 0}
.collection-sources li + li {margin-top: .6rem}
.collection-chapter .nightstand-places {
  display: grid;
  /* Preserve the landscape and portrait frames at the same displayed height. */
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr);
  gap: clamp(.875rem, 2vw, 1.5rem);
  margin: 0;
}
@media (max-width: 800px) {
  .collection-layout {display: block}
  .collection-contents {
    position: static;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line);
  }
  .collection-contents ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.1rem;
  }
  .collection-contents a {text-decoration: underline; text-underline-offset: .18em}
}
@media (max-width: 540px) {
  .nightstand-shelf {gap: .65rem}
  .nightstand-choice span {font-size: 1rem; margin-top: .6rem; line-height: 1.25}
  .nightstand-choice img,.nightstand-choice:nth-child(2) img {aspect-ratio: 1}
  .collection-chapter .book-photographs {grid-template-columns: 1fr 1fr}
  .collection-playlists,.shelf-titles,.people-directory dl {grid-template-columns: 1fr}
  .collection-chapter .person-feature,.collection-feature {grid-template-columns: 1fr}
  .collection-chapter .person-feature figure,.collection-feature figure {max-width: 16rem}
  .collection-feature {gap: 1.2rem}
  .collection-chapter .nightstand-places {grid-template-columns: 1fr; gap: 1.5rem}
}
@media print {
  .collection-contents,.nightstand-shelf {display: none}
  .collection-layout {display: block}
}
