#home-carousel {
    height: 600px;
}

#home-carousel .carousel-item {
    position: relative;
    isolation: isolate;
    background: #f8f9fa;
}

#home-carousel .carousel-item::before {
    content: '';
    position: absolute;
    inset: -2rem;
    background-image: var(--slide-bg-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(24px) saturate(1.1);
    transform: scale(1.12);
    opacity: .75;
    z-index: -2;
}

#home-carousel .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
            180deg,
            rgba(255, 255, 255, .15),
            rgba(0, 0, 0, .15)
    );
    z-index: -1;
}

#home-carousel .carousel-main-image {
    max-height: 70%;
    object-fit: contain;
    cursor: zoom-in;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .18));
}

#home-carousel:fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0 !important;
}

#home-carousel:fullscreen .carousel-main-image {
    max-height: 78vh;
}

#home-carousel .carousel-caption-box {
    max-width: min(100%, 780px);
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(10px);
}

#home-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

#home-carousel .carousel-indicators .active {
    transform: scale(1.25);
}

@media (max-width: 768px) {
    #home-carousel {
        height: 500px;
    }
}

@media (max-width: 576px) {
    #home-carousel {
        height: 420px;
    }

    #home-carousel .carousel-caption-box h5 {
        font-size: 1.25rem;
    }

    #home-carousel .carousel-caption-box p {
        font-size: 1rem;
    }
}