.hero {
  overflow: hidden;
  background: #090908;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 4, .08), rgba(5, 5, 4, .4) 48%, rgba(5, 5, 4, .95));
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroCrossfade 14s infinite;
}

.hero-slide:first-child {
  opacity: 1;
}

.hero-slide:nth-child(2) {
  animation-delay: 7s;
}

.hero-content {
  z-index: 2;
}

@keyframes heroCrossfade {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
  .hero-slide:nth-child(2) { display: none; }
}

@media (max-width: 980px) {
  .hero-slide { background-position: center; }
  .hero-slides::after { background: linear-gradient(0deg, rgba(5, 5, 4, .93), rgba(5, 5, 4, .15) 72%); }
}

@media (max-width: 620px) {
  .hero-slides::after { background: linear-gradient(0deg, #090908 4%, rgba(9, 9, 8, .8) 45%, rgba(9, 9, 8, .12) 80%); }
}
