:root {
    --visible-slides: 4;
}

/* Media Queries */
@media (max-width: 1200px) {
    :root {
        --visible-slides: 3;
    }
}

@media (max-width: 900px) {
    :root {
        --visible-slides: 2;
    }
}

@media (max-width: 600px) {
    :root {
        --visible-slides: 1;
    }
}

.carousel {
    position: relative;
    overflow: hidden;
    font-size: 2vmin;
    margin: 0 auto;
    margin-bottom: 48px;
    margin-top: -32px
}

.carousel-slider {
    display: flex;
    transition: 0.3s;
}

.carousel-slide {
    flex: 1 0 calc(100% / var(--visible-slides));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-slide img {
    display: block;
    width: 24em;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 600px) {
    .carousel-slide img {
        width: 40em;
    }
}

.carousel button {
    font-size: inherit;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 1em;
    border: none;
    cursor: pointer;
}

.carousel-prev {
    left: 2em;
}

.carousel-next {
    right: 2em;
}

.carousel-navigation {
    position: absolute;
    bottom: 1em;
    left: 0;
}

.carousel-bullet {
    width: 1em;
    height: 1em;
    border: none;
    background: #fff;
    cursor: pointer;
    border-radius: 50%;
}

.carousel-bullet.is-active {
    background: #1c69d3;
}
