

/*===========================
  gallery
============================ */

.gallery {
  padding:5px 50px;
}

.gallery .text-center h2 {
  text-transform:uppercase;
  font-weight:800;
  font-size:24px;
  margin-bottom:30px;
  color: #fff;
}

.gallery .container figure {
  position: relative; 
  margin: 15px 5px;
  background: #272727;
  text-align: center;
  cursor: pointer;
}

.gallery .container figure img {
  width: 350px;
  height: 317px;
  position: relative;
  display: block;
  opacity: 0.7;
}

.gallery .container figure figcaption {
  padding: 2.4em;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.25em;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.gallery .container figure figcaption::before,
.gallery .container figure figcaption::after {
  pointer-events: none;
}

/*---------------*/
/***** Marley *****/
/*---------------*/

figure.effect-marley figcaption {
  text-align: right;
  background-color: #0f7699;
}

figure.effect-marley h4,
figure.effect-marley p {
  position: absolute;
  right: 10px;
  left: 10px;
  padding: 5px 0;
}


figure.effect-marley p {
  margin-top: 0;
  margin-bottom: 0;
  bottom: 5px;
  color:#fff;
  font-size:12px;
  line-height: 1.5;
  -webkit-transform: translate3d(0,100%,0);
  transform: translate3d(0,100%,0);
}

figure.effect-marley h4 {
  top: 30px;
  color:#fff;
  font-size: 1.2rem;
  -webkit-transition: -webkit-transform 0.35s;
  transition: transform 0.35s;
  -webkit-transform: translate3d(0,20px,0);
  transform: translate3d(0,20px,0);
}

figure.effect-marley:hover h4 {
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}

figure.effect-marley h4::after {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 4px;
  background: #fff;
  content: '';
  -webkit-transform: translate3d(0,40px,0);
  transform: translate3d(0,40px,0);
}

figure.effect-marley h4::after,
figure.effect-marley p {
  opacity: 0;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
}

figure.effect-marley:hover h4::after,
figure.effect-marley:hover p {
  opacity: 1;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}


@media(max-width: 991px){
  .gallery .container figure img{
    width: 100%;
    object-fit: cover;
    height: 300px;
  }
} 

@media(max-width: 575px){
  .gallery .container figure img{
    width: 100%;
    object-fit: cover;
    height: auto;
  }
  .gallery .container {
    padding: 0 30px!important;
  }
  .gallery .container figure{
    margin: 15px 0!important;
  }
}
@media (max-width: 443px){
  .gallery .container figure figcaption{
    height: 110px!important;
    padding-top: 0!important;
  }
  figure.effect-marley p{
    margin-bottom: 0;
    bottom: 5px;
  }

}