.demo-gallery  ul {
  margin-bottom: 0;
}
.demo-gallery  li {
  margin-bottom: 28px;
}
.demo-gallery  li a {
  /*border: 3px solid #fff;
  border-radius: 3px;*/
  display: block;
  overflow: hidden;
  position: relative;
  float: left;
  height: 275px;
  width: 100%;
}
.demo-gallery  li a > img {
  /*transition: transform 0.15s ease 0s;*/
  transform: scale3d(1, 1, 1);
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  
  -webkit-transition: background-color 0.2s, opacity 0.5s;
  -moz-transition: background-color 0.2s, opacity 0.5s;
  transition: background-color 0.2s, opacity 0.5s;
}
.demo-gallery li a:hover > img {
  /*transform: scale3d(1.1, 1.1, 1.1);*/
}
.demo-gallery li a:hover .demo-gallery-poster > img {
  opacity: 1;
}
.demo-gallery li a .demo-gallery-poster {
  /*background-color: rgba(0, 0, 0, 0.1);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;*/
  transition: background-color 0.15s ease 0s;
}
.demo-gallery  li a .demo-gallery-poster > img {
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  opacity: 0;
  position: absolute;
  top: 50%;
  transition: opacity 0.3s ease 0s;
}
.demo-gallery  li a:hover .demo-gallery-poster {
  background-color: rgba(0, 0, 0, 0.3);
}
.demo-gallery .justified-gallery > a > img {
  transition: transform 0.15s ease 0s;
  transform: scale3d(1, 1, 1);
  height: 100%;
  width: 100%;
}
.demo-gallery .justified-gallery > a:hover > img {
  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;
  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%;
  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;
}


/*custom*/
li:hover a .demo-gallery-poster i{
    transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    -webkit-transition: transform 0.5s;
    -moz-transition: transform 0.5s;
    transition: transform 0.5s;
    opacity: 1;
}
.demo-gallery .demo-gallery-poster i{
    position: absolute;
    top: 40%;
    right: 44%;
    display: block;
    content: " ";
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-transition: background-color 0.5s;
    -moz-transition: background-color 0.5s;
    transition: background-color 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
  
    display: inline-block;
    opacity: 0;
    height: 50px;
    width: 50px;
    font-weight: 400;
    line-height: 50px;
    text-align: center;
    font-size: 16px;

    transform: scale(0.9);
    -ms-transform: scale(0.9);
    -webkit-transform: scale(0.9);
    -webkit-transition: transform 0.5s;
    -moz-transition: transform 0.5s;
    transition: transform 0.5s;
    margin: 0 5px;
}
.demo-gallery  .demo-gallery-poster i:hover{
 	cursor: pointer;
	background-color: rgba(255, 255, 255);
    color: #000;
}
.lg-toolbar .lg-icon,.lg-outer .lg-toogle-thumb{margin:0}