.hero-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.hero-carousel {
    position: relative;
}

.hero-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    z-index: 30;
}

.hero-carousel-dots__track {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-carousel-dots__counter {
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

[data-hero-slide] {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    pointer-events: none;
    transform: none;
    transition: opacity 400ms ease, visibility 0s linear 400ms;
}

.hero-slide-image,
.hero-slide-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
}

[data-hero-slide].is-active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    pointer-events: auto;
    transform: none;
    transition: opacity 400ms ease, visibility 0s linear 0s;
}

.hero-slide-link {
    z-index: 25;
    display: block;
    cursor: pointer;
}

.hero-slide-link:focus-visible {
    outline: 2px solid #ffcb08;
    outline-offset: -4px;
}

[data-hero-dot] {
    display: block;
    height: 0.375rem;
    width: 1.5rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: width 300ms ease, background-color 300ms ease, opacity 300ms ease;
}

[data-hero-dot]:hover {
    background-color: rgba(255, 255, 255, 0.95);
}

[data-hero-dot].is-active,
[data-hero-dot][aria-selected='true'] {
    width: 2.5rem;
    background-color: #fff;
}

@media (min-width: 640px) {
    .hero-banner {
        aspect-ratio: 21 / 8;
    }

    .hero-carousel-dots {
        position: absolute;
        bottom: 0.75rem;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 9999px;
        background-color: rgba(0, 0, 0, 0.45);
        padding: 0.625rem 1rem;
        backdrop-filter: blur(4px);
        gap: 0.75rem;
    }

    .hero-carousel-dots__counter {
        color: rgba(255, 255, 255, 0.9);
    }

    [data-hero-carousel] .hero-slide-overlay {
        padding-bottom: 4.5rem;
    }
}

@media (max-width: 639px) {
    .hero-carousel {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-carousel-dots {
        padding: 0 0.25rem;
    }

    .hero-carousel-dots__counter {
        color: #57534e;
    }

    [data-hero-dot] {
        height: 0.3125rem;
        width: 1.125rem;
        background-color: #d6d3d1;
    }

    [data-hero-dot]:hover {
        background-color: #a8a29e;
    }

    [data-hero-dot].is-active,
    [data-hero-dot][aria-selected='true'] {
        width: 2rem;
        background-color: #eb1c22;
    }

    [data-hero-carousel] {
        touch-action: pan-y pinch-zoom;
    }

    [data-hero-carousel] .hero-slide-overlay {
        padding-bottom: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-hero-slide],
    [data-hero-dot] {
        transition: none;
        animation: none;
    }

    [data-hero-slide].is-active {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}
