/* The carousel container */
.carousel {
    position: relative;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50vh;
}

.carousel ul {
    overflow: hidden;
    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;
    height: 100%
}

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

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

.carousel ul li > * {}

.carousel ul li > p {
    display: flex;
    justify-content: right;
    width: 100%;
    position: absolute;
    bottom: 0;
    right: 0;
    color: black;
    padding: 1%;
    box-sizing: border-box;
    text-align: right;
}

.carousel ul li a > img {
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: contain;
    height: 85%;
    width: 100%;
}

.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: 15px; display: flex; justify-content: center; left: 50%; transform: translateX(-50%); z-index: 9;}
.carousel ol li {list-style: none; padding: 0 5px;}
.carousel ol li a {display: block; height: 0x; width: 0px; border: 0px; background: transparent; border-radius: 100%;}
.carousel ol li.selected a {background: white);}

.carousel .car-prev, .carousel .car-next {
    display: none;
    user-select: none;
    width: 1;
    cursor: pointer;
    color: var(--dark);
    font-size: 50px;
    position: absolute;
    left: -5%;
    padding-top: 15px;
    padding-bottom: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9;
    line-height: 0;
}

.carousel .car-next {left: auto; right: -5%;}

@media (max-width: 768px) {
    .carousel .car-prev, .carousel .car-next {
        position: absolute;
        top: 100%;
        left: 25%;
        right: auto;
        padding-top: 15px;
        padding-bottom: 0;
    }

    .carousel .car-next {
        position: absolute;
        top: 100%;
        right: 25%;
        left: auto;
    }

    .carousel ul li a > img {
        height: 85%;
    }
}

