.team-member-grid {
    display: flex;


    @media (min-width: 769px) {
        gap: 50px 0px;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    .separator {
        width: 80%;
        height: 1px;
        border-radius: 15px;
    }

    .team-member {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        padding: 10px;
        width: calc(20% - 10px);
        min-width: 300px;

        @media (max-width: 980px) {
            width: 100%;
        }
    }
    .splide__slide:nth-child(odd) .team-member {
        .separator {
            background-color: #fff000;
        }
        .wp-post-image {
            box-shadow: 0px 0px 0px 6px #5dcbc0;
        }
    }

    .splide__slide:nth-child(even) .team-member {
        .separator {
            background-color: #5dcbc0;
        }

        .wp-post-image {
            box-shadow: 0px 0px 0px 6px #fff000;
        }
    }

    .team-member img {
        width: 160px;
        height: 160px;
        border-radius: 50%;
        object-fit: cover;
    }
}

.splide.is-initialized:not(.is-active) .splide__list.team-member-grid {
    display: flex;
}

@media (min-width: 769px) {
    .team-member-splide .splide__track {
        overflow: visible;
    }
}

.team-member__infos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0px 6px 6px 0px rgba(0, 0, 0, 0.10);
    min-width: 200px;
    position: absolute;
    opacity: 0;
    transition: all 0.3s ease-in-out;

    @media (max-width: 768px) {
        position: relative;
        opacity: 1;
        margin-top: 30px;
    }

    @media (min-width: 769px) {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
}

.team-member__infos > h2 {
    line-height: 1.5rem!important;
    margin-bottom: 10px;
}

.team-member__infos > p {
    line-height: 1.5rem!important;
    margin-top: 10px;
}
@media (min-width: 769px) {
    .team-member:hover .team-member__infos {
        opacity: 1;
        top: -110%;
        transition: all 0.3s ease-in-out;
    }
}



.team-member__infos h2 {
    font-size: 20px!important;
    font-weight: 500!important;
}

.team-member-splide .splide__arrow {
    top: calc(100% - 25px);
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
}

.team-member-splide .splide__arrow svg {
    display: none;
}

.team-member-splide .splide__arrow--prev {
    left: calc(50% - 60px);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='29.9961' r='30' fill='%2300CEC1'/%3E%3Cpath d='M29.3077 38.3613L21 30.0536L29.3077 21.7459M22.1538 30.0536H39' stroke='%2322272F' stroke-width='3.69231' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.team-member-splide .splide__arrow--next {
    right: calc(50% - 60px);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='61' viewBox='0 0 60 61' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30.498' r='30' fill='%2300CEC1'/%3E%3Cpath d='M30.6923 22.248L39 30.5557L30.6923 38.8634M37.8462 30.5557H21' stroke='%2322272F' stroke-width='3.69231' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.team-member-splide .splide__pagination {
    bottom: 70px;
}

.team-member-splide .splide__pagination li button {
    background-color: #fff000;
    opacity: 1;
    width: 12px;
    height: 12px;
    border-radius: 12px;
    transition: width 0.3s ease-in-out;

    &.is-active {
        background-color: #5dcbc0;
        width: 50px;
        transition: width 0.3s ease-in-out;
        margin-left: 10px;
        margin-right: 10px;
    }
}


.team-member-splide {
    padding-bottom: 100px;
}

