@keyframes animate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bottomIn {
  from {
    transform: translateY(500px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Slideshow Container */
.slideshow-container {
  position: relative;
  width: 100%; /* Adjust as needed */
  height: 520px; /* Adjust the height for the slideshow */
  overflow: hidden; /* Hide any part of the images that overflow */
}

/* Hide all images initially */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fade 35s infinite; /* Total duration of all slides cycling */
  border-radius: 20px; /* Rounded corners */
}

/* Fade animation for the slideshow */
@keyframes fade {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Define the delay for each image to create a staggered effect */
.slide:nth-child(1) {
  animation-delay: 0s; 
}

.slide:nth-child(2) {
  animation-delay: 5s; 
}

.slide:nth-child(3) {
  animation-delay: 10s; 
}

.slide:nth-child(4) {
  animation-delay: 15s; 
}

.slide:nth-child(5) {
  animation-delay: 20s;
}

.slide:nth-child(6) {
  animation-delay: 25s;
}

.slide:nth-child(7) {
  animation-delay: 30s;
}

/* Optional: Zoom or Bottom-in animations for specific slides */
.slide.zoom-in {
  animation: zoomIn 5s forwards;
}

.slide.bottom-in {
  animation: bottomIn 5s forwards;
}
