/* --- 4. GALLERY SECTION (SLIDING TRACK) --- */
.gallery-section {
    position: relative;
    overflow: hidden; /* Hides scrollbars */
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Container styling */
.gallery-container {
  max-width: 800px;
  position: relative;
  margin: auto;
  overflow: hidden;
  border-radius: 15px; /* Optional: rounds the corners slightly */
}

/* Hide the slides by default */
.slide {
  display: none;
}

/* Ensure images scale correctly */
.slide img {
  width: 100%;
  display: block;
}

/* Arrow styling */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.3s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for visibility */
  text-decoration: none;
}

/* Position the "prev" arrow to the left */
.prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}


/* Position the "next" arrow to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* Hover effect for arrows */
.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}