/*
Theme Name: KingC Child
Theme URI: https://autoarmia.pl
Description: Child theme for KingC WordPress Viral Magazine Theme
Template: kingc
Version: 1.0.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kingc-child
*/

/* TinyMCE */
body.mce-content-body,
#tinymce {
    font-weight: 400;
}

.king-night2 div.mce-btn button,
.king-night2 div.mce-btn .mce-ico,
.king-night3 div.mce-btn button,
.king-night3 div.mce-btn .mce-ico {
    color: inherit !important;
}

.king-night2 div.mce-btn:hover,
.king-night2 div.mce-btn:active,
.king-night3 div.mce-btn:hover,
.king-night3 div.mce-btn:active {
    color: inherit;
}

/* TinyMCE counter */
.content-counter-wrapper {
    display: none;
}

/* Right Navigation */
.krmenu {
    overflow: hidden;
}

@media screen and (max-width: 1100px) {
    .krmenu {
        width: 100%;
        min-width: auto;
        max-width: 600px;
    }

    .kflex {
        flex-direction: column;
        align-items: center;
    }

    .king-sidebar-01 .site-main {
        width: 100%;
        display: block;
    }
}

/* Left Navigation */
.king-leftnav a,
.king-leftmenu-nav a {
    padding-left: 10px;
    display: flex;
    align-items: center;
}

.king-leftnav a i,
.king-leftmenu-nav a i {
    width: auto;
    margin: 0;
    position: static;
}
.king-leftnav a i::before,
.king-leftmenu-nav a i::before {
    margin: 0;
}

.header-template-09 .king-leftmenu a i {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
}

/* User profile */
.profile-content-area {
    padding-inline: 0 !important;
    margin-inline: 0;
}

/* Global */
.kflex {
    max-width: 100%;
    display: grid;
    grid-template-columns: calc(100% - 340px) 320px;
    column-gap: 20px;
}

@media screen and (max-width: 1100px) {
    .kflex {
        display: flex;
    }
}

.king-sidebar-01 .site-main,
.king-sidebar-02 .site-main {
    width: auto;
    max-width: 100%;
}

/* Logo */
@media screen and (max-width: 769px) {
    .mobile-king-logo,
    .king-night3 .mobile-king-logo-night,
    .king-night2 .mobile-king-logo-night,
    .king-night1 .mobile-king-logo-night {
        display: flex;
    }

    .mobile-king-logo img,
    .mobile-king-logo-night img {
        max-height: 60px;
        max-width: 90px;
    }

    .mobile-king-logo,
    .mobile-king-logo-night {
        margin-right: auto;
        margin-left: 8px;
    }
}

@media screen and (max-width: 440px) {
    .head-icons,
    .king-submit-open,
    .user-header-noavatar {
        width: 30px;
        height: 30px;
        line-height: 30px;
        background-size: 70%;
    }

    .king-submit,
    .king-logged-user {
        height: 30px;
    }

    .king-notify-num {
        top: -6px;
        right: -4px;
    }

    .king-login-buttons a {
        line-height: 30px;
    }
}

/* Article */
article .entry-content {
    text-align: left;
}

.king-post-item {
    overflow: hidden;
}

.entry-m-meta {
    flex-wrap: wrap;
}

.king-grid-14 article .entry-title a {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.mefooter {
    align-items: flex-start;
}

.post-comments {
    white-space: nowrap;
    min-width: 50px;
    flex-shrink: 0;
}

@media screen and (max-width: 769px) {
    .king-grid-14 article.hentry .king-vote {
        flex-direction: row;
    }

    .king-grid-14 .entry-image {
        width: 100%;
        max-width: 500px;
        height: auto !important;
    }

    .king-grid-14 .entry-image img {
        height: auto;
        min-height: auto;
    }

    article.hentry .entry-image-link {
        width: 100%;
        order: -1;
    }

    .king-grid-14 article.hentry {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 10px;
    }

    .king-grid-14 .king-post-item {
        padding-left: 0.8%;
        padding-right: 0.8%;
    }

    .king-postext {
        opacity: 1;
    }

    .vleft {
        width: 100%;
    }
}

/* Page navigation */
@media screen and (max-width: 1400px) {
    .king-3rd-nav a {
        padding-inline: 5px;
    }
}

/* User profile links */
.king-profile-links {
    height: auto;
}
@media screen and (max-width: 1150px) {
    .king-profile-links {
        padding-inline: 10px;
    }

    .king-profile-links a {
        font-size: 13px;
        padding-inline: 8px;
    }
}

/* Profile stats on small screens */
@media screen and (max-width: 440px) {
    .profile-stats {
        flex-wrap: wrap;
    }

    .profile-stats-num {
        padding-inline: 15px;
        min-width: 110px;
    }
}

/* Blog */
@media screen and (max-width: 961px) {
    .king-post-item,
    .grid-sizer {
        width: 100% !important;
    }
}

/* Comments */
.comment-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.king-night2 .comment-error,
.king-night3 .comment-error {
    background: #2d1a1a;
    border-color: #742a2a;
    color: #feb2b2;
}

.single-post .comment-sorting {
    flex-wrap: wrap;
}

@media screen and (max-width: 440px) {
    .comment-respond .form-submit .submit {
        width: 100%;
    }
}
