/*
 * Superfish v1.7.3 - jQuery menu widget
 * Copyright (c) 2013 Joel Birch
 *
 * Dual licensed under the MIT and GPL licenses:
 *  http://www.opensource.org/licenses/mit-license.php
 *  http://www.gnu.org/licenses/gpl.html
 */

/*** ESSENTIAL STYLES ***/
.sf-menu, .sf-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sf-menu li {
  position: relative;
}
.sf-menu ul {
  position: absolute;
  display: none;
  top: 100%;
  left: 0;
  z-index: 99;
}
.sf-menu > li {
  float: left;
}
.sf-menu li:hover > ul,
.sf-menu li.sfHover > ul {
  display: block;
}

.sf-menu a {
  display: block;
  position: relative;
}
.sf-menu ul ul {
  top: 0;
  left: 100%;
}


/*
 * jQuery FlexSlider v2.0
 * http://www.woothemes.com/flexslider/
 *
 * Copyright 2012 WooThemes
 * Free to use under the GPLv2 license.
 * http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Contributing author: Tyler Smith (@mbmufffin)
 */

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

/* FlexSlider Necessary Styles
*********************************/ 
.slider .slides > li {display: none; -webkit-font-smoothing: subpixel-antialiased !important;

  } /* Hide the slides before the JS is loaded. Avoids image jumping */
.slider .slides img {width: 100%; display: block; }


/* FlexSlider Default Theme
*********************************/
.slider {
z-index: 1 !important;
position:relative;
zoom: 1;
height:519px;
}

.loading {background: url(../img/preload.gif) no-repeat center center;}

.flex-viewport {max-height: 2000px;  
  -webkit-transition: all 1s ease; -moz-transition: all 1s ease; transition: all 1s ease;}
.loading .flex-viewport {max-height: 519px;}
.slider .slides {zoom: 1; height:519px;}

.slides > li {display: none; position:relative;}

.carousel li {margin-right: 5px}


/* Direction Nav */
.flex-direction-nav {*height: 0; }
.flex-direction-nav a {
  width: 32px; 
  height: 32px; 
  margin: -0px 0 0; 
  display: block;  
  z-index:8999;
  background: #000 url(../img/navi.png) no-repeat 10px 4px; 

  position: absolute; top: 70%; 
  cursor: pointer; text-indent: -9999px; 
  opacity: 1; -webkit-transition: all .3s ease;}
.flex-direction-nav .flex-next {background-position: -38px 4px; right: 6px; }
.flex-direction-nav .flex-prev {right: 40px;}
.slider:hover .flex-next, .slider:hover .flex-prev {opacity: 0.9;}
.slider:hover .flex-next:hover, .slider:hover .flex-prev:hover {opacity: 1;}
.flex-direction-nav .flex-disabled {opacity: .3!important; filter:alpha(opacity=30); cursor: default;}




/* FlexSlider Necessary Styles
*********************************/ 
.gallery-slider {margin: 0; padding: 0;}
.gallery-slider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */
.gallery-slider .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
*********************************/
.gallery-slider { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
  margin: 0 0 10px; padding:10px; background: #ccc; position: relative; zoom: 1;}
#content .flex-viewport {max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; transition: all 1s ease;}



#content .loading { background: #ccc url('../img/preload-bg.gif') no-repeat center center; }

@media screen and (min-width: 900px) {
  .gallery-slider, .gallery-slider .slides{
    min-height:400px;
  }
}


.slide-caption{
  position:absolute;
  bottom:0;
  right:0;
  left:0;
  color:#fff;
  padding:10px 10px;
  background:#000;
  display:block;
  z-index:18999 !important;
  opacity: 0.9;
  text-transform: uppercase;
}


#content .gallery-slider ul, #content .gallery-slider ul li{list-style:none; margin:0; padding:0; position: relative;}
#content article .gallery-slider img {
    max-width: 100%; }


/* Control Nav */
#content .flex-control-nav {width: 100%; position: absolute; bottom: -40px; text-align: center;}
#content .flex-control-nav li {margin: 0 6px; display: inline-block; zoom: 1; *display: inline;}
#content .flex-control-paging li a {width: 11px; height: 11px; display: block; background: #666; background: rgba(0,0,0,0.5); cursor: pointer; text-indent: -9999px; -webkit-border-radius: 20px; -moz-border-radius: 20px; -o-border-radius: 20px; border-radius: 20px; box-shadow: inset 0 0 3px rgba(0,0,0,0.3);}
#content .flex-control-paging li a:hover { background: #333; background: rgba(0,0,0,0.7); }
#content .flex-control-paging li a.flex-active { background: #000; background: rgba(0,0,0,0.9); cursor: default; }

#content .flex-control-thumbs {margin: 5px 0 0 0px; position: static; overflow: hidden;}
#content .flex-control-thumbs li {width: 15%; max-width:100px; float: left; margin: 0 10px 0px 0;}
#content .flex-control-thumbs img {width: 100%; opacity: 1; display: block; border:2px solid #fff; cursor: pointer;}
#content .flex-control-thumbs img:hover {opacity: 1;}
#content .flex-control-thumbs .flex-active {opacity: 1; border:2px solid #D1250E; cursor: default;}