/* ============================================================= */
/* Gallery Field
/* ============================================================= */

.wrapper-gallery-field .dp-wrapper-col {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.gallery-field-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.gallery-field-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 100%;
    flex: 0 1 100%;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.gallery-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 100%;
    flex: 0 1 100%;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.gallery-field-inner .image {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    background-size: cover;
    border-radius: 12px;
}

.gallery-field-inner .image img {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Markup for further lines of the gallery field
/* ------------------------------------------------------------- */

.gallery-row:nth-of-type(3n+1) .image:nth-of-type(1),
.gallery-row:nth-of-type(3n+2) .image:nth-of-type(2),
.gallery-row:nth-of-type(3n+3) .image:nth-of-type(3) {
    -webkit-box-flex: 0;
    -ms-flex: 0 1 100%;
    flex: 0 1 100%;
    margin: 10px;
    height: 175px;
    width: 100%;
    background-position: 50% 50%;
}

.gallery-row:nth-of-type(3n+1) .image:nth-of-type(2),
.gallery-row:nth-of-type(3n+1) .image:nth-of-type(3),
.gallery-row:nth-of-type(3n+2) .image:nth-of-type(1),
.gallery-row:nth-of-type(3n+2) .image:nth-of-type(3),
.gallery-row:nth-of-type(3n+3) .image:nth-of-type(1),
.gallery-row:nth-of-type(3n+3) .image:nth-of-type(2) {
    -webkit-box-flex: 0;
    -ms-flex: 0 1 100%;
    flex: 0 1 100%;
    margin: 10px;
    height: 175px;
    width: 100%;
    background-position: 50% 50%;
}


/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

    .gallery-row:nth-of-type(3n+1) .image:nth-of-type(1),
    .gallery-row:nth-of-type(3n+2) .image:nth-of-type(2),
    .gallery-row:nth-of-type(3n+3) .image:nth-of-type(3) {
        -webkit-box-flex: 0;
        -ms-flex: 0 2 calc(50% - 20px);
        flex: 0 2 calc(50% - 20px);
        margin: 10px;
        height: 250px;
    }

    .gallery-row:nth-of-type(3n+1) .image:nth-of-type(2),
    .gallery-row:nth-of-type(3n+1) .image:nth-of-type(3),
    .gallery-row:nth-of-type(3n+2) .image:nth-of-type(1),
    .gallery-row:nth-of-type(3n+2) .image:nth-of-type(3),
    .gallery-row:nth-of-type(3n+3) .image:nth-of-type(1),
    .gallery-row:nth-of-type(3n+3) .image:nth-of-type(2) {
        -webkit-box-flex: 0;
        -ms-flex: 0 1 calc(25% - 20px);
        flex: 0 1 calc(25% - 20px);
        margin: 10px;
        height: 250px;
    }

}


/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

    .gallery-row:nth-of-type(3n+1) .image:nth-of-type(1),
    .gallery-row:nth-of-type(3n+2) .image:nth-of-type(2),
    .gallery-row:nth-of-type(3n+3) .image:nth-of-type(3) {
        -webkit-box-flex: 0;
        -ms-flex: 0 2 calc(50% - 20px);
        flex: 0 2 calc(50% - 20px);
        margin: 10px;
        height: 450px;
    }

    .gallery-row:nth-of-type(3n+1) .image:nth-of-type(2),
    .gallery-row:nth-of-type(3n+1) .image:nth-of-type(3),
    .gallery-row:nth-of-type(3n+2) .image:nth-of-type(1),
    .gallery-row:nth-of-type(3n+2) .image:nth-of-type(3),
    .gallery-row:nth-of-type(3n+3) .image:nth-of-type(1),
    .gallery-row:nth-of-type(3n+3) .image:nth-of-type(2) {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 calc(25% - 20px);
        flex: 1 1 calc(25% - 20px);
        margin: 10px;
        height: 450px;
    }

}