.metaslider.ms-theme-visage {

	&:not(.has-carousel-mode) .flexslider {
		// Animation fade out
		.youtube .play_button,
		.vjs-big-play-button {
			animation-name: visage_fadeOut;
			animation-delay: 0.5s;
			animation-duration: 0.5s;
			animation-fill-mode: both;
		}

		// Animation fade in
		.flex-active-slide {
			.caption-wrap .caption,
			.youtube .play_button,
			.vjs-big-play-button {
				animation-name: visage_fadeIn;
			}
		}
	}

	.flexslider {
		.slides {
			display: flex;
			flex-direction: row;

			li {
				background-color: #fff;
				box-shadow: 0 10px 5px -5px #6c6e71;
				display: flex !important;
				flex-direction: column;
				padding-top: 150px;
				margin-bottom: 25px;
			}

			.ms-vimeo, .ms-youtube {
				background-color: transparent;
			}

			.ms-vimeo .vimeo {
				margin: auto 0;
			}

			.visage-link {
				position: absolute;
				bottom: 0;
				right: 0;
				background-color: #F5F5DC;
				color: #000;
				text-decoration: none;
				padding: 10px 30px;
			}
		}

		.caption-wrap {
			background: #fff;
			bottom: auto;
			box-sizing: border-box;
			color: #000;
			display: flex;
			flex: 1;
			height: 150px;
			line-height: 1.4em;
			margin: 0;
			opacity: 1;
			padding-bottom: 20px;
			top: 0;
			width: 100%;
			
			&:before {
				color: #dedede;
				content: attr(data-number);
				font-size: 150px;
				font-weight: 700;
				left: 10px;
				opacity: 0.5;
				position: absolute;
				top: 60px;
			}
			
			.caption {
				box-sizing: border-box;
				overflow: auto;
				padding: 20px;
				width: 100%;
				z-index: 1;

				p:not(:last-of-type) {
					margin: 0 0 15px;
				}
			}
		}

		.flex-direction-nav {

			.flex-nav-prev {
				left: -60px;
			}

			.flex-nav-next {
				right: -60px;
			}
	
			.flex-next {
	
				&:before {
					transform: rotate(180deg);
				}
			}
	
			> li {

				height: 50px;
				position: absolute;
				top: 50%;
				transform: translateY(-50%);
				width: 50px;
				z-index: 2;
	
				a {
					width: 40px;
					height: 40px;
					background: none;
					border-radius: 6px;

					&:hover, &:active {
						background-color: #50585C;

						&:before {
							background-color: #fff;
						}
					}
	
					&:before {
						background-image: none;
						background-color: #50585C;
						mask-image: url(images/arrow.svg);
						mask-repeat: no-repeat;
						mask-position: 10px center;
						mask-size: 28px auto;
						content: '' !important;
						display: block;
						height: 40px;
						max-height: 40px;
						max-width: 40px;
						position: absolute;
						width: 100%;
					}
	
					&:focus {
						background: 0;
						outline: none;
					}
				}
			}
		}

		.flex-control-nav {
			li a {
				height: 10px;
				box-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
				background: #50585C;
				margin: 0;
				border-radius: 0;
				opacity: 0.5;
				width: 90px;

				&:hover,
				&:focus {
					opacity: 1;
				}

				&.flex-active {
					background: #50585C;
					opacity: 1;
				}
			}
		}

		.flex-pauseplay a::before {
			font-size: 16px;
		}

		.flex-pauseplay a {
			bottom: -35px;
			color: #fff;
			height: 32px;
			text-align: center;
			width: 32px;
			background-color: rgba(0,0,0,0.8);
			border-radius: 100%;
		}
	}

	&.has-onhover-arrows {
		.flex-direction-nav li {
			opacity: 0;
		}
		&:hover {
			.flex-direction-nav {
				li {
					opacity: 1;
				}
				a {
					opacity: 1;
				}
			}
		}
	}

	
}

.metaslider.ms-theme-visage.has-carousel-mode {
	.flexslider {
		.slides {
			li {
				box-shadow:  0 2px 5px rgba(0, 0, 0, 0.1), 0 10px 15px rgba(0, 0, 0, 0.1), 0 15px 30px rgba(0, 0, 0, 0.1);
				margin-top: 30px;
				margin-bottom: 30px;
				padding-top: 250px;
			}
		}
		.caption-wrap {
			height: 250px;
		}
	}
}

@keyframes visage_fadeIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes visage_fadeOut {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}