/* YouTube videos are thumbnail links; playback takes place on YouTube. */
a.youtube-video-link {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
}
a.youtube-video-link > img.youtube-video-thumbnail {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.youtube-video-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid #fff;
  filter: drop-shadow(0 1px 4px #000);
}
.youtube-video-link > .youtube-video-notice {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 5px 8px;
  background: #111;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}
a.youtube-video-link:focus, a.youtube-video-card-link:focus {
  outline: 3px solid #005fcc !important;
  outline-offset: -3px;
}
img.youtube-video-card-thumbnail { object-fit: cover; }
/* The carousel's dimming overlay must not intercept thumbnail clicks. */
.slide-02-swiper .swiper-slide::after { pointer-events: none; }
.video_box > a.youtube-video-link { margin-top: 20px; }
.multi-modal ul.viewer li > a.youtube-video-link {
  height: 100%;
  border-radius: 10px;
}
/* Paint the main video focus ring above the thumbnail and neighboring slides. */
.slide-02-swiper a.youtube-video-link:focus::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  box-sizing: border-box; border: 4px solid #005fcc;
  box-shadow: inset 0 0 0 2px #fff;
  pointer-events: none;
}
.slide-02-swiper .swiper-slide:focus-within { z-index: 2 !important; }
.section.first .content-wrap > div.slide-02 .swiper-slide:focus-within::after { display: none; }
@media (forced-colors: active) {
  .slide-02-swiper a.youtube-video-link:focus::after { border-color: Highlight; box-shadow: none; }
}
