$gap: 20px;
.metaslider.ms-theme-hero {
	.flexslider {
		.flex-viewport {
			font-weight: bold;
		}
		.caption-wrap {
			background-color: transparent;
			opacity: 1;
			height: 50%;

			.caption {
				box-sizing: border-box;
				padding: 20px;
				position: absolute;
				text-align: center;
				text-shadow: 1px 1px 2px rgba(0,0,0,.3);
				top: 50%;
				transform: translateY(-50%);
				width: auto;
				display: block;
				background: rgba(0,0,0,0.6);
				max-width: 50%;

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

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

		.slides {
			
			li {
				box-shadow: none;
			}
		}

		.flex-direction-nav {
			li a {
				background: center no-repeat #075773;
				background-size: 30px;
				border-radius: 100%;
				bottom: calc($gap + 20px);
				box-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
				height: 40px;
				opacity: 0;
				top: auto;
				width: 40px;
				z-index: 999;
				&:hover,
				&:focus {
					opacity: 1;
					background-color: #35948e;
				}
	
				&:after {
					background-image: none;
					background-color: #fff;
					mask-repeat: no-repeat;
					mask-position: center;
					mask-size: 30px auto;
					content: '' !important;
					display: block;
					height: 100%;
					width: 100%;
					top: 0;
					position: absolute;
				}
	
				&.flex-prev {
					left: 20px;
	
					&:after {
						mask-image: url(images/arrow-left.svg);
					}
				}
	
				&.flex-next {
					right: 20px;
	
					&:after {
						mask-image: url(images/arrow-right.svg);
					}
				}
			}
		}

		.flex-control-nav {
			opacity: 0;
			bottom: calc($gap + 30px);
			z-index: 999;
			li a {
				box-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
				background: #35948e;
				margin: 0 5px;
				border-radius: 100%;
				opacity: 1;
				width: 20px;
				height: 20px;

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

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

		.flex-pauseplay {
			z-index: 999;

			.flex-pause, .flex-play {
				width: 40px;
				height: 40px;
				background: #35948E;
				color: #fff;
				text-align: center;
				border-radius: 50%;
				line-height: 40px;
				bottom: 20px;
				left: -40px;
				opacity: 1;
			}
			.flex-play {
				background: #79868d;
			}
		}

		&:not(.filmstrip) {
			
			.slides {
				margin-top: $gap;
				margin-bottom: $gap;

				li {
					transition: transform 0.5s ease-in-out;
					transform-origin: center center;
					transform: scale(0.8);
				}
			}
		}

		&.filmstrip {

			.slides {
				margin-top: 0;
				margin-bottom: 0;
			}

			.flex-direction-nav {

				li a {
					top: unset;
					bottom: 50%;
					transform: translateY(50%);
				}
			}
		}
	}

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