/* Media Centre index. Card metrics measured off the live page at 1920:
   4 columns of 349px, 32px apart; 261px image; 25px inner padding;
   12px date, 22px title, 16px excerpt. */

.media-page {
  min-height: 136rem;              /* 2176 */
  padding: 4.25rem var(--gutter) 10.5rem;   /* 68 top, 168 bottom */
  background: var(--paper);
  text-align: center;
}
.media-page__title { font-size: var(--fs-h1); line-height: var(--lh-h1); }
.media-page__lead { margin-top: 2.3125rem; font-size: var(--fs-sm); }   /* 37 */

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 21.8125rem);   /* 349 */
  justify-content: center;
  gap: 3.8125rem 2rem;             /* 61 row / 32 column */
  margin-top: 5.8125rem;           /* 93 */
  text-align: left;
}

.media-card { background: var(--paper); }
.media-card img {
  width: 100%;
  aspect-ratio: 349 / 261;
  object-fit: cover;
}
.media-card__body { padding: 1.5625rem; }        /* 25 */
.media-card__date { font-size: 0.75rem; color: #5c5c5c; }   /* 12 */
.media-card__title {
  margin-top: 1.5rem;
  font-size: 1.375rem;             /* 22 */
  font-weight: 700;
  line-height: 1.3;
  /* The original clamps to two lines; keep that so the grid stays even. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-card__excerpt {
  margin-top: 0.6875rem;
  font-size: 1rem;                 /* 16 */
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-card a:hover .media-card__title { text-decoration: underline; }

@media (max-width: 999px) {
  .media-page { min-height: 0; padding: 3rem var(--gutter) 4rem; }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1.5rem;
    margin-top: 3rem;
  }
}

@media (max-width: 749px) {
  .media-grid { grid-template-columns: 1fr; max-width: 22rem; margin-inline: auto; }
}
