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

.xSlide > div {
  width: 100%;
  height: 100%;
  background-size: cover;
  position: absolute;
  animation: xSlide 20s infinite; /* 4 slides × 5s = 20s total */
  opacity: 0;
}

.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;
}

@keyframes xSlide {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
