.single-entry-related {
  padding-top: 0;
}

.single-entry-related__header {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: var(--space-8);
}

.single-entry-related__header h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.04;
}

.single-entry-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.single-related-card {
  min-width: 0;
}

.single-related-card__media {
  display: block;
  overflow: hidden;
  border-radius: 1.8rem;
  background: var(--surface-container-low);
}

.single-related-card__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 600ms ease;
}

.single-related-card:hover .single-related-card__media img {
  transform: scale(1.04);
}

.single-related-card__body {
  padding-top: 1rem;
}

.single-related-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.single-related-card__category,
.single-related-card__badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.single-related-card__category {
  color: var(--primary);
}

.single-related-card__badge {
  color: var(--outline);
}

.single-related-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.45rem;
  line-height: 1.14;
}

.single-related-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

@media (max-width: 1023px) {
  .single-entry-related__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .single-entry-related__grid {
    grid-template-columns: 1fr;
  }
}
