/********************************************************************
* Вёрстка max, the murderer! © 2022
* Разрешено использование и модификация с копирайтом
********************************************************************/

#instagram {
    --gap: 20px;
    display: flex;
    flex-direction: column;
    padding: calc(var(--gap) * 2);
    background: white;
    max-height: 700px;
    color: black;
}

.insta_header {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.insta_avatar img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
}

.insta_avatar {
    border-radius: 50%;
    padding: 3px;
    background: #f09433; 
    background: linear-gradient(45deg, #FFC800 25%, #FF2A45 50%, #D407C7 75%); 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f09433', endColorstr='#bc1888',GradientType=1 );
}

.insta_info {
    padding-left: calc(var(--gap) * 2);
}

.insta_nickname {
    display: block;
    font-size: 28px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 300;
    margin-bottom: var(--gap) !important;
}

.insta_stats {
    margin-bottom: var(--gap) !important;
}

.insta_stats span {
    display: inline-block;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    /* Change the constant if at least one character has a LOT of subscribers and/or subscriptions */
    margin-right: calc(var(--gap) / 1.25);
}

.insta_stats span strong {
    margin-right: 0.2em;
}

.insta_about {
    font-size: 16px;
    line-height: 120%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
}

.insta_stats span strong,
.insta_about strong {
    font-weight: 600;
}

.insta_tabs {
    display: flex;
    margin-top: calc(var(--gap) * 2) !important;
    justify-content: center;
    border-top: 1px solid #dedede;
}

.insta_tab {
    padding: var(--gap) 0;
    margin: 0 var(--gap) !important;
    font-size: 12px;
    line-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.insta_tab:first-child {
    border-top: 1px solid black;
}

.insta_tab img {
    margin-right: 6px;
}

.insta_layout {
    display: flex;
    width: calc(100% + var(--gap));
    flex-direction: row;
    flex-wrap: wrap;
    overflow-y: scroll;
}

.insta_post {
    width: 30.5%;
    position: relative;
    margin-bottom: var(--gap);
}

.insta_post:after {
    content: '';
    display: block;
    padding-bottom: 100%;
}

.insta_post:not(:nth-child(3n)) {
    margin-right: var(--gap);
}

.insta_post img {
    object-fit: cover;
    position: absolute;
    width: 100%;
    height: 100%;
}

.insta_layout::-webkit-scrollbar {
    width: 4px;
}

.insta_layout::-webkit-scrollbar-track {
    border: none;
    background: white;
}

.insta_layout::-webkit-scrollbar-thumb {
    border: none;
    background: #dedede;
    border-radius: 4px;
}

.insta_layout::-webkit-scrollbar-thumb:hover {
    border: none;
    background: black;
}