/* ==========================================================================
   Ade Gallery
   ========================================================================== */
#gallery-filter {
  text-align: center;
}

#gallery-filter ul > li {
  display: inline-block;
  margin: 0px 10px;
}

.item-padding, .item-border {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.item-padding {
  border: 14px solid transparent;
  z-index: 3;
}

.item-border {
  border: 15px solid transparent;
  z-index: 2;
}

#photos {
  width: 100%;
    /*max-width: 1170px;*/
  height: auto;
  margin: 0 auto;
  margin-top: 30px;
}

#photos:after {
  content: '';
  display: block;
  clear: both;
}

#photos .photo-item {
  overflow: hidden;
  width: 33.3333333333%;
}

#photos .photo-item .content-centered {
  background-color: #000;
  top: 0;
  opacity: 0;
  -webkit-transition: all, 0.4s, ease;
  -moz-transition: all, 0.4s, ease;
  -ms-transition: all, 0.4s, ease;
  -o-transition: all, 0.4s, ease;
  transition: all, 0.4s, ease;
  z-index: 1;
}

#photos .photo-item .content-centered-table-cell,#photos .photo-item .content-centered-table-cell {
  color: #fff;
}

#photos .photo-item .content-centered-table-cell,#photos .photo-item .content-centered-table-cell p {
  text-align: center;
}

#photos .photo-item .content-centered-table-cell i {
  font-size: 30px;
}

#photos .photo-item figure figcaption {
  font-size: 12px;
  position: absolute;
  background: #000;
  display: block;
  padding: 10px;
  width: 100%;
  bottom: 15px;
  right: 15px;
  text-align: right;
}

#photos .photo-item img {
  width: 100%;
  vertical-align: middle;
  z-index: 1;
  -ms-transform: scale(1);
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transition: all, 5s, ease;
  -moz-transition: all, 5s, ease;
  -ms-transition: all, 5s, ease;
  -o-transition: all, 5s, ease;
  transition: all, 5s, ease;
}

#photos .photo-item:hover .content-centered {
  opacity: .85;
}

#photos .photo-item:hover img {
  -ms-transform: scale(1.1);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

#photos .photo-item-medium {
  width: 66.666666666%;
}

#photos .photo-item-big {
  width: 100%;
}

.gallery-grid {
  max-width: 100% !important;
}

.gallery-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: bolder;
  color: #4b4538;
  margin-top: 30px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
  /*.gallery-grid .photo-item {
    width: 25% !important;
  }*/
}

@media only screen and (min-width: 960px) and (max-width: 1199px) {
  .photo-item {
    width: 50% !important;
  }

  .photo-item-medium {
    width: 50% !important
  }
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
  .photo-item {
    width: 50% !important;
  }

  .photo-item-medium {
    width: 50% !important;
  }
}

@media only screen and (min-width: 480px) and (max-width: 767px) {
  .photo-item {
    width: 100% !important;
  }

  .photo-item-medium {
    width: 100% !important;
  }
}

@media only screen and (min-width: 320px) and (max-width: 479px) {
  .photo-item {
    width: 100% !important;
  }

  .photo-item-medium {
    width: 100% !important;
  }
}

@media only screen and (max-width: 319px) {
  .photo-item {
    width: 100% !important;
  }

  .photo-item-medium {
    width: 100% !important;
  }
}

@media all and (orientation: portrait) {
  #gallery-filter ul > li {
    margin: 10px;
  }
}