.profile-gallery {
    position: relative;
    z-index: 1;
    background: #131313;
}

.profile-gallery::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 318px;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom,  #000000 0%,#131313 100%);
    z-index: -1;
}

.profile-gallery__left {
    text-align: center;
}

.profile-gallery__left h3 {
    text-transform: uppercase;
    font-size: 25px;
    color: #FFFFFF;
    padding: 0;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.profile-gallery__right {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
    padding: 0 30px;
    align-items: flex-end;
}

.profile-image {
    width: 50%;
    padding: 0 8px;
    margin-top: 24px;
}

.profile-image img {
    height: auto;
}

.profile-image:first-child {
    padding-right: 22px;
}

@media (min-width: 768px) {
    
    .profile-gallery__left {
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        overflow: hidden;
    }
    
    .profile-gallery__left h3 {
        font-size: 30px;
        margin-bottom: 0;
        position: relative;
    }

    .profile-gallery__left h3::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 349px;
        width: 1000px;
        height: 2px;
        background: #fff;
    }
    
    .profile-gallery__right {
        margin: 0 -9px;
        padding: 0;
    }
    
    .profile-image {
        width: 25%;
        padding: 0 9px;
        margin-top: 30px;
    }
    
    .profile-image:first-child {
        padding-right: 25px;
    }

    .profile-gallery::after {
        height: 272px;
    }
    
}


@media (min-width: 1200px) {

    .profile-gallery__flex {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
    }
    
    .profile-gallery__left {
        display: block;
        width: 214px;
    }
    
    .profile-gallery__left h3 {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .profile-gallery__left h3::after {
        top: auto;
        left: auto;
        right: 0;
        bottom: 16px;
        width: 77px;
    }
    
    .profile-gallery__right {
        margin: 0 -13px;
        padding: 0 0 0 108px;
        width: calc(100% - 214px);
    }
    
    .profile-image {
        padding: 0 13px;
        margin-top: 0;
    }
    
    .profile-image:first-child {
        padding-right: 33px;
    }

    .profile-gallery::after {
        height: 325px;
    }
}


@media (min-width: 1640px) {

    .profile-gallery__left {
        width: 272px;
    }
    
    .profile-gallery__left h3 {
        font-size: 38px;
    }

    .profile-gallery__left h3::after {
        bottom: 20px;
        width: 100px;
    }
    
    .profile-gallery__right {
        margin: 0 -16px;
        padding: 0 0 0 49px;
        width: calc(100% - 272px);
    }
    
    .profile-image {
        padding: 0 16px;
    }
    
    .profile-image:first-child {
        padding-right: 43px;
    }

    .profile-gallery::after {
        height: 442px;
    }
}

@media (min-width: 1200px) {
    .profile-gallery__flex {
        justify-content: center;
    }

    .profile-gallery__right--1 .profile-image,
    .profile-gallery__right--2 .profile-image {
        width: 50%;
    }

    .profile-gallery__right--3 .profile-image {
        width: 33.33%;
    }
}