/*
Slider
Listing
Slider
team-popout
 */

/** Slider */
.flex-content.team-members .controls {
    padding: 10px;  
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    min-height: 70px;
}
.flex-content.team-members .slides-container {
    display: flex;
    flex: 1;
    height: 50vh;
    overflow: hidden;  
    position: relative;
    max-height: 865px;
    max-width: 60vw;
    width: 1512px;
}
.flex-content.team-members .team-slide {
    align-items: flex-start;
    display: flex;
    gap: 56px;
    height: 100%;
    flex-direction: row;
    justify-content: center;
    position: absolute;
    width: calc(100% / 3);
    width: 100%;
}
.flex-content.team-members .slides-inner {
    position: relative;
    height: 100%;
    width: 100%;  
    overflow: hidden;
}
.flex-content.team-members .slides-inner .team-slide,
.flex-content.team-members .slides-inner .team-slide.hide {
    display: none;
    visibility: hidden;
}
.flex-content.team-members .slides-inner .team-slide.active {
    display: flex;
    flex-direction: column;
    visibility: visible;
    z-index: 100;
}
.flex-content.team-members .slider-nav {
    cursor: pointer;
    padding: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    transition: all 0.18s ease-out;
    transform-origin: center;
}
.flex-content.team-members .slider-nav:hover {
    transform: translateY(-50%) scale(1.1);
}
.flex-content.team-members .slider-nav.next {
    right: 20px;
}
.flex-content.team-members .slider-nav.prev {
    left: 20px;
}
.flex-content.team-members .caret-back {
    transform: rotate(180deg);
}
.flex-content.team-members .fade-left,
.flex-content.team-members .fade-up {
    visibility: hidden;
}

/* Listing */
.flex-content.team-members {
    padding: 80px 30px;
    position: relative;
}
.team-listing h3 {
	margin: 0 auto;
	text-align: center;
}
.flex-content.team-members .team-listing {
    align-items: flex-start;
    column-gap: 50px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 60px;
}
.flex-content.team-members .person {
    cursor: pointer;
}

.flex-content.team-members .headshot-container {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
}
.flex-content.team-members .person .headshot-container img {
    transform: scale(1.2);
    transform-origin: center;
    transition: all 0.5s ease-out;
    width: 100%;
}
.flex-content.team-members .person:hover .headshot-container img {
    transform: scale(1.1);
    transform-origin: center;
}
body section.flex-content.team-members .name {
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%; /* 26.4px */
}
body section.flex-content.team-members .title {
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
    line-height: 150%;
}

/* team-popout */
.flex-content.team-members .team-popout {
    background-color: white;
    display: none;
    padding: 80px 100px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    visibility: hidden;
    z-index: -1;
}
.flex-content.team-members .team-overlay {
    background-color: rgba(0,0,0,0.5);
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    visibility: hidden;
    width: 100%;
}
.flex-content.team-members .team-popout.open {
    display: block;
    z-index: 100001;
}
.flex-content.team-members .team-overlay.open {
    display: block;
    z-index: 10000;
}
body section.flex-content.team-members .team-popout .name {
    font-size: 44px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%; /* 52.8px */
}

.flex-content.team-members .team-popout .title {
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /* 33.6px */
    margin-bottom: 24px;
}
.flex-content.team-members .team-popout .details,
.flex-content.team-members .team-popout .details p {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 24px */
    max-width: 828px;
    width: 100%;
}
.flex-content.team-members .team-popout .btn-container {
	display: flex;
	gap: 30px;
	margin-top: 30px;
}
.flex-content.team-members .team-popout .close {
    cursor: pointer;
    padding: 20px;
    position: absolute;
    right: 40px;
    top: 40px;
    z-index: 1000;
}
.team-popout .close svg {
    transition: all 0.15s ease-in-out;
}
.team-popout .close:hover svg {
    transform: rotate(180deg);
}
.team-popout .socials {
    padding-bottom: 20px;
}
.team-popout .socials a.linkedIn svg path {
    transition: fill 0.2s ease-out;
}
.team-popout .socials a.linkedIn:hover svg path {
    fill: var(--flame);
}
.controls {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.flex-content.team-members .team-popout .bio,
.flex-content.team-members .team-popout .bio p {
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
}
.flex-content.team-members .team-popout .bio p:first-child {
    margin-top: 0px;
}
.flex-content.team-members .team-popout .bio p:last-child {
    margin-bottom: 0px;
}
@media screen and (min-width: 992px) {
    .flex-content.team-members .team-popout .details {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 20px;
    }

    .team-members .person {
        width: calc(24% - 30px);
    }
}
@media screen and (max-width: 991px) {
	.flex-content.team-members .container {
		padding: 0px;
	}
	.flex-content.team-members .team-listing {
        gap: 25px;
        padding: 50px 0px;
        margin-bottom: 0px;
    }
    .flex-content.team-members .person {
        width: calc(50% - 20px);
    }
    body section.flex-content.team-members .name {
        font-size: 20px;
    }
    body section.flex-content.team-members .title {
        font-size: 18px;
    }
    .flex-content.team-members h2 {
        font-size: 44px;
        text-align: center;
    }
	.flex-content.team-members .team-popout {
        padding: 20px 0px 20px 50px;
        width: 90vw;
    }
	.flex-content.team-members .team-popout .headshot {
        max-width: 100%;
    }
	.flex-content.team-members .team-popout .close {
        top: 0;
        right: 0;
    }
    .flex-content.team-members .slides-container {
        /* height: 70vh; */
        max-height: 80vh;
        max-width: 100%;
    }
    .flex-content.team-members .team-slide {
        flex-direction: column;
        height: 100%;
        justify-items: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .flex-content.team-members .slides-inner .team-slide.active {
        gap: 10px;
        justify-content: flex-start;
        padding-right: 50px;
    }
    .flex-content.team-members .slider-nav.next {
        right: 0px;
    }
    .flex-content.team-members .slider-nav.prev {
        left: 0px;
    }
    body section.flex-content.team-members .team-popout .name {
        font-size: 30px;
    }
}

@media (max-width: 500px) {
    .flex-content.team-members .team-listing {
        flex-direction: column;
    }
    .flex-content.team-members .person {
        width: 100%;
    }
}