/* Editorial copy and its existing merchandise cards share the storefront grid. */
.editorial-merchandise {
  margin: 1rem 0;
}
.editorial-merchandise .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.editorial-merchandise .cover-wrap,
.editorial-merchandise .extended-thumbnail {
  height: clamp(112px, 19vw, 172px);
  min-height: 0;
}
.editorial-merchandise .cover-wrap .cover {
  height: 100%;
  max-height: clamp(100px, 17vw, 150px);
}
.editorial-merchandise .extended-thumbnail {
  width: 100%;
}
.editorial-chapter {
  margin-bottom: 2rem;
}
.editorial-merchandise .card-copy {
  overflow-wrap: anywhere;
}
.editorial-merchandise .card-copy p {
  margin: .4rem 0;
}
.editorial-merchandise .grid:empty {
  display: none;
}
@media (max-width: 720px) {
  .editorial-merchandise .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.editorial-merchandise .merchandise-card {
  --merchandise-frame: clamp(112px, 19vw, 172px);
}
.editorial-merchandise .merchandise-card > .cover-wrap {
  height: var(--merchandise-frame);
}
.editorial-merchandise .merchandise-card > .cover-wrap > :is(.cover, .extended-thumbnail) {
  height: 100%;
  max-height: none;
}
