@media only screen and (max-width: 991px) {
    .share--row {
        flex-direction: column;
    }

    .shareContentBox {
        text-align: center;
    }

    .sharebtns {
        align-items: center;
    }

    .footer-logo {
        display: block;
        margin-inline: auto;
        margin-bottom: 25px;
    }

    form.newsletter-form {
        margin-top: 25px;
    }
}

@media only screen and (max-width: 769px) {
    .cmm-align-left {
        flex-direction: column;
    }
    
    .cmm-align-right {
        flex-direction: column-reverse;
    }

    .cmm-align-left > *,
    .cmm-align-right > * {
        width: 100%;
    }

    .two-column-content {
        flex-direction: column;
        gap: 0;
    }

    .comments-wrapper {
        height: auto;
        max-height: 385px;
    }
}

@media only screen and (min-width: 768px) {
    ul#menu-header li.menu-item:hover > ul.sub-menu {
        max-height: fit-content !important;
        display: flex;
    }

    ul.sub-menu {
        display: none;
    }

    li.menu-item:hover > ul.sub-menu {
        display: block;
        opacity: 1 !important;
        transition: none;
    }

    ul#menu-header > li.menu-item.menu-item-has-children:hover > a:after {
        transform: rotate(180deg);
        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        -o-transform: rotate(180deg);
    }
}

@media only screen and (max-width: 767px) {
    header {
        height: 120px;
    }

    section.menuHeader {
        background-color: rgb(var(--quinary--color));
    }

    ul#menu-header {
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
        padding-block: 10px;
    }

    ul#menu-header li.menu-item {
        width: 100%;
    }

    ul#menu-header > li.menu-item > a {
        padding: 5px;
        display: inline-block;
        position: relative;
    }

    ul#menu-header ul.sub-menu > li.menu-item > a {
        /* display: inline-block; */
        position: relative;
    }

    ul#menu-header ul.sub-menu {
        position: relative;
        width: 100%;
        max-height: 0;
        padding: 0;
        opacity: 0;
        box-shadow: none;
        gap: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
        -webkit-transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
        -moz-transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
        -ms-transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
        -o-transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
    }

    ul#menu-header ul.sub-menu > li.menu-item > a {
        /* text-align: right; */
        padding: 5px 10px 5px 25px;
    }

    ul#menu-header ul.sub-menu > li.menu-item > a:before {
        content: "";
        width: 10px;
        height: 2px;
        background-color: rgba(var(--primary--color), .1);
        position: absolute;
        top: 16px;
        left: 6px;
    }

    ul#menu-header ul.sub-menu > li.menu-item:hover > a {
        background-color: transparent;
    }

    ul.sub-menu.is-open {
        display: flex;
        padding: 3px;
        opacity: 1;
        max-height: 500px;
    }

    ul#menu-header > li.menu-item.menu-item-has-children > a:after {
        top: 14px;
    }

    ul#menu-header > li.menu-item > a:after {
        transform: rotate(270deg);
        -webkit-transform: rotate(270deg);
        -moz-transform: rotate(270deg);
        -ms-transform: rotate(270deg);
        -o-transform: rotate(270deg);
    }

    ul#menu-header > li.menu-item.is-active > a:after {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
    }

    ul#menu-header > li.menu-item.menu-item-has-children > a {
        padding-right: 20px;
    }

    .btnbox a {
        width: 40px;
        height: 40px;
    }

    .btnbox a i {
        font-size: 18px;
    }

    .section-row-small {
        padding: 25px 15px;
    }

    .social--media--container a {
        line-height: 35px;
        width: 35px;
        height: 35px;
        border: 2px solid rgb(var(--quinary--color));
    }

    .have-your-say-wrapper .content-wrapper,
    .posts-grid__description {
        margin-bottom: 25px;
    }

    div[class*="cmm-align-"] {
        gap: 25px;
    }

    .posts-single__single-post_img {
        height: auto;
    }

    .posts-single__single-post_img img {
        width: 100%;
        height: auto;
    }
}

@media only screen and (max-width: 575px) {
    .posts-grid__single-post_excerpt p {
        height: auto;
    }
}