/*
 * 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,
.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 10px;
  padding: 0;
}

.flexslider .slides > li {
  display: none;

  -webkit-backface-visibility: hidden;
}

/* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides img {
  display: block;

  margin: 0px auto;
}

.flex-pauseplay span {
  text-transform: capitalize;
}

/* Clearfix for the .slides element */
.slides:after {
  line-height: 0;

  display: block;
  visibility: hidden;
  clear: both;

  height: 0; 

  content: ".";
}

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 {
  position: relative;

  zoom: 1; 

  margin: 0 0 37px;
}

.flex-viewport {
  max-height: 2000px;

  transition: all 1s ease;
}

.loading .flex-viewport {
  max-height: 300px;
}

.flexslider .slides {
  zoom: 1;

  background: #fff;
}

.carousel li {
  margin-right: 5px;
}

/* Direction Nav */
.flex-direction-nav {
  *height: 0;
}

.flex-direction-nav a {
  position: absolute;
  z-index: 10;
  top: 45%;

  display: block;

  width: 30px;
  height: 30px;
  margin: 0;

  cursor: pointer;
  -webkit-transition: all .3s ease; 
  text-indent: -9999px;

  opacity: 0;
  background: url(../img/common/gallery_nav.png) no-repeat 0 0;
}

.flex-direction-nav .flex-next {
  right: 0; 

  background-position: 100% 0;
}

.flex-direction-nav .flex-prev {
  left: 0;
}

.flexslider:hover .flex-next {
  right: 0; 

  opacity: 1.0;
}

.flexslider:hover .flex-prev {
  left: 0; 

  opacity: 1.0;
}

.flexslider:hover .flex-next:hover,
.flexslider:hover .flex-prev:hover {
  opacity: 1;
}

.flex-direction-nav .flex-disabled {
  cursor: default; 

  opacity: .3 !important;

  filter: alpha(opacity=30);
}

/* Control Nav */
.flex-control-nav {
  position: absolute;
  bottom: -30px;

  width: 100%;

  text-align: center;
}

.flex-control-nav li {
  display: inline-block;
  zoom: 1;

  margin: 0 4px;

  *display: inline;
}

.flex-control-paging li a {
  display: block;

  width: 12px;
  height: 12px;

  background: #ccc;
}

.flex-control-paging li a:hover {
  background: #e85b6e;
}

.flex-control-paging li a.flex-active {
  cursor: default; 

  background: #e85b6e;
}

.flex-control-thumbs {
  position: static;

  overflow: hidden; 

  margin: 5px 0 0;
}

.flex-control-thumbs li {
  float: left;

  width: 25%;
  margin: 0;
}

.flex-control-thumbs img {
  display: block;

  width: 100%;

  cursor: pointer; 

  opacity: .7;
}

.flex-control-thumbs img:hover {
  opacity: 1;
}

.flex-control-thumbs .flex-active {
  cursor: default; 

  opacity: 1;
}

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

    opacity: 1;
  }
  .flex-direction-nav .flex-next {
    right: 0; 

    opacity: 1;
  }
}
