.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

.gallery .image {
    width: calc(50% - 30px);
    margin: 0 60px 60px 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid #ffffff;
}

.gallery .image:nth-of-type(2n) {
    margin-right: 0;
}

.gallery .image:after {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.3);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery .image:hover:after {
    opacity: 1;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-shadow: 0px 0px 8px 0px rgba(0,0,0,0);
    transition: box-shadow 0.3s ease;
}

@media screen and (max-width: 2010px) {
    .gallery {
        padding: 0 60px;
    }
}

@media screen and (max-width: 920px) {
    .gallery {
        padding: 0 20px;
    }

    .gallery .image {
        width: calc(50% - 10px);
        margin: 0 20px 20px 0;
    }
}

@media screen and (max-width: 480px) {
    .gallery .image {
        width: 100%;
        margin: 0 0 20px 0;
    }
}

