.metaslider.ms-theme-revelio {

	.flexslider {

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

		.slides li:hover .caption-wrap {
			opacity: 1;
  			transform: scale(1);

			  &:before {
				width: 100%;
  				height: 100%;
			  }

			  &:after {
				width: 100%;
  				height: 100%;
			  }
		}

		.slides li {
			.revelio-link {
				background-color: #3C415C;
				border: 1px solid;
				border-radius: 25px;
				bottom: 15px;
				padding: 5px 15px;
				position: absolute;
				right: 30px;
				text-decoration: none;
				z-index: 9999;
				
				&:hover{
					background-color: rgb(217,228,245); 
				}
			}
		}

		.caption-wrap {
			background:  rgb(26,26,46, 0.8);
			border: 0 solid rgb(217,228,245);
			height: 100%;
			opacity: 0;
			transform: scale(0.8);
			transition: opacity 0.3s ease-out, transform 0.3s ease-out;

			&:before,
			&:after {
				content: '';
				position: absolute;
				width: 0;
				height: 0;
				border: 2px solid rgb(217,228,245);
				transition: width 0.3s ease, height 0.3s ease;
			}

			&:before {
				top: 0;
				left: 0;
				border-right: none;
				border-bottom: none;
				transition-delay: 0.2s;
			}

			&:after {
				bottom: 0;
				right: 0;
				border-left: none;
				border-top: none;
				transition-delay: 0.4s;
			}

			.caption {
				box-sizing: border-box;
				color: #d9e4f5;
				padding: 20px 70px 0px 70px;
				position: absolute;
				text-align: center;
				top: 38%;
				transform: translateY(-50%);
				width: 100%;
				z-index: 2;
				overflow: scroll;
				height: 75%;

				p {
					margin: 0 0 15px;
				}
				
				a {
					color: rgb(244,211,94);
					text-decoration: underline;

					&:hover,
					&:focus {
						color: rgb(244,211,94);
						background: none;
					}
				}
			}

			.revelio-link {
				bottom: 15px;
				right: 30px;
			}
		}

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

				&:after {
					background-color:rgb(217,228,245);
					mask-repeat: no-repeat;
					mask-size: 40px 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: 0px center;
					}
				}

				&.flex-next {
					right: 20px;

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

		.flex-control-nav {
			li a {
				background: rgb(217,228,245);
				border-radius: 20px;
				box-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
				height: 20px;
				margin: 0 5px;
				opacity: 1;
				width: 20px;

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

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

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