.section-gallery {

}

.section-gallery-item{
    margin-bottom: 1%;
    height: 0;
    padding-top: 24.5%;
    position: relative;
    display: block;
    background-color: #f0f0f0;
    z-index: 10;
}

.section-gallery-item:hover {
    z-index: 15;
}

.section-gallery-item img{
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
}

/*---------------------------------------------*/

@media (max-width: 950px) {
    .section-gallery-item {
        padding-top: 24.5%;
    }
}


@media (max-width: 500px) {
    .section-gallery-item {
        padding-top: 36%;
    }

    .section-gallery .column3{
        width: 48%;
        margin-right: 4%;
        margin-bottom: 4%;
    }

    .section-gallery .column3:nth-child(3n){
        margin-right: 4%;   
    }

    .section-gallery .column3:nth-child(2n){
        margin-right: 0;   
    }
}
