#carousel-container {
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.carousel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.carousel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.6s ease;
    width: 100%;
}

.carousel-item {
    position: relative;
    flex: 0 0 30%;
    opacity: 1;
    transition: opacity 1s ease, transform 0.6s ease;
    max-width: 240px;
}

.carousel-item img {
    transition: transform 0.6s ease;
    width: 15em;
    padding: 1em;
    object-fit: scale-down;
}

.carousel-item.active {
    flex: 0 0 46%;
    opacity: 1;
}

.carousel-item:hover img {
    transform: scale(1.1);
}

.carousel-item__link {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 100;
}

@media (max-width: 1280px) {

    .carousel-item {
        flex: 0 0 30%;
        opacity: 1;
        transition: opacity 1s ease, transform 0.6s ease;
        max-width: 180px;
    }
    
    .carousel-item img {
        transition: transform 0.6s ease;
        width: 180px;
        padding: 1em;
        object-fit: scale-down;
    }

}

@media (max-width: 768px) {
    .carousel {
        flex-direction: column;
        gap: 4em;
    }

    #carousel-container {
        height: 560px;
        margin-top: 24px;
    }

    .carousel-item {
        flex: 0 0 auto;
        width: 80%;
    }
}