/* ═══════════════════════════════════════════════════════════════════
   VIDEO MODAL — Popup player for external video links
   Keeps users on site instead of opening YouTube/Vimeo in new tab
   ═══════════════════════════════════════════════════════════════════ */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
}

.video-modal-content {
  position: relative;
  width: min(1200px, 90vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.video-modal-player {
  width: 100%;
  height: 100%;
}

.video-modal-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .video-modal-content {
    width: 95vw;
  }
  
  .video-modal-close {
    top: -44px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}
