.rb-gallery-item {
  text-align: center;
  margin: 10px 0;
}
.rb-gallery-inner {
  position: relative;
}
.rb-gallery-link {
  outline: none !important;
  text-decoration: none !important;
}
.rb-gallery-img {
  width: 100%;
  box-sizing: border-box;
}
.rb-gallery-img.foto {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  border: 8px solid #fff;
}
.rb-gallery .text-gallery{
  color: #000;
  line-height: 1;
  text-align: left;
  padding: 10px 0;
  transition: 0.5s;
}
.rb-gallery-item:hover .text-gallery,
.rb-gallery .rb-gallery-link.style-over:hover + .text-gallery{
  opacity: 1;
}
.rb-gallery .rb-gallery-link.style-over {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  z-index: 10;
}
.rb-gallery .text-gallery.style-over {
  position: absolute;
  padding: 20px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.rb-gallery .col-lg-1, 
.rb-gallery .col-lg-12, 
.rb-gallery .col-lg-2, 
.rb-gallery .col-lg-3, 
.rb-gallery .col-lg-4, 
.rb-gallery .col-lg-6 {
  float: left;
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .rb-gallery .col-lg-2:nth-child(6n+1), 
  .rb-gallery .col-lg-2:nth-child(6n+1), 
  .rb-gallery .col-lg-3:nth-child(4n+1), 
  .rb-gallery .col-lg-4:nth-child(3n+1), 
  .rb-gallery .col-lg-6:nth-child(2n+1) {
    clear: left;
  }
  .rb-gallery .col-lg-1 {
    width: 8.33333333%;
  }
  .rb-gallery .col-lg-2 {
    width: 16.66666667%;
  }
  .rb-gallery .col-lg-3 {
    width: 25%;
  }
  .rb-gallery .col-lg-4 {
    width: 33.33333333%;
  }
  .rb-gallery .col-lg-6 {
    width: 50%;
  }
  .rb-gallery .col-lg-12 {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .rb-gallery .col-lg-1,
  .rb-gallery .col-lg-2, 
  .rb-gallery .col-lg-3,
  .rb-gallery .col-lg-4    {
    width: 50%;
  }
  .rb-gallery .col-lg-2:nth-child(2n+1), 
  .rb-gallery .col-lg-2:nth-child(2n+1), 
  .rb-gallery .col-lg-3:nth-child(2n+1), 
  .rb-gallery .col-lg-4:nth-child(2n+1) {
    clear: left;
  }
}