
.video-section {
  padding: 40px 20px;
  background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb');
  background-size: cover;
  background-position: center;
  position: relative;
}

.filters {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}


.filters button {
  padding: 10px 20px;
  margin: 5px;
  background: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  font-weight: bold;
  flex-shrink: 0;
}

.filters button.active {
  background: #000;
  color: #fff;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.video-item {
  position: relative;
  width: 300px;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  flex: 0 0 auto;
  cursor: pointer;
}

.video-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.video-item:hover .overlay-text {
  opacity: 1;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.play-button::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 15px;
  width: 0;
  height: 0;
  border-left: 16px solid black;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.video-item:hover .play-button {
  opacity: 0;
}

.video-item.hidden {
  display: none;
}

/* Lightbox styles */
#video-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#video-lightbox iframe {
  width: 80%;
  height: 80%;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

