
.demo-gallery > ul {
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
}
.demo-gallery > ul > li {
    margin-bottom: 50px;
}
.demo-gallery > ul > li a {
   display: block;
  overflow: hidden;
  position: relative;
  float: left;
}
.demo-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);*/
  width: 40%;
}
/*.demo-gallery > ul > li a:hover > img {
  -webkit-transform: scale3d(1.1, 1.1, 1.1);
  transform: scale3d(1.1, 1.1, 1.1);
}*/
.demo-gallery > ul > li a:hover .demo-gallery-poster > img {
  opacity: 1;
}
.demo-gallery > ul > li a .demo-gallery-poster {
    width: 40%;
  /*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;*/
}
.demo-gallery > ul > li::before {
    content: none !important;
}
.demo-gallery > ul > li a .demo-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;
}
.demo-gallery > ul > li a:hover .demo-gallery-poster {
  background-color: rgba(0, 0, 0, 0.5);
}
.demo-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%;
}
.demo-gallery .justified-gallery > a:hover > img {
  -webkit-transform: scale3d(1.1, 1.1, 1.1);
  transform: scale3d(1.1, 1.1, 1.1);
}
.demo-gallery .justified-gallery > a:hover .demo-gallery-poster > img {
  opacity: 1;
}
.demo-gallery .justified-gallery > a .demo-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;
}
.demo-gallery .justified-gallery > a .demo-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;
}
.demo-gallery .justified-gallery > a:hover .demo-gallery-poster {
  background-color: rgba(0, 0, 0, 0.5);
}
.demo-gallery .video .demo-gallery-poster img {
  height: 48px;
  margin-left: -24px;
  margin-top: -24px;
  opacity: 0.8;
  width: 48px;
}
.demo-gallery.dark > ul > li a {
  border: 3px solid #04070a;
}

.demo-gallery > ul > li .caption {
    position: absolute;
    width: 52%;
    top: 0;
    right: 0;
    display: inline-block;
}
.demo-gallery > ul > li .caption h4 {
    font-family: "Lato",Helvetica,Arial,sans-serif !important;
    font-size: 1rem;
    line-height: 1.5rem;
    color: #445383 !important;
    font-weight: bold;    
    margin: 0 0 5px 0;
}
.lg-outer .lg-sub-html h4 {
    color: #fff !important;
    font-size: 16px;
    line-height: normal;
}
.lg-outer .lg-sub-html{
    background-color: rgba(0, 0, 0, 0.7)!important;
}
.lg-outer .lg-sub-html p {
    color: #fff !important;
}
.lg-outer .lg-toolbar.lg-group a#lg-download {
    display: none;
}

.lg-outer .lg-toolbar.lg-group #lg-counter {
    display: none;
}
.lg-outer .lg-toolbar.lg-group span.lg-close.lg-icon {
    background: url(../images/close.png) no-repeat center center !important;
    height: 32px!important;
    width: 32px!important;
    opacity: 0.4;
    margin-right: 15px;
    background-size: 26px !important;

}
.lg-outer .lg-actions button.lg-prev.lg-icon {
    background: url(../images/left-arrow.png) no-repeat center center !important;
   height: 32px!important;
    width: 32px!important;
    opacity: 0.4;
}
.lg-outer .lg-actions button.lg-next.lg-icon {
    background: url(../images/right-arrow.png) no-repeat center center !important;
   height: 32px!important;
    width: 32px!important;
    opacity: 0.4;
}
.lg-outer .lg-toolbar.lg-group span.lg-close.lg-icon:hover, .lg-outer .lg-actions button.lg-prev.lg-icon:hover, .lg-outer .lg-actions button.lg-next.lg-icon:hover{
  opacity: 0.8;
} 
.lg-outer .lg-toolbar.lg-group span.lg-close.lg-icon::before, .lg-outer .lg-toolbar.lg-group span.lg-close.lg-icon::after, 
.lg-outer .lg-actions button.lg-prev.lg-icon::before, .lg-outer .lg-actions button.lg-prev.lg-icon::after, .lg-outer .lg-actions button.lg-next.lg-icon::before{
  content: none !important;
}



