/* Container for the entire gallery section */

.testimonial-controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none; 
  z-index: 10;
}
  
  .testimonial-container {
  display: flex;
  flex-wrap: nowrap; /* Forces items to stay in one line */
  transition: transform 0.5s ease-in-out;
  width: 100%; 

}
  
  .testimonial-item {
flex: 0 0 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 450px; /* Set a standard height for the 'window' */
  overflow: hidden;
  }

/* Ensure images fit well within the slider */
.gallery-img, .video-css {
  border-radius: 15px;
 box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  width: 100%;         /* Takes up the full width of the testimonial-item */
  max-width: 100%;     /* Prevents it from ever growing larger than its actual size */
  height: 100%;        /* Maintains the original aspect ratio so it doesn't look stretched */
  display: block;      /* Removes extra space at the bottom of the image */
  object-fit: contain;
   border: 1px solid #885df1;
}

.gallery-img:hover, .video-css:hover {
  transform: scale(1.02);
}

/* Positioning controls over the gallery */
.testimonial-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none; /* Prevents container from blocking clicks */
  z-index: 10;
}
/* Navigation Buttons Styling */
.testimonial-controls button {
  pointer-events: auto; 
  background: rgba(174, 31, 138, 0.8); 
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  
  /* These lines pull the buttons outside the 100% width container */
  position: relative;
}

.testimonial-controls button:hover {
  background: rgba(174, 31, 138, 1);
  transform: scale(1.1);
}

.prev-btn {
  left: -20px; /* Pulls the button left, away from the image */
}

.next-btn {
  right: -20px; /* Pulls the button right, away from the image */
}

/* Ensure the main container has enough side padding so the buttons don't hit the screen edge */
.testimonials {
  overflow: visible; /* Changed from hidden to see buttons if they go outside */
  position: relative;
  width: 85%; /* Give some space on the sides for the buttons to live */
  margin: 0 auto;
  padding: 20px;
}

/* We still want the inner part to hide the sliding images */
.testimonial-container-wrapper {
    overflow: hidden;
    width: 100%;
   
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-img {
    max-width: 95%;
  }
  

  .testimonials {
    width: 95%; /* Use more of the screen width on mobile */
  }

  .gallery-img, .video-css {
    max-width: 100%; /* Make images fill the container better */
  }

  /* Reset the buttons so they don't hang off the screen */
  .prev-btn {
    left: 5px; 
  }

  .next-btn {
    right: 5px;
  }

  .testimonial-controls button {
    padding: 8px 12px; /* Smaller buttons for thumbs */
    font-size: 12px;
  }
}
