#testimonials {}

/*-------------------------------------------------------------------------------*/

#testimonials .testimonial {
	cursor: pointer;
	transition: transform .4s ease-out;
}
#testimonials .testimonial:hover { transform: translateY(-50px); }
#testimonials .testimonial > .content {
    position: relative;
	overflow: hidden;
	padding-top: 170%;
	
	border: solid 5px #000;
    border-radius: 40px;
    
    isolation: isolate;
	
	pointer-events: none;
}

/*-------------------------------------------------------------------------------*/

#testimonials .testimonial > .content > video {
    position: absolute; top: 0; left: 0;
    display: block; height: 100%; width: 100%;
	
    object-fit: cover;
    object-position: center;
}

/*-------------------------------------------------------------------------------*/

#testimonials .testimonial > .content > .overlay {
	position: absolute; top: 0; left: 0; z-index: 1;
	height: 100%; width: 100%;
	
	transition: opacity .2s ease-out;
}

/*-------------------------------------------------------------------------------*/

#testimonials .testimonial > .content > .overlay.playing {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	padding: 50px 25px;
	
	background-image: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,.5));
	
	text-shadow: 2px 2px 5px rgba(0,0,0,.3);
	text-align: center;
	color: #FFF;
}
#testimonials .testimonial > .content > video.playing + .overlay.playing { opacity: 0; }
#testimonials .testimonial > .content > .overlay.playing:before {
	content: '';
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	display: block; height: 150px; width: 150px;
	
	background-color: #FFF;
	
	-webkit-mask-image: url("../../images/icons/play.svg");
	mask-image: url("../../images/icons/play.svg");
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}
#testimonials .testimonial > .content > .overlay.playing > .name {
	margin-bottom: 5px;
	
	text-transform: uppercase;
	font-family: 'Stretch Pro';
	font-size: 24px;
}
#testimonials .testimonial > .content > .overlay.playing > .job-title {
	line-height: 16px;
	font-size: 10px;
	font-weight: 500;
}
#testimonials .testimonial > .content > .overlay.playing > .job-title > img {
	display: inline-block; height: 16px; width: 16px;
	margin-right: 10px;
	
	vertical-align: middle;
	
	object-fit: contain;
	object-position: center;
}

/*-------------------------------------------------------------------------------*/

#testimonials .testimonial > .content > .overlay.buffering {
	background-image: linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,0) 50%, rgba(0,0,0,.5));
	opacity: 0;
}
#testimonials .testimonial > .content > video.buffering + .overlay.buffering { opacity: 1; }
#testimonials .testimonial > .content > .overlay.buffering:before {
	content: '';
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	display: block; height: 100px; width: 100px;
	
	background-color: #FFF;
	
	-webkit-mask-image: url("../../images/icons/spinner.svg");
	mask-image: url("../../images/icons/spinner.svg");
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}