.glightbox-container {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999 !important;
  overflow: hidden;
  overflow-scrolling: touch;
}

.glightbox-container.inactive {
  display: none;
}

.glightbox-container .gcontainer {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.glightbox-container .gslider {
  -webkit-transition: -webkit-transform .4s ease;
  transition: -webkit-transform .4s ease;
  transition: transform .4s ease;
  transition: transform .4s ease, -webkit-transform .4s ease;
  height: 100%;
  left: 0;
  top: 0;
  width: 100%;
  position: absolute;
}

.glightbox-container .gslide {
  height: 100%;
  width: 100%;
  position: absolute;
  display: block;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  opacity: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.glightbox-container .gslide.current {
  opacity: 1;
  z-index: 99999;
}

.glightbox-container .gslide.prev {
  opacity: 1;
  z-index: 9999;
}

.glightbox-container .gslide-inner-content {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.glightbox-container .ginner-container {
  width: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  max-width: 100%;
}
/*圖片最外框*/
.glightbox-container .ginner-container.desc-bottom,
        .glightbox-container .ginner-container.desc-top {
  display: inline-block;
  position:relative;
  /*border:1px solid white;*/
}

.glightbox-container .ginner-container.desc-left,
        .glightbox-container .ginner-container.desc-right {
  max-width: 100% !important;
}

.gslide iframe,
    .gslide video {
  width: 100vw;
  max-width: 100vw;
  min-width: 100vw;
  outline: none !important;
  border: none;
  min-height: 165px;
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
  -ms-touch-action: auto;
  touch-action: auto;
}

.gslide-image img {
  max-height:70%;
  display: block;
  max-width:75%;
  margin: 0;
  padding: 0;
  float: none;
  outline: none;
  border: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.gslide-video {
  width: 100%;
  height: auto;
  min-width: 100%;
  max-width: 100%;
  min-height: auto;
  max-height: auto;
  position: relative;
}

.gslide-video:before {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 0, 0, .34);
  display: none;
}

.gslide-video.playing:before {
  display: none;
}

.gslide-video .jw-media,
    .gslide-video .jw-video {
  position: relative !important;
}

.gslide-video .jwplayer {
  max-width: 100vw;
  width: 100vh;
  height: auto !important;
}

.gslide-video .jwplayer,
    .gslide-video .box-emboss {
  outline: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  border: none !important;
}

.gslide-video .jwplayer .btnd:active,
        .gslide-video .jwplayer .btnd:focus,
        .gslide-video .jwplayer .btnd.active,
        .gslide-video .box-emboss .btnd:active,
        .gslide-video .box-emboss .btnd:focus,
        .gslide-video .box-emboss .btnd.active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.gslide-video object {
  position: absolute;
  top: 0;
  left: 0;
}

.gslide-inline {
  background: #fff;
  padding: 20px;
  text-align: left;
  max-height: 62vh;
  overflow: auto;
}

.ginlined-content {
  overflow: auto;
  display: block !important;
  opacity: 1;
}

.gslide-external {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  min-width: 100%;
  background: #fff;
  padding: 0;
  overflow: auto;
  max-height: 62vh;
}

.gslide-media {
  display: block;
  width: auto;
}

.gslide-description.left-position,
    .gslide-description.right-position {
  padding: 30px;
  background: #fff;
  max-width: 300px;
  min-width: 190px;
}

.gslide-description .bottom-position,
    .gslide-description .top-position {
  padding: 30px;
  background: #fff;
  width: 100%;
  display: inline-block;
  min-width: 190px;
}

.gslide-description.description-left,
    .gslide-description.description-right {
  max-width: 100%;
}

.gslide-description p::last-child {
  margin-bottom: 0;
}

/*
 * Description for mobiles
 * something like facebook does the description
 * for the photos
*/

.gdesc-open .gslide-media {
  -webkit-transition: opacity .5s ease;
  transition: opacity .5s ease;
  opacity: .4;
}

.gdesc-open .gslide-description {
  padding-bottom: 30px;
}

.gdesc-closed .gslide-media {
  -webkit-transition: opacity .5s ease;
  transition: opacity .5s ease;
  opacity: 1;
}

.greset {
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
}

.glightbox-desc {
  display: none;
}

.glightbox-open {
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  -ms-touch-action: auto;
  touch-action: auto;
}

.gloader {
  height: 25px;
  width: 25px;
  -webkit-animation: lightboxLoader .8s infinite linear;
  animation: lightboxLoader .8s infinite linear;
  border: 2px solid #fff;
  border-right-color: transparent;
  border-radius: 50%;
  position: absolute;
  display: block;
  z-index: 9999;
  left: 0;
  right: 0;
  margin: 0 auto;
  top: 47%;
}

.goverlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #000;
}

.gprev,
.gnext,
.gclose {
  background-repeat: no-repeat;
  z-index: 99999;
  cursor: pointer;
  width: 26px;
  height: 44px;
  display: block;
  background-position: 0 0;
}

.gprev.disabled,
.gnext.disabled,
.gclose.disabled {
  opacity: .1;
}

.gprev .garrow,
.gnext .garrow,
.gclose .garrow {
  stroke: #fff;
}

iframe.wait-autoplay {
  opacity: 0;
}

.glightbox-closing .gnext,
    .glightbox-closing .gprev,
    .glightbox-closing .gclose {
  opacity: 0 !important;
}

/*Skin */

.glightbox-clean .gslide-description {
  position:absolute;
  /*bottom:5%;*/
  top:76%;
  left:17%;
  width:66%;
  height:130px;
  transition: opacity .3s linear;
  color:#501c00;
  overflow:hidden;
}

.glightbox-clean .gslide-title {
  font-size:2.5em;
  line-height:1;
  width:33%;
}

.glightbox-clean .gslide-title span{
  font-size:0.5em;
  vertical-align:middle;
}

.glightbox-clean .gslide-desc {
  position:absolute;
  top:0;  
  margin:5% 0 0 38%;
  line-height:1.5;
  height:auto;
  font-size:1em;
}


.glightbox-clean .gprev{
  left:0;
  background-image: url('gprev.svg');
}

.glightbox-clean .gnext{
  right:0;
  background-image: url('gnext.svg');
}

.glightbox-clean .gclose {
  background-image: url('close.png');
}

.glightbox-clean .gprev, .glightbox-clean .gnext {
  background-color: rgba(0, 0, 0, .08);
  background-size:10%;
  background-position:20% 50%;
  position:absolute;
  top:40%;
  width:20%;
  height:20%;
  opacity:0.2;
}

.glightbox-clean .gnext {
  background-position:80% 50%;
}

.glightbox-clean .gclose {
  position:absolute;
  top:0;
  right:0;
  width:100%;
  height:25%;
  opacity:.8;
  background-size:5%;
  background-position:71% 100%;
}

.glightbox-clean .gclose:hover, .glightbox-clean .gprev:hover, .glightbox-clean .gnext:hover {
  opacity: 1;
}

/*CSS Animations*/

.gfadeIn {
  -webkit-animation: gfadeIn .5s ease;
  animation: gfadeIn .5s ease;
}

.gfadeOut {
  -webkit-animation: gfadeOut .5s ease;
  animation: gfadeOut .5s ease;
}

.gslideOutLeft {
  -webkit-animation: gslideOutLeft .3s ease;
  animation: gslideOutLeft .3s ease;
}

.gslideInLeft {
  -webkit-animation: gslideInLeft .3s ease;
  animation: gslideInLeft .3s ease;
}

.gslideOutRight {
  -webkit-animation: gslideOutRight .3s ease;
  animation: gslideOutRight .3s ease;
}

.gslideInRight {
  -webkit-animation: gslideInRight .3s ease;
  animation: gslideInRight .3s ease;
}

.gzoomIn {
  -webkit-animation: gzoomIn .5s ease;
  animation: gzoomIn .5s ease;
}

.gzoomOut {
  -webkit-animation: gzoomOut .5s ease;
  animation: gzoomOut .5s ease;
}

@-webkit-keyframes lightboxLoader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes lightboxLoader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-webkit-keyframes gfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes gfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes gfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes gfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@-webkit-keyframes gslideInLeft {
  from {
    opacity: 0;
    -webkit-transform: translate3d(-60%, 0, 0);
    transform: translate3d(-60%, 0, 0);
  }
  to {
    visibility: visible;
    -webkit-transform: translate3d( 0, 0, 0);
    transform: translate3d( 0, 0, 0);
    opacity: 1;
  }
}

@keyframes gslideInLeft {
  from {
    opacity: 0;
    -webkit-transform: translate3d(-60%, 0, 0);
    transform: translate3d(-60%, 0, 0);
  }
  to {
    visibility: visible;
    -webkit-transform: translate3d( 0, 0, 0);
    transform: translate3d( 0, 0, 0);
    opacity: 1;
  }
}

@-webkit-keyframes gslideOutLeft {
  from {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  to {
    -webkit-transform: translate3d(-60%, 0, 0);
    transform: translate3d(-60%, 0, 0);
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes gslideOutLeft {
  from {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  to {
    -webkit-transform: translate3d(-60%, 0, 0);
    transform: translate3d(-60%, 0, 0);
    opacity: 0;
    visibility: hidden;
  }
}

@-webkit-keyframes gslideInRight {
  from {
    opacity: 0;
    visibility: visible;
    -webkit-transform: translate3d(60%, 0, 0);
    transform: translate3d(60%, 0, 0);
  }
  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes gslideInRight {
  from {
    opacity: 0;
    visibility: visible;
    -webkit-transform: translate3d(60%, 0, 0);
    transform: translate3d(60%, 0, 0);
  }
  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@-webkit-keyframes gslideOutRight {
  from {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  to {
    -webkit-transform: translate3d(60%, 0, 0);
    transform: translate3d(60%, 0, 0);
    opacity: 0;
  }
}

@keyframes gslideOutRight {
  from {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  to {
    -webkit-transform: translate3d(60%, 0, 0);
    transform: translate3d(60%, 0, 0);
    opacity: 0;
  }
}

@-webkit-keyframes gzoomIn {
  from {
    opacity: 0;
    -webkit-transform: scale3d(.3, .3, .3);
    transform: scale3d(.3, .3, .3);
  }
  to {
    opacity: 1;
  }
}

@keyframes gzoomIn {
  from {
    opacity: 0;
    -webkit-transform: scale3d(.3, .3, .3);
    transform: scale3d(.3, .3, .3);
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes gzoomOut {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0;
    -webkit-transform: scale3d(.3, .3, .3);
    transform: scale3d(.3, .3, .3);
  }
  to {
    opacity: 0;
  }
}

@keyframes gzoomOut {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0;
    -webkit-transform: scale3d(.3, .3, .3);
    transform: scale3d(.3, .3, .3);
  }
  to {
    opacity: 0;
  }
}

  .glightbox-container .ginner-container.desc-left .gslide-description,
.glightbox-container .ginner-container.desc-top .gslide-description {
    -webkit-box-ordinal-group: 1;
    -ms-flex-order: 0;
    order: 0;
  }
  .glightbox-container .ginner-container.desc-left .gslide-media,
.glightbox-container .ginner-container.desc-top .gslide-media {
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
  }
  .gslide-image img {
    width: auto;
    width: initial;
    max-height:80vh;
  }
  .gslide-video {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 100px;
    height: 100%;
    max-height: 95vh !important;
  }
  .gslide-inline {
    max-height: 95vh;
  }
  .gslide-external {
    max-height: 95vh;
  }
  .gslide-media {
    display: block;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
  .gslide-description.description-left,
    .gslide-description.description-right {
    max-width: 275px;
  }
  .goverlay {
    background: rgba(0, 0, 0, .92);
  }
  .glightbox-clean .ginner-container {
    -webkit-box-shadow: 1px 2px 9px 0px rgba(0, 0, 0, .65);
    box-shadow: 1px 2px 9px 0px rgba(0, 0, 0, .65);
  }


@media screen and (max-width: 1280px) {	
  .glightbox-clean .gclose {height:23.5%;background-position:80% 100%;}
  .glightbox-clean .gslide-title {font-size:2.2em;line-height:1.1;}
}

@media screen and (max-width: 1080px) {	
  .glightbox-clean .gclose {height:38%;background-size:8%;background-position:90% 100%;}
  .glightbox-clean .gprev, .glightbox-clean .gnext{background-size:20%;}
}

@media screen and (max-width:828px) {	
  .gslide-image img {max-width:80%;}
  .glightbox-clean .gslide-description {left:10%;width:80%;height:auto;padding:0;}
  .glightbox-clean .gslide-title {width:auto;padding:5% 5% 1% 5%;white-space:nowrap}
  .glightbox-clean .gslide-desc {position:relative;height:100px;margin:0;padding:3.5% 5%;background:#dab286;border-radius:0 0 10px 10px;}
}
@media screen and (max-width:414px) {	
  .glightbox-clean .gclose {height:38%;background-size:10%;background-position:98% 100%;}
  .gslide-image img {max-width:90%;}
  .glightbox-clean .gslide-description {left:5%;top:72%;width:90%;}
  .glightbox-clean .gslide-title {font-size:1.5em;}
  .glightbox-clean .gslide-desc{font-size:0.8em;padding:1.5% 5%;height:auto;}
}
@media screen and (max-width:375px) {	
  .glightbox-clean .gclose {height:35%;}
}
@media screen and (max-width:320px) {	
  .glightbox-clean .gslide-description {top:70%;}
}