.xSlide {
  width: 100%;
  height: 318px;
  overflow: hidden;
  position: relative;
  background-color: #fff;
}

.xSlide > div {
  width: 100%;
  height: 100%;
  background-size:contain;
  position: absolute;
  animation: xSlide 30s infinite; /* 6 slides × 5s = 30s total */
  opacity: 0;
  background-repeat: no-repeat;
}

/* Adjust delays for 6 images */
.xSlide > div:nth-child(1) {
  animation-delay: 0s;
}
.xSlide > div:nth-child(2) {
  animation-delay: 5s;
}
.xSlide > div:nth-child(3) {
  animation-delay: 10s;
}
.xSlide > div:nth-child(4) {
  animation-delay: 15s;
}
.xSlide > div:nth-child(5) {
  animation-delay: 20s;
}
.xSlide > div:nth-child(6) {
  animation-delay: 25s;
}

@keyframes xSlide {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  15% {
    opacity: 1;
  }
  20% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
