.video-gallery-video-wrapper-video {
  position: relative;
  overflow: hidden;
  margin: 0 40px;
}

.video-gallery-video {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
}

.video-card-video {
  flex: 1 0 33.333%;
  box-sizing: border-box;
  padding: 10px;
  background: white;
  margin: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  text-align: center;
}

.video-card-video img {
  width: 100%;
  border-radius: 6px;
}

.video-card-video h3 {
  margin: 10px 0 5px;
  font-size: 18px;
}

.video-card-video p {
  font-size: 14px;
  color: #666;
}

/* Modal */
.modal-video {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-video-content {
  position: relative;
  width: 80%;
  max-width: 800px;
  background: #000;
  padding: 20px;
  border-radius: 10px;
}

.modal-video-content iframe {
  width: 100%;
  height: 450px;
  border: none;
}

.close-button-video {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

/* Nav buttons */
.nav-button-video {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  font-size: 32px;
  color: #333;
  background: rgba(255,255,255,0.8);
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 10px;
  border-radius: 50%;
}

.nav-button-video.left {
  left: -20px;
}

.nav-button-video.right {
  right: -20px;
}

/* Responsive layout */
@media (max-width: 900px) {
  .video-card-video {
    flex: 1 0 50%;
  }
}

@media (max-width: 600px) {
  .video-card-video {
    flex: 1 0 100%;
  }
}