.editorial-grid {
  grid-template-columns: 1fr;
}

.editorial-card,
.editorial-card.featured {
  grid-column: auto;
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 45px;
}

.editorial-card:not(.featured) .post-visual {
  display: grid;
}

.editorial-card:not(.featured) h2,
.editorial-card h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.editorial-card .post-card-content {
  min-width: 0;
  padding-right: 5px;
}

/* The AI inference blog cover is the collection-wide benchmark: 1280 x 903. */
.editorial-card .post-visual {
  align-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: 290px;
  aspect-ratio: 1280 / 903;
  overflow: hidden;
}

.editorial-card .post-cover {
  padding: 0;
  background: var(--paper);
}

.editorial-card .post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.editorial-card .post-cover.focus-top img {
  object-position: center top;
}

@media (max-width: 760px) {
  .editorial-card,
  .editorial-card.featured {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .editorial-card .post-visual {
    min-height: 0;
  }
}
