/*
 * jQuery FlexSlider v2.6.3
 * http://www.woothemes.com/flexslider/
 *
 * Copyright 2012 WooThemes
 * Free to use under the GPLv2 and later license.
 * http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Contributing author: Tyler Smith (@mbmufffin)
 *
 */

/* ====================================================================================================================
 * FONT-FACE
 * ====================================================================================================================*/
 @font-face {
	font-family: 'flexslider-icon';
	src: url('fonts/flexslider-icon.eot');
	src: url('fonts/flexslider-icon.eot?#iefix') format('embedded-opentype'), url('fonts/flexslider-icon.woff') format('woff'), url('fonts/flexslider-icon.ttf') format('truetype'), url('fonts/flexslider-icon.svg#flexslider-icon') format('svg');
	font-weight: normal;
	font-style: normal;
}
/* ====================================================================================================================
 * RESETS
 * ====================================================================================================================*/

.flex-container a:hover,
.flex-slider a:hover {
	outline: none;
}
.slides,
.slides>li,
.flex-control-nav,
.flex-direction-nav {
	margin: 0;
	padding: 0;
	list-style: none;
}
.flex-pauseplay span {
	text-transform: capitalize;
}
/* ====================================================================================================================
 * BASE STYLES
 * ====================================================================================================================*/

.flexslider {
	margin: 0;
	padding: 0;
}
.flexslider .slides>li {
	display: none;
	-webkit-backface-visibility: hidden;
}
.flexslider .slides img {
	width: 100%;
	display: block;
}
.flexslider .slides:after {
	content: "\0020";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}
html[xmlns] .flexslider .slides {
	display: block;
}
* html .flexslider .slides {
	height: 1%;
}
.no-js .flexslider .slides>li:first-child {
	display: block;
}
/* ====================================================================================================================
 * RESPONSIVE STYLES
 * ====================================================================================================================*/

 .flexslider .slides .mobile-on {
	display: none;
}

.fs-slide img.lazy {
	display: none;
}
.fs-slide img.lazy-loaded {
	display: block;
}
.flexslider:after {
	content: "";
	display: none;
}

/* ====================================================================================================================
 * DEFAULT THEME
 * ====================================================================================================================*/

.flexslider {
	margin: 0;
	/* background: #111; */
	overflow: hidden;
	border: 0;
	position: relative;
	zoom: 1;
}
.flexslider .slides {
	zoom: 1;
}
.flexslider .dark_overlay {
	background: rgba(0, 0, 0, 0.4);
	position:absolute;
	width:100%;
	height:100%;
	z-index:1;
	top:0;
	left:0;
	right:0;
	margin:0 auto; 
}
.flexslider .slides img {
	height: auto;
	-moz-user-select: none;
}
.flex-viewport {
  max-height: 2000px;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}
.loading .flex-viewport {
	max-height: 300px;
}
@-moz-document url-prefix() {
  .loading .flex-viewport {
    max-height: none;
  }
}
.carousel li {
	margin-right: 5px;
}
.flex-direction-nav {
	height: 0;
}

/* Next / Prev Buttons */

.flex-direction-nav a {
  display: block;
  text-align: center;
  width: 60px;
  height: 80px;
  position: absolute;
  top: 40%;
  z-index: 10;
  overflow: hidden;
  opacity: 0;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  background: rgba(0, 0, 0, 0.6);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  text-indent: -9999px; /* 👈 Hides text like "Previous" or "Next" */
  white-space: nowrap;
}

/* Remove pseudo elements */
.flex-direction-nav a:before,
.flex-direction-nav a.flex-next:before {
  content: none;
  display: none;
}

/* Arrow background images */
.flex-direction-nav .flex-prev {
  left: -50px;
  background-image: url('/_resources/themes/base-foundation-theme/icons/prev-icon.svg');
}

.flex-direction-nav .flex-next {
  right: -50px;
  background-image: url('/_resources/themes/base-foundation-theme/icons/next-icon.svg');
}

/* Reveal arrows on hover */
.flexslider:hover .flex-direction-nav .flex-prev {
  opacity: 0.7;
  left: 0;
}
.flexslider:hover .flex-direction-nav .flex-prev:hover {
  opacity: 1;
}
.flexslider:hover .flex-direction-nav .flex-next {
  opacity: 0.7;
  right: 0;
}
.flexslider:hover .flex-direction-nav .flex-next:hover {
  opacity: 1;
}

.flex-direction-nav .flex-disabled {
	opacity: 0!important;
	filter: alpha(opacity=0);
	cursor: default;
	z-index: -1;
}
.flex-pauseplay a {
	display: block;
	width: 20px;
	height: 20px;
	position: absolute;
	bottom: 5px;
	left: 10px;
	opacity: 0.8;
	z-index: 10;
	overflow: hidden;
	cursor: pointer;
	color: #000;
}
.flex-pauseplay a:before {
	font-family: "flexslider-icon";
	font-size: 20px;
	display: inline-block;
	content: '\f004';
}
.flex-pauseplay a:hover {
	opacity: 1;
}
.flex-pauseplay a.flex-play:before {
	content: '\f003';
}
.flex-control-nav {
	display: flex;
	flex-direction: row;
	justify-content: center;
	padding: 20px;
	width: 100%;
	position: absolute;
	bottom: 0;
	text-align: center;
	z-index: 5;
	line-height:normal;
}
.flex-control-nav li {
	margin: 0 6px;
	display: inline-block;
	line-height:normal;
	zoom: 1;
	display: inline;
}
.flex-control-paging li a {
	width: 30px;
	height: 6px;
	display: block;
	background: #fff;
	background: rgba(70, 70, 70, 0.9);
	cursor: pointer;
	text-indent: -9999px;
}
.flex-control-paging li a:hover {
	background: rgba(255, 255, 255, 0.5);
}
.flex-control-paging li a.flex-active {
	background: rgba(255, 255, 255, 1);
	cursor: default;
}
.flex-control-thumbs {
	margin: 5px 0 0;
	position: static;
	overflow: hidden;
}
.flex-control-thumbs li {
	width: 25%;
	float: left;
	margin: 0;
}
.flex-control-thumbs img {
	width: 100%;
	height: auto;
	display: block;
	opacity: .7;
	cursor: pointer;
	-moz-user-select: none;
	-webkit-transition: all 1s ease;
	-moz-transition: all 1s ease;
	-ms-transition: all 1s ease;
	-o-transition: all 1s ease;
	transition: all 1s ease;
}
.flex-control-thumbs img:hover {
	opacity: 1;
}
.flex-control-thumbs .flex-active {
	opacity: 1;
	cursor: default;
}

/* ====================================================================================================================
 * SLIDER VIDEO
 * ====================================================================================================================*/

.fs-slide__bgvideo {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	box-sizing: border-box;
	z-index: 0;
}
.fs-slide__bgvideo video {
	min-width: 100%;
	min-height: 100%;
	max-width:100%;
	width: auto;
	height:auto;
	position:relative;
	top:50%;
	transform: translateY(-50%);
	background: transparent;
}
/* ====================================================================================================================
 * SLIDER YOUTUBE VIDEO
 * ====================================================================================================================*/

.fs-slide__ytvideo {
	position: relative;
	top: 0;
	left: 0;
	overflow: hidden;
	box-sizing: border-box;
	z-index: 0;
}
.ytvideo-inner {
	width: 100%;
	height: 100%;
	margin: auto;
	/* opacity: 0; */
	transition: opacity .5s;
}
 .ytvideo-inner.active {
	opacity: 1;
}


/* ====================================================================================================================
 * SLIDER OVERLAY
 * ====================================================================================================================*/
 .fs-slide {
	display: flex;
    position: relative;
    overflow: hidden;
}

.fs-slide .black_text {
    color: #151515; /* Default color for black_text */
}

.fs-slide .white_text {
    color: #fff; /* Override for white_text */
}

.fs-slide__overlay p,
.fs-slide .white_text p,
.fs-slide .black_text p {
    font-size: 20px;
}

.fs-slide__overlay {
    display: flex;
    align-items: center;
    position: absolute;
    height: 100%;
    padding: 96px;
    top: 0;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 2;
}

.fs-slide__direction--Right,
.fs-slide__direction--Left,
.fs-slide__direction--Top,
.fs-slide__direction--Bottom {
    position: absolute;
    width: 70%;
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 80%);
}

.fs-slide__direction--Left {
	left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 80%);
    justify-content: left;
}

.fs-slide__direction--Right {
	right: 0;
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 80%);
    justify-content: right;
}

.fs-slide__direction--Top,
.fs-slide__direction--Bottom {
    width: 100%;
	justify-content: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 80%);
}

.fs-slide__direction--Bottom {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 80%);
}

.fs-slide__overlay.bg-dark {
    background: rgba(0, 0, 0, 0.5);
    color: #FFF;
}

.fs-slide__overlay.bg-light {
    background: rgba(255, 255, 255, 0.5);
}

/* Thumbnail Navigator */
.fs-carousel {
    background: #2a2a2a;
    padding: 10px;
    min-height: 234px;
}

.fs-carousel ul {
    background: #fff;
}

.fs-carousel li {
    margin-right: 5px;
}

.fs-carousel img {
    display: block;
    opacity: .5;
    cursor: pointer;
}

.fs-carousel img:hover,
.fs-carousel .flex-active-slide img {
    opacity: 1;
    cursor: default;
}

/* Media Queries */
@media screen and (max-width: 1440px) {
    .flexslider:after {
        content: "large";
    }
}

@media only screen and (max-width: 1280px) {
    .hero_search_box {
        padding: 20px;
        top: 3%;
        left: 3%;
    }
}

@media only screen and (max-width: 1024px) {
    .flexslider:after {
        content: "medium";
    }

    .hero_search_box {
        display: none;
    }

    .fs-slide__overlay {
        width: 100%;
        padding: 48px 24px;
    }
}

@media only screen and (max-width: 768px) {
    .fs-slide__bgvideo video {
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        max-width: none;
        max-height: 100%;
        background: transparent;
    }

    .fs-carousel {
        display: none;
    }

    .flex-control-nav {
        display: none;
    }
}

@media only screen and (max-width: 640px) {
    .flex-direction-nav a:before {
        background: rgba(0, 0, 0, 0.5);
    }

}