.page-gallery {
    position: relative;
    padding: 50px 0;
    background-color: #FFFFFF;
    color: #04120C;
}

.page-gallery h4 {
    text-align: center;
}

.gallery-column a {
    position: relative;
    display: block;
    border: none;
    height: 200px;
    width: 100%;
}

.gallery-hover {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 180, 122, 0.8);
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    opacity: 0;
    transition: all ease-in-out 0.3s;
}

.gallery-hover h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3em;
    letter-spacing: 1px;
    color: #FFFFFF;
    padding: 5px 0 0;
    text-transform: uppercase;
}

.gallery-hover i {
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    padding: 0 0 5px;
}

.gallery-column a:hover .gallery-hover {
    opacity: 1;
    transition: all ease-in-out 0.3s;
}

.gallery {
    padding: 30px 0;
    width: 100%;
    margin: 0 auto;
    float: none;
  }

  .gallery ul {
    padding: 0;
  }
  .gallery li {
    margin-bottom: 20px;
    width: 100%;
  }

  .gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

@media (min-width: 768px) {
    .gallery ul {
        margin: 0 0;
        -webkit-column-count: 3;
        -moz-column-count: 3;
        column-count: 3;
      }

       .gallery li {
        width: 100%;
        float: none;
        padding: 0 0;
        margin-bottom: 12px;
      }

      .gallery-column a {
        position: relative;
        display: block;
        border: none;
        height: auto;
        width: auto;
      }

      .gallery img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
      }


}



@media (min-width: 1200px) {
    .page-gallery {
        padding: 0 0 100px;
        background-color: transparent;
    }
}



















