/* "Highlights" sections: click-to-play YouTube videos (js/video-embeds.js). */

.video-highlights {
  padding: 60px 0;
  background: #f8f9fa;
}

.video-highlights .section-title {
  margin-bottom: 12px;
}

.video-highlights-intro {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
  color: #555;
  line-height: 1.6;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
  justify-content: center;
  gap: 24px;
  align-items: start;
}

/* Landscape videos get their own, wider row above the vertical ones. */
.video-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1040px;
  margin: 0 auto 24px;
}

/* Phones: two vertical videos side by side rather than one a screen tall. */
@media (max-width: 560px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .video-grid-wide {
    grid-template-columns: 1fr;
  }

  .video-card figcaption {
    padding: 10px 12px 12px;
    font-size: 0.85rem;
  }
}

.video-card {
  margin: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #0a5566;
}

.video-card.is-landscape .video-frame {
  aspect-ratio: 16 / 9;
}

.video-frame iframe,
.video-frame .yt-lite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-lite {
  display: block;
  padding: 0;
  cursor: pointer;
  background: #0a5566;
}

.yt-lite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-lite .yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.72);
  transition: background 0.2s ease;
}

.yt-lite .yt-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -7px;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}

.yt-lite:hover .yt-play,
.yt-lite:focus-visible .yt-play {
  background: #e62117;
}

.yt-lite:focus-visible {
  outline: 3px solid #c5e1a5;
  outline-offset: -3px;
}

.video-card figcaption {
  padding: 14px 16px 16px;
  color: #444;
  font-size: 0.92rem;
  line-height: 1.5;
}

.video-card figcaption strong {
  display: block;
  color: #0a5566;
  margin-bottom: 4px;
}

.video-card figcaption a {
  color: #0a5566;
  font-weight: 600;
}

.video-highlights-more {
  margin-top: 28px;
  text-align: center;
}
