
/* Gallery Styles */
.gallery-container {
  position: relative;
  width: 100%;
  height: 40vw; 
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-bottom: 0px;
}

.gallery-item {
  position: absolute;
  width: 76%; /* Main video width */
  transition: all 0.5s ease-in-out;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  background: #000; /* Background for video */
}

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

.gallery-item.active {
  z-index: 10;
  transform: translateX(0) scale(1);
  opacity: 1;
}

.gallery-item.prev {
  z-index: 5;
  transform: translateX(-85%) scale(0.8);
  opacity: 0.4;
  filter: grayscale(50%);
  pointer-events: auto; /* Allow interaction */
  cursor: pointer;
}

.gallery-item.next {
  z-index: 5;
  transform: translateX(85%) scale(0.8);
  opacity: 0.4;
  filter: grayscale(50%);
  pointer-events: auto; /* Allow interaction */
  cursor: pointer;
}

/* Navigation Buttons */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 20; /* Higher than items */
  transition: background-color 0.3s;
  font-size: 20px;
}

.gallery-nav:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Dots */
.gallery-dots {
  text-align: center;
  margin-top: 10px;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #333;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #bbb;
}

.dot:hover {
  background-color: #717171;
}
