.slideshow-container {
  max-width: 90%;
  margin: 0 auto 30px;
  position: relative;
  overflow: visible;
}

.slides-wrapper {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  transition: transform 0.5s ease;
}

.slide.active {
  z-index: 2;
}

.slide {
  box-sizing: border-box;
  flex: 0 0 calc(33.3333% - 20px);
  min-width: calc(33.3333% - 20px);
  margin: 0 10px;
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible; /* Make sure shadows aren't clipped */
  border-radius: 10px; /* Ensure this matches the parent's border-radius if there is one */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adjust the shadow to be visible around corners */
  z-index: 1; /* Adjust as necessary */
}

.thumbnail-container {
  background-color: transparent;
  border-radius: 10px;
  padding: 0;
  display: inline-block;
  position: relative;
}

.image-container {
  position: relative; /* Direct parent of img should be relative */
  line-height: 0; /* Remove space below the image */
  /* No padding here */
}

.image-container img {
  display: block; /* Removes bottom space/margin under the image */
  width: 100%;
  height: auto;
  border-radius: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.slide.active .image-container:hover img {
  transform: scale(0.975); /* Slight zoom effect on hover */
  opacity: 0.8;
}

.slide.active .image-container:hover::after {
  content: '';
  background-image: url('../images/play.png'); /* Path to your play button image */
  background-size: 50%; /* Adjust according to the size of your image */
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background for the circle */
  border-radius: 50%; /* Circular background */
  width: 60px; /* Fixed size for the icon container, adjust as needed */
  height: 60px; /* Fixed size for the icon container, adjust as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

.slide-description h3, .slide-description p {
  margin: 2px;
}

.slide-description {
  margin-top: 5px;
  font-size: 25px;
  text-align: center;
}

.prev, .next {
  right: 12px;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 123, 255, 0.85);
  transform: translateY(-50%) scale(1.1);
}

.prev {
  left: 12px;
}

.next {
  right: 12px;
}
