/*
=========================
YouTube Player styles
=========================
*/
.w-full .contextual {
  width: 5% !important;
}

.video-wrapper {
  overflow: hidden;
}

.youtube-container {
  aspect-ratio: 16 / 9;
  background-color: #000000;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.block-card .youtube-container {
  margin-bottom: auto;
  padding-top: 52.25%;
}

.youtube-container img {
  width: 100%;
  top: 0;
  left: 0;
  opacity: 1;
}

.youtube-container .play-button,
.hero-banner .video-overlay .video-wrapper .youtube-container .play-button {
  width: 50px;
  height: 50px;
  background-color: #0053b3;
  z-index: 10;
  border-radius: 50%;
}

.youtube-container .play-button:before {
  content: "";
  margin-left: 3px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}

/* Smaller play button on a smaller player */
@media screen and (min-width: 1024px) {
  .small-play .youtube-container .play-button:before {
    content: "";
    margin-left: 3px;
    margin-top: 3px;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
  }

  .small-play .youtube-container .play-button {
    width: 40px;
    height: 40px;
  }

  .small-play .youtube-container .play-button:after {
    width: 80px;
    height: 80px;
  }

  .small-play .youtube-container .play-button:hover:after {
    width: 90px;
    height: 90px;
  }
}

.youtube-container img,
.youtube-container .play-button {
  cursor: pointer;
}

.youtube-container img,
.youtube-container iframe,
.youtube-container .play-button,
.youtube-container .play-button:before {
  position: absolute;
  max-height: 100%;
}

.left_panel_thumbnail .youtube-container img {
  position: relative;
}

.youtube-container .play-button,
.youtube-container .play-button:before {
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
}

.right-panel .youtube-container .play-button {
  top: 50%;
  left: 58%;
}

.youtube-container .play-button:after {
  width: 100px;
  height: 100px;
  background-color: rgba(0, 19, 29, 0.25);
  content: "";
  border-radius: 50%;
  transition-duration: .2s;
  z-index: -1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
}

.youtube-container .play-button:hover:after {
  width: 110px;
  height: 110px;
}

.youtube-container .play-button:hover {
  background-color: #003977;
}

.youtube-container .yt-image-container .contextual-region {
  position: static;
}

.youtube-container iframe {
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 10;
}

@media screen and (min-width: 1024px) {
  .full-width-video .youtube-container iframe {
    width: 100vw;
  }
  .full-width-video .youtube-container .play-button {
    margin-top: -44px;
    margin-left: -116px;
  }
  .full-width-video .youtube-container iframe {
      width: 100vw;
  }
  .full-width-video .youtube-container .play-button {
      margin-left: -116px;
  }
}
