/**
 * Paragraph - Video
 */

 body.popup-open {
  overflow: hidden;
}

.paragraph--type--video {
  text-align: center;
}

.paragraph--type--video img {
  border-radius: 15px;
  overflow: hidden;
}
/* popup video */

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.popup.active {
  display: flex;
}

.popup-content {
  position: relative;
  max-width: 1100px;
  max-height: 80vh;
  width: 90%;
  background-color: transparent;
  border-radius: 10px;
  text-align: center;
  overflow: hidden;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  max-width: 100%;
}

.video-container video {
  height: 100%;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.popup-trigger {
  position: relative;
}

.popup-trigger::before {
  content: url("../../images/play-video.svg");
  position: absolute;
  top: 50%;
  z-index: 111;
  transform: translate(-50%, -50%);
}

.close-popup {
  content: url(../../images/close-popup.svg);
  position: relative;
  display: inline-block;
  top: 55px;
  cursor: pointer;
  z-index: 999;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 0;
}

@media (min-width: 1000px) {
  .close-popup {
    content: url(../../images/close-popup.svg);
    position: relative;
    display: block;
    align-items: stretch;
    top: 55px;
    z-index: 999;
    padding: 0rem;
    left: 95%;
  }

  .popup-content {
    padding-right: 3rem;
  }
}
