.title-gallery {
    margin: 20px 20px 0;
}

.container-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 40px 50px;
}

.profile {
    margin: 20px 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    font-family: "Montserrat", sans-serif;
    width: 100%;
}

.profile img {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    width: 150px;
    height: 150px;
    margin-right: 20px;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);

}

.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.profile-user {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.profile-info #username {
    text-align: center;
    font-size: 22px;
    font-weight: 400;
    margin-left: 40px;
}

hr {
    border: 0;
    clear: both;
    display: flex;
    width: 100%;
    background-color: #bbbbbb;
    height: 2px;
    margin-bottom: 10px;
}

.profile-info #follow-button {
    text-align: center;
    margin-left: 40px;
    border: none;
    padding: 5px 20px;
    background-color: #40A1F3;
    border-radius: 5px;
    cursor: pointer;
}

#follow-button:hover {
    background-color: #3493e0;
}

.profile-info a {
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 11px;
}

.profile-description {
    margin: 10px 70px;
    width: 400px;
    text-align: justify;
    line-height: 1.2;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.gallery-item {
    position: relative;
    margin: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 350px;
    height: 350px;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
}

.overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    margin: 0;
}

.overlay p {
    color: #fff;
    font-size: 16px;
    text-align: justify;
    line-height: 1.2;
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 99%;
    background: rgba(20, 20, 20, 0.7);
    font-family: "Montserrat", sans-serif;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 2;
}

.load-more {
    margin: 30px 0;
    width: 30px;
    height: 30px;
    border: none;
    background-color: #7F53CA;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    font-weight: 800;
    font-size: 18px;
    transition: all 259ms;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.load-more:hover {
    background-color: #573591;
}

.load-more:active {
    background-color: #b1b1b1;
}



@media screen and (max-width: 1024px) {
    .container-gallery {
        margin: 0;
    }

    .profile {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .profile img {
        margin: 0;
    }

    .profile-info {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .profile-info #username,
    .profile-info #follow-button {
        margin: 5px 0;
    }

    .profile-description {
        display: flex;
        flex-direction: column;
        padding: 0 20px;
        font-size: 14px;
    }

    .profile-user {

        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        margin: 0;
        padding: 0;
    }

    .gallery {
        width: 100%;
    }

    hr {
        width: 60%;
    }
}