/* 
 *  Owl Carousel - Animate Plugin
 */
.owl-carousel .animated {
  -webkit-animation-duration: 1000ms;
  animation-duration: 1000ms;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
.owl-carousel .owl-animated-in {
  z-index: 0;
}
.owl-carousel .owl-animated-out {
  z-index: 1;
}
.owl-carousel .fadeOut {
  -webkit-animation-name: fadeOut;
  animation-name: fadeOut;
}
@-webkit-keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* 
 * 	Owl Carousel - Auto Height Plugin
 */
.owl-height {
  transition: height 500ms ease-in-out;
}

/* 
 *  Core Owl Carousel CSS File
 */
.owl-carousel {
  display: none;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  /* position relative and z-index fix webkit rendering fonts issue */
  position: relative;
  z-index: 1;
}
.owl-carousel .owl-stage {
  position: relative;
  margin: auto;
  -ms-touch-action: pan-Y;
}
.owl-carousel .owl-stage:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
.owl-carousel .owl-stage-outer {
  position: relative;
  overflow: hidden;
  /* fix for flashing background */
  -webkit-transform: translate3d(0px, 0px, 0px);
}
.owl-carousel .owl-controls .owl-nav .owl-prev,
.owl-carousel .owl-controls .owl-nav .owl-next,
.owl-carousel .owl-controls .owl-dot {
  cursor: pointer;
  cursor: hand;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.owl-carousel.owl-loaded {
  display: block;
}
.owl-carousel.owl-loading {
  opacity: 0;
  display: block;
}
.owl-carousel.owl-hidden {
  opacity: 0;
}
.owl-carousel .owl-refresh .owl-item {
  display: none;
}
.owl-carousel .owl-item {
  position: relative;
  min-height: 1px;
  float: left;
  -webkit-backface-visibility: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.owl-carousel .owl-item img {
  display: block;
  /* 2016/06/23手動變更 */
  /* width: 100%; */
  -webkit-transform-style: preserve-3d;
}
.owl-carousel.owl-text-select-on .owl-item {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}
.owl-carousel .owl-grab {
  cursor: move;
  cursor: -webkit-grab;
  cursor: -o-grab;
  cursor: -ms-grab;
  cursor: grab;
}
.owl-carousel.owl-rtl {
  direction: rtl;
}
.owl-carousel.owl-rtl .owl-item {
  float: right;
}

/* No Js */
.no-js .owl-carousel {
  display: block;
}

/* 
 * 	Owl Carousel - Lazy Load Plugin
 */
.owl-carousel .owl-item .owl-lazy {
  opacity: 0;
  transition: opacity 400ms ease;
}
.owl-carousel .owl-item img {
  transform-style: preserve-3d;
}
/*lightbox*/
html, body {
  position: relative;
}
#lightBox, #mask {
  width: 100%;
  height: 100%;
}
#main {
  position: relative;
  /* z-index: 2; */
}
#lightBox {
  position: absolute;
  top: 0;
  left: -200%;
  opacity: 0;
  z-index: 1;
  transition: opacity .4s;
}
#lightBox .lightbox-inner-box {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}
.lightbox-inner-box .owl-stage-outer,
.lightbox-inner-box .owl-stage-outer .owl-stage,
.lightbox-inner-box .owl-stage-outer .owl-stage .owl-item {
  height: 100% !important;
}
.owl-nav .arrow-btn,
.close-lb-btn {
  background: url('../images/lb-sld.png') no-repeat;
}
.close-lb-btn {
  position: absolute;
  width: 32px;
  height: 32px;
  top: 12px;
  right: 12px;
  z-index: 11;
  opacity: .66;
  cursor: pointer;
  background-size: 64px 64px;
  background-position: -32px 0;
}
.close-lb-btn:hover {
  opacity: 1;
  background-position: -32px -32px;
}
.lightbox-text-box {
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  padding: 1% 3%;
  line-height: 1.5;
  color: #fff;
  z-index: 15;
  text-shadow: 0 1px 2px rgba(0,0,0,.95);
  text-align: center;
}
#lightBox.active {
  position: fixed;
  left: 0;
  opacity: 1;
  z-index: 10000;
  transition: opacity .4s;
}
#lightBox.active .lightbox-inner-box,
#lightBox.active .close-lb-btn {
  position: fixed;
}
.box-img {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 100%;
  max-height: 1000px;
  margin: auto;
  overflow: hidden;
}
.box-img img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}
#mask {
    position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
}
.owl-controls, .owl-nav {
  position: relative;
  top: -54%;
}
.owl-nav:after {
  content: '';
  display: block;
  clear: both;
  height: 0;
}
.owl-nav .owl-prev,
.owl-nav .owl-next {
  position: absolute;
  width: 60px;
  height: 60px;
}
.owl-nav .owl-prev {left: 0;}
.owl-nav .owl-next {right: 0;}
.owl-nav .arrow-btn {
  position: absolute;
  width: 20px;
  height: 40px;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  background-size: 80px 80px;
}
.owl-nav .owl-prev .arrow-btn {background-position: 0 0;}
.owl-nav .owl-next .arrow-btn {background-position: -20px 0;}
.owl-nav .owl-prev:hover .arrow-btn {background-position: 0 -40px;}
.owl-nav .owl-next:hover .arrow-btn {background-position: -20px -40px;}