.carousel-container {
    width: 80%;
    margin: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--lx-gap);

    .carousel {
        aspect-ratio: 16/9;
        width: 100%;
        position: relative;
        overflow: hidden;
        border-radius: 10px;

        .item {
            opacity: 0;
            width: 100%;
            height: 100%;
            display: none;
            transition: opacity 2s ease-in-out, transform 0.3s ease-in-out;
            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
            }
            .caption {
                width: 100%;
                padding: var(--lx-space-01);
                position: absolute;
                bottom: 0;
                text-transform: uppercase;
                text-align: center;
                font-size: 12px;
                background-color: rgba(0, 0, 0, 0.5);
            }
            &.active {
                opacity: 1;
                display: block;
            }
        
            &:hover {
                transform: scale(0.99);
            }
        }
    }

    .btn {
        padding: 8px;
        position: absolute;
        transform: translateY(-50%);
        top: 45%;
        outline: none;
        border: none;
        cursor: pointer;
        text-transform: uppercase;
        font-size: 28px;
        font-weight: 900;
        color: #10100e;
        background-color: #ffffe6;
        transition: transform 0.2s ease-in-out;
        border-radius: 5px;

        &:active,
        &:focus {
            transform: translateY(-50%) scale(0.95);
        }

        &:hover {
            transform: translateY(-50%) scale(0.95);
        }
    }

    .prev {
        left: -5%;
    }

    .next {
        right: -5%;
    }

    .dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;

        .dot {
            cursor: pointer;
            height: 10px;
            width: 10px;
            background-color: #242421;
            transition: background-color 0.2s ease;
            border-radius: 2px;

            &.active,
            &:hover {
                background-color: #ffffe6;
            }
        }
    }
}

@media only screen and (max-width: 900px) {
    .carousel-container {
        width: 95%;

        .btn {
            padding: 4px;
            font-size: 16px;
            height: 40px;
        }
    }
    
}