.carousel {
    position: relative;
    width: 80%;
    margin: 0 auto;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.carousel ul {
    overflow: auto;
    display: flex;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    scroll-snap-points-y: repeat(100%);
    scroll-behavior: smooth;
    background: transparent;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin: 0;
    padding: 0;
}

.carousel ul::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.carousel ul li {
    position: relative;
    min-width: 100%;
    list-style: none;
    background: url() center center / cover no-repeat;
    scroll-snap-align: start;
}

.carousel ul li > * {
    width: 60%;
    height: 100%;
}

.carousel ul li > img {
    object-fit: contain;
}

.carousel ul li > div {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.carousel ol {
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    margin: 0;
}

.carousel ol li {
    list-style: none;
    padding: 0 5px;
    background: transparent;
    margin: 0;
}

.carousel ol li:before {
    display: none;
}

.carousel ol li a {
    display: block;
    width: 15px;
    height: 15px;
    border: 3px solid #284399;
    background: transparent;
    border-radius: 100%;
}

.carousel ol li.selected a {
    background: #284399;
}

.carousel .prev,
.carousel .next {
    display: none;
    user-select: none;
    cursor: pointer;
    font-size: 50px;
    color: #284399;
    position: absolute;
    left: 0;
    padding: 15px 15px 30px;
    top: calc(50% - 15px);
    transform: translateY(-50%);
    z-index: 9;
    line-height: 0;
}

.carousel .next {
    left: auto;
    right: 0;
}

@media only screen and (max-width: 960px) {
    .carousel ul li {
        min-width: calc(100%/3) !important;
    }
}

@media only screen and (max-width: 540px) {
    .carousel ul li {
        min-width: calc(100%/2) !important;
    }
}
