/* Base Body Styles */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #111;
  color: #fff;
  width: 100%;
  overflow-x: hidden;
  min-width: 320px;
  box-sizing: border-box;
}

/* Video Gallery Grid */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 120px 40px 40px;
  width: 100%;
  box-sizing: border-box;
}

/* Individual Video Containers */
.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #222;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  position: relative;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

/* Video Modal (Hidden by Default) */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

/* Show Modal When Active */
.video-modal.show {
  display: flex;
}

/* Modal Inner Container */
.modal-content {
  background-color: #000;
  border-radius: 12px;
  padding: 16px;
  max-width: 90vw;
  width: 700px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
  animation: zoomIn 0.3s ease-in-out;
}

/* Modal Video */
.modal-content video {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Close Button for Modal */
.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  background: #fff;
  color: #000;
  font-size: 28px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Zoom Animation */
@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .modal-content {
    width: 95vw;
    padding: 12px;
  }

  .close-btn {
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    font-size: 22px;
    line-height: 32px;
  }
}
