.nsinstagram-v1apiview .visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

/* Profile Section */

.nsinstagram-v1apiview .profile {
    padding: 5rem 0;
}

.nsinstagram-v1apiview .profile-user-settings h3{
    margin: 0px;
    vertical-align: middle;
}

.nsinstagram-v1apiview .profile::after {
    content: "";
    display: block;
    clear: both;
}

.nsinstagram-v1apiview .profile-image {
    float: left;
    width: calc(33.333% - 1rem);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 3rem;
}

.profile-image img {
    border-radius: 50%;
}

.nsinstagram-v1apiview .profile-user-settings,
.nsinstagram-v1apiview .profile-stats,
.nsinstagram-v1apiview .profile-bio {
    float: left;
    width: calc(66.666% - 2rem);
}

.nsinstagram-v1apiview .profile-user-settings {
    margin-top: 1.1rem;
    line-height: 20px;
    margin-bottom: 10px !important;
}

.nsinstagram-v1apiview .profile-user-name {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 300;
}

.nsinstagram-v1apiview .profile-edit-btn {
    font-size: 1.4rem;
    line-height: 1.8;
    border: 0.1rem solid #dbdbdb;
    border-radius: 0.3rem;
    padding: 0 2.4rem;
    margin-left: 2rem;
}

.nsinstagram-v1apiview .profile-settings-btn {
    font-size: 2rem;
    margin-left: 1rem;
}

.nsinstagram-v1apiview .profile-stats {
    margin-top: 2.3rem;
}

.nsinstagram-v1apiview .profile-stats li {
    display: inline-block;
    font-size: 1.6rem;
    line-height: 1.5;
    margin-right: 4rem;
    cursor: pointer;
}

.nsinstagram-v1apiview .profile-stats li:last-of-type {
    margin-right: 0;
}

.nsinstagram-v1apiview .profile-bio {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 2.3rem;
}

.nsinstagram-v1apiview .profile-real-name,
.nsinstagram-v1apiview .profile-stat-count,
.nsinstagram-v1apiview .profile-edit-btn {
    font-weight: 600;
}

/* Gallery Section */
.nsinstagram-v1apiview .gallery {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem -1rem;
    padding-bottom: 3rem;
}

.nsinstagram-v1apiview .gallery-item {
    position: relative;
    flex: 1 0 22rem;
    margin: 1rem;
    color: #fff;
    cursor: pointer;
}

.nsinstagram-v1apiview .gallery-item:hover .gallery-item-info,
.nsinstagram-v1apiview .gallery-item:focus .gallery-item-info {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.nsinstagram-v1apiview .gallery-item-info {
    display: none;
}

.nsinstagram-v1apiview .gallery-item-info li {
    display: inline-block;
    font-size: 1.7rem;
    font-weight: 600;
}

.nsinstagram-v1apiview .gallery-item-likes {
    margin-right: 2.2rem;
}

.nsinstagram-v1apiview .gallery-item-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    text-shadow: 0.2rem 0.2rem 0.2rem rgba(0, 0, 0, 0.1);
}

.nsinstagram-v1apiview .fa-clone,
.nsinstagram-v1apiview .fa-comment {
    transform: rotateY(180deg);
}

.nsinstagram-v1apiview .gallery-image {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
}

/* Loader */
.nsinstagram-v1apiview .loader {
    width: 5rem;
    height: 5rem;
    border: 0.6rem solid #999;
    border-bottom-color: transparent;
    border-radius: 50%;
    margin: 0 auto;
    animation: loader 500ms linear infinite;
}

/* Follow Button */
.nsinstagram-v1apiview .btn-follow {
    text-decoration: none;
    padding: 7px;
    font-weight: normal;
    margin: 0px 0px 0px 20px;
    margin-right: 12px;
    display: inline-block;
    min-width: 120px;
    text-align: center;
    border-radius: 3px;   
    vertical-align: middle;
}

.nsinstagram-v1apiview .btn-follow.is-not-following {
    background-color: #358cbf;;
    color: #fff;
    border: 1px solid #358cbf;
    border-color: #358cbf;
}

.nsinstagram-v1apiview .btn-follow.is-not-following:hover {
    background-color: #358cbf;
    color: #fff;
}

/* tx-ns-instagram styling*/
.tx-ns-instagram ul {
    padding: 0;
}

.tx-ns-instagram .profile-user-name {
    font-size: 28px;
    line-height: 32px;
}
.tx-ns-instagram .btn-follow {
    min-width: 80px;
}
.tx-ns-instagram .profile-stats {
    padding: 15px 0 10px;
}
.tx-ns-instagram .profile-stats li {
    font-size: 22px;
    line-height: 28px;
}
.tx-ns-instagram .profile-bio p{
    font-size: 20px;
    line-height: 26px;
}


/* Media Query */
@media screen and (max-width: 40rem) {
    .nsinstagram-v1apiview .profile {
        display: flex;
        flex-wrap: wrap;
        padding: 4rem 0;
    }

    .nsinstagram-v1apiview .profile::after {
        display: none;
    }

    .nsinstagram-v1apiview .profile-image,
    .nsinstagram-v1apiview .profile-user-settings,
    .nsinstagram-v1apiview .profile-bio,
    .nsinstagram-v1apiview .profile-stats {
        float: none;
        width: auto;
    }

    .nsinstagram-v1apiview .profile-image img {
        width: 7.7rem;
    }

    .nsinstagram-v1apiview .profile-user-settings {
        flex-basis: calc(100% - 10.7rem);
        display: flex;
        flex-wrap: wrap;
        margin-top: 1rem;
    }

    .nsinstagram-v1apiview .profile-user-name {
        font-size: 2.2rem;
    }

    .nsinstagram-v1apiview .profile-edit-btn {
        order: 1;
        padding: 0;
        text-align: center;
        margin-top: 1rem;
    }

    .nsinstagram-v1apiview .profile-edit-btn {
        margin-left: 0;
    }

    .nsinstagram-v1apiview .profile-bio {
        font-size: 1.4rem;
        margin-top: 1.5rem;
    }

    .nsinstagram-v1apiview .profile-edit-btn,
    .nsinstagram-v1apiview .profile-bio,
    .nsinstagram-v1apiview .profile-stats {
        flex-basis: 100%;
    }

    .nsinstagram-v1apiview .profile-stats {
        order: 1;
        margin-top: 1.5rem;
    }

    .nsinstagram-v1apiview .profile-stats ul {
        display: flex;
        text-align: center;
        padding: 1.2rem 0;
        border-top: 0.1rem solid #dadada;
        border-bottom: 0.1rem solid #dadada;
    }

    .nsinstagram-v1apiview .profile-stats li {
        font-size: 1.4rem;
        flex: 1;
        margin: 0;
    }

    .nsinstagram-v1apiview .profile-stat-count {
        display: block;
    }    
}
@media screen and (max-width: 767px) {
     .tx-ns-instagram .profile{
        display: block !important;
        padding-bottom: 25px !important;
    }
    .tx-ns-instagram .profile-image {
        display: inline-block;
        vertical-align: middle;
        padding-right: 30px !important;
    }
    .tx-ns-instagram .profile-user-settings {
        display: inline-block !important;
        width: calc(100% - 155px) !important;
        vertical-align: middle !important;
    }
    .tx-ns-instagram .profile-user-name {
        font-size: 26px  !important;
        margin-bottom: 10px !important;
        display: block !important;
    }
    .tx-ns-instagram .profile-stats li {
        font-size: 20px !important;
    }
    .tx-ns-instagram .profile-bio p{
        font-size: 18px !important;
        line-height: 22px !important;
    }
    .tx-ns-instagram .btn-follow {
       margin: 0 !important;
    }
     .tx-ns-instagram .gallery {
        display: block !important;
        width: 100%;
    }
    .tx-ns-instagram .gallery a{
        display: block;
        margin-bottom: 25px;
    }
}

/* Spinner Animation */

@keyframes loader {
    to {
        transform: rotate(360deg);
    }
}

/*

The following code will only run if your browser supports CSS grid.

Remove or comment-out the code block below to see how the browser will fall-back to flexbox & floated styling. 

*/

@supports (display: grid) {
    .nsinstagram-v1apiview .profile {
        display: grid;
        grid-template-columns: 1fr 2fr;
        grid-template-rows: repeat(3, auto);
        grid-column-gap: 3rem;
        align-items: center;
    }

    .nsinstagram-v1apiview .profile-image {
        grid-row: 1 / -1;
    }

    .nsinstagram-v1apiview .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
        grid-gap: 2rem;
    }

    .nsinstagram-v1apiview .profile-image,
    .nsinstagram-v1apiview .profile-user-settings,
    .nsinstagram-v1apiview .profile-stats,
    .nsinstagram-v1apiview .profile-bio,
    .nsinstagram-v1apiview .gallery-item,
    .nsinstagram-v1apiview .gallery {
        width: auto;
        margin: 0;
    }

    @media (max-width: 40rem) {
        .nsinstagram-v1apiview .profile {
            grid-template-columns: auto 1fr;
            grid-row-gap: 1.5rem;
        }

        .nsinstagram-v1apiview .profile-image {
            grid-row: 1 / 2;
        }

        .nsinstagram-v1apiview .profile-user-settings {
            display: grid;
            grid-template-columns: auto 1fr;
            grid-gap: 1rem;
        }

        .nsinstagram-v1apiview .profile-edit-btn,
        .nsinstagram-v1apiview .profile-stats,
        .nsinstagram-v1apiview .profile-bio {
            grid-column: 1 / -1;
        }

        .nsinstagram-v1apiview .profile-user-settings,
        .nsinstagram-v1apiview .profile-edit-btn,
        .nsinstagram-v1apiview .profile-settings-btn,
        .nsinstagram-v1apiview .profile-bio,
        .nsinstagram-v1apiview .profile-stats {
            margin: 0;
        }
    }
}