/* A shelf of physical releases and small screens, inside the same painted strip. */
.media-section {
  padding-bottom: 0;
  background: #000;
  /* One painted edge clips the background and portrait together. */
  -webkit-mask-image: linear-gradient(#000, #000), url('/assets/daisy-painted-strip.svg'), url('/assets/daisy-painted-strip.svg');
  mask-image: linear-gradient(#000, #000), url('/assets/daisy-painted-strip.svg'), url('/assets/daisy-painted-strip.svg');
  -webkit-mask-size: 100% calc(100% - 48px), 100% 440px, 100% 440px;
  mask-size: 100% calc(100% - 48px), 100% 440px, 100% 440px;
  -webkit-mask-position: center, center top, center bottom;
  mask-position: center, center top, center bottom;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: alpha;
}
.media-section::before { display: none; }
.media-inner { padding-bottom: 0; }
.media-content { width: 100%; }
.media-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 30px; }
.album-group { grid-column: auto; max-width: 440px; padding-right: 0; }
.media-group-title { align-items: flex-start; min-height: 2.4em; white-space: normal; font-size: clamp(23px, 2vw, 28px); }
.media-group-title > span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.media-title-icon { margin-top: 1px; }
.media-group-title small { display: block; font: inherit; font-size: .72em; line-height: 1.15; letter-spacing: -.015em; }
.media-section .video-stage { width: min(100%, 240px); }
.media-section .video-stage.is-portrait { width: min(100%, 132px); }
.media-section .video-stage.is-square { width: min(100%, 210px); aspect-ratio: 1; }
.media-section .video-controls { width: min(100%, 240px); }
.media-section .portrait-video-controls { width: min(100%, 164px); }
.media-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 40px; }
.media-portrait { position: relative; inset: auto; flex: 0 0 auto; width: min(33vw, 420px); height: auto; aspect-ratio: 1 / 1.02; mask-image: none; }
.media-portrait img { top: 0; right: auto; left: -28.5%; width: 160%; height: auto; }
.album-quote { margin: 0 0 40px; }
.book-figure { width: min(100%, 168px); margin: -8px auto 0; perspective: 700px; }
.book-object { position: relative; margin: 0; transform: rotateY(-7deg) rotateZ(1deg); transform-style: preserve-3d; transition: transform 450ms var(--ease-settle); }
.book-object img { width: 100%; height: auto; clip-path: polygon(3.1% 5.5%, 87.8% 1.6%, 88% 2.8%, 96.2% 3.5%, 96.8% 4.3%, 97% 93.3%, 10.6% 98%, 7.5% 97.7%, 3.1% 96.3%); }
.book-caption { margin: 12px 0 0; font-family: 'Newsreader', Georgia, serif; font-size: 15px; line-height: 1.4; font-weight: 500; text-align: center; }
.book-stock { display: block; min-width: 120px; min-height: 40px; margin: 18px auto 0; padding: 7px 18px; border: 1px solid rgb(241 238 228 / 25%); border-radius: 4px; background: rgb(241 238 228 / 7%); color: rgb(241 238 228 / 65%); font: inherit; font-size: 14px; opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .book-figure:hover .book-object { transform: translateY(-2px) rotateY(-2deg) rotateZ(.2deg); }
}

@media (min-width: 651px) and (max-width: 1250px) {
  .media-content { width: 100%; }
  .media-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .album-group { grid-column: auto; width: 100%; max-width: 460px; padding-right: 0; }
  .media-portrait { width: 36vw; }
  .media-group-title { font-size: clamp(22px, 2.5vw, 27px); }
}

@media (min-width: 651px) {
  /* A common shelf balances the native portrait and landscape frames. */
  .media-section .video-tile { display: grid; grid-template-rows: 88px 240px auto; }
  .media-section .video-tile .media-group-title { min-height: 0; margin-bottom: 20px; }
  .media-section .video-stage { align-self: center; }
  .media-section .video-controls { align-self: start; }
}

@media (max-width: 650px) {
  .media-section { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 24px; padding: 50px 22px 0; }
  .media-groups, .media-footer { display: contents; }
  .album-group { grid-area: 1 / 1 / 2 / -1; max-width: none; padding-right: 0; }
  #film { grid-area: 2 / 1; }
  #tv { grid-area: 2 / 2; }
  #address { grid-area: 3 / 1; }
  #jazz { grid-area: 3 / 2; }
  #daisy-bell-video { grid-area: 4 / 1; }
  .media-group-title { min-height: 56px; gap: 7px; margin-bottom: 14px; font-size: 23px; }
  .album-group .media-group-title { min-height: 0; margin-bottom: 22px; }
  .media-title-icon { flex-basis: 23px; width: 23px; height: 23px; }
  .media-section .video-stage.is-portrait { width: min(100%, 124px); }
  .media-section .video-stage.is-square { width: 100%; }
  .media-section .video-controls { gap: 0; }
  .media-section .video-controls .tile-play, .media-section .video-controls .video-fullscreen { padding-inline: 10px; }
  .media-portrait { grid-area: 4 / 2 / 6 / 3; position: relative; inset: auto; align-self: end; justify-self: end; width: min(calc(100% + 48px), 300px); height: auto; aspect-ratio: 1 / 1.02; margin-right: -16px; margin-bottom: 0; }
  .media-portrait img { top: 0; right: auto; left: -28.5%; width: 160%; height: auto; }
  .book-figure { width: min(100%, 148px); }
  .book-group .media-group-title { width: calc(200% + 24px); white-space: nowrap; }
  .book-caption { font-size: 14px; }
  .album-quote { grid-area: 5 / 1 / 6 / 2; margin: 4px 0 40px; max-width: calc(100% - 16px); }
}

@media (max-width: 360px) {
  .media-section { column-gap: 18px; padding-inline: 18px; }
  .media-group-title { font-size: 21px; }
  .media-title-icon { flex-basis: 21px; width: 21px; height: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .book-object, .book-figure:hover .book-object { transform: none; transition: none; }
}

@media (forced-colors: active) {
  .media-section { background: Canvas; -webkit-mask-image: none; mask-image: none; }
}
