.wr-wrap {
  margin: 1.5rem 0 0;
}

.wr-heading {
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.wr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wr-card {
  min-width: 0;
}

.wr-card-link {
  color: inherit;
  text-decoration: none;
}

.wr-thumb-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #f5f5f5;
}

.wr-thumb-wrap::before {
  content: "";
  display: block;
  padding-top: 141%;
}

.wr-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wr-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #555;
  background: #e9e9e9;
}

.wr-title {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.wr-empty {
  margin: 0;
}

@media (max-width: 767px) {
  .wr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   ATLAS Editorial 1.0.1 — compact creator / related cards
   The legacy recommendation stylesheet used padding-top:141%,
   which forced portrait-shaped cards. These blocks should be
   compact 4:3 cards, consistent with the site front-end.
========================================================= */
.wr-wrap--creator .wr-thumb-wrap,
.wr-wrap--related .wr-thumb-wrap {
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

.wr-wrap--creator .wr-thumb-wrap::before,
.wr-wrap--related .wr-thumb-wrap::before {
  content: none !important;
  display: none !important;
  padding-top: 0 !important;
}

.wr-wrap--creator .wr-thumb,
.wr-wrap--related .wr-thumb {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

.wr-wrap--creator .wr-title,
.wr-wrap--related .wr-title {
  -webkit-line-clamp: 2 !important;
  min-height: 2.9em;
  max-height: 2.9em;
}
