/* posts */
.post {
    line-height: 14px;
    position: relative;
    overflow: unset;
    width: unset;
}
.post-content {
    border: 0;
    margin: 10px 0 15px;
}
.post-content .text {
    line-height: 1.462;
}
.post:not(.editing) > .post_edit,
.reply:not(.editing) .post_edit,
.reply.editing .reply_footer,
.reply.editing .reply_text {
    display: none;
}
.post.editing .reply .post-content {
    display: block;
}
.post .post_header {
    padding: 15px 20px 0;
    min-height: 50px;
}

.post_image {
    display: block;
    float: left;
}

.post_header_info {
    margin-left: 65px;
    padding-top: 8px;
}
.post_author {
    line-height: 16px;
    padding-right: 20px;
}
.post_author .author {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 40px);
    margin: 0;
    display: inline-block;
}
.post_date {
    font-size: 12.5px;
}
.post_date,
.post_date .post_link,
.post_date .promoted_post,
.reply_date {
    color: var(--text-color--tertiary);
}
.reply_date .reply_link,.reply_to {
    color: var(--text-color--secondary);
}

.post .wall_text {
    padding: 0 20px;
}
.wall_post_text {
    line-height: 1.462;
    padding: 0;
    overflow: hidden;
    word-wrap: break-word;
    display: block;
    box-sizing: border-box;
}

.really_text.collapsed_text {
    display: -webkit-box !important;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    max-height: none !important;
    padding-bottom: 0 !important;
    overflow: hidden;
}

.collapse_button {
    display: inline-block;
    color: var(--link-color);
    opacity: 0.8;
    font-weight: 500;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
}

.collapse_button:hover {
    opacity: 1;
    filter: none;
    text-decoration: none !important;
}

.post-nsfw .post-content {
    min-height: 58px;
}

.post-nsfw .post-content .text {
    filter: none;
    border-radius: var(--page-border-radius);
    color: transparent;
}

.post-nsfw .post-content::after,
.deleted_content .content_page_error {
    background: var(--page-background-color--secondary);
    color: var(--text-color--tertiary);
    font-size: 14px;
    margin: 0 20px;
    width: calc(100% - 40px);
    z-index: 4 !important;
}

.post-nsfw .reply .post-content::after,
.post-nsfw.copy_quote .post-content::after,
.copy_quote .deleted_content .content_page_error {
    margin: 0;
    width: 100%;
}

.ignore-message {
    padding: 12px 20px;
    color: var(--text-color--tertiary);
    font-size: 13px;
}

.post-signature,
.post .sourceDiv,
.post .post-geo {
    margin: 10px 20px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.authorIcon {
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%228%22%20height%3D%229%22%20viewBox%3D%2220%20203%208%209%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20style%3D%22fill%3A%23AABBCE%3B%22%3E%3Cpath%20d%3D%22M24%20209c3.5%200%204%201%204%202.5%200%20.5%200%20.5-1%20.5h-6c-1%200-1%200-1-.5%200-1.5.5-2.5%204-2.5zm0-1c-1.1%200-2-1.12-2-2.5s.9-2.5%202-2.5%202%201.12%202%202.5-.9%202.5-2%202.5z%22%2F%3E%3C%2Fsvg%3E")
        no-repeat;
    height: 9px;
    width: 8px;
    margin-top: 3px;
    margin-right: 6px;
}
.authorName,
.post .sourceDiv span {
    font-size: inherit;
    line-height: 15px;
    margin: 0;
}

.reply:not(:first-child) .reply_wrap,
.post-menu-s,
.reply + .commentsTextFieldWrap {
    border-top: 1px solid var(--border-color);
}
.post-menu-s .comments {
    border-bottom: 1px solid var(--border-color);
}

.post_full_like_wrap {
    padding: 10px 0 11px;
    margin: 5px 20px 0;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--page-border-radius) var(--page-border-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wall_edit_label {
    display: none;
    color: var(--text-color--secondary);
}
.post.editing .post_full_like_wrap {
    display: none;
}
.post.editing .post_header .wall_edit_label,
.reply.editing .wall_edit_label {
	display: inline;
}

.post_full_like {
    display: flex;
    align-items: center;
    width: 100%;    
}

.action_button {
    cursor: pointer;
    color: var(--post-action-color);
    white-space: nowrap;
    overflow: hidden;
    margin-right: 6px;
    padding: 4px 7px 5px;
    border-radius: var(--button-border-radius);
    display: flex;
    align-items: center;
    line-height: 17px;
}
.action_button:last-child {
    margin-right: 0;
}

.my_like .action_count,
.my_share .action_count {
    color: var(--post-action-color--active);
}
.action_button:hover {
    background-color: var(--button-background-color--light);
    text-decoration: none !important;
}
.post_full_like_wrap .post_like:first-child,
.post_full_like_wrap .post_share:first-child {
    margin-left: -7px;
}
.action_icon {
    display: inline-block;
}
.action_label {
    margin: 0 0 0 6px;
    font-size: 13px;
}
.button .action_label {
    margin: 0;
}

.action_count {
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--post-meta-color);
    font-size: 13px;
    display: inline-block;
    float: none;
    margin-left: 6px;
    vertical-align: top;
}
.action_count:empty {
    display: none;
}
.action_button:empty + .action_count {
    margin-left: 0;
}

.post_full_like_wrap .reply_link_wrap {
    padding: 5px 7px;
    margin-right: -7px;
    float: right;
}

.action_icon {
    width: 16px;
    height: 13px;
    margin: 0;
    float: left;
    opacity: 0.35;
    color: var(--accent-color);
}
.action_icon use.i18 {
    display: none;
}
.post_add .action_icon use.i-check,
.post_remove .action_icon use.i-add {
    display: none;
}
@keyframes like-icon-bounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
#liked {
    animation: like-icon-bounce 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.post_share .action_icon {
    height: 14px;
    margin: 2px 3px 0;
    width: 14px;
}

.post_reply .action_icon {
    height: 14px;
    margin-top: 2px;
    width: 14px;
}

body:not(.mode-2018).no-post-views .post_full_like .side_button {
	order: 3;
	margin: 0 0 0 auto;
    padding-inline: 0;
}
body:not(.mode-2018).no-post-views .post_full_like .side_button .action_icon,
body:not(.mode-2018).no-post-views .post_full_like .side_button .action_count {
    display: none;
}
body:not(.mode-2018).no-post-views .post_full_like .side_button:hover {
    text-decoration: underline!important;
    background: none;
}

.post_full_like .post_views {
    order: 4;
    display: flex;
    align-items: center;
    margin-left: auto;
    color: var(--text-color--tertiary);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    cursor: default;
}
body:not(.mode-2018) .post_full_like .side_button ~ .post_views {
	margin-left: 6px;
	flex: 1 1 0;
	justify-content: end;
}
.post_full_like .post_views_icon {
    width: 14px;
    height: 10px;
    opacity: 0.5;
    margin-right: 7px;
}
body.no-post-views .post_views,
body:not(.no-post-views) .post .post_full_like .post_share .action_label {
    display: none;
}

.suggestionControls {
    margin: 0 auto;
}

.wall_module > .insertThere {
    display: none;
}

.post-content .attachments {
    margin: 0 !important;
}
.post-content .attachments_b {
    overflow: hidden;
    padding: 0;
}
.post-content .attachments .attachment {
    width: 100%;
}
.post-content .attachments .attachment:first-child {
    margin-top: 0;
}
.post-content .really_text + .attachments,
.post-content .attachments_b + .attachments_m {
    padding-top: 10px;
}
.post-content .really_text + .attachments_m .attachment:not(:first-child,.audios_attachment,.notes_attachment) {
    padding-top: 10px;
}

.post.copy_quote {
    border-left: 2px solid var(--quote-border-color);
    padding-left: 12px;
    margin: 15px 0 0;
    width: auto;
}
.post.copy_quote .post-avatar {
    width: 40px;
    height: 40px;
}
.post.copy_quote :is(.post_header, .wall_text) {
    padding-inline: 0;
}
.post.copy_quote .post_header {
    min-height: 40px;
    padding: 0;
}
.post.copy_quote .post_header_info {
    margin-left: 52px;
    padding-top: 3px;
}
.post.copy_quote .wall_post_text {
    padding-top: 0;
}
.post.copy_quote .post-content .attachments.attachments_b:not([style^="width: 3"]) {
    width: 75%!important;
    height: 100%!important;
}
.post.copy_quote .post-signature,
.post.copy_quote .sourceDiv,
.post.copy_quote .post-geo {
    margin: 0;
    margin-top: 10px;
    padding-bottom: 0;
}

.written {
    background: none;
    padding: 0;
}

.notesInsert .display_flex_row:not(:last-child) {
    margin-bottom: 10px;
}
.ovk-diag-body .notesInsert {
    margin: 0 -10px;
    width: calc(100% + 20px);
}

.post_image {
    position: relative;
}
.post-avatar {
    height: 50px;
    width: 50px;
    vertical-align: top;
}
.post_image.online:after {
    z-index: 1;
    display: flex;
    border: 2px solid var(--page-background-color);
    position: absolute;
    content: "";
    background-color: #8ac176;
    border-radius: 50%;
    bottom: 2%;
    right: 2%;
    height: 8px;
    width: 8px;
    z-index: 0;
}
.copy_quote .post_image.online::after {
    bottom: 0;
    right: 0;
}
.post_image.online.mobile::after {
    content: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%207%2011%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%20%20%20%20%3Cg%20id%3D%22Symbols%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22%238AC176%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%20%20%20%20%3Cg%20id%3D%22online%22%20transform%3D%22translate(-203.000000%2C%20-422.000000)%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M203%2C423.506439%20C203%2C422.674456%20203.671189%2C422%20204.501676%2C422%20L208.498324%2C422%20C209.327677%2C422%20210%2C422.671541%20210%2C423.506439%20L210%2C431.493561%20C210%2C432.325544%20209.328811%2C433%20208.498324%2C433%20L204.501676%2C433%20C203.672323%2C433%20203%2C432.328459%20203%2C431.493561%20L203%2C423.506439%20Z%20M204%2C424%20L209%2C424%20L209%2C430%20L204%2C430%20L204%2C424%20Z%22%20id%3D%22mobile_m%22%2F%3E%0A%20%20%20%20%20%20%20%20%3C%2Fg%3E%0A%20%20%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E");
    bottom: 0%;
    right: 4%;
    background-color: #fff;
    height: 11px;
    width: 7px;
    border-radius: 3px;
}
.copy_quote .post_image.online.mobile::after {
    bottom: 0;
    right: -3%;
}

.post_actions_icon {
    background: url(../icons/post_more.png) no-repeat 50%;
    position: absolute;
    width: 22px;
    height: 24px;
    top: 17px;
    right: 16.5px;
    cursor: pointer;
}
.post_header .post_actions {
    position: absolute;
    top: 0;
    right: 0;
}

.post_header .post_actions_icon {
    top: 20px;
    right: 18px;
}

.attachment .media-href {
    height: 100%;
    display: block;
    position: relative;
    overflow: hidden;
}
/*.attachment .media-href:before {
    content: '';
    background: var(--post-image);
    background-size: cover;
    position: absolute;
    height: 100%;
    width: 100%;
    filter: blur(10px);
    transform: scale(1.1);
    opacity: .5;
}*/
.attachment .media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: clamp(320px, 60vh, 900px);
    position: relative;
    z-index: 1;
}
.attachment .media.media_makima {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    max-height: unset;
    object-fit: cover;
}
.post-horizontal .upload-item .play-button,
.compact_video .play-button,
.docGalleryItem .play-button {
    z-index: 2;
}

[id^="poll_editor"] label {
    align-items: center;
}

.page_block.wall_posts_tabs {
    margin: 0;
    border-radius: var(--page-border-radius) var(--page-border-radius) 0 0;
}

.page_block.archive_banner {
    border-radius: 0 0 var(--page-border-radius) var(--page-border-radius);
    padding: 14px 16px;
    line-height: 1.462;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    display: block;
    min-height: unset;
}
.archive_banner_text {
    line-height: 1.462;
}
.archive_banner_title {
    margin-bottom: 4px;
}
.archive_banner_text {
    color: var(--text-color)
}
.archive_banner_description {
    margin-top: 5px;
    color: var(--text-color--tertiary);
}
.button.archive_banner_link {
    margin-top: 10px;
}
.archive_actions_button {
    padding: 8px 6px;
    margin-top: 7px;
    margin-right: 4px;
    color: var(--link-color);
    font-size: 12px;
    cursor: pointer;
}
.ui_rmenu_extra_item.archive_actions {
	margin-top: 9px;
}
.archive_actions_icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../icons/filter_cog.png) no-repeat 15px 8px;
    background-position: 0 0px;
}

.ui_actions_menu form {
    margin: 0;
}

.ui_actions_menu label.checkbox input[type="checkbox"], .ui_actions_menu label.checkbox input[type="radio"] {
    margin: 1px 0 0 4px;
}

.post_view_page.with_comments .post:not(.reply) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow:
        0 -1px 0 0 var(--shadow-outline-color),
        -1px 0 0 0 var(--shadow-outline-color),
        1px 0 0 0 var(--shadow-outline-color),
        0 1px 0 0 var(--border-color);
    margin-bottom: 0;
}

/* replies */
.reply {
    padding: 0 20px;
    line-height: 14px;
}
.reply_wrap {
    padding: 12px 0;
}
.reply_author {
    font-size: 12.5px;
    margin-bottom: 5px;
    background: none;
    border: 0;
    padding: 0;
    line-height: inherit;
}
.reply_author .author {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.reply .post-content {
    margin: 0;
}
.reply .attachments {
    padding-top: 5px;
    margin-bottom: 5px;
}
.reply .post-content .attachments_m:last-child .attachment {
    padding-bottom: 0;
}
.reply_image {
    display: block;
    float: left;
}
.reply_content {
    margin-left: 44px;
    word-wrap: break-word;
    min-height: 34px;
}
.reply_content .post-content .text {
    line-height: 1.36;
}
.reply_img {
    width: 34px;
    height: 34px;
    vertical-align: top;
}
.reply .action_icon {
    background: url(../icons/post_icon.png) no-repeat 0 -29px;
    width: 12px;
    height: 10px;
    margin: 2px 0 0;
}
.reply_date {
    float: left;
    padding-right: 8px;
}
.reply .like_wrap {
    padding: 5px 10px 10px;
    margin: -5px -10px -10px;
    transition: opacity 0.1s;
    line-height: 1;
    opacity: 0;
}
.reply:hover .like_wrap,
.reply .like_wrap[data-likes] {
    opacity: 0.5;
}
.reply .like_wrap:hover {
    text-decoration: none;
}

.reply .like_wrap .action_icon,
.reply .like_wrap:hover .action_icon,
.reply .like_wrap:hover,
.reply .like_wrap.my_like {
    opacity: 1!important;
}

.action_icon:not(#liked) + .action_count {
    color: var(--text-color--secondary);
}
.reply_actions_wrap {
    position: relative;
    z-index: 4;
}
.reply_actions {
    height: 11px;
    padding-top: 1px;
    position: absolute;
    right: 0;
    white-space: nowrap;
    display: inline-flex;
}
.reply_action {
    background: url(../icons/post_icon.png) no-repeat 1px -52px;
    opacity: 0;
    cursor: pointer;
    height: 13px;
    width: 13px;
    margin-left: 7px;
    display: inline-block;
    transition: 0.1s;
}
.reply_action.reply_edit_action {
    background-position: 0 -40px;
}
.reply:hover .reply_action {
    visibility: visible;
    opacity: 0.7;
}
.reply .reply_action:hover {
    opacity: 1;
}
.reply_action.reply_report_action {
    background: url(../icons/common.png) 0px -454px;
    background-size: 24px;
}
.reply .reply_action.reply_report_action:hover {
    opacity: 0.9;
}
.post.reply .reply_text {
    padding: 0;
    line-height: 16px;
}
.reply .edit_menu {
    padding: 6px 0 0;
}
.edit-menu .post-buttons {
    margin-top: 10px;
}
.reply_footer {
    font-size: 12.5px;
    padding: 5px 0 0;
    margin-bottom: -1px;
}
.reply_footer .action_count {
    margin-left: 3px;
    margin-top: 1px;
}

.post-menu {
    font-size: 12.5px;
    color: var(--text-color--secondary);
    padding: 0;
}
.edit_menu .edit_menu_buttons {
    margin: 0;
}

#standaloneCommentBox {
    background: var(--page-background-color);
    border-bottom: 0;
    border-radius: 0 0 var(--page-border-radius) var(--page-border-radius);
    box-shadow:
        0 1px 0 0 var(--shadow-bottom-color),
        0 0 0 1px var(--shadow-outline-color);
    bottom: 0;
    top: unset;
    z-index: unset;
}

/* Avatar flip animation for post as group functionality */
@keyframes avatar-flip-out {
    0% {
        transform: scaleX(1);
        opacity: 1;
    }
    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}

@keyframes avatar-flip-in {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.post_field_user_image.avatar-flipping {
    animation: avatar-flip-out 0.1s ease-out forwards;
}
.post_field_user_image.avatar-showing {
    animation: avatar-flip-in 0.1s ease-out forwards;
}

.content_page_error {
    background: var(--page-background-color);
    border: 0;
    text-align: center;
    color: var(--text-color--tertiary);
    padding: 40px 15px;
    min-height: 100px;
    flex-direction: column;
}
.post .content_page_error {
    min-height: 250px;
    margin: 0;
    width: unset;
}
.content_page_error .icon {
    margin-bottom: 15px;
}
.content_page_error span > b {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}
.content_page_error .text {
    color: var(--text-color--tertiary);
}
