.staff {
	--font-body: var(--saans-regular);
	--font-body-bold: var(--saans-bold);
	--font-display: var(--saans-heavy);
	--dark-primary: #8ac6ac;
	--light-primary: #c4e2d6;
	display: flex;
	flex-direction: column-reverse;
    margin-bottom: 50px;
}

.staff, .dark-panel .staff .modal {
	--text-color: var(--gray)
}

.dark-panel .staff {
	--text-color: var(--white)
}

@media (min-width: 64em) {
    .staff {
        flex-direction: row-reverse;
        padding: 0;
        margin-bottom: 120px;
    }
}

.staff .filters-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: z-index 0ms 300ms;
}

.staff .filters-container.open {
    z-index: 1003;
    transition: none;
}

.staff .filters header {
    display: block;
    position: sticky;
    z-index: 10;
    top: 0;
    padding: 10px 20px;
    width: 100%;
    background-color: var(--gray);
    height: 60px;
}

.staff .filters .icon-cont {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 59px;
    background-color: var(--color2-light-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff .filters .icon-cont i {
    font-size: 18px;
}

.staff .filters .shade {
    position: fixed;
    z-index: 1003;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border: none;
    background-color: rgba(0,0,0,0.2)
}

@media (max-width: 1189px) {
    .staff .filters .filters-list-container.slide-in-enter-active,
    .staff .filters .filters-list-container.slide-in-leave-active {
        transition: transform 300ms cubic-bezier(0,0,0.3,1);
    }

    .staff .filters .filters-list-container.slide-in-enter-active .filters-list,
    .staff .filters .filters-list-container.slide-in-leave-active .filters-list {
        transition: transform 300ms cubic-bezier(0,0,0.3,1);
    }

    .staff .filters .filters-list-container.slide-in-enter-to .filters-list,
    .staff .filters .filters-list-container.slide-in-leave .filters-list {
        transform: none;
    }

    .staff .filters .filters-list-container.slide-in-enter .filters-list,
    .staff .filters .filters-list-container.slide-in-leave-to .filters-list {
        transform: translateX(110%);
    }

    .staff .filters .filters-list-container.slide-in-enter-active .shade,
    .staff .filters .filters-list-container.slide-in-leave-active .shade {
        transition: opacity 300ms cubic-bezier(0,0,0.3,1);
    }

    .staff .filters .filters-list-container.slide-in-enter-to .shade,
    .staff .filters .filters-list-container.slide-in-leave .shade {
        opacity: 1;
    }

    .staff .filters .filters-list-container.slide-in-enter .shade,
    .staff .filters .filters-list-container.slide-in-leave-to .shade {
        opacity: 0;
    }
}

@media (min-width: 64em) {
    .staff .filters-container {
        position: static;
        width: 100%;
        max-width: 300px;
    }

    .staff .filters {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        padding: 35px 40px;
        background-color: var(--gray);
        height: 100%;
        
    }

    .staff .filters header {
        display: none;
    }

    .staff .filters header .toggle {
        display: none;
    }
}

.staff .filters h3 {
    margin-bottom: 0;
    font-size: 20px;
    font-family: var(--saans-heavy);
    text-transform: uppercase;
	letter-spacing: .05em;
    font-weight: 900;
    color: #cdcdcd;
    margin: 0;
    margin-right: 60px;
    position: relative;
    bottom: 4px;
}


	.staff .filters-list h3 {
		font-size: 19px;
		margin-bottom: 10px;
		display: block;
	}

.staff .filters .toggle {
    width: 100%;
    /* height: 30px; */
    border: none;
    background-color: transparent;
    cursor: pointer;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 0;
    margin-bottom: 0;
}

.staff .filters ol {
    position: fixed;
    z-index: 1003;
    top: 0;
    right: 0;
    margin: 0;
    padding: 80px 20px 20px;
    width: 100%;
    max-width: 240px;
    height: 100%;
    font-size: 16px;
    color: var(--secondary-color);
    background-color: var(--gray);
    font-family: var(--font-body-bold);
    list-style: none;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.staff .filters ol::before {
	content: "";
	pointer-events: none;
	position: absolute;
	top: 0;
	left: 0px;
	width: 100%;
	height: 100%;
	background-size: 400%;
	background-position: 75% -20%;
	display: block;
	z-index: 1;
}
@media (min-width: 64em) {
    .staff .filters .filters-list-container {
        display: block !important;
    }

    .staff .filters .filters-list-container .shade {
        display: none;
    }

    .staff .filters ol {
        position: static;
        padding: 0;
        max-width: none;
        height: auto;
        box-shadow: none;
        overflow: visible;
    }
}

.staff .filters .filter-item {
	display: flex;
	align-items: center;
	margin-bottom: 5px;
	cursor: pointer;
    font-family: var(--saans-regular);
    color: #cdcdcd;
}

.staff .filters input + .icon-radio {
    flex-shrink: 0;
	display: block;
	margin-right: 9px;
	width: 15px;
	height: 15px;
	background-color: var(--color2-light-2);
	border-radius: 50%;
	position: relative;
}

body.user-is-tabbing .staff .filters input:focus + .icon-radio {
    outline: 0 !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #00a4ef;
}

.staff .filters input:checked + .icon-radio::after {
    content: "";
    position: absolute;
    left: 4.5px;
    top: 4.5px;
    background-color: var(--gray);
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.staff .staff-grid {
    flex: 1;
    padding: 10px 10px 60px;
}

@media (min-width: 64em) {
    .staff .staff-grid {
        padding: 15px 90px 80px;
    }
}

.staff .staff-grid h2 {
    margin-bottom: 40px;
    font-weight: 700;
    font-size: 30px;
    display: none;
}

@media screen and (min-width: 64em) {
	.staff .staff-grid h2 {
        display: block;
        margin: 0 0 20px;
        font-size: 34px;
        text-transform: none;
        font-family: var(--saans-heavy);
    }
}

.staff .staff-grid .grid {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
}

.staff .staff-grid .grid > * {
    /* flex: 1 1 auto; */
    /* padding: 0; */
    display: flex;
}

@supports (display: grid) {
    @media (min-width: 64em) {
        .staff .staff-grid .grid {
            display: grid;
            grid-gap: 30px;
            grid-template-columns: repeat(auto-fill, minmax(137px, 1fr));
        }

        .staff .staff-grid .grid > *{
            padding: 0;
            flex-direction: column;
            border-bottom: none;
        }
    }
}

.staff .staff-item {
	border-bottom: 1px solid #ccc;
	padding: 30px 8px 3px 8px;
}

.staff .staff-item:first-of-type {
	padding-top: 20px;
}

@media(min-width:64em) {
    .staff .staff-item:first-of-type {
        padding-top: 0;
    }
}

.staff .staff-item .staff-item-link {
    display: flex;
    flex-direction: column-reverse;
}

.staff .staff-item a:hover {
    text-decoration: none;
}

.staff .staff-item .img-container {
    position: relative;
    /* width: calc(100% * 105 / 375); */
    height: 100%;
    min-width: 105px;
}

.staff .staff-item .img-container img {
	position:relative;
}

.staff .modal.active .img-cont::after {
    content: '';
    pointer-events:none;
    position: absolute;
    top: 15px;
    left: -15px;
    width: 100%;
    height: 50%;
    background-color: white;
    z-index: -1;
}

@media(min-width:64em) {
    .staff .modal.active .img-cont::after {
        top: 25px;
        left: -40px;
        width: calc(100% + 50px);
        height: 100%;
    }
}

@media(min-width:80em) {
    .staff .staff-grid .grid {
        grid-gap: 75px;
    }
}

.staff .staff-item .img {
    position: relative;
    z-index: 2;
    display: block;
    padding-bottom: calc(100% * 120 / 105);
    height: 0;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    box-sizing: content-box;
    transition: transform 200ms cubic-bezier(0,0,0.3,1);
}

.staff .staff-item .about {
    padding: 0 20px;
}

.staff .staff-item .about.noImg {
	padding-left: 0;
}

.staff .staff-item .name {
    font-size: 18px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 1px;
    color: var(--text-color);
    font-family: var(--saans-bold);
    margin: 0 0 8px;
}

.staff .staff-item .about .staff-meta {
	list-style: none;
	margin-left: 0;
	margin-bottom: 10px;
}

.staff .staff-item .about .staff-meta li,
.staff .staff-item .about .staff-meta li:not(.email) a {
    font-family: var(--saans-regular);
    color: var(--text-color);
    line-height: 1.5;
    font-size: 14px;
    letter-spacing: 0px;
    font-weight: normal;
}

.staff .staff-item .about .staff-meta li:first-child {
    margin-bottom: 7px;
}

.staff .staff-item .about .staff-meta li.email {
    margin-top: -11px;
}

.staff .staff-item .about .email-spacing {
    height: 30px;
}

.staff .staff-item .about .staff-meta li.email a {
    font-family: var(--saans-heavy);
    font-weight: bold;
    transform: translateX(42px);
}

@media (hover: hover) {
    .dark-panel .staff .staff-item .about .staff-meta li.email a:hover {
        color: var(--text-color);	
    }
}

.staff .staff-item .title {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    color: #1A1A1A;
}

.staff .staff-item .bio-link {
	display: inline-block;
    line-height: var(--leading-none);
	font-family: var(--saans-heavy);
    text-transform: uppercase;
	letter-spacing: .05em;
    color: white;
	font-size: 14px;
    background-color: var(--color2);
	padding: 6px 14px;
    position: relative;
    bottom: 27px;
}

.staff .staff-item .bio-link:hover {
	background-color: var(--dark-primary);
	border-color: var(--dark-primary);
    color:var(--gray);
	cursor: pointer;
}

@media (min-width: 64em) {
	.staff .staff-item .img-container {
		height: auto;
		overflow: visible;
	}

	.staff .staff-item .img {
		padding-bottom: calc(100% * 215 / 185);
	}

	.staff .staff-item .about {
		padding: 17px 0 0;
	}
    .staff .staff-item .name {
        font-size: 18px;
        letter-spacing: 0;
        margin: 0 0 10px;
    }
    
    .staff .staff-item .title {
        font-size: 18px;
    }
    
    .staff .staff-item .about .staff-meta li {
        line-height: 1.5;
        font-size: 14px;
        letter-spacing: 1px;
    }

    .staff .staff-item .bio-link {
        letter-spacing: 0.5px;
        padding: 6px 14px;
        bottom: 37px;
    }

    .staff .staff-item .about .staff-meta {
    	margin-bottom: 20px;
    }
}

.staff .staff-item { transition: opacity 300ms cubic-bezier(0,0,0.3,1), transform 300ms cubic-bezier(0,0,0.3,1); }

.staff .swap-leave-active {
    position: absolute;
}

.staff .swap-enter,
.staff .swap-leave-to {
    transform: scale(0);
    opacity: 0;
}

.staff .modal {
	display: none;
}

.staff .modal.active {
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 64%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 12;
	background-color: #fff;
	max-width: calc(100% - 40px);
	min-width: 300px;
}

@media screen and (min-width: 375px) {
	.staff .modal.active {
		min-width: 337px;
	}
}

.staff .modal-overlay.active {
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0,0,0,0.4);
	z-index: 11;
}

.staff .modal.active .close {
	cursor: pointer;
	display: flex;
	justify-content: flex-end;
	background-color: var(--color2-pale);
	height: 61px;
	align-items: center;
	padding: 5px;
}

.staff .modal.active .close span {
	font-family: var(--saans-heavy);
	font-size: 16.06px;
	padding: 3px 8px;
    color: var(--color2-pale);
    text-transform: uppercase;
	letter-spacing: .05em;
    position: absolute;
    right: 0;
    top: 0;
	display: flex;
    flex-direction: column-reverse;
	align-items: center;
    justify-content: center;
    background-color: var(--gray);
    height: 61px;
    width: 72px;
}

.staff .modal.active .close span i {
	font-size: 20px;
    color: var(--gray-light-1);
}

.staff .modal.active .img-cont {
	min-width: 125px;
    height: 145px;
	position: relative;
}

@media(min-width:64em) {
    .staff .modal.active .img-cont {
        height: unset;
    }
}

.staff .modal.active .meta {
	display: flex;
	padding: 0 0px 0 15px;
	position: relative;
	top: -15px;
	pointer-events: none;
	margin-bottom: 5px;
}

.staff .modal.active .about {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 44px 0 4px 35px;
}

.staff .modal.active .about * {
	pointer-events: all;
}

.staff .modal.active .about h3 {
	margin-bottom: 9px;
    font-size: 18px;
}

.staff .modal.active .about .staff-meta li {
    font-size: 14px;
    letter-spacing: 1px;
}

.staff .modal.active .about .staff-meta li.email {
	margin-top:5px;
    position: relative;
    bottom: 19px;
}

.staff .modal.active .description {
	padding: 0 15px 15px;
    font-family: var(--saans-regular);
    color: var(--gray);
	font-size: 14px;
	line-height: 1.4;
    position: relative;
    bottom: 63px;
}

@media screen and (min-width: 64em) {
	.staff .modal.active {
		min-width: 800px;
		flex-direction: row;
        top: 56%;
	}
	.staff .modal.active .close {
		position: absolute;
		top: -61px;
		left: 0;
		width: 100%;
		padding-right: 15px;
	}

	.staff .modal.active .close span {
		font-size: 14px;
		padding: 5px 12.5px;
	}

	.staff .modal.active .img-cont {
		width: 185px;
		margin-bottom: 16px;
	}

	.staff .modal.active .meta {
		flex-direction: column;
		top: -25px;
		padding-left: 40px;
	}

	.staff .modal.active .about {
		padding: 0;
		max-width: 245px;
	}


	.staff .modal.active .about h3 {
		font-size: 18px;
		font-weight: 600;
		margin-bottom: 8px;
	}

	.staff .modal.active .about .staff-meta li {
		font-size: 14px;
	}

    .staff .modal.active .about .staff-meta li.phone {
        margin-bottom: 4px;
    }

	.staff .modal.active .about .staff-meta li.email {
		margin-top: 0;
	}

	.staff .modal.active .description {
		padding: 40px 60px 50px 65px;
		font-size: 16px;
        line-height: var(--leading-relaxed)
	}

    .staff .modal.active .description {
        position: unset;
        bottom: unset;
    }
}