.post-media {
    width: 100%;
    margin-top: 10px;
    display: block;
}

.post-media:empty {
    display: none;
}

.post-media img,
.post-media video {
    max-width: 100%;
    max-height: 500px; /* ограничение высоты */
    width: auto;
    height: auto;
    display: block;
    margin: 0; /* убираем auto, чтобы выровнять влево */
    border-radius: 8px;
    object-fit: contain;
}


.wall-wrapper .post-card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 16px;
}

.wall-wrapper .post-card .author {
    font-weight: 600;
}

.wall-wrapper .post-media img,
.wall-wrapper .post-media video {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 12px;
}

.wall-wrapper {
    border-radius: 20px;
}

.wall-header {
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.wall-header h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

.wall-header .description {
    color: #6c757d;
    margin-bottom: 12px;
}

.wall-header .followers {
    font-size: 14px;
    color: #6c757d;
}

.wall-header .btn-subscribe {
    float: right;
    margin-top: -40px;
}
#postsContainer {
    max-height: 600px; /* или сколько тебе нужно */
    overflow-y: auto;
    padding: 10px;
}
.send-icon{
    display: none;
}
@media (max-width: 576px) {
    .wall-header .btn-subscribe {
        float: none;
        display: block;
        width: 100%;
        margin-top: 10px;
    }
    .send-icon{
        display: block;
    }
    .punlic{
        display: none;
    }
    .wall-wrapper .post-card {
        padding: 8px;
    }
}

.comments-container {
    margin: 0 auto;
    padding: 20px;
}
.comment {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    position: relative;
}
.comment-reply {
    margin-left: 40px;
    margin-top: 15px;
    border-left: 2px solid #ddd;
    padding-left: 15px;
}
.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
}
.comment-author {
    font-weight: 600;
    margin-right: 10px;
}
.comment-date {
    color: #777;
    font-size: 0.85em;
}
.comment-text {
    margin-bottom: 10px;
    line-height: 1.4;
}
.comment-actions {
    display: flex;
    gap: 15px;
}
.comment-action {
    color: #777;
    cursor: pointer;
    font-size: 0.85em;
    transition: color 0.2s;
}
.comment-action:hover {
    color: #333;
}
.reply-form {
    margin-top: 15px;
    display: none;
}
.show-replies-btn {
    background: none;
    border: none;
    color: #777;
    padding: 0;
    cursor: pointer;
    font-size: 0.85em;
}
.show-replies-btn:hover {
    color: #333;
}
.replies-count {
    margin-left: 5px;
}