/* ==========================================================================
     PopUp Container
     ========================================================================== */
.popUp-container-video {
  min-height: 200px;
  max-height: 480px;
  aspect-ratio: 16 / 9;

  border-radius: 12px;

  cursor: pointer;

  position: relative;
  overflow: hidden;
}

.popUp-container-video picture img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.popUp-container-video::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  width: 56px;
  height: 56px;
}

@media (min-width: 1024px) {
  .popUp-container-video {
    max-width: 954px;
  }
}

.popUp-container .popUp-container_wrapper {
  display: flex;
  flex-direction: column;
}

.popUp-container .popUp-container_wrapper.h2_header {
  gap: 24px;
}

.popUp-container .popUp-container_wrapper.h3_header {
  gap: 16px;
}

.popUp-container h2 {
  font-weight: 500;
  font-size: 22px;
  line-height: 28px;
  margin-bottom: 0px;
}

.popUp-container h3 {
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 0px;
}

.popUp-container-video:hover::after {
  animation: 1s rebote-express 1;
}

/* ==========================================================================
     PopUp Modal
     ========================================================================== */

.text-video-popup {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10;
  display: none;
  justify-content: center;
  align-items: center;
}

.text-video-popup.open {
  display: flex;
}

.text-video-popup button {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 40px;
  width: 40px;
  background: none;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.text-video-popup button::after,
.text-video-popup button::before {
  content: "";
  width: 100%;
  height: 2px;
  background-color: white;
  display: block;
  position: absolute;
}

.text-video-popup button::after {
  transform: rotate(45deg);
}

.text-video-popup button::before {
  transform: rotate(-45deg);
}

.text-video-popup iframe {
  width: 80vw;
  height: 45vw;
  border: none;
}

/* ==========================================================================
     Animations
     ========================================================================== */

@keyframes rebote-express {
  20% {
    transform: translate(-50%, -50%) scale(0.8);
  }

  40% {
    transform: translate(-50%, -50%) scale(1.2);
  }

  60% {
    transform: translate(-50%, -50%) scale(0.9);
  }

  80% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* ==========================================================================
     Media Queries
     ========================================================================== */

@media (min-width: 1024px) {
  .popUp-container .popUp-container_wrapper.h2_header {
    gap: 32px;
  }

  .popUp-container .popUp-container_wrapper.h3_header {
    gap: 24px;
  }

  .popUp-container h2 {
    font-size: 32px;
  }

  .popUp-container h3 {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .text-video-popup button {
    width: 30px;
  }

  .text-video-popup iframe {
    width: calc(100vw - 30px);
  }
}