.gallery-img,
.gallery-img img {
    width: 100%
}

.gallery-img {
    position: relative;
    overflow: hidden;
}

.gallery-img img {
    transform: scaleY(1);
    transition: all 0.7s ease-in-out 0s;
    display: block;
    position: relative
}

.gallery-img .hover-effect {
    opacity: 0;
    transition: all 0.5s linear 0s;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    top: 0
}

.gallery-img h2 {
    background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    font-family: montserratregular;
    font-size: 19px;
    line-height: 28px;
    margin: 82px auto 10px;
    opacity: 0;
    padding: 9px 0;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    transform: scale(0);
    transition: all 0.5s linear 0s;
}

.gallery-img p {
    color: #ffffff;
    margin: 0 30px;
    opacity: 0;
    text-align: center;
    transform: scale(0);
    transition: all 0.5s linear 0s;
}

.gallery-img:hover img {
    transform: scale(1.5);
}

.gallery-img:hover .hover-effect {
    opacity: 1;
}

.gallery-img:hover h2,
.gallery-img:hover p {
    opacity: 1;
    transform: scale(1);
}
