.heroSlideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 2;
    padding-top: 40%;  /* for older browsers that don't support CSS aspect-ratio */
    margin: 0 auto;
    overflow: hidden;
}

.heroSlide {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  animation: heroCrossfade 12s infinite;
}

.heroSlide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.heroSlide:nth-child(1) { animation-delay: 0s; }
.heroSlide:nth-child(2) { animation-delay: 6s; }

@keyframes heroCrossfade {
    0%   { opacity: 0; }
    15%  { opacity: 1; }
    50%  { opacity: 1; }
    65%  { opacity: 0; }
    100% { opacity: 0; }
}

.heroCaption {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #eeeeee;
    padding: 6px 10px;
    font-size: 13px;
    font-style: normal;
    border-radius: 4px;
}
