/* Wrapper to hold the entire structure */
.popup-video-wrapper {
  position: relative;
  width: 100%;
}

/* Absolute positioning for layered backgrounds */
.popup-video-wrapper__background-wrapper {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Blue background layer */
.popup-video-wrapper__bg {
  width: 100%;
  height: 100%;
  z-index: 1; /* Ensure it is behind the image */
  position: relative;
}

/* Image background layer */
.popup-video-wrapper__thumbail {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  z-index: 3; /* Ensure it is above the blue background */
  position: relative;
  right: 0;
  padding: 20px;
  min-height: 250px;
}
.popup-video-wrapper__thumbail svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%);
  transition: all 0.25s ease-in-out;
}
.popup-video-wrapper__thumbail:hover {
  cursor: pointer;
}
.popup-video-wrapper__thumbail:hover svg {
  fill: var(--pepper-red);
  transform: translate(-50%, -50%) scale(1.2);
}
/* Container positioned over the backgrounds */
.popup-video-wrapper .container {
  position: relative; /* Positioned relative to .wrapper */
  z-index: 2; /* Ensure it is above both backgrounds */
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.popup-video-wrapper .container .popup-video-wrapper__content {
  width: 100%;
  padding: 40px 0px;
}

/* VIDEO POPUP */

.video-popup-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100vh;
  transform: translate(-50%, -50%);
  z-index: 999999;
  background-color: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  display: none;
  padding: 20px;
}
.video-popup-wrapper.active {
  display: flex;
}
.video-popup-wrapper__close {
  position: absolute;
  top: -60px;
  right: -10px;
  cursor: pointer;
  background-color: var(--white);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-popup-wrapper__video {
  max-width: 1000px;
  border: 10px solid white;
  border-radius: 15px;
  position: relative;
  background-color: var(--white);
}
.video-popup-wrapper__video video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
  max-height: 600px;
}

.popup-video-wrapper--right .container {
  align-items: flex-end;
}
.popup-video-wrapper--right .container .popup-video-wrapper__content {
}
.popup-video-wrapper--right .popup-video-wrapper__thumbail {
  right: auto;
  left: 0;
}

@media screen and (min-width: 768px) {
  .video-popup-wrapper {
    padding: 60px;
  }
  .video-popup-wrapper__close {
    right: -60px;
  }
  /* Wrapper to hold the entire structure */
  .popup-video-wrapper {
    position: relative;
  }

  /* Absolute positioning for layered backgrounds */
  .popup-video-wrapper__background-wrapper {
    position: absolute;
  }

  /* Blue background layer */
  .popup-video-wrapper__bg {
    width: 50%;
    position: absolute;
  }

  /* Image background layer */
  .popup-video-wrapper__thumbail {
    width: 50%;
    z-index: 3; /* Ensure it is above the blue background */
    position: absolute;
  }
  .popup-video-wrapper .container .popup-video-wrapper__content {
    width: 50%;
    padding: 75px 36px 75px 0;
  }
  .popup-video-wrapper--right .container .popup-video-wrapper__content {
    padding: 75px 36px;
  }
}

@media screen and (min-width: 1024px) {
  .popup-video-wrapper .container .popup-video-wrapper__content {
    width: 50%;
    padding: 150px 150px 150px 0;
    
  }
  .popup-video-wrapper--right .container .popup-video-wrapper__content {
    padding: 150px 150px 150px 36px;

}
