#team .card-body i {
    top: 50%;
    height: 50px;
    width: 50px;
    cursor: pointer;
    font-size: 1.25rem;
    position: absolute;
    text-align: center;
    line-height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0,0,0,0.23);
    transform: translateY(-50%);
    transition: transform 0.1s linear;
}

#team .card-body i:active{
    transform: translateY(-50%) scale(0.85);
}
#team .card-body i:first-child{
    left: -22px;
}
#team .card-body i:last-child{
    right: 5px;
}

#team .card-body .carousel{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 1) - 12px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    border-radius: 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
#team .card-body .carousel::-webkit-scrollbar {
    display: none;
}

#team .card-body .carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}
#team .card-body .carousel.dragging .card {
    cursor: grab;
    user-select: none;
}
#team .card-body .carousel :where(.card, .img) {
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: center;
}
#team .card-body .carousel .card {
    scroll-snap-align: start;
    list-style: none;
    height: 342px;
    background: #fff;
    cursor: pointer;
    border: none;
    flex-direction: column;
    border-radius: 8px;
}


@media screen and (max-width: 900px) {
    #team .card-body .carousel {
        grid-auto-columns: calc((100% / 1) - 9px);
    }
}

@media screen and (max-width: 600px) {
    #team .card-body .carousel {
        grid-auto-columns: 100%;
    }
}