.carousel {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background: #0c0e0e;
}

.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;
    height: 100%;
    list-style: none;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    min-width: 100vw;
}

.carousel ul li > img {
    width: 100%;
    flex: 1;
    aspect-ratio: 1.78;
    max-height: calc(100vh - 10rem);
    object-fit: cover;
}

.carousel ul li > div {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    color: white;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    height: 7rem;
    width: 100%;
    font-size: 0.8rem;
}

.carousel ul li > div strong {font-weight: 600;}

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

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

.carousel ol li a {
    display: block;
    height: 10px;
    width: 10px;
    border: 0 solid white;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 100%;
}

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

.carousel .prev,
.carousel .next {
    user-select: none;
    cursor: pointer;
    font-size: 50px;
    position: absolute;
    right: max(2.5rem, calc((100vw - 57rem) / 2 + 2.5rem));
    top: 0;
    z-index: 9;
    line-height: 0;
    font-family: sans-serif;
    background: transparent url(/img/arrowright.svg) center/contain no-repeat;
    border-radius: 0;
    border: 0;
    margin-top: -2.2rem;
    filter: invert(1);
    width: 1.25rem;
    height: 1.25rem;
}

.carousel .prev {
    margin-right: 3rem;
    transform: rotate(-180deg);
}

.team > .carousel {
    background: none;
    width: 100%;
    background: #e3e4e6;
    color: #1c1c1c;
    position: relative;
    z-index: 2;
}
.team > .carousel ul li {min-width: calc(100% / 3); padding-bottom: 0.5rem;}
.team > .carousel ul li > div {height: auto;}
.team > .carousel ul li a,
.team > .carousel ul li > div {color: #1c1c1c; text-decoration: none;}
.team > .carousel ul li img {margin-block: 1rem 0.5rem;}
.team > .carousel ol {
    display: none;
}
.team > .carousel .prev,
.team > .carousel .next {
    right: 1.25rem;
    background: transparent url(/img/arrow.svg) center / 1.5rem auto no-repeat;
    transform: rotate(-90deg);
    width: 1.75rem;
    height: 1.75rem;
    margin-top: -1.6rem;
}
.team > .carousel .prev {
    transform: rotate(90deg);
    margin-right: 2.5rem;
}