/* ==========================================================================
   PROGRAMS PAGE (programs.html) — loads after css/global.css
   Media Production Services (#media) & Featured Flagship Shows (#shows).
   The responsive column count (3 → 2 → 1) comes from .news-grid in
   global.css; this file makes the cards uniform inside that grid.
   Desktop (≥ 992px) is unchanged.
   ========================================================================== */

@media (max-width: 991px) {

  /* Every row the same height, so columns and rows stay balanced */
  #media .news-grid,
  #shows .news-grid {
    grid-auto-rows: 1fr;
  }

  /* Media Production cards (.card-panel with icon) */
  #media .card-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
  }
  #media .card-panel h4 {
    font-size: 1rem;
    color: var(--primary-navy);
    line-height: 1.35;
  }

  /* Flagship Show cards (.news-card) */
  #shows .news-card { min-width: 0; }
  #shows .news-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  /* Card images (ready for when photos are added): same 16:9 frame on
     every card, cropped — never stretched. */
  #media .card-panel > img,
  #shows .news-img-box {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }
  #media .card-panel > img,
  #shows .news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
