.picture-carousel {
  overflow: hidden;
  position: relative;
  height: 50vh;
  display: flex;
  justify-content: center;

  margin-top: 2rem;
}

.picture-element {
  display: block;
  height: 50vh;
  width: 50vh;

  position: absolute;
  opacity: 0;
  animation: carousel 30s infinite;
  transition: opacity 0.5s ease-in-out;
}

@keyframes carousel {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  5% {
    transform: translateX(0);
    opacity: 1;
  }
  10% {
    transform: translateX(0);
    opacity: 1;
  }
  15% {
    transform: translateX(-150%);
    opacity: 0;
  }
  100% {
    transform: translateX(-150%);
    opacity: 0;
  }
}

img:nth-child(2) {
  animation-delay: 3s;
}
img:nth-child(3) {
  animation-delay: 6s;
}
img:nth-child(4) {
  animation-delay: 9s;
}
img:nth-child(5) {
  animation-delay: 12s;
}
img:nth-child(6) {
  animation-delay: 15s;
}
img:nth-child(7) {
  animation-delay: 18s;
}
img:nth-child(8) {
  animation-delay: 21s;
}
img:nth-child(9) {
  animation-delay: 24s;
}
img:nth-child(10) {
  animation-delay: 27s;
}
