/* Spectrum-supplied sports artwork, kept intact and at its natural proportions.
 * ESPN+ for Business and Peacock source page:
 * https://www.spectrum.com/business/small-business/tv/sports-fan-tv
 * Original files (642 x 428):
 * /content/dam/spectrum/business65/en/campaign-lp/tv/SportsFanTV/espn.png
 * /content/dam/spectrum/business65/en/campaign-lp/tv/SportsFanTV/peacock.png
 * NFL RedZone original (257 x 49):
 * /content/dam/spectrum/business65/en/campaign-lp/bars-and-restaurants/heros/Rea_Zone_TV_bar.png
 * Partner artwork is shown as examples of available programming, not a promise
 * that every sports service is included in a particular TV package.
 */
.af-tv-sports {
  container-name: sports-card;
  container-type: inline-size;
}

.af-tv-sports .af-sports-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  max-width: 760px;
  box-sizing: border-box;
  margin: 24px 0;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid #163f60;
  border-radius: 18px;
  background: linear-gradient(115deg, #082a45 0%, #123e5c 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
}

.af-tv-sports .af-sports-logos img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 220px;
  max-height: 148px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: none;
}

.af-tv-sports .af-sports-logos img[src*="tv-redzone"] {
  width: 100%;
  height: auto;
  max-width: 230px;
  max-height: 70px;
  aspect-ratio: 257 / 49;
  border-radius: 0;
}

@media (max-width: 600px) {
  .af-tv-sports .af-sports-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .af-tv-sports .af-sports-logos img[src*="tv-redzone"] {
    grid-column: 1 / -1;
    width: min(100%, 230px);
    margin: 6px 0;
  }
}

@container sports-card (max-width: 520px) {
  .af-tv-sports .af-sports-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .af-tv-sports .af-sports-logos img[src*="tv-redzone"] {
    grid-column: 1 / -1;
    width: min(100%, 230px);
    margin: 6px 0;
  }
}

@media print {
  .af-tv-sports .af-sports-logos {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
