.project-finished-gallery {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 0 140px;

    @media screen and (max-width: 768px) {
        padding: 0 20px 60px;
        margin: 0;
    }
}

.project-finished-gallery__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;

    @media screen and (max-width: 768px) {
        gap: 10px;
    }
}

/* 3 images row */
.pfg-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-height: 700px;
    @media screen and (max-width: 768px) {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
        max-height: unset;
        
        &> :nth-child(3) {
            grid-column: 1 / -1;
            max-height: 700px;
        }
    }
}

/* 2 images row */
.pfg-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-height: 700px;
    @media screen and (max-width: 768px) {
        gap: 10px;
        grid-template-columns: 1fr;
        max-height: unset;
    }
}

/* 1 image row */
.pfg-row-1 {
    max-height: 700px;
}

.pfg-row-1 img {
    width: 100%;
}

/* General img styles */
.pfg-row img {
    max-height: inherit;
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    object-fit: cover;
}
