/* ======= PEOPLE ==================================================================================== */

/* Animations =========================== */

@keyframes personin {
	from { transform: translate3d(100%,0,0) scale(1.1); }
	to   { transform: translate3d(0,0,0) scale(1);}
}
@-moz-keyframes personin {
	from { transform: translate3d(100%,0,0) scale(1.1); }
	to   { transform: translate3d(0,0,0) scale(1);}
}
@-webkit-keyframes personin {
	from { transform: translate3d(100%,0,0) scale(1.1); }
	to   { transform: translate3d(0,0,0) scale(1);}
}
@-ms-keyframes personin {
	from { transform: translate3d(100%,0,0) scale(1.1); }
	to   { transform: translate3d(0,0,0) scale(1);}
}
@-o-keyframes personin {
	from { transform: translate3d(100%,0,0) scale(1.1); }
	to   { transform: translate3d(0,0,0) scale(1);}
}

@keyframes bioin {
	0% {  opacity: 0;}
	50% { opacity: 0}
	100% { opacity:1;}
}
@-moz-keyframes bioin {
	0% {  opacity: 0;}
	50% { opacity: 0}
	100% { opacity:1;}
}
@-webkit-keyframes bioin {
	0% {  opacity: 0;}
	50% { opacity: 0}
	100% { opacity:1;}
}
@-ms-keyframes bioin {
	0% {  opacity: 0;}
	50% { opacity: 0}
	100% { opacity:1;}
}
@-o-keyframes bioin {
	0% {  opacity: 0;}
	50% { opacity: 0}
	100% { opacity:1;}
}

.m-person__image {
	opacity: 1;
	transition: all .7s;
	max-width: 100%;
	-webkit-animation: personin .7s;
	-moz-animation: personin .7s;
	-ms-animation: personin .7; 
	-o-animation: personin .7; 
	animation: personin .7s;
	animation-timing-function: ease-in-out;  
}
.m-person__bio {
	opacity: 1;
	transition: all .7s;
	max-width: 100%;
	-webkit-animation: bioin 1.2s;
	-moz-animation: bioin 1.2s;
	-ms-animation: bioin 1.2s; 
	-o-animation: bioin .1.2s; 
	animation: bioin 1.2s;
	animation-timing-function: ease-in-out;  
}
.m-person__caption >
.m-person__button {
	opacity: 1;
	transition: all .7s;
	-webkit-animation: bioin 1.4s;
	-moz-animation: bioin 1.4s;
	-ms-animation: bioin 1.4s; 
	-o-animation: bioin .1.4s; 
	animation: bioin 1.4s;
	animation-timing-function: ease-in-out;  
}
.m-person {
	opacity: 1;
	transition: all .8s ease-in-out;
	z-index: 10;
}
.personout {
	opacity: 0;
	position: absolute !important;  
	top: 0;
	transform: scale(.9);
}
.m-person.personout {
	z-index: 0;
}

/* Layout =============================== */
.xc-people {
	width: 100%;
	margin: 66px 0;
	background: #fff;
}
.xc-people__content {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	position: relative;
}
.xc-team-main {
	width: 100%;
	order: 1;
}
.xc-team-main__bottom {
	position: relative;
	width: 100%;
	height: 86.6vw;
	margin: 0 auto;
}
.xc-team-thumbs {
	margin-bottom: 50px;
	position: relative;
	display: flex;
	flex-wrap: wrap;
	overflow-x: auto;
	order: 2;
}
.xc-team-thumbs__content {
	display: flex;
	flex-flow: wrap;
	flex-shrink: 0;
} 
.xc-team-thumbs__separator {
	flex-basis: 100%;
	height: 0;
	display: none;
}

/* Typography =============================== */

.xc-people .row-heading {
	margin-bottom: 0;
}
.xc-people__caption {
	text-transform: uppercase;
	margin-left: 9%;
	margin-right: 6%;
	font-size: .9rem;
	margin-top: .75rem;
	margin-bottom: 1.25rem;
	letter-spacing: 0.1em; /*0.156em;*/
	font-weight: 100;
	color: #000;
}

/* Person (Active "slide") =================================== */
.m-person {
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
}
.mouseuser .m-person:focus {
	outline: none;
}
.m-person[hidden=""] {
	display: none;
}
.m-person__image {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	position: relative;
}
.m-person__image::after {
	content: "";
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.0) 50%);
	top: 48%;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	position: absolute;
	height: 250px;
}
.m-person__image img {
	opacity: 0;
	min-height: 325px;
}
.m-person__caption {
	color: #fff;
	font-size: 14px;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	font-weight: 500;
	overflow: hidden;
}
.m-person__bio {
	position: absolute;
	padding: 0 11px;
	bottom: 11px;
	top: 0;
	width: 100%;

}
.m-person__biocontent {
	position: absolute;
	bottom: 0;
}
.m-person__name {
	color: #fff;
	line-height: 1em;
	font-family: "Freight Display Pro W01", serif;
	font-size: 32px;
	font-weight: 900;
	letter-spacing: 0.017em;
	margin-bottom: 1.5rem;
	margin-top: 0;
}
.m-person__bio p.m-person__major,
.m-person__bio p.m-person__role {
	margin: 0 0 0.25rem;
}
.m-person__bio p.m-person__major {
	text-transform: uppercase;
	letter-spacing: 0.036em;
}
.m-person__button a {
	position: absolute;
	width: 100%;
	height: 66%;
	bottom: 0;
	background: transparent;
}
.m-person__button a span {
	position: inherit;
	padding: 0;
	transform: skew(-20deg);
	display: block;
	opacity: 0;
}
.m-person__category {
	position: absolute;
	left: 0;
}
.m-person__category a {
	font-size: 13px;
	font-weight: 500;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.036em;
	padding: 5px 10px;
	display: inline-block;
	background: rgba(0,0,0,.3);
	transition: all .3s;
}
.m-person__category a:hover,
.m-person__category a:focus {
	text-decoration: none;
	background: rgba(0,0,0,.5);
}

/* Thumbnails =============================== */
.xc-team-thumbs__button {
	width: 28vw;
	height: 19.5vw;
	position: relative;
	border: 0;
	margin: 0;
	padding: 0;
	cursor: pointer;
	overflow: hidden;
	flex: 1 0 auto;
	background: #eff0f0;
	min-width: 164px;
	min-height: 114.511px;
	z-index: 0;
	background-position: center;
	background-size: cover;
}
.xc-team-thumbs__button:focus::before {
	outline:1px dotted #000;
}
.xc-team-thumbs__button::after {
	content: "";
	background: transparent;
	transform: scale3d(1.3,1.3,1);
	transition: background .3s ease, transform .3s ease;
	position: absolute;
	left: 12px;
	top: 12px;
	bottom: 12px;
	right: 12px;
	z-index: 2;
	perspective: 1000px; 
	backface-visibility: hidden; 
	-moz-transform-style: preserve-3d;
}
.xc-team-thumbs__button:hover::after,
.xc-team-thumbs__button:focus::after,
.xc-team-thumbs__button[aria-selected="true"]::after {
	content: "";
	background: rgba(0,0,0,.25);
	position: absolute;
}
.xc-team-thumbs__button::before {
	content: "";
	background: transparent;
	transform: scale3d(1.3,1.3,1);
	transition: background .3s ease, transform .3s ease;
	border: 13px solid rgba(181, 142, 91, .8);
	position: absolute;
	left: -1px;
	top: -1px;
	bottom: -1px;
	right: -1px;
	z-index: 1;
	perspective: 1000px; 
	backface-visibility: hidden; 
	-moz-transform-style: preserve-3d;
}
.xc-team-thumbs__button-image  {
	position: absolute;
	top: 0;
	right: -1px;
	bottom: -1px;
	left: 0;
	background-size: cover;
	background-position: center;
	display: block;
	transform: scale3d(1,1,1);
	transition: transform .3s ease;
	perspective: 1000px; 
	backface-visibility: hidden; 
	-moz-transform-style: preserve-3d;
}
.xc-team-thumbs__button:hover .xc-team-thumbs__button-image,
.xc-team-thumbs__button:focus .xc-team-thumbs__button-image,
.xc-team-thumbs__button[aria-selected="true"] .xc-team-thumbs__button-image {
	transform: scale3d(1.11,1.11,1);
}
.xc-team-thumbs__button[aria-selected="true"]::before {
	transform: scale3d(1,1,1);
}
.xc-team-thumbs__button[aria-selected="true"]::after {
	background: rgba(0,0,0,.5);
	transform: scale3d(1,1,1);
}

/* More Stories Button =========================== */
.xc-people__buttonwrapper {
	width: 100%;
	position: absolute;
	right: 0;
	bottom: -22px;
	text-align: center;
	z-index: 2;
}
.xc-people__button {
	display: inline-block;
	padding: 22px;
	text-align: center;
	text-decoration: none;
	color: rgba(0, 0, 0, 0.7);
	text-transform: uppercase;
	letter-spacing: .188rem;
	font-size: .875rem;
	font-weight: 400;
	transition: all .3s;
}
.xc-people__button:hover,
.xc-people__button:focus {
	color: rgba(0, 0, 0, 1);
	text-decoration: underline;
}


/* =============== Media Queries ==================== */

@media only screen and (min-width: 600px) {
	.xc-team-main__bottom {
		width: 88%;
		height: 59.5vw;
	}
	.xc-team-thumbs {
		margin-left: 6%;
	}
	.m-person__bio {
		padding: 0 22px;
		bottom: 22px;
	}
	.xc-team-thumbs__button {
		width: 14vw;
		min-width: 82px;
	}
	.xc-team-thumbs__separator {
		display: block;
	}
}

@media only screen and (min-width: 930px) {
	.xc-people__content .m-person__image::after {
		background: linear-gradient(90deg,rgba(0, 0, 0, 0.8) 0%,rgba(0,0,0,0) 50%);
	}
	.m-person__image img {
		padding-bottom: 0;
	}
	.m-person__bio {
		position: relative;
		padding-top: 35%;
		padding-left: 6%;
		max-width: 50%;
	}
	.m-person__bio p.m-person__major {
		max-width: 275px;
	}
	.m-person__bio p.m-person__role {
		max-width: 340px;
	}
	.m-person__biocontent {
		position: relative;
		bottom: auto;
	}
	.m-person__button {
		margin-top: 1.25rem;
	}
	.m-person__button a {
		position: relative;
		width: auto;
		height: auto;
		padding: 1rem 2.5rem 1rem calc(6% + 40px);
		background: #866f45;
		transform: skew(20deg) translateX(-40px);
		transition: all .3s ease-in-out;
		font-family: "Avenir Next W01", Verdana, sans-serif;
		font-size: 0.875rem;
		font-weight: 500;
		letter-spacing: .143em;
		text-decoration: none;
		display: inline-block;
		color: #fff;
		text-transform: uppercase;
	}
	.m-person__button a:hover,
	.m-person__button a:focus {
		background: #b58e5b;
	}
	.m-person__button a span {
		opacity: 1;
	}
	.m-person__category {
		position: relative;

	}
	.m-person__category a {
		background: none;
		padding: 5px 0;
	}
	.m-person__category a:hover,
	.m-person__category a:focus {  
		text-decoration: underline;
		background: none;
	}
}

@media only screen and (min-width: 1220px) {

	/* at certain window aspect ratios, display single col thumbs */
	.single-col-thumbs .xc-team-thumbs, 
	.single-col-thumbs .xc-team-thumbs__button, 
	.single-col-thumbs .xc-people__buttonwrapper {
		width: 18vw;
	}
	.single-col-thumbs .xc-team-main__shadow-top,
	.single-col-thumbs .xc-team-main__shadow-bottom {
		width: 19vw;
	}
	.single-col-thumbs .xc-team-thumbs__button {
		height: 12.568281938326vw;
	}
	.single-col-thumbs .xc-team-main {
		width: 79%;
	}
	.single-col-thumbs .xc-team-main__shadow-top,
	.single-col-thumbs .xc-team-main__shadow-bottom {
		right: -26.59%;
	}
	.single-col-thumbs .xc-people__button {
		padding: 22px 0;
	}
	.xc-people__content {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		position: relative;
	}
	.xc-team-main {
		width: 66%;
		height: 90vh;
		position: -webkit-sticky;
		position: sticky;
		top: 0;
		z-index: 1;
	}
	.xc-team-main.js-short .m-person__image {
		background-position: top center;
	}
	.xc-team-main.js-short .m-person__bio {
		padding-top: 0;
	}
	.xc-team-main.js-short .m-person__caption {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
	.xc-team-main__top {
		display: inline-block;
		width: 100%;
		height: 70;
	}
	.xc-team-main__shadow-top {
		background: linear-gradient(rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
		position: absolute;
		top: 0;
		width: 31vw;
		height: 70px;
		right: -51.5151515152%;
		z-index: 1;
		display: none;
	}
	.xc-team-main__shadow-bottom {
		background: linear-gradient(rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
		position: absolute;
		bottom: 0;
		width: 31vw;
		height: 70px;
		right: -51.5151515152%;
		z-index: 1;
		opacity: 1;
		transition: opacity .2s;
		display: none;
	}
	.xc-team-main__shadow-bottom.hide {
		opacity: 0;
	}
	.xc-team-main__bottom {
		height: calc(100vh - 216px);
		width: 100%;
	}
	.m-person__image {
		width: 92%;
		height: 100%;
		margin-left: 8%;
	}
	.m-person__caption {
		margin-left: 8%;
	}
	.xc-team-thumbs {
		width: 30vw;
		margin-top: 55px;
		flex-wrap: wrap;
		margin-left: 0;
	}
	.xc-team-thumbs__content {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
		align-content: flex-start;
	}
	.xc-team-thumbs__button {
		width: 15vw;
		height: 10.47356828193833vw;
		flex-grow: 0;
		flex-shrink: 1;
	}
	.xc-people__buttonwrapper {
		width: 30vw;
	}
	.xc-team-thumbs__separator {
		display: none;
	}
}
@media (prefers-reduced-motion) {
	.personout {
		transform: none;
	}   
	.m-person__image,
	.m-person__bio,
	.m-person__caption > .m-person__button {
		animation: none;
	}
	.xc-team-thumbs__button::before,
	.xc-team-thumbs__button::after { 
		transition: background .3s ease, transform 0s ease;
	}
	.wm-topbar .wm-topbar__menu-button {
		transition: opacity .6s, right 0s;
	}
	.wm-topbar.is-hidden .wm-topbar__menu-button {
		transition: opacity .6s, right 0s ease .6s; 
	}
}