/* ====== Lightgallery ======= */
/* http://sachinchoolur.github.io/lightGallery/ */

.carousel-gallery {padding-bottom: 4em;}

.carousel-gallery > ul {
    margin-bottom: 0;
    display: -ms-flexbox;
    -ms-flex-wrap: wrap;
    -ms-flex-direction: column;
    -webkit-flex-flow: row wrap;
    flex-flow: row wrap;
    display: -webkit-box;
    display: flex;
    padding-left: 0;
}

.carousel-gallery > ul > li {
    margin-bottom: 0;
    width: 33%;
    margin-right: 0;
    display: flex;
    list-style: outside none none;
}

@media (max-width: 800px){
.carousel-gallery > ul > li {
    width: 50%;

}}

@media (max-width: 500px){
.carousel-gallery > ul > li {
    width: 100%;

}}

.carousel-gallery > ul > li a {
    border: 5px solid #FFF;
    border-radius: 3px;
    display: block;
    overflow: hidden;
    position: relative;
    float: left;
    width: 100%;
}

.carousel-gallery > ul > li a > img {
  -webkit-transition: -webkit-transform 0.15s ease 0s;
  -moz-transition: -moz-transform 0.15s ease 0s;
  -o-transition: -o-transform 0.15s ease 0s;
  transition: transform 0.15s ease 0s;
  -webkit-transform: scale3d(1, 1, 1);
  transform: scale3d(1, 1, 1);
  height: 100%;
  width: 100%;
}

.carousel-gallery > ul > li a:hover > img {
  -webkit-transform: scale3d(1.1, 1.1, 1.1);
  transform: scale3d(1.1, 1.1, 1.1);
}

.carousel-gallery > ul > li a:hover .carousel-gallery-poster > img {
  opacity: 1;
}

.carousel-gallery > ul > li a .carousel-gallery-poster {
  background-color: rgba(0, 0, 0, 0.1);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  -webkit-transition: background-color 0.15s ease 0s;
  -o-transition: background-color 0.15s ease 0s;
  transition: background-color 0.15s ease 0s;
}

.carousel-gallery > ul > li a .carousel-gallery-poster > img {
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  opacity: 0;
  position: absolute;
  top: 50%;
  -webkit-transition: opacity 0.3s ease 0s;
  -o-transition: opacity 0.3s ease 0s;
  transition: opacity 0.3s ease 0s;
}

.carousel-gallery > ul > li a:hover .carousel-gallery-poster {
  background-color: rgba(0, 0, 0, 0.5);
}

.carousel-gallery .justified-gallery > a > img {
  -webkit-transition: -webkit-transform 0.15s ease 0s;
  -moz-transition: -moz-transform 0.15s ease 0s;
  -o-transition: -o-transform 0.15s ease 0s;
  transition: transform 0.15s ease 0s;
  -webkit-transform: scale3d(1, 1, 1);
  transform: scale3d(1, 1, 1);
  height: 100%;
  width: 100%;
}

.carousel-gallery .justified-gallery > a:hover > img {
  -webkit-transform: scale3d(1.1, 1.1, 1.1);
  transform: scale3d(1.1, 1.1, 1.1);
}

.carousel-gallery .justified-gallery > a:hover .carousel-gallery-poster > img {
  opacity: 1;
}

.carousel-gallery .justified-gallery > a .carousel-gallery-poster {
  background-color: rgba(0, 0, 0, 0.1);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  -webkit-transition: background-color 0.15s ease 0s;
  -o-transition: background-color 0.15s ease 0s;
  transition: background-color 0.15s ease 0s;
}

.carousel-gallery .justified-gallery > a .carousel-gallery-poster > img {
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  opacity: 0;
  position: absolute;
  top: 50%;
  -webkit-transition: opacity 0.3s ease 0s;
  -o-transition: opacity 0.3s ease 0s;
  transition: opacity 0.3s ease 0s;
}

.carousel-gallery .justified-gallery > a:hover .carousel-gallery-poster {
  background-color: rgba(0, 0, 0, 0.5);
}

.carousel-gallery .video .carousel-gallery-poster img {
  height: 48px;
  margin-left: -24px;
  margin-top: -24px;
  opacity: 0.8;
  width: 48px;
}

.carousel-gallery.dark > ul > li a {
  border: 3px solid #04070a;
}

.lg-outer .lg-thumb {
    margin-left: auto;
    margin-right: auto;
}

