.sounds {
  container: sounds / inline-size;
  min-width: 0;
}
.sounds__picker {
  position: relative;
  display: flex;
  gap: 28px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  padding: 6px 6px 14px;
  margin-bottom: 28px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #fff4de55 transparent;
}
.sounds__picker a {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  max-width: 28ch;
  min-height: 44px;
  padding-block: 8px;
  border-bottom: 1px solid transparent;
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
  opacity: 0.6;
  scroll-snap-align: center;
}
.sounds__picker a[aria-current] { border-bottom-color: currentColor; opacity: 1; }
.sounds__picker a:is(:hover, :focus-visible) { opacity: 1; }
.sounds__picker:focus-visible,
.sounds__picker a:focus-visible {
  outline: 1px dotted currentColor;
  outline-offset: 4px;
}
.sounds__release {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  min-height: 470px;
}
.sounds__release[hidden] { display: none; }
.sounds__player { width: 100%; max-width: 350px; min-width: 0; }
.sounds__notes { min-width: 0; max-width: 46ch; }
.sounds__notes h3 {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.6;
}
.sounds__writing {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
}
.sounds__writing + h3 { margin-top: 24px; }
.sounds__links { margin: 0; opacity: 0.8; }

@media (min-width: 768px) {
  /* Artwork, playback controls, and room for the album tracklist. */
  .sounds__player .bandcamp-player--tracklist { height: calc(100cqw + 360px); }
}

@container sounds (min-width: 620px) {
  .sounds__release {
    grid-template-columns: minmax(250px, 350px) minmax(0, 1fr);
    column-gap: clamp(24px, 4cqw, 48px);
  }
  .sounds__player {
    position: sticky;
    top: var(--page-padding-block);
  }
}
