.video-gallery {
  display: flex;
  justify-content: center;
  gap: 6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.video-gallery video {
  width: 300px;
  height: auto;
  cursor: pointer;
  border: 2px solid #ccc;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.video-gallery video:hover {
  transform: scale(1.05);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal video {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
}

.video-close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Responsive styles */
@media (max-width: 768px) {
  .video-gallery {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .video-gallery video {
    width: 90%;
    max-width: 100%;
  }

  .modal video {
    max-width: 95%;
    max-height: 60vh;
  }

  .video-close {
    top: 10px;
    right: 20px;
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .modal video {
    max-height: 50vh;
  }

  .video-close {
    font-size: 28px;
  }
}
