/* Prevent stale auxiliary styles from enlarging the dynamic daily cards. */
#today-programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

#today-programs .today-program {
  display: block;
  min-width: 0;
  overflow: hidden;
}

#today-programs .today-photo-frame {
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100% !important;
  height: 210px !important;
  min-height: 210px !important;
  max-height: 210px !important;
  overflow: hidden !important;
  flex: 0 0 210px;
  background: #fff;
}

#today-programs .today-host-photo {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff;
}

/* Keep every weekly-program flyer complete and in its original proportion. */
#programacion .program-card img {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff;
}

@media (max-width: 720px) {
  #today-programs {
    grid-template-columns: minmax(0, 1fr);
  }

  #today-programs .today-photo-frame {
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
  }
}
