.home-carousel {
    position: relative;
    width: 100%;
    max-width: 1730px;
    margin: 0 auto 2rem;
    overflow: hidden;
}

.home-carousel__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 926 / 257;
    max-height: var(--home-carousel-height, 480px);
    overflow: hidden;
    background: #111;
}

/*.home-carousel__track,
.home-carousel__slide,
.home-carousel__link {
    display: block;
    width: 100%;
    height: 100%;
}*/

.home-carousel__track,
.home-carousel__slide,
.home-carousel__link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.home-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .65s ease;
    pointer-events: none;
}

.home-carousel__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-carousel .home-carousel__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    min-width: 100%;
    max-width: none !important;
    height: 100% !important;
    min-height: 100%;
    max-height: none !important;
    margin: 0;
    object-fit: fill;
    object-position: center;
}

/*.home-carousel__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-fit: fill;
    object-position: center;
}*/

.home-carousel__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 4rem 1.5rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, .82));
}

.home-carousel__caption h2 {
    margin: 0 0 .35rem;
    color: inherit;
    font-size: clamp(1.35rem, 3vw, 2.4rem);
}

.home-carousel__caption p {
    margin: 0;
    font-size: 1rem;
}

.home-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 1.7rem;
    cursor: pointer;
}

.home-carousel__arrow:hover,
.home-carousel__arrow:focus {
    background: rgba(0, 0, 0, .8);
}

.home-carousel__arrow--prev { left: 1rem; }
.home-carousel__arrow--next { right: 1rem; }

.home-carousel__dots {
    display: flex;
    justify-content: center;
    gap: .55rem;
    padding: .8rem;
}

.home-carousel__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #aaa;
    cursor: pointer;
}

.home-carousel__dot.is-active { background: #222; }

.home-carousel :focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .home-carousel__caption { padding: 2rem 1.25rem 1rem; }
    .home-carousel__caption p { display: none; }
    .home-carousel__arrow { width: 38px; height: 38px; }
    .home-carousel__arrow--prev { left: .5rem; }
    .home-carousel__arrow--next { right: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .home-carousel__slide { transition: none; }
}
