.kc_image_gallery.kc-grid {
  width: 100%;
  overflow: hidden;
}

.kc_image_gallery.kc-grid .item-grid {
  float: left;
  position: relative;
  padding-right: 10px;
  padding-bottom: 10px;
}

.kc-grid .item-grid a {
  position: relative;
  display: block;
}
.kc_image_gallery.kc-grid .item-grid .kc-image-overlay{
  background: rgba(0, 0, 0, 0.2);
}

.kc_image_gallery.kc-grid .item-grid:hover .kc-image-overlay{
  opacity: 1;
}

.kc_image_gallery.kc-grid .item-grid img {
  display: block;
}

.kc_image_gallery.kc-grid .item-grid {
  width: 25%
}

.kc_image_gallery.kc-grid .item-grid.grid-2 {
  width: 50%
}

.kc_image_gallery.kc-grid .item-grid.grid-3 {
  width: 32.7%
}

.kc_image_gallery.kc-grid .item-grid.grid-4 {
  width: 25%
}

.kc_image_gallery.kc-grid.masonry .item-grid.grid-4 {
  width: 24.8%
}

.kc_image_gallery.kc-grid .item-grid.grid-5 {
  width: 20%
}

.kc_image_gallery.kc-grid .item-grid.grid-6 {
  width: 16.66666666666666%
}

.kc_image_gallery.kc-grid .item-grid img {
  max-width: 100%;
  border-image-width: 0
}

.kc_image_gallery {
  clear: both
}


.kc_single_image {
  max-width: 100%;
  width: 100%;
  position: relative
}

.kc_single_image figure {
  position: relative
}

.kc_single_image > a {
  width: 100%;
  float: left;
  position: relative
}

.kc_single_image p {
  margin: 10px 0;
  float: left;
  width: 100%
}

.kc_image_empty {
  max-width: 100%
}

.kc-image-overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.6s ease;
  opacity: 0
}

.kc-image-overlay i {
  font-size: 25px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  transition: all 0.3s ease;
  border: 2px solid #fff;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px
}

.kc-image-overlay:hover i {
  border-radius: 10px
}

.kc_single_image:hover .kc-image-overlay {
  background: rgba(58,52,42,0.7);
  opacity: 1
}
