/* Carousel Styles */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 85vw;
    margin: 2vh auto;
    position: relative;
    gap: 1.5rem;
}

.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    height: 25vh;
    min-height: 12rem;
}

.carousel__item {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    opacity: 0;
    transform: scale(0.8);
}

.carousel__item iframe {
    border: 0.3em solid var(--primary-color);
    border-radius: 0.5em;
    background-color: var(--primary-color); 
}

.carousel__item img {
    border: 0.3em solid var(--primary-color);
    border-radius: 0.5em;
    background-color: var(--primary-color);
    display: block; 
}


.carousel__item-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: var(--background-color); 
    border-radius: 0.8rem;
}

.carousel__item--left {
    opacity: 1;
    transform: translateX(-200%) scale(1); 
    z-index: 1;
    filter: brightness(0.7);
}

.carousel__item--center {
    opacity: 1;
    transform: translateX(0) scale(1.5);
    z-index: 3;
    filter: brightness(1);
}

.carousel__item--right {
    opacity: 1;
    transform: translateX(200%) scale(1); 
    z-index: 1;
    filter: brightness(0.7);
}

.carousel__item--hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.carousel-arrow {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
}

.carousel-arrow:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.carousel-arrow--left {
    margin-right: 1.5rem;
}

.carousel-arrow--right {
    margin-left: 1.5rem;
}

@media (max-width: 650px) {
    .carousel-container {
        gap: 1rem;
    }
    
    .carousel {
        height: 20vh;
        min-height: 10rem;
    }

    .carousel__item {
        position: static;
    }

    .carousel__item--left,
    .carousel__item--right,
    .carousel__item--hidden {
        display: none;
    }

    .carousel__item--center {
        transform: scale(1);
        opacity: 1;
        display: flex;
        filter: brightness(1);
    }

    .carousel-arrow {
        font-size: 1.8rem;
        padding: 0.3rem 0.6rem;
        width: 2.8rem;
        height: 2.8rem;
    }
    
    .carousel-arrow--left {
        margin-right: 1rem;
    }
    
    .carousel-arrow--right {
        margin-left: 1rem;
    }
}