

:root {
    font-size: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", Arial, sans-serif;
    min-height: 100vh;
    background-color: #000000;
    color: #f5f5f5;
    padding-bottom: 3rem;
}

img {
    display: block;
}

.container {
    max-width: 93.5rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    font: inherit;
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    cursor: pointer;
}

.btn:focus {
    outline: 0.5rem auto #4d90fe;
}

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

.profile {
    padding: 5rem 0;
}

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

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

.profile-image img {
    width: 15.2rem;
    height: 15.2rem;
    object-fit: cover;
    border-radius: 50%;
}

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

.profile-user-settings {
    margin-top: 1.1rem;
}

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

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

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

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

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

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

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

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

.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem -1rem;
    padding-bottom: 3rem;
}

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

.gallery-item:hover .gallery-item-info,
.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);
}

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

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

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

.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);
}

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

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #141414;
}

@media screen and (max-width: 40rem) {
    .profile {
        display: flex;
        flex-wrap: wrap;
        padding: 4rem 0;
    }

    .profile::after {
        display: none;
    }

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

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

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

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

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

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

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

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

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

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

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

    .profile-stat-count {
        display: block;
    }
}

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

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

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

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

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

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

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

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

        .profile-user-settings,
        .profile-edit-btn,
        .profile-settings-btn,
        .profile-bio,
        .profile-stats {
            margin: 0;
        }
    }
}
.post-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.post-modal-overlay.active {
    display: flex;
}

.post-modal {
    display: flex;
    width: 100%;
    max-width: 100rem;
    height: 80vh;
    max-height: 70rem;
    background-color: #000000;
    border: 0.1rem solid #363636;
}

.post-modal-media {
    flex: 1.3;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.post-modal-media img,
.post-modal-media iframe,
.post-modal-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.post-modal-side {
    flex: 1;
    max-width: 35rem;
    min-width: 28rem;
    background-color: #000000;
    border-left: 0.1rem solid #363636;
    display: flex;
    flex-direction: column;
}

.post-modal-header {
    display: flex;
    align-items: center;
    padding: 1.4rem 1.6rem;
    border-bottom: 0.1rem solid #363636;
}

.post-modal-avatar {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.2rem;
}

.post-modal-username {
    font-size: 1.4rem;
    font-weight: 600;
    color: #f5f5f5;
    flex: 1;
}

.post-modal-more {
    color: #f5f5f5;
    font-size: 1.6rem;
}

.post-modal-comments {
    flex: 1;
    overflow-y: auto;
    padding: 1.6rem;
}

.post-modal-comment {
    display: flex;
    margin-bottom: 1.6rem;
}

.post-modal-comment-avatar {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    margin-right: 1.2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.post-modal-comment-body {
    font-size: 1.4rem;
    line-height: 1.5;
    color: #f5f5f5;
}

.post-modal-comment-username {
    font-weight: 600;
    margin-right: 0.6rem;
}

.post-modal-comment-meta {
    display: flex;
    gap: 1.4rem;
    margin-top: 0.4rem;
    font-size: 1.2rem;
    color: #a8a8a8;
}

.post-modal-actions {
    padding: 1.2rem 1.6rem;
    border-top: 0.1rem solid #363636;
}

.post-modal-icons {
    display: flex;
    gap: 1.6rem;
    font-size: 2.2rem;
    color: #f5f5f5;
    margin-bottom: 1rem;
}

.post-modal-bookmark {
    margin-left: auto;
}

.post-modal-likes {
    font-size: 1.4rem;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 0.4rem;
}

.post-modal-date {
    font-size: 1.1rem;
    color: #a8a8a8;
    text-transform: uppercase;
}

.post-modal-add-comment {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.6rem;
    border-top: 0.1rem solid #363636;
}

.post-modal-add-comment i {
    font-size: 1.8rem;
    color: #f5f5f5;
}

.post-modal-add-comment input {
    flex: 1;
    background: none;
    border: none;
    color: #f5f5f5;
    font-size: 1.4rem;
    outline: none;
}

.post-modal-add-comment input::placeholder {
    color: #a8a8a8;
}

.post-modal-post-btn {
    color: #0095f6;
    font-weight: 600;
    font-size: 1.4rem;
}

.post-modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    color: #f5f5f5;
    font-size: 2.4rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.post-modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-modal-prev {
    left: 2rem;
}

.post-modal-next {
    right: 2rem;
}

@media screen and (max-width: 60rem) {
    .post-modal {
        flex-direction: column;
        height: 90vh;
        max-height: none;
    }

    .post-modal-side {
        max-width: none;
        border-left: none;
        border-top: 0.1rem solid #363636;
    }

    .post-modal-media {
        flex: none;
        height: 40%;
    }
}

.custom-video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.custom-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.video-sound-control {
    position: absolute;
    bottom: 0.8rem;
    right: 0.8rem;
    display: flex;
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 0.4rem;
}

.video-mute-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.video-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    writing-mode: vertical-lr;
    direction: rtl;
    width: 0.4rem;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0.2rem;
    outline: none;
    opacity: 0;
    pointer-events: none;
    transition: height 0.2s ease, opacity 0.2s ease;
}

.video-sound-control.show-slider .video-volume-slider {
    height: 7rem;
    opacity: 1;
    pointer-events: auto;
}

.video-volume-slider::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0.2rem;
    width: 0.4rem;
}

.video-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    margin-left: -0.35rem;
}

.video-volume-slider::-moz-range-track {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0.2rem;
    width: 0.4rem;
}

.video-volume-slider::-moz-range-thumb {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
}
