/* Browser Resets */
.flex-container a:active,
.flexslider a:active,
.flex-container a:focus,
.flexslider a:focus  {outline: none;}
.slides,
.flex-control-nav,
.flex-direction-nav {margin: 0; padding: 0; list-style: none;} 

/* FlexSlider Necessary Styles
*********************************/ 
.flexslider {margin: 0; padding: 0; height:510px;}
.flexslider.loading { background: url(../images/loading.gif) center center no-repeat; background-size:20px 20px; }
.flexslider .slides > li, .flexpub .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides img { width: 100%; display: block;}
.flex-pauseplay span {text-transform: capitalize;}

/* Clearfix for the .slides element */
.slides:after {content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;} 
html[xmlns] .slides {display: block;} 
* html .slides {height: 1%;}

/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */
.no-js .slides > li:first-child {display: block;}


/* FlexSlider Default Theme
*********************************/
.flexslider {margin: 0;  position: relative; zoom: 1;}
.flex-viewport {max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; transition: all 1s ease;}
.loading .flex-viewport {max-height: 300px;}
.flexslider .slides {zoom: 1;}

.carousel li {margin-right: 5px}

.flex-direction-nav { display:none; }

/* Control Nav */
.flex-control-nav { width: 100%; position: absolute; bottom: -32px; text-align: right;}
.flex-control-nav li { margin: 0 0 0 10px; display: inline-block; zoom: 1; *display: inline; }
.flex-control-paging li a { width: 9px; height: 9px; display: block; background: #cccccc; color:#cccccc; cursor: pointer; text-indent: -9999px; font-size:0.1em; }
.flex-control-paging li a:hover { background: #cccccc; }
.flex-control-paging li a.flex-active { background: #cc00cc; color: #cc00cc; cursor: default; }

.flexslider.Yes {
	padding-bottom:110px;
}

.flexslider.Yes .flex-control-nav { bottom: 68px; }

.flexslider.Yes p {
	position:absolute;
	bottom: -30px;
}

.flexslider.No p {
	display:none;
}

.spacer {
	height:50px;
}


@media screen and (max-width: 860px) {
  .flex-direction-nav .flex-prev {opacity: 1; left: 0;}
  .flex-direction-nav .flex-next {opacity: 1; right: 0;}
}

@media screen and (min-width: 100px) and (max-width: 980px) {

.flexslider {
	height:auto;
}

.flex-control-nav {
	display:none;
}

.flexslider.Yes p {
	position:absolute;
	bottom: -30px;
}


}