
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.video-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  z-index: 999;
}

/* Modal Container */
.video-popup-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 16px;
  z-index: 1000; /* Correct for being on top of overlay */
  border-radius: 10px;
  display: none;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  width: 90%;
  max-width: 640px;
  max-height: 90vh;
  overflow: visible !important; 
}

.video-popup-modal .video-container {
  width: 100%;       /* Take full width of its parent within the modal */
}




/* Close Button */
.video-popup-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  z-index: 1001;
  background: #fff;
  color: #000;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  border: 1px solid #ccc;
  transition: all 0.3s ease;
}

.video-popup-close:hover {
  background-color: #f44336;
  color: #fff;
  border-color: #f44336;
}
/* Responsive Video */
.video-popup-modal video {
  width: 100%;
  height: auto;
  max-height: 50vh;
  display: block;
  margin: 0 auto;
}

/* Popup Content */
.popup-content {
  text-align: center;
  margin-top: 1.5em;
}

/* Responsive Buttons */
.popup-content button {
  margin: 10px 5px;
  padding: 10px 16px;
  font-size: 1rem;
  width: auto;
}
#popup {
  display: none; /* This ensures it's hidden initially */
  margin-top: 1.5em;
  text-align: center;
}

/* Smaller text/buttons on very small screens */
@media screen and (max-width: 480px) {
  .popup-content button {
    width: 100%;
    margin: 8px 0;
  }
}
