@keyframes scaleUpDown {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.embedded-video .player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
}

.embedded-video .player:hover .yt_playButton {
  animation-name: scaleUpDown;
  -webkit-animation-duration: 0.5s;
  animation-duration: 0.5s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
.embedded-video .player .video_trigger {
  display: none;
  padding: 15px;
  width: 100%;
  height: 100%;
  font-size: 12px;
  line-height: 1.3;
  position: absolute;
  z-index: 9;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.8);
  top: 0;
  left: 0;
}
.embedded-video .player .video_trigger button {
  margin: 10px 0;
}

.embedded-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ytp-watermark {
  display: none !important;
}

.yt_playButton {
  transition: all 0.3s;
  background: url("/modules/custom/custom_youtube_player/css/../image/play.svg") no-repeat;
  background-size: contain;
  position: absolute;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  margin: auto;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
}
.video_caption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.5px;
  color: #616161;
}
.video_caption p {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.5px;
}
.video_caption p a {
  background-image: linear-gradient(0deg, #ED4479 0%, #ED4479 100%);
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: 0 95%;
  transition: background-size 0.3s ease-in,color 0.5s, background 0.5s;
}
.video_caption p a:hover {
   color: #ED4479;
   background-size: 100% 2px;
 }

@media screen and (min-width: 641px) {
  .yt_playButton {
    width: 80px;
    height: 80px;
  }
  .embedded-video .player .video_trigger {
    max-width: 350px;
    margin: 0 auto;
    top: 50%;
    left: 50%;
    height: auto;
    transform: translate(-50%, -50%);
    font-size: 16px;
    line-height: 1.5;
  }
}
