/* Modal Background */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal Box */
.video-content {
  position: relative;
  width: 80%;
  max-width: 900px;
}


.open-video {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(250, 250, 250, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



/* Close Button */
.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    width: 35px;
    height: 35px;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}
.close-btn:hover {
  background-color: var(--primary-color);
}

/* Responsive Video */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

#popupVideo {
    width: 100%;
    display: block;
}
#popupVideo video {
  width: 100%;
  display: block;
  max-width: 100%;
}