.metaslider.ms-theme-cascade {

	.flexslider {

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

		.caption-wrap {
			background:  transparent;
			opacity: 1;

			.caption {
				padding: 50px 70px;
				text-align: center;
				top: unset;
				bottom: 0%;
				transform: translateY(0%);
				position: absolute;
				width: 100%;
				text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
				box-sizing: border-box;
				z-index: 2;
				background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.8));

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

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

		.flex-direction-nav {
			position: absolute;
			right: 20px;
			top: 50%;
			transform: translateY(-50%);
			display: flex;
			flex-direction: column;
			flex-wrap: wrap;
			z-index: 2;

			li {
				height: 50px;
				margin: 3px 0;

				a {
					height: 50px;
					width: 38px;
					background-repeat: no-repeat;
					background-position: center;
					background-color:  #fff;
					background-size: 30px auto;
					background-image: none;
					box-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
					border-radius: 20px;
					//top: calc(50% + 20px);
					top: 20px;
					bottom: unset;
					right: unset;
					left: unset;
					//transform: translateY(-50%);
					position: relative;
					
					&:hover {
						background: #fff;
					}

					&:focus {
						background-color: #fff;
						outline: none;
					}

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

					&.flex-prev {
						left: unset;

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

					&.flex-next {
						right: unset;

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

		.flex-control-paging li a {
			font-size: 0;
			text-indent: 99999px;
			overflow: hidden;
		}
		
		.flex-control-nav {
			top: unset;
			bottom: 50%;
			transform: translateY(50%);
			left: 20px;
			width: auto;
	
			li {
				display: block;
				margin: 9px 0;

				a {
					box-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
					background: rgba(255,255,255,0.5);
					margin: 0;
					border-radius: 20px;
					width: 15px;
					height: 15px;

					&: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;
				}
			}
		}
	}
}