.carousel ul li {
    min-width: 100%; /* Adjust as needed */
}

.carousel {
    position: relative;
    width: calc(100% - 8rem);
    max-width: 45rem;
    margin-inline: auto;
    margin-block: 1.5rem;
}
.sr-only {
    display: none;
}
.carousel ul {
    overflow: auto;
    display: flex;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin: 0;
    padding: 0;
    cursor: grab;
    user-select: none;
    height: 100%;
}

.carousel ul.grabbing {
    cursor: grabbing;
    scroll-behavior: auto;  
}

.carousel ul::-webkit-scrollbar {
    display: none;
}

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

.carousel ol {
    display: none;
}

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

.carousel ol li a {
    display: block;
    height: 10px;
    width: 10px;
    border: 2px solid white;
    background: transparent;
    border-radius: 100%;
}

.carousel ol li.selected a {
    background: white;
}

.carousel .prev,
.carousel .next {
    user-select: none;
    cursor: pointer;
    font-size: 2rem;
    color: transparent;
    position: absolute;
    left: 0;
    padding: 0;
    width: 3rem;
    height: 3rem;
    top: 50%;
    transform: translateY(-100%);
    z-index: 9;
    line-height: 0.8;
    font-family: sans-serif;
    background: white url(/img/back.svg) 45% center / 60% auto no-repeat;
    border-radius: 100%;
    border: 0;
    margin-left: -5rem;
}

.carousel .next {
    left: auto;
    right: 0;
    margin-left: 0;
    margin-right: -5rem;
    background: white url(/img/forward.svg) 55% center / 60% auto no-repeat;
}
.carousel .next:hover,
.carousel .prev:hover {
    transform: translateY(-100%) scale(1.17);
}

@media (max-width: 50rem) {
    .carousel:not(.trainings, .posts) {
        width: 100%;
    }
    .carousel:not(.trainings, .posts) .next,
    .carousel:not(.trainings, .posts) .prev {
        bottom: 0;
        top: auto;
        margin: 0!important;
        transform: translateY(145%);
    }
    .carousel:not(.trainings, .posts) .next:hover,
    .carousel:not(.trainings, .posts) .prev:hover {
        transform: translateY(145%) scale(1.17);
    }
}