
.owl-carousel .owl-item img {
  -webkit-transform-style: flat;
  -moz-transform-style: flat;
  -ms-transform-style: flat;
  -o-transform-style: flat;
  transform-style: flat;
}

body.liteboxgallery-open {
  overflow: hidden;
}

.litebox-gallery {
  display: block;
  opacity: 0;
  position: fixed;
  visibility: hidden;
  top: 0;
  left: 0px;
  right: 0px;
  bottom: 0;
  background-color: #000;
  overflow: hidden;
  z-index: -1;

  -webkit-transition: opacity 0.6s linear, visibility 0s linear 0.65s, z-index 0s linear 0.65s;
  -moz-transition: opacity 0.6s linear, visibility 0s linear 0.65s, z-index 0s linear 0.65s;
  transition: opacity 0.6s linear, visibility 0s linear 0.65s, z-index 0s linear 0.65s;
}

.litebox-gallery.open {
  visibility: visible;
  opacity: 1;

  -webkit-transition: opacity 0.6s linear;
  -moz-transition: opacity 0.6s linear;
  transition: opacity 0.6s linear;

  z-index: 100000000;
}

.litebox-gallery:not(.open) {
  pointer-events: none;
}

.litebox-gallery .litebox-owlslider {
  height: 100%;
  z-index: 50;
}

.litebox-gallery .litebox-owlslider .owl-wrapper-outer,
.litebox-gallery .litebox-owlslider .owl-stage-outer {
  overflow: visible;
}

.litebox-gallery .litebox-owlslider .owl-wrapper,
.litebox-gallery .litebox-owlslider .owl-stage {
  height: 100vh;
}

.litebox-gallery .litebox-owlslider .owl-item {
  display: table;
  height: 100%;
}

.litebox-gallery .litebox-owlslider .owl-item .litebox-image {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.litebox-gallery .litebox-owlslider.owl-theme .owl-pageination,
.litebox-gallery .litebox-owlslider.owl-theme .owl-dots {
  position: fixed;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
}

.litebox-gallery .close-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  font-size: 44px;

  cursor: pointer;

  z-index: 300;
}

.litebox-gallery .close-button:after {
  content: '✖';
}

.litebox-gallery .owl-item img {
  -wekbit-transform-style: flat;
  -moz-transform-style: flat;
  -ms-transform-style: flat;
  -o-transform-style: flat;
  transform-style: flat;

  display: inline-block;

  max-width: 100%;
  max-height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
}

.litebox-gallery .thumb-container {
  position: absolute;
  bottom: 50px;
  left: 50%;
  margin-left: -300px;
  width: 600px;
  opacity: 0 !important;

  -webkit-transition: opacity 0.3s linear;
  -moz-transition: opacity 0.3s linear;
  transition: opacity 0.3s linear;

  z-index: 100;
}

.litebox-gallery .thumb-container .owl-stage {
  white-space: nowrap;
}

.litebox-gallery:hover .thumb-container {
  opacity: 1 !important;
}

.litebox-gallery .thumb-container .owl-item:last-child {
  margin-right: -3px;
}

.litebox-gallery .thumb-container img {
  display: inline-block;
  max-height: 75px;
  width: auto;
}

.litebox-gallery .thumb-container .litebox-thumb {
  cursor: pointer;
  width: 75px;
}

.litebox-gallery .thumb-container .owl-stage {
  margin: 0 auto;
}

.litebox-gallery .thumb-container .owl-item {
  text-align: center;
}

/** slider **/
.postgallery-slider {
  margin: inherit;
}

.postgallery-slider .slider-image {
  display: block;
  position: relative;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.postgallery-slider .slider-image img {
  display: inline-block;
}

.postgallery-slider .slider-image-info {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  max-width: 400px;
  width: 50%;
}

/** themes **/
.pg-theme-thumbs .post-gallery_thumb {
  display: inline-block;
  margin: 10px;
  width: auto;
}

[data-pgimages] {
  cursor: pointer;
}

.pg-slider .owl-item img {
  -wekbit-transform-style: flat;
  -moz-transform-style: flat;
  -ms-transform-style: flat;
  -o-transform-style: flat;
  transform-style: flat;
}

.pg-slider {
  position: relative;
}

