.sf-team {
    padding: 80px 0;
    
}


/* 
 
Sorting Nav Bar

*/
.team-sorting {
    display: flex;
    flex-flow: row nowrap;
    background-color: var(--white);

    position:sticky;
    top: 0;
    z-index: 99;

}

.team-sorting__list {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    justify-content: flex-start;
    width: 100%;
    margin: 0;
    padding: 1.5em 1em;
    column-gap: 1em;
}

@media screen and (min-width: 992px) {
    .team-sorting__list {
        justify-content: center;
    }
}
@media screen and (min-width: 1330px) {
    .team-sorting__list {
        column-gap: 30px; 
    }
}

.team-sorting__item {

    cursor: pointer;
    color: var(--black);
    font-size: 20px;
    letter-spacing: -0.5px;
    line-height: 24px;
    font-weight: bold;
}
.team-sorting__item:hover {
    color: var(--blue);
}



/* 

Main Grid 

*/

.sf-team__wrap {
    /* display: flex;
    flex-flow: wrap; */
    justify-content: space-between;

    display: grid;
    grid-template-columns: repeat(auto-fill, 100%); 
    grid-gap: 20px;
}


.sf-team__member {
    flex-grow: 0;
    // Add margin only on even items
}


@media screen and (min-width: 768px) {
    .sf-team__wrap {
        grid-template-columns: repeat(auto-fill, calc(50% - 20px)); 
    }
}
@media screen and (min-width: 992px) {
    .sf-team__wrap {
        grid-template-columns: repeat(auto-fill, calc(33% - 20px)); 
    }
}
@media screen and (min-width: 1330px) {
    .sf-team__wrap {
        grid-template-columns: repeat(auto-fill, calc(25% - 20px)); 
    }
}


/* 

Individual squares

*/

.card {
    display: inline-flex;
    flex-flow: column;
    height: 100%;
    width: 100%;
}

a.card {
    text-decoration: none;
}

.card-img {
	width: 100%;
    height: 100%;
	/* padding-top: 100%; */
	/* height: 0; */
	position: relative;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;


    display: inline-flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
	
}
.card-img.top-card-img {
    padding-top: 50%;
}

.card-img.profile-card-img {
    padding-top: 70%;
    width: 70%;
    margin: 0 auto;
    display: block;
}

.card-overlay {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index: 1;
	opacity: 0;
    order: 1;
	display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
	position: absolute;
	text-align: center;
	background-color: var(--blue);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-blend-mode: multiply;
	transition: opacity 0.15s ease-out;
}
.card-img img {
    object-fit: cover;
    width: 100%;
    height: auto;
    order:1;
}

.card:hover .card-overlay,
.card:focus .card-overlay  {
	opacity: 1;
	transition: opacity 0.15s ease-in;
}

.card-img-placeholder {
    border: 2px solid var(--black);
    width: 100%;
    height: 100%;
}
/* .no-background-blend-mode .card-overlay {
	background: $bright-blue;
	background-image: none !important;
}

.no-background-blend-mode .card:hover .card-overlay {
	background: rgba($bright-blue, 0.5);
	transition: opacity 0.15s ease-in;
} */

.card-text {
	/* padding: ($space / 2) 0 2rem 0; */
	color: var(--black);
    margin-top: auto;
    margin-bottom: 0;

    display: inline-flex;
    flex-direction: column;

    padding-top: 1em;

}

.card-text h6 {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 0;
    width: 100%;

}
.card-text h6 .profile-card-name {
    text-transform: none;
}

.card-text p {
    margin-top: 0;
    height: 3.26em;
}
.card-text p.card-descript-text {
			padding-top: 2rem;
		}

.card-text p.profile-card-title {
   font-size: 12px;

    text-transform: uppercase;
    margin: 0 0 0.5rem 0;
}

.card-text p.profile-card-contact {
   font-size: 12px;

    margin: 0 0 0.5rem 0;

    
}
.card-text p.profile-card-contact span {
    font-weight: 500;
}

.card-text > *:last-child {
    margin-bottom: 0;
}

.card .btn:hover, .card .btn:focus {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--black);
}

/*  Entry pages */

.sf-team-member {
    padding: 80px 0;
}

.sf-team-member__inner {
        display: flex;
        justify-content: space-between;

        flex-direction: column;
}
.sf-team-member__left {
    width: 100%;  
}
.sf-team-member__right {
    width: 100%;
}
.sf-team-member__left img {
    width: 100%;
    height: auto;
}
@media screen and (min-width: 992px) {
    .sf-team-member__inner {
            flex-direction: row;
    }
    .sf-team-member__left { width: calc(40% - 80px);}
    .sf-team-member__right { width: calc(60% - 80px); }
}
e