.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    height: 490px;
}

.hero-slider .carousel-item img {
    inset: 0;
}

.hero-slider .carousel-item::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .58));
}

.hero-slider .hero-slide-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #fff;
    z-index: 3;
    padding: 18px 105px 22px 21px;
    background: transparent;
    text-align: left;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .85);
}

.hero-slider .hero-slide-caption strong {
    font-size: 20px;
    line-height: 1.25;
}

.hero-slider .hero-slide-caption span {
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    z-index: 4;
    width: 12%;
    opacity: .8;
}

.hero-slider .carousel-indicators {
    z-index: 5;
    bottom: 27px;
    margin-bottom: 0;
}

.hero-slider .carousel-indicators button {
    width: 7px;
    height: 7px;
    margin: 0 4px;
    border: 0;
    border-radius: 50%;
    background-color: #fff;
}

.hero-slider:focus-within .carousel-control-prev,
.hero-slider:focus-within .carousel-control-next,
.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

@media (max-width: 750px) {
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item {
        height: 390px;
    }

    .hero-slider .hero-slide-caption {
        left: 16px;
        right: 16px;
        bottom: 18px;
        padding: 15px 70px 18px 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider .carousel-item {
        transition: none;
    }
}
