/* Content */
.gallery .gal-wrap {
  display: inline-block;
  height: 210px;
  margin: 5px 0;
  position: relative;
  width: 100%;
}

.gallery {
  display: block;
  width: 100%;
}

.gallery.keep-aspect .gal-wrap {
  display: flex;
  height: auto;
}

.gallery .thumb {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid #85754e;
  display: block;
  position: relative;
  top: 0;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
}

.gallery .thumb .overlay {
  background-color: rgba(0, 0, 0, 0.35);
  display: block;
  height: 100%;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: alpha(opacity=0);
  -moz-opacity: 0;
  -khtml-opacity: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
  z-index: 1;
}

.gallery .thumb:hover .overlay {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: alpha(opacity=100);
  -moz-opacity: 1;
  -khtml-opacity: 1;
  opacity: 1;
}

.gallery .thumb .overlay .img-icon {
  background-image: url(../images/icon-larger.png);
  background-size: cover;
  display: block;
  height: 34px;
  margin: -17px 0 0 -17px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
}

.gallery .thumb .overlay .vid-icon {
  background-image: url(../images/icon-video.png);
  background-size: cover;
  display: block;
  height: 34px;
  margin: -17px 0 0 -17px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
}

.gallery .thumb a {
  cursor: pointer;
  display: block;
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 2;
}

.gallery .thumb.no-lightbox:hover {
  background-color: #111;
  background-size: auto 100%;
}

.gallery .thumb.no-lightbox .overlay {
  display: none;
}

.gallery .thumb .tag {
  display: table;
  height: 100%;
  margin: 0 auto;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: alpha(opacity=0);
  -moz-opacity: 0;
  -khtml-opacity: 0;
  opacity: 0;
  position: relative;
  text-align: center;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
  vertical-align: bottom;
  width: 100%;
}

.gallery .thumb:hover .tag {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: alpha(opacity=100);
  -moz-opacity: 1;
  -khtml-opacity: 1;
  opacity: 1;
}

.gallery .thumb .tag .tag-wrap {
  color: #fff;
  display: table-cell;
  font-size: 1.5em;
  padding: 0.25em 0 0;
  position: relative;
  text-shadow: 1px 1px 0 #111;
  vertical-align: bottom;
}

.gallery .thumb .tag .tag-wrap p {
  background: rgba(0, 0, 0, 0.5);
  padding-bottom: 0;
}

.gallery .thumb .tag .lightbox {
  background-image: url(../images/fullscreen.png);
  background-size: cover;
  cursor: pointer;
  display: block;
  height: 25px;
  position: absolute;
  right: 0.5em;
  bottom: 0.25em;
  width: 25px;
}

.gallery.one-column .thumb.no-lightbox,
.gallery.two-column .thumb.no-lightbox:first-child {
  position: absolute;
  left: 0;
}

.gallery.keep-aspect .thumb {
  float: none !important;
  /* position:relative !important; */
  /* left:0 !important; */
}

.gallery.keep-aspect .thumb {
  background: none !important;
  border: none;
  text-align: center;
}

.gallery.keep-aspect .thumb .gal-img {
  display: block;
  margin: 0 auto;
}

.gallery.keep-aspect.one-column .thumb,
.gallery.keep-aspect.one-column:hover .thumb {
  height: auto !important;
  margin: 0 0 1em !important;
  position: relative !important;
  top: auto !important;
  width: 100% !important;
}

.gallery.keep-aspect.two-column .thumb,
.gallery.keep-aspect.two-column:hover .thumb {
  height: auto !important;
  margin: 0 0 5px !important;
  /*position: relative !important;*/
  width: 45% !important;
}

.gallery.keep-aspect.three-column .thumb,
.gallery.keep-aspect.three-column:hover .thumb {
  height: auto !important;
  margin: 0 0 5px !important;
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  width: 31% !important;
  display: inline-block;
}

.gallery.keep-aspect.four-column .thumb,
.gallery.keep-aspect.four-column:hover .thumb {
  height: auto !important;
  margin: 0 0 5px !important;
  /* position: relative !important; */
  width: 24% !important;
}

.gallery.keep-aspect .thumb .tag {
  display: table;
  height: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  vertical-align: middle;
}

.gallery.keep-aspect .thumb .tag .tag-wrap {
  background: rgba(0, 0, 0, 0.5);
  font-size: 1em;
  padding: 0 1em;
}
.gallery.keep-aspect .thumb .tag .tag-wrap * {
  background: none;
}

.gallery.keep-aspect .thumb .tag .tag-wrap .lightbox {
  background-image: url(../images/fullscreen.png);
  background-size: cover;
}

.gallery.two-column .thumb.no-lightbox:nth-child(2) {
  position: absolute;
  left: 50%;
}

.gallery.three-column .thumb.no-lightbox:first-child {
  position: absolute;
  left: 0;
}

.gallery.three-column .thumb.no-lightbox:nth-child(2) {
  position: absolute;
  left: 33%;
}

.gallery.three-column .thumb.no-lightbox:nth-child(3) {
  position: absolute;
  left: 66%;
}

.gallery.four-column .thumb.no-lightbox:first-child {
  position: absolute;
  left: 0;
}

.gallery.four-column .thumb.no-lightbox:nth-child(2) {
  position: absolute;
  left: 25%;
}

.gallery.four-column .thumb.no-lightbox:nth-child(3) {
  position: absolute;
  left: 50%;
}

.gallery.four-column .thumb.no-lightbox:nth-child(4) {
  position: absolute;
  left: 75%;
}

.gallery.one-column .thumb.no-lightbox:hover,
.gallery.two-column .thumb.no-lightbox:first-child:hover,
.gallery.two-column .thumb.no-lightbox:nth-child(2):hover,
.gallery.three-column .thumb.no-lightbox:first-child:hover,
.gallery.three-column .thumb.no-lightbox:nth-child(2):hover,
.gallery.three-column .thumb.no-lightbox:nth-child(3):hover,
.gallery.four-column .thumb.no-lightbox:first-child:hover,
.gallery.four-column .thumb.no-lightbox:nth-child(2):hover,
.gallery.four-column .thumb.no-lightbox:nth-child(3):hover,
.gallery.four-column .thumb.no-lightbox:nth-child(4):hover {
  height: 200%;
  position: absolute;
  left: 0;
  margin-left: 0;
  width: 100%;
  z-index: 100;
}

.gallery .gal-wrap:hover {
  z-index: 100;
}

/*One Column*/
.gallery.one-column .thumb {
  height: 250px;
  margin: 10px 0;
  width: 100%;
}

.gallery.one-column .thumb:hover {
  height: 280px;
  margin: -12px 0;
}

/*Two Column*/
.gallery.two-column .thumb {
  height: 250px;
  float: left;
  margin: 10px 1%;
  width: 48%;
}

.gallery.two-column .thumb:hover {
  height: 270px;
  margin: 0 0;
  width: 50%;
}

/*Three Column*/
.gallery.three-column .thumb {
  height: 200px;
  float: left;
  margin: 10px 2%;

  width: 29%;
}

.gallery.three-column .thumb:hover {
  height: 220px;
  margin: 0 0;
  width: 33%;
}

/*Four Column*/
.gallery.four-column .thumb {
  height: 165px;
  float: left;
  margin: 10px 2%;
  width: 21%;
}

.gallery.four-column .thumb:hover {
  height: 185px;
  margin: 0 0;
  width: 25%;
}

/*Four Column*/
.gallery.gal-slider {
  margin-bottom: 1em;
}

.gallery.gal-slider .owl-nav {
  position: absolute;
  right: 0.25em;
  top: -45px;
}

.gallery.gal-slider .thumb {
  height: 155px;
  float: left;
  margin: 5px 5%;
  width: 90%;
}

.gallery.gal-slider .thumb:hover {
  height: 165px;
  margin: 0;
  width: 100%;
}

.gallery .thumb.no-lightbox {
  height: 100%;
}

/* OWL */

/* 
 *  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 {
  display: block;
  height: 100%;
  position: relative;
  -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 {
  display: block;
  height: 100%;
  position: relative;
  overflow: hidden;
  /* fix for flashing background */
  -webkit-transform: translate3d(0px, 0px, 0px);
  transform: translate3d(0px, 0px, 0px);
}
.owl-carousel .owl-stage-outer:before {
  content: "";
  display: block;
  height: 15px;

  position: absolute;
  width: 100%;
  z-index: 1000;
}
.owl-controls .owl-nav {
  position: absolute;
  top: 0;
  right: 1em;
}
.con-right .owl-controls .owl-nav {
  top: 0.25em;
}
.con-right .hidden-links .owl-controls .owl-nav {
  top: 1.15em;
}
.owl-controls .owl-nav .owl-prev,
.owl-controls .owl-nav .owl-next {
  background-image: url(../images/slide-arrow.png);
  cursor: pointer;
  display: block;
  height: 25px;
  overflow: hidden;
  position: absolute;
  top: 0.85em;
  text-indent: -99px;
  width: 17px;
}
.owl-controls .owl-nav .owl-next {
  background-position: top right;
  right: 1em;
}
.owl-controls .owl-nav .owl-prev {
  right: 3em;
}

.owl-controls .owl-nav .owl-next:hover {
  right: 0.8em;
}
.owl-controls .owl-nav .owl-prev:hover {
  right: 3.2em;
}
.owl-controls .owl-nav .owl-prev,
.owl-controls .owl-nav .owl-next,
.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 {
  display: block;
  height: 100%;
  overflow: hidden;
  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;
  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;
}
.owl-carousel.owl-rtl .owl-item.hide {
  display: none;
}

/* No Js */
.no-js .owl-carousel {
  display: block;
}

/* 
 * 	Owl Carousel - Lazy Load Plugin
 */
.owl-carousel .owl-item .owl-lazy {
  opacity: 0;
  -webkit-transition: opacity 400ms ease;
  -moz-transition: opacity 400ms ease;
  -ms-transition: opacity 400ms ease;
  -o-transition: opacity 400ms ease;
  transition: opacity 400ms ease;
}
.owl-carousel .owl-item img {
  transform-style: preserve-3d;
}

/* 
 * 	Owl Carousel - Video Plugin
 */
.owl-carousel .owl-video-wrapper {
  position: relative;
  height: 100%;
  background: #000;
}

.owl-carousel .owl-video-play-icon {
  position: absolute;
  height: 80px;
  width: 80px;
  left: 50%;
  top: 50%;
  margin-left: -40px;

  margin-top: -40px;
  background: url("owl.video.play.png") no-repeat;
  cursor: pointer;
  z-index: 1;
  -webkit-backface-visibility: hidden;
  -webkit-transition: scale 100ms ease;
  -moz-transition: scale 100ms ease;
  -ms-transition: scale 100ms ease;
  -o-transition: scale 100ms ease;
  transition: scale 100ms ease;
}
.owl-carousel .owl-video-play-icon:hover {
  -webkit-transition: scale(1.3, 1.3);
  -moz-transition: scale(1.3, 1.3);
  -ms-transition: scale(1.3, 1.3);
  -o-transition: scale(1.3, 1.3);
  transition: scale(1.3, 1.3);
}
.owl-carousel .owl-video-playing .owl-video-tn,
.owl-carousel .owl-video-playing .owl-video-play-icon {
  display: none;
}
.owl-carousel .owl-video-tn {
  opacity: 0;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-background-size: contain;
  -moz-background-size: contain;
  -o-background-size: contain;
  background-size: contain;
  -webkit-transition: opacity 400ms ease;
  -moz-transition: opacity 400ms ease;
  -ms-transition: opacity 400ms ease;
  -o-transition: opacity 400ms ease;
  transition: opacity 400ms ease;
}
.owl-carousel .owl-video-frame {
  position: relative;
  z-index: 1;
}

/* Mobile Browsers */
@media only screen and (max-width: 825px) {
  .gallery {
    width: 100% !important;
  }
  .gallery .gal-wrap {
    display: block;
    height: auto;
    margin: 0;
  }
  .gallery.keep-aspect .gal-wrap {
    display: block !important;
  }
  .gallery.keep-aspect .thumb,
  .gallery.keep-aspect:hover .thumb,
  .gallery.keep-aspect.one-column .thumb,
  .gallery.keep-aspect.two-column .thumb,
  .gallery.keep-aspect.three-column .thumb,
  .gallery.keep-aspect.four-column .thumb,
  .gallery.keep-aspect.one-column:hover .thumb,
  .gallery.keep-aspect.two-column:hover .thumb,
  .gallery.keep-aspect.three-column:hover .thumb,
  .gallery.keep-aspect.four-column:hover .thumb {
    height: auto !important;
    width: 100% !important;
  }
  .gallery .thumb,
  .gallery .thumb:hover,
  .gallery .thumb.no-lightbox,
  .gallery .thumb.no-lightbox:hover {
    float: none !important;
    height: 180px !important;
    margin: 1em 0 !important;
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
  }
  .gallery .thumb .tag {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter: alpha(opacity=100);
    -moz-opacity: 1;
    -khtml-opacity: 1;
    opacity: 1;
    width: 100%;
  }
  .gallery .thumb.no-lightbox:hover {
    background-size: cover;
  }
  .gallery .thumb .tag .tag-wrap p {
    background: rgba(0, 0, 0, 0.75);
  }
}
