.YouTubePopUp-Wrap {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #00000082;
  top: 0;
  left: 0;
  z-index: 9999999999999;
}

.YouTubePopUp-animation {
  opacity: 0;
  animation-duration: 0.5s;
  animation-fill-mode: both;
  animation-name: YouTubePopUp;
}

@keyframes YouTubePopUp {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

body.logged-in .YouTubePopUp-Wrap {
  top: 32px;
  z-index: 99998;
}
/*
.YouTubePopUp-Content {
    max-width: 59.8%;
    width: 100%;
    max-height: 80%;
    height: 100%;
    margin: 70px auto;
    position: relative;
    display: block;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 2% 2% 2% 2%;
    border-radius: 10px;
}*/
.YouTubePopUp-Content {
  max-width: 60.7%;
  width: 100%;
  max-height: 80%;
  height: 100%;
  margin: 70px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 2% 2% 5% 2%;
  border-radius: 10px;
  /*overflow: hidden;  Ensure content within the container doesn't overflow */
}


.YouTubePopUp-Content .YtFB {
  max-width: 100%;
  width: 100%;
  height: auto;
}

.YouTubePopUp-Content video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.YouTubePopUp-Hide {
  animation-duration: 0.5s;
  animation-fill-mode: both;
  animation-name: YouTubePopUpHide;
}
.video-description {
  position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    padding: 0 25px;
    box-sizing: border-box;
}

.video-description p {
	color:#007bff;
	font-weight:700;
}
/*
.YouTubePopUp-Content iframe {
    width: 100%;
    height: 90%;
    top: 0;
    left: 0;
	border:none;
}*/


.YouTubePopUp-Content iframe {
  width: 100%;
  height: 100%;
  border: none;  
}
.YouTubePopUp-Content iframe video {
  width: 100%;
  height: 100%;
  width: -webkit-fill-available; /* For WebKit-based browsers */
}

@keyframes YouTubePopUpHide {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.YouTubePopUp-Close {
  position: absolute;
  top: -5%;
  right: -10%;
  width: 40px;
  height: 40px;
  background: url(../img/close.png) no-repeat;
  background-size: 24px 24px;
  cursor: pointer;
}

.YouTubePopUp-Close:hover {
  opacity: 0.8;
}



@media (max-width: 768px) {
  .YouTubePopUp-Content {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .YouTubePopUp-Content {
    max-width: 100%;
    padding: 20px;
  }

  .YouTubePopUp-Close {
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background-size: 18px 18px;
  }
}
