/* 비디오 팝업 */
#popup_video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1002;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
}

#popup_video.video_on {
  opacity: 1;
  pointer-events: all;
  display: flex;
}

.dimmed {
  background: rgba(255, 255, 255, 0.9);
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

#popup_video .popup {
  width: 900px;
  height: 535px;
  display: flex;
  align-items: center;
  position: relative;
  transform: translateY(70px);
  opacity: 0;
  animation: popup_translate 0.8s 2.8s ease forwards;
}

@keyframes popup_translate {
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.video_box {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video_box > p {
  position: absolute;
  bottom: -100px;
}

.video_box {
  position: relative;
  padding-top: 56%;
  /* 4:3일 비율일 경우 */
  /* padding-top: 75% */
  width: 100%;
  height: 0;
  border: 15px solid #000;
  background: #000;
}

.video_box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#popup_video .close_btn {
  box-sizing: border-box;
  background: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(../images/icon/p_close_btn.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 50px;
  height: 50px;
  transition: 0.2s ease;
  position: absolute;
  top: -60px;
  right: 0;
}

@media (min-width: 769px) {
  #popup_video .close_btn:hover {
    scale: 1.1;
  }
}

@media (max-width: 900px) {
  #popup_video .popup {
    height: 0;
    position: unset;
  }

  #popup_video .close_btn {
    top: 20px;
    right: 10px;
  }
}

@media (max-width: 768px) {
  #popup_video .close_btn {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 550px) {
  #popup_video .close_btn {
    width: 25px;
    height: 25px;
  }
}
