#steps { counter-reset: steps; }

/*-------------------------------------------------------------------------------*/

#steps .swiper-slide {
    position: relative;
	width: 300px;
}
#steps .swiper-slide:before {
	content: '';
	display: block;
}

/*-------------------------------------------------------------------------------*/

#steps .swiper-slide > .background {
    position: relative;
	overflow: hidden;
	padding-top: 170%;
	margin-bottom: 25px;
	
	border: solid 5px #000;
    border-radius: 40px;
    
    isolation: isolate;
}
#steps .swiper-slide > .background > img,
#steps .swiper-slide > .background > video {
    position: absolute; top: 0; left: 0;
    display: block; height: 100%; width: 100%;
	
    object-fit: cover;
    object-position: center;
}

/*-------------------------------------------------------------------------------*/

#steps .swiper-slide > .background > .overlay {
	position: absolute; top: 0; left: 0; z-index: 1;
	height: 100%; width: 100%;
	
	transition: opacity .2s ease-out;
}

/*-------------------------------------------------------------------------------*/

#steps .swiper-slide > .background > .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;
}
#steps .swiper-slide > .background > video.playing + .overlay.playing { opacity: 0; }
#steps .swiper-slide > .background > .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;
}

/*-------------------------------------------------------------------------------*/

#steps .swiper-slide > .background > .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;
}
#steps .swiper-slide > .background > video.buffering + .overlay.buffering { opacity: 1; }
#steps .swiper-slide > .background > .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;
}

/*-------------------------------------------------------------------------------*/

#steps .swiper-slide > .title {
	text-align: center;
	text-transform: uppercase;
    font-family: "Stretch Pro";
}
#steps .swiper-slide > .title:before {
	counter-increment: steps;
	content: counter(steps, decimal-leading-zero);
	display: block;
	margin-bottom: 15px;
}
@media (min-width: 900px) {
	#steps .swiper-slide > .title { font-size: 16px; }
	#steps .swiper-slide > .title:before {
		line-height: 45px;
		font-size: 50px;
	}
}
@media (max-width: 899.99px) {
	#steps .swiper-slide > .title { font-size: 14px; }
	#steps .swiper-slide > .title:before {
		line-height: 25px;
		font-size: 30px;
	}
}