/* Parallax Video Container */

#popup-video {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

@media (min-width: 992px) {
  #popup-video {
    height: 500px;
  }
}

@media (max-width: 991px) {
  #popup-video {
    height: 180px;
  }
}

.parallax-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Parallax Video with background-attachment */

.parallax-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Play Button Styling */

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9) !important;
  border: none !important;
  color: #000 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 0 !important;
  font-size: 24px;
  font-weight: bold;
}

.play-button:hover {
  background: rgba(255, 255, 255, 1) !important;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.play-button:active {
  transform: translate(-50%, -50%) scale(0.95);
}

/* Vanilla JS Modal Styling */

#videoModal {
  display: none !important;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

#videoModal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 90vw;
  height: auto;
  max-height: 90vh;
  background: #000;
}

.video-modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 65px;
  font-weight: bold;
  color: #0054a4;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
  padding: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  text-shadow: 2px 2px #000;
}

.video-modal-close:hover {
  color: #a60840;
  text-shadow: 2px 2px #0054a4;
}

#modal-video {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Design */

@media (min-width: 992px) {
  #popup-video {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .play-button {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
}

@media (max-width: 991px) {
  .video-modal-content {
    width: 95%;
    max-width: 95vw;
    max-height: 95vh;
  }
}

@media (max-width: 991px) {
  .video-modal-close {
    right: 10px;
    top: 10px;
    font-size: 28px;
  }
}

@media (max-width: 991px) {
  .parallax-video {
    /*left: 50%;*/
    /*transform: translateX(-50%);*/
    min-width: 120%;
    min-height: 300%;
    width: 120%;
    height: 200%;
  }
}

