/*
 * jQuery FlexSlider v2.2.0 — Modified for DepEd Banaybanay District
 */

/* 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; }

/* Font-face Icons */
@font-face {
  font-family: 'FontAwesome';
  src: url("../fonts/fontawesome-webfont.eot?v=4.0.3");
  src: url("../fonts/fontawesome-webfont.eot?#iefix&v=4.0.3") format("embedded-opentype"),
       url("../fonts/fontawesome-webfont.woff?v=4.0.3") format("woff"),
       url("../fonts/fontawesome-webfont.ttf?v=4.0.3") format("truetype"),
       url("../fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular") format("svg");
  font-weight: normal;
  font-style: normal;
}

/* FlexSlider Core */
.flexslider { margin: 0; padding: 0; }
.flexslider .slides > li { display: none; -webkit-backface-visibility: hidden; }
.flexslider .slides img { width: 100%; display: block; }
.flex-pauseplay span { text-transform: capitalize; }

.slides:after {
  content: "\0020"; display: block; clear: both;
  visibility: hidden; line-height: 0; height: 0;
}
html[xmlns] .slides { display: block; }
* html .slides { height: 1%; }
.no-js .slides > li:first-child { display: block; }

/* FlexSlider Theme */
.flexslider { margin: 0; position: relative; zoom: 1; }

.flex-viewport {
  max-height: 2000px;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}
.loading .flex-viewport { max-height: 300px; }
.flexslider .slides { zoom: 1; }
.carousel li { margin-right: 5px; }

/* Direction Nav */
.flex-direction-nav { *height: 0; }

.flex-direction-nav a {
  text-decoration: none;
  display: block;
  position: absolute;
  top: 50%;
  z-index: 10;
  overflow: hidden;
  opacity: 0;
  cursor: pointer;
  -webkit-transition: all .3s ease;
  -moz-transition: all .3s ease;
  transition: all .3s ease;
  /* DepEd branding */
  color: #ffffff;
  width: 44px;
  height: 44px;
  background-color: rgba(0, 56, 168, 0.7);
  border-radius: 3px;
  margin: -22px 0 0 0;
  text-align: center;
  line-height: 44px;
}

.flex-direction-nav a:hover {
  background-color: #0038a8;
  opacity: 1 !important;
}

.flex-direction-nav .flex-prev { left: -60px; }
.flex-direction-nav .flex-next { right: -60px; }
.flexslider:hover .flex-prev { opacity: 1; left: 20px; }
.flexslider:hover .flex-next { opacity: 1; right: 20px; }
.flexslider:hover .flex-next:hover,
.flexslider:hover .flex-prev:hover { opacity: 1; }

.flex-direction-nav .flex-disabled {
  opacity: 0 !important;
  filter: alpha(opacity=0);
  cursor: default;
}

.flex-direction-nav a:before {
  font-family: "FontAwesome";
  font-size: 22px;
  display: inline-block;
  content: '\f104';
  line-height: 44px;
  color: #ffffff;
}
.flex-direction-nav a.flex-next:before { content: '\f105'; }

/* Pause/Play */
.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'; }

/* Control Nav — DepEd styled dots */
.flex-control-nav {
  width: 100%;
  position: absolute;
  bottom: 16px;
  text-align: center;
  z-index: 20;
}

.flex-control-nav li {
  margin: 0 5px;
  display: inline-block;
  zoom: 1;
  *display: inline;
}

.flex-control-paging li a {
  width: 10px; height: 10px;
  display: block;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  text-indent: -9999px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  transition: background 0.2s, transform 0.2s;
}
.flex-control-paging li a:hover {
  background: rgba(252, 209, 22, 0.8);
  border-color: #fcd116;
}
.flex-control-paging li a.flex-active {
  background: #fcd116;
  border-color: #fcd116;
  transform: scale(1.25);
  cursor: default;
}

/* Thumbnails */
.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%; display: block; opacity: .7; cursor: pointer; }
.flex-control-thumbs img:hover { opacity: 1; }
.flex-control-thumbs .flex-active { opacity: 1; cursor: default; }

/* Responsive nav always visible on small screens */
@media screen and (max-width: 860px) {
  .flex-direction-nav .flex-prev { opacity: 0.7; left: 10px; }
  .flex-direction-nav .flex-next { opacity: 0.7; right: 10px; }
}

/*-----------------------------------------------------------
  Lightbox (kept from original)
-----------------------------------------------------------*/
#lightbox {
  cursor: pointer; position: fixed; width: 100%; height: 100%; top: 0; left: 0;
  background: rgba(0, 0, 0, 0.75); z-index: 99999;
}
#lightbox img {
  display: block; position: absolute;
  border: 4px solid #fff; box-shadow: 0 0 20px #000; border-radius: 2px;
}
body.blurred > * { -webkit-filter: blur(2px); -webkit-transform: translate3d(0,0,0); }
.lightbox-loading {
  background: url(../images/loading.gif) center center no-repeat;
  width: 31px; height: 31px; margin: -16px 0 0 -16px;
  position: absolute; top: 48%; left: 50%;
}
.lightbox-caption {
  display: none; position: absolute; left: 0; bottom: 0;
  width: 100%; text-align: center; z-index: 1000;
  background: rgba(0,0,0,0.7);
}
.lightbox-caption p {
  margin: 0 auto; max-width: 70%; display: inline-block;
  padding: 10px; color: #fff; font-size: 12px; line-height: 18px;
}
.lightbox-button {
  position: absolute; z-index: 9999;
  background: no-repeat center center; width: 32px; height: 32px;
  opacity: 0.5;
  transition: all 0.3s;
}
.lightbox-button:hover, .lightbox-button:focus {
  opacity: 1; transform: scale(1.4);
}
.lightbox-close { right: 10px; top: 10px; background-image: url('../images/close.png'); }
.lightbox-next { right: 10px; top: 48%; background-image: url('../images/next.png'); }
.lightbox-previous { left: 10px; top: 48%; background-image: url('../images/previous.png'); }