section.gallery {
    background: #1C1C20;
    max-width: 1440px;
    margin: 0 auto;
    padding: 100px 45px 70px 45px;
}

section.gallery .gallery-wrap {
    max-width: 1400px;
    margin: 0 auto;
}

section.gallery .gallery .gallery-head-container {
    position: relative;
    height: 268px;
    padding-top: 0;
}

section.gallery .gallery .gallery-head {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    text-align: center;
}

section.gallery .gallery .gallery-head-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 348px;
    text-align: left;
}

section.gallery .gallery-title {
    font: italic 400 28px/1.5em 'DM Serif Text', sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 15px;
}

section.gallery .gallery-title .word span {
    font-size: 36px;
}

section.gallery .gallery-content {
    column-count: 2;
    column-gap: 30px;
}

section.gallery .item {
    margin-bottom: 30px;
}

section.gallery .item a:hover {
    opacity: 0.4;
}

section.gallery .item .image-wrap {
    position: relative;
    height: 0;
    padding-top: 80%;
}

section.gallery .gallery-wrap.gallery > div:nth-child(1) .item:nth-child(2) .image-wrap {
    padding-top: 0;
    height: 680px;
}

section.gallery .gallery-wrap.gallery > div:nth-child(7n) .item:nth-child(4) .image-wrap,
section.gallery .gallery-wrap.gallery > div:nth-child(3) .item:nth-child(4) .image-wrap,
section.gallery .gallery-wrap.gallery > div:nth-child(3n) .item:nth-child(2) .image-wrap,
section.gallery .gallery-wrap.gallery > div:nth-child(1) .item:nth-child(3) .image-wrap {
    padding-top: 0;
    height: 688px;
}

section.gallery .gallery-wrap.gallery > div:nth-child(3n) .item:nth-child(1) .image-wrap,
section.gallery .gallery-wrap.gallery > div:nth-child(7n) .item:nth-child(2) .image-wrap,
section.gallery .gallery-wrap.gallery > div:nth-child(7n) .item:nth-child(1) .image-wrap,
section.gallery .gallery-wrap.gallery > div:nth-child(3n) .item:nth-child(3) .image-wrap,
section.gallery .gallery-wrap.gallery > div:nth-child(3n) .item:nth-child(4) .image-wrap,
section.gallery .gallery-wrap.gallery > div:nth-child(1) .item:nth-child(4) .image-wrap {
    padding-top: 0;
    height: 798px;
}

section.gallery .gallery-wrap.gallery > div:nth-child(1) .item:nth-child(5) .image-wrap {
    padding-top: 0;
    height: 868px;
}

section.gallery .gallery-wrap.gallery > div:nth-child(3n) .item:nth-child(2) .image-wrap,
section.gallery .gallery-wrap.gallery > div:nth-child(7n) .item:nth-child(3) .image-wrap,
section.gallery .gallery-wrap.gallery > div:nth-child(3) .item:nth-child(3) .image-wrap {
    padding-top: 141%;
}

section.gallery .gallery-wrap .full-width .image-wrap {
    padding-top: 50%;
}

section.gallery .item .image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

section.gallery .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Portfolio template */

section.gallery .portfolio .gallery-head {
    display: flex;
    justify-content: center;
    text-align: center;
}

section.gallery .portfolio .subtitle {
    margin-bottom: 20px;
}

section.gallery .gallery-wrap.portfolio .item.big .image-wrap {
    padding-top: 119%;
}

section.gallery .gallery-wrap.portfolio .item.little .image-wrap {
    padding-top: 83%;
}

/* \END Portfolio template */


/* Project gallery */

section.gallery .gallery-wrap.project-gallery .item.big .image-wrap {
    padding-top: 117%;
}

section.gallery .gallery-wrap.project-gallery .item.square .image-wrap {
    padding-top: 100%;
}

section.gallery .gallery-wrap.project-gallery .item.little .image-wrap {
    padding-top: 83%;
}

/* \END Project gallery */


/* MEDIA */

@media only screen and (max-width: 1200px) {
    section.gallery .gallery-wrap.gallery > div:nth-child(1) .item:nth-child(2) .image-wrap {
        height: 530px;
    }

    section.gallery .gallery-wrap.gallery > div:nth-child(7n) .item:nth-child(4) .image-wrap,
    section.gallery .gallery-wrap.gallery > div:nth-child(3) .item:nth-child(4) .image-wrap,
    section.gallery .gallery-wrap.gallery > div:nth-child(3n) .item:nth-child(2) .image-wrap,
    section.gallery .gallery-wrap.gallery > div:nth-child(1) .item:nth-child(3) .image-wrap {
        height: 536px;
    }

    section.gallery .gallery-wrap.gallery > div:nth-child(3n) .item:nth-child(1) .image-wrap,
    section.gallery .gallery-wrap.gallery > div:nth-child(7n) .item:nth-child(2) .image-wrap,
    section.gallery .gallery-wrap.gallery > div:nth-child(7n) .item:nth-child(1) .image-wrap,
    section.gallery .gallery-wrap.gallery > div:nth-child(3n) .item:nth-child(3) .image-wrap,
    section.gallery .gallery-wrap.gallery > div:nth-child(3n) .item:nth-child(4) .image-wrap,
    section.gallery .gallery-wrap.gallery > div:nth-child(1) .item:nth-child(4) .image-wrap {
        height: 644px;
    }

    section.gallery .gallery-wrap.gallery > div:nth-child(1) .item:nth-child(5) .image-wrap {
        height: 720px;
    }
}

/* ( < 1200 ) */


@media only screen and (max-width: 991px) {
    section.gallery .gallery-wrap.gallery > div:nth-child(1) .item:nth-child(2) .image-wrap {
        height: 344px;
    }

    section.gallery .gallery-wrap.gallery > div:nth-child(7n) .item:nth-child(4) .image-wrap,
    section.gallery .gallery-wrap.gallery > div:nth-child(3) .item:nth-child(4) .image-wrap,
    section.gallery .gallery-wrap.gallery > div:nth-child(3n) .item:nth-child(2) .image-wrap,
    section.gallery .gallery-wrap.gallery > div:nth-child(1) .item:nth-child(3) .image-wrap {
        height: 348px;
    }

    section.gallery .gallery-wrap.gallery > div:nth-child(3n) .item:nth-child(1) .image-wrap,
    section.gallery .gallery-wrap.gallery > div:nth-child(7n) .item:nth-child(2) .image-wrap,
    section.gallery .gallery-wrap.gallery > div:nth-child(7n) .item:nth-child(1) .image-wrap,
    section.gallery .gallery-wrap.gallery > div:nth-child(3n) .item:nth-child(3) .image-wrap,
    section.gallery .gallery-wrap.gallery > div:nth-child(3n) .item:nth-child(4) .image-wrap,
    section.gallery .gallery-wrap.gallery > div:nth-child(1) .item:nth-child(4) .image-wrap {
        height: 416px;
    }

    section.gallery .gallery-wrap.gallery > div:nth-child(1) .item:nth-child(5) .image-wrap {
        height: 574px;
    }
}

/* ( < 991 ) */


@media only screen and (max-width: 768px) {
    section.gallery {
        padding: 36px 15px;
    }

    section.gallery .gallery-content {
        column-count: 1;
    }

    section.gallery .gallery-wrap.gallery > div .item .image-wrap {
        padding-top: 64% !important;
    }

    section.gallery .item {
        margin-bottom: 15px;
    }

    section.gallery .gallery .gallery-head-container {
        height: auto;
        padding: 0;
    }

    section.gallery .gallery .gallery-head {
        position: static;
    }
}

/* ( < 768 ) */
