.gallery-padding {
    padding: 0px 0 0 12px;
}
.mag-img img {
    width: 100%;
    height: auto;
}
.logo-overlay, .gaw-overlay{
    visibility: hidden;
    opacity:0 !important;
    transition: 400ms;
}
.image-popup-vertical-fit:hover .logo-overlay, .image-popup-vertical-fit:hover .gaw-overlay{
    visibility: visible;
    opacity: 0.4 !important;
}


.mag-img {
    display: inline-block;
}
.logo-overlay {
    position: absolute;
    color: white;
    top: 50%;
    left: 50%;
    width: 35% !important;
    font-size: 40px;
    transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    opacity: 0.4;
    transition: 400ms ease-in,200ms ease-out;
}


.mag-img {
    width: 31%;
    margin: 1%;
    text-align: center;
    transition: box-shadow 0.5s ease !important;
    -webkit-transition: box-shadow 0.5s ease !important;
    -moz-transition: box-shadow 0.5s ease !important;
    position: relative;
    overflow:hidden;
}

.mag-img a::before {
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transition: all 0.3s ease 0s;
    width: 100%;
}
.mag-img i {
    position: absolute;
    color:white;
    top: 50%;
    left: 50%;
    font-size: 40px;
    transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    opacity: 0;
    transition: 400ms ease-in,200ms ease-out;
}
.mag-img:hover i {
    opacity: 0.6;
}

.mag-img a:hover::before {
    box-shadow: 0 0 0 500px rgba(0, 0, 0, 0.5) inset;
    -webkit-box-shadow: 0 0 0 500px rgba(0, 0, 0, 0.5) inset;
    -moz-box-shadow: 0 0 0 500px rgba(0, 0, 0, 0.5) inset;
    transition: all 0.3s ease 0s;
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    /*transform: rotate(145deg) scale(1.5);*/
}

.mag-img a::before {
    box-shadow: 0 0 0 500px rgba(0, 0, 0, 0) inset;
    -webkit-box-shadow: 0 0 0 500px rgba(0, 0, 0, 0) inset;
    -moz-box-shadow: 0 0 0 500px rgba(0, 0, 0, 0) inset;
    transition: all 0.3s ease 0s;
    -webkit-transition: all 3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
}



.mfp-title {
    display: none;
}

@media (max-width: 1199px){
.gaw-overlay {
    font-size: 20px !important;
}
}

@media (max-width: 991px){
.mag-img {
    width: 47.7%;
    }
}

@media (max-width: 767px){
.mag-img {
    width: 47%;
    }
    .gaw-overlay {
    font-size: 19px !important;
}
}

@media (max-width: 600px){
.gaw-overlay {
    font-size: 16px !important;
}
}

@media (max-width: 530px){
.gaw-overlay {
    font-size: 9px !important;
    font-size: 3vw !important;
}
}