/* Uniform cards / equal heights / fixed thumbnails */
.mgv6-grid {
  align-items: stretch;
}

.mgv6-card {
  height: 100%;
  min-height: 100%;
}

.mgv6-card__media {
  aspect-ratio: 4 / 3 !important;
  min-height: 240px;
  max-height: 240px;
  overflow: hidden;
  border-bottom: 1px solid #edf1ed;
}

.mgv6-card__img,
.mgv6-card__placeholder {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.mgv6-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 300px;
}

.mgv6-card__title {
  min-height: 4.9em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-wrap: balance;
  margin-bottom: 0;
}

.mgv6-card__excerpt {
  min-height: 6.6em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  margin-bottom: 0;
}

.mgv6-card__meta {
  margin-top: auto;
  padding-top: 4px;
}

/* Optional consistency for featured article block */
.mgv6-featured__media {
  aspect-ratio: 4 / 3 !important;
  min-height: 360px;
}

.mgv6-featured__img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 1180px) {
  .mgv6-card__media {
    min-height: 220px;
    max-height: 220px;
  }
}

@media (max-width: 980px) {
  .mgv6-card__body {
    min-height: 280px;
  }
  .mgv6-card__media {
    min-height: 230px;
    max-height: 230px;
  }
}

@media (max-width: 680px) {
  .mgv6-card__media {
    min-height: 220px;
    max-height: 220px;
  }
  .mgv6-card__body {
    min-height: auto;
  }
  .mgv6-card__title {
    min-height: auto;
    -webkit-line-clamp: 3;
  }
  .mgv6-card__excerpt {
    min-height: auto;
    -webkit-line-clamp: 3;
  }
}
