/*-- -------------------------- -->
<---       Meet The Team        -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #meet-team-859 {
        padding: var(--sectionPadding);
        overflow: hidden;
    }
    #meet-team-859 .cs-content {
        /* set text align to left if content needs to be left aligned */
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: center;
    }
    #meet-team-859 .cs-topper {
        font-size: var(--topperFontSize);
        line-height: 1.2em;
        text-transform: uppercase;
        text-align: inherit;
        letter-spacing: 0.1em;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 0.25rem;
        display: block;
    }
    #meet-team-859 .cs-title {
        font-size: var(--headerFontSize);
        font-weight: 900;
        line-height: 1.2em;
        text-align: inherit;
        max-width: 43.75rem;
        margin: 0 0 1rem 0;
        color: var(--headerColor);
        position: relative;
    }
    #meet-team-859 .cs-title {
        max-width: 20ch;
    }
    #meet-team-859 .cs-button-solid {
        font-size: 1rem;
        /* 46px - 56px */
        line-height: clamp(2.875rem, 5.5vw, 3.5rem);
        text-decoration: none;
        font-weight: 700;
        text-align: center;
        margin: 0;
        color: #fff;
        min-width: 9.375rem;
        padding: 0 1.5rem;
        background-color: var(--primary);
        border-radius: 0.25rem;
        display: inline-block;
        position: relative;
        z-index: 1;
        /* prevents padding from adding to the width */
        box-sizing: border-box;
    }
    #meet-team-859 .cs-button-solid:before {
        content: "";
        position: absolute;
        height: 100%;
        width: 0%;
        background: #000;
        opacity: 1;
        top: 0;
        left: 0;
        z-index: -1;
        border-radius: 0.25rem;
        transition: width 0.3s;
    }
    #meet-team-859 .cs-button-solid:hover:before {
        width: 100%;
    }
    #meet-team-859 .cs-button-solid {
        /* prevents flexbox from squishing it */
        flex: none;
    }
    #meet-team-859 .cs-card-group {
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* 16px - 20px */
        gap: clamp(1rem, 2.3vw, 1.25rem);
        position: relative;
    }
    #meet-team-859 .cs-item {
        list-style: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        position: relative;
    }
    #meet-team-859 .cs-item:hover .cs-picture:before,
    #meet-team-859 .cs-item:hover .cs-picture:after {
        opacity: 1;
    }
    #meet-team-859 .cs-item:hover .cs-picture img {
        transform: scale(1.1);
    }
    #meet-team-859 .cs-item:hover .cs-info {
        background-color: #5571CE;
        color:#fff;
    }
    #meet-team-859 .cs-item:hover .cs-name,
    #meet-team-859 .cs-item:hover .cs-job {
        color: var(--bodyTextColorWhite);
    }
    #meet-team-859 .cs-picture {
        width: 100%;
        height: auto;
        margin: 0 0 0.5rem 0;
        /* removed at tablet */
        aspect-ratio: 0.80589681;
        border-radius: 1rem;
        /* clips the img corners */
        /* clips img tag from overflowing it on hover */
        overflow: hidden;
        display: block;
        position: relative;
        z-index: 1;
    }
    #meet-team-859 .cs-picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* makes sure the top of the image is at the top of the parent, heads won't get cut off this way */
        object-position: top;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        transition: transform 0.7s;
    }
    #meet-team-859 .cs-info {
        width: 100%;
        padding: 1rem;
        /* prevents padding and border from affecting height and width */
        box-sizing: border-box;
        background-color: #f7f7f7;
        border-radius: 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: background-color 0.3s;
    }
    #meet-team-859 .cs-name {
        font-size: 1.25rem;
        line-height: 1.2em;
        font-weight: 700;
        margin: 0 0 0.25rem 0;
        color: var(--headerColor);
        display: block;
        transition: color 0.3s;
    }
    #meet-team-859 .cs-job {
        /* 14px - 16px */
        font-size: clamp(0.875rem, 1.5vw, 1rem);
        line-height: 1.5em;
        margin-right: 0;
        color: var(--bodyTextColor);
        display: block;
        transition: color 0.3s;
    }
}
/* Tablet - 600px */
@media only screen and (min-width: 37.5rem) {
    #meet-team-859 .cs-content {
        text-align: left;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
    #meet-team-859 .cs-title {
        margin: 0;
    }
    #meet-team-859 .cs-card-group {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }
    #meet-team-859 .cs-item {
        width: 48.3%;
    }
    #meet-team-859 .cs-picture {
        aspect-ratio: 1/1;
    }
}
/* Small Desktop - 1024px */
@media only screen and (min-width: 56.25rem) {
    #meet-team-859 .cs-card-group {
        justify-content: center;
        flex-wrap: nowrap;
    }
    #meet-team-859 .cs-item {
        width: 100%;
    }
}

.list-team-members {
    padding-top: 3rem;
    padding-bottom: 3rem;

    .grid {
        gap: 1rem;
    }

    .image-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 300px;
        position: relative;
    }

    .member {
        width: 100%;
        cursor: pointer;
    }

    .member:nth-child(even) {
        margin-left: auto;
    }

    .placeholder {
        width: 80px;
    }

    .name {
        margin-bottom: 0.313rem;
    }

    .role {
        opacity: 0.8;
    }

    .image {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        left: 0;
        top: 0;
    }

    .description,
    .since {
        display: none;
    }

    .overlay {
        cursor: pointer;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }

    .info {
        position: fixed;
        height: 100vh;
        width: 100%;
        max-width: 587px;
        top: 0;
        right: -587px;
        z-index: 100;
        overflow-y: auto;
        padding-bottom: 6rem;
        transition: right 500ms;

        &.is-active {
            right: 0px;
        }
    }

    .info-heading {
        display: flex;
        align-items: center;
        justify-content: end;
        flex-wrap: wrap; 
        padding: 1rem 1.5rem;
    }

    .info-image {
        position: relative;
        height: 350px;
        margin:0 15px;
    }

    .info .placeholder {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        object-fit: contain;
        background-color: var(--color-slate);
        padding: 25%;
    }

    .info-heading-close .close-me {
        background-color: var(--color-transparent);
        border: 0;
        color: var(--color-white);
        cursor: pointer;
    }

    .details {
        align-items: center;
        padding: 1.5rem;
    }

    .info-role {
        opacity: 0.8;
        color:#f7f7f7;
    }

    .info-description {
        line-height: 1.6;
    }

    .info-header {
        padding: 0.5rem 0;
    }

    .info-member-since {
        padding: 0.5rem 0;
    }

    @media screen and (min-width: 600px) {
        .member {
            max-width: unset;
        }

        .image-wrap {
            height: 276px;
            max-width: unset;
        }

        .placeholder {
            width: 64px;
        }

        .info-image {
            height: 387px;
        }

        .info-heading-name {
            font-size: 1.125rem;
        }

        .info-left {
            grid-column: span 4 / span 4;
            padding-right: 4rem;
            line-height: 1.6;
        }

        .info-right {
            grid-column: span 8 / span 8;
        }

        .info-description {
            font-size: 1.125rem;
        }

        .info-header {
            padding: 1rem 0;
        }

        .info-member-since {
            font-size: 1.125rem;
        }
    }

    @media screen and (min-width: 768px) {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;

        .grid {
            gap: 1.5rem;
        }

        .image-wrap {
            height: 309px;
        }

        .placeholder {
            width: 80px;
        }
    }

    @media screen and (min-width: 1024px) {
        padding-top: 6rem;
        padding-bottom: 6rem;

        .grid {
            gap: 2rem;
        }

        .image-wrap {
            height: 309px;
        }

        .placeholder {
            width: 80px;
        }
    }

    @media screen and (min-width: 1200px) {
        .image-wrap {
            height: 243px;
        }

        .placeholder {
            width: 75px;
        }
    }
}
                                