/* Video popup play button overlay styling */
.videopopup-trigger {
  overflow: hidden;
  position: relative;
  display: block;
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.play-icon {
  width: 64px;
  height: 64px;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.videopopup-trigger:hover .play-icon {
  transform: scale(1.1);
  opacity: 1;
}

/* Video popup modal layout */
.videopopup-modal .videopopup-modal-dialog {
  max-width: 100%;
  width: 100%;
  margin: 210px auto 0;
}

.videopopup-modal .modal-content {
  border: 0;
  border-radius: 0;
  background-image: linear-gradient(90deg, rgba(237, 80, 96, .5) -11.28%, rgba(206, 215, 254, .5) 50%);
}

/* Title area: centered, sits between top of popup and the video */
.videopopup-modal .modal-header {
  border: 0;
  position: static;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: Montserrat;
}

.videopopup-modal .modal-title {
  width: 100%;
  text-align: center;
  margin: 0;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 0.5;
  margin-top: 2.5rem;
}

.videopopup-modal .modal-body {
  padding: 3rem 0 !important;
  padding-bottom: 7rem !important;
}

.videopopup-modal .btn-close {
    display: block;
    margin-left: 0 !important;
    margin-right: auto !important;
    background: none;
    width: auto;
    height: auto;
    opacity: unset;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 3rem; /* Adjust as needed */
    z-index: 1;

}
.videopopup-modal .btn {
    border: 1px solid #2B2C4F;
    background-color: transparent;
    color: #2B2C4F;
    padding: 9px 30px;
    border-radius: 25px !important;
    transition: background-color .3s ease;
    font-size: 0.8125rem;
    font-weight: 700;
}
.videopopup-modal .btn:hover {
    background-color: #2B2C4F;
    color: white;
}

/* Video: full width on mobile, height follows aspect ratio */
.videopopup-modal .videopopup-video-wrap {
  padding-left: 0;
  padding-right: 0;
}

.videopopup-modal .videopopup-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
}



/* Desktop: popup 228px from top, 756px tall, full width;
   title block 140px tall so the video starts 140px from the top;
   video ~70% of container with 15% margins each side. */
@media (min-width: 992px) {
  .videopopup-modal .videopopup-modal-dialog {
    margin: 235px auto 0;
    /* height: 756px; */
  }

  .videopopup-modal .btn-close {
    position: relative;
    left: 0;
    transform: none;
    bottom: unset;
  }

  .videopopup-modal .modal-header {
    height: 140px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .videopopup-modal .videopopup-video-wrap {
    padding-left: var(--bs-gutter-x, 1.5rem);
    padding-right: var(--bs-gutter-x, 1.5rem);
  }

  .videopopup-modal .videopopup-video-wrap video {
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
  }

  .videopopup-modal .modal-body {
    padding-bottom: 5rem !important;
  }

  .videopopup-modal .modal-title {
    margin-top: 0;
  }
}
