.metaslider.ms-theme-bitono {

	&:not(.has-carousel-mode) .flexslider {

		// Animation fade out
		.caption-wrap .caption,
		.youtube .play_button,
		.vjs-big-play-button {
			animation-name: bitono_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: bitono_fadeIn;
			}
		}
	}

	.flexslider {

		.slides > li > a {
			z-index: 0;
			position: relative;
	
			img {
				z-index: 2;
				position: relative;
			}
		}

		.caption-wrap {
			background:  linear-gradient(to bottom, rgba(0,0,0,0), #016fb9);
			opacity: 1;
			height: 100%;
			bottom: 0;
			transform: translateY(0);

			.caption {
				padding: 20px 70px;
				text-align: center;
				top: 50%;
				transform: translateY(-50%);
				position: absolute;
				width: 100%;
				text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
				box-sizing: border-box;
				z-index: 2;

				p {
					margin: 0 0 15px;
				}
				
				a {
					color: #f3ea28;
					text-decoration: underline;

					&:hover,
					&:focus {
						color: #faf461;
						background: none;
					}
				}
			}
		}

		.flex-direction-nav {
			a {
				//opacity: 1;
				height: 38px;
				width: 38px;
				background-repeat: no-repeat;
				background-position: center;
				background-color:  #dd6923;
				background-size: 18px auto;
				background-image: none;
				box-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
				border-radius: 4px;
				top: calc(50% + 20px);
				transform: translateY(-50%);
				
				&:focus {
					background-color: #dd6923;
					outline: none;
				}

				&:after {
					background-color: #fff;
					mask-repeat: no-repeat;
					mask-size: 12px auto;
					content: '';
					display: table;
					width: 100%;
					height: 100%;
					position: absolute;
					top: 0;
					mask-position: center;
				}

				&.flex-prev {
					left: 20px;

					&:after {
						mask-image: url(images/left.svg);
						mask-position: center center;
					}
				}

				&.flex-next {
					right: 20px;

					&:after {
						mask-image: url(images/right.svg);
					}
				}
			}
		}

		.flex-control-paging li a {
			font-size: 0;
			text-indent: 99999px;
			overflow: hidden;
		}
		
		.flex-control-nav {
			bottom: 20px;
	
			li a {
				box-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
				background: #dd6923;
				margin: 0 5px;
				border-radius: 2px;
				opacity: 0.8;

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

				&.flex-active {
					background: #fff;
				}
			}
		}

		.flex-pauseplay a {
			left: 20px;
  			bottom: 10px;
		}
	}

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

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

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