/* Keep catalog cards in the same 4:5 image frames used on the homepage. */
.standalone-main:has(> .catalog) {
  max-width: 1600px;
  padding-inline: 4vw;
}
.catalog {
  gap: 40px 28px;
  align-items: stretch;
}
.catalog-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  min-width: 0;
}
.catalog-card > img,
.catalog-card > [role="img"] {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  overflow: hidden;
}
.catalog-card .eyebrow {
  margin: 20px 0 8px;
  line-height: 1.4;
}
.catalog-card h2 {
  margin: 0;
  min-height: 2.4em;
  font-size: 27px;
  line-height: 1.2;
  overflow-wrap: break-word;
}
.snooze-home-editorial .standalone-product-link {
  max-width: 100%;
  min-height: 3em;
  white-space: normal;
  overflow-wrap: anywhere;
}
/* A tall source image must not set the height of a search result either. */
#search-results .catalog-card > img { height: auto; }
[data-snooze-sort] {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}
[data-snooze-sort][hidden] { display: none; }
[data-snooze-sort] label { font-size: 14px; }
[data-snooze-sort] select {
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #b8aa99;
  border-radius: 0;
  color: inherit;
  background: transparent;
}
/* Align the secondary product action with the centre of the primary button. */
.product-copy .standalone-purchase { align-items: center; }
.product-copy .standalone-purchase > .support-inline {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin: 0;
}
.standalone-main .prose h1 { overflow-wrap: break-word; }
.story-image {
  display: block;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (max-width: 989px) {
  .catalog { gap: 36px 20px; }
  .catalog-card h2 { font-size: 24px; }
}
@media (max-width: 749px) {
  .standalone-main:has(> .catalog) { padding-inline: 20px; }
  .catalog { gap: 30px 14px; }
  .catalog-card .eyebrow { margin: 16px 0 8px; }
  .catalog-card h2 { min-height: 3.6em; font-size: 20px; }
  [data-snooze-sort] { justify-content: flex-start; gap: 8px; }
  .product-copy .standalone-purchase > .support-inline {
    justify-content: center;
    width: 100%;
  }
}
