/**
Theme Name: astra-child
Author: Extrude
Author URI: https://extrude.se
Description: Child theme made for Johan No.1
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/


main {
    box-shadow: 0px 0px 33px rgba(51,61,85,0.17);
    background-color: #fff !important;
}
.home main,
.archive main {
    background-color: unset !important;
}

body.archive .ast-archive-description {
    padding: 20px;
}

h2, .entry-content :where(h2) {
    font-size: 1.4em;
} 

h3, .entry-content :where(h3) {
    font-size: 1.2em;
} 

body.archive .ast-archive-description .ast-archive-title {
        font-size: 1.2rem;
}

.ast-comment-list li {
    padding-left: 0px !important;
    padding-right: 0px !important;

}

.ast-article-single figure {
    box-shadow: unset;
    -webkit-box-shadow: unset;
    -moz-box-shadow: unset;
}



#comments.comments-area article .comment li {
    list-style-type: disc;
}



article.post {
    background-color: rgb(255,248,220) !important; 

}

.home article.post,
.archive article.post {
    background-color: transparent !important;
}



#comments {
    margin-top: unset !important;
}

.nav-links {
    background-color: #fff !important;
    padding-bottom: 32px;
}




.ast-comment-list li.depth-1 .children .ast-comment{
    margin-left: 2em;
    background-color: #fff;
}


.ast-comment-list li.depth-1 .ast-comment{
    background-color: #f9edd2;
    background-color: #f8f2cd;
    background-color: #f9f0d2;
    background-color: #ecf3f9;
    background-color: #e5f2fc; /* Light blue */
    
}

.ast-comment-list li.depth-1 .children li.depth-2 .ast-comment{
    background-color: #f6fbff; /* Lighter blue */
    
}

.ast-comment-list li.depth-1 .children li.depth-2 .children .ast-comment{
    background-color: #ffff; 
    
}



article.ast-comment {
    padding-top: 1em;
    padding-bottom: 0.7em;
    padding-left: 1em;
    border: solid 1px #ebedfd !important;
    border: solid 1px rgb(253,245,217) !important; /* Light Yellow darker*/
    border: solid 1px rgb(243,235,207) !important;
    border: solid 1px #ebebeb !important;


}

.ast-comment-list > li > article.ast-comment {
    border-bottom: solid 0px #fff !important;
    border-top: solid 5px #fff !important;
}

li.bypostauthor > article {
    background-color: #ecf3f9 !important; /* Light Blue*/
    background-color: #fefbf1 !important; /* Lighter Yellow*/
}


li.bypostauthor.depth-1 > article {
    background-color: #ecf3f9 !important; /* Light Blue*/
    background-color: #f9f1d3 !important; /* Light Yellow*/
}



#comments .ast-comment-list li.bypostauthor {
    padding-top: 0px;
    padding-bottom: 0px;
}

.site-header-section {
    padding-left: 0px;
}

.entry-content .wp-audio-shortcode, .entry-content .wp-embedded-audio, .entry-content .wp-embedded-video, .entry-content .wp-video, .entry-content p {
    margin-bottom: 1.0em;
}

.site-branding {
    padding-left: 20px !important;
}



.comments-area.comment-form-position-below > h3.comments-title {
    padding: 1em 2em;
    font-size: 1rem;

}

.ast-article-post .post-thumb-img-content img {
    object-fit: cover
}

.ast-comment-info {
    margin-bottom: 0.4em;
}


.ast-comment-content.comment {
    padding-left: 70px;

}


.ast-comment-content.comment p {
    margin-bottom: 0.7em;
    line-height: 1.4em;
}


.ast-comment-content.comment p:last-of-type {
    margin-bottom: 0.4em;
}



#masthead .ast-container, .site-header-focus-item + .ast-breadcrumbs-wrapper {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

h2 a:hover {
    color:#334155;
    text-decoration: underline;
}

a:focus,a:hover {
    color: #141465;
}

/*
Menu #FFF #68A7FA #EAD47C
#185C87
*/

article.ast-comment {
    border-top-width: 2px;

}



section.ast-comment-content.comment {
    padding-left: 0px;
}


.ast-comment-list li.depth-1 .children .ast-comment {
    margin-left: 1.4em;
    padding-left: 1.4em;
    background-color: #fff;
}

.ast-comment-list .children {
    margin-left: 1.1em;
    margin-left: 0em;

}

.ast-comment-list .children {
    margin-left: 0em;
}

.ast-comment-list .children .children {
    margin-left: 1.3em;
}

.ast-scroll-to-top-right {
    right: 20px;
    bottom: 20px;
}

#trp-floater-ls.trp-bottom-right {
    right: 15%;
}

#trp-floater-ls {
    height: 52px;
}


#trp-link-id {
        display:none;
}


.twitter-tweet.twitter-tweet-rendered {
    max-width: 435px !important;
}

.single .post-navigation {
    margin: 0;
    padding: 2em 2.5em 0;
    border-top: 1px solid var(--ast-single-post-border,var(--ast-border-color));
}




button.zoom-btn {
    margin-top: 6px;
    margin-bottom: 12px;
    display: block;
    padding: 6px 9px;
    font-size: 13px;
    text-transform: uppercase   ;
    background-color: rgb(24, 92, 135);
}

button.zoom-btn:hover {
    color: #ffd500;
}

#image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background: transparent;
    max-width: 90%;
    max-height: 90%;
}

#modal-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

  

.close-modal {
    position: absolute;
    top: -1px;
    right: -57px;
    font-size: 50px;
    font-weight: bold;
    color: white;
    
    cursor: pointer;
    background: rgb(24, 92, 135);
  
    width: 44px;
    height: 44px;
    text-align: center;
    line-height: 34px;
    padding-left: 2px;
}

.close-modal:hover {
    color: #ffd500;
}



@media screen and (max-width: 768px) {

    .close-modal {
        top: -40px;
        right: 5px;
        background: transparent;
    }
}  




.exce-comment ul li {
    list-style-type: disc !important;
}

.exce-comment ol {
    list-style-type: decimal !important;
}

.exce-comment ol li {
    list-style-type: decimal !important;
}

#secondary .widget {
    padding: 1.4em 1.8em 1.6em 1.8em !important;
}
#secondary h2 {
    font-size: 1.5rem;
}

.widget-title {
    font-weight: 400;
    margin-bottom: 0.2em;
    line-height: 1.5;
}
#secondary,
#secondary p{
    line-height: 1.5;
    margin-bottom: 1.5em;
}

.entry-content ul li, .entry-content ol li {
    margin-bottom: 5px !important;
}

.jn-btn{
    border-style: solid;
    border-top-width: 0;
    border-right-width: 0;
    border-left-width: 0;
    border-bottom-width: 0;
    color: #ffffff;
    border-color: var(--ast-global-color-0);
    background-color: var(--ast-global-color-0);
    padding: 13px 20px;
    font-family: inherit;
    font-weight: 500;
    font-size: 18px;
    font-size: 1rem;
    line-height: 1em;
    border-radius: 4px;
    text-align: center;
}

.jn-btn:hover{ 
    background-color: #ffd500;
    color: #005bbb;
}

.widget a.jn-link-btn{
    display: block;
    width: 100%;
}

.ukraine-btn {
    background-color: #ffd500;
    color: #005bbb;
}

.ukraine-btn:hover {
    background-color: #005bbb;
    color: #ffd500;
}

.jn-hr {
    width: 100%;
    background-color: var(--ast-global-color-0);
    height: 3px;
}

#donate-button-container {
    text-align: center;
    margin-bottom: 20px;
}


#ext-scroll-bottom {
    position: absolute;
    right: 21px;
    top:158px;
    font-size: 15px;
    color: #fff;
    background-color:#185c87;
    text-align: center;
    cursor: pointer;
    z-index: 99;
    width: 2.7em;
    height: 2.7em;
    line-height: 2.7;
    color: #ffffff;
    border-radius: 2px;
    content: "";
    outline: inherit;

}

#ext-scroll-bottom .ext-icon.ext-icon-arrow svg {
    margin-left: 0px;
    vertical-align: middle;
    width: 1.6em;
    fill: #fff;
}

@media screen and (max-width: 1000px) {

    #ext-scroll-bottom {
        right: 21px;
        top:203px;
    } 
} 

@media screen and (max-width: 921px) {

    #ext-scroll-bottom {
        right: 28px;
        top:124px;
        border: solid 1px #fff;
    } 
}   


@media screen and (max-width: 544px) {

    #ext-scroll-bottom {
        right: 17px;
    } 
}   

@media screen and (min-width: 920px) {

    .ast-comment-content.comment.entry-content {
        max-width: 850px !important;
        padding-right: 14px;
    }

    article .entry-content p {
        max-width: 850px !important;
        margin-left: unset !important;
    }


    article.ast-comment {
        padding-left: 2.5em !important;
    }

    .ast-comment-list li.depth-1 .children .ast-comment {
        margin-left: 2.5em;
    }

    .ast-comment-list .children li {
        padding-left: 1.4em !important;
    }

}

.losses img {
    max-width: 580px;
}





img[src*="twimg.com/emoji/"],
img[src*="abs-0.twimg.com/emoji/"] {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-left: 0.075em;
  margin-right: 0.075em;
  vertical-align: -20%;
} 


img.r-4qtqp9.r-dflpy8.r-k4bwe5.r-1kpi4qh.r-pp5qcn.r-h9hxbl,
svg.r-4qtqp9.r-dflpy8.r-k4bwe5.r-1kpi4qh.r-pp5qcn.r-h9hxbl {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-left: 0.075em;
  margin-right: 0.075em;
  vertical-align: -20%;
}

.site-announcement {
    background-color: #f5f5f5;
    background-color: #fbfcfd;
    padding: 5px 40px;
    border: 2px solid rgba(24, 92, 135,0.2);
    margin: 30px 0px 0px 0px !important;
    font-size: 1.1em;
}

.site-announcement h3 {
    margin-top: 0.5em;
}

.site-announcement p {
    font-size: 15px;
}

@media screen and (max-width: 920px) {

    article.ast-comment {
        padding-right: 0.5em !important;
    }

}

@media screen and (min-width: 768px) {

    .twitter-tweet.twitter-tweet-rendered {
        max-width: 360px !important;
    }

    
}

.comment-img-wrapper {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 25px !important;
    vertical-align: top;
    max-height: 270px;
    padding-right: 14px;
    max-width: 100%;

}

.ast-comment-content.comment img{
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 250px; /* Justera detta värde om du vill ha en annan maxhöjd */
}

@media screen and (max-width: 768px) {

    .site-announcement {
        margin: 15px 0px 0px 0px !important;
        padding: 5px 10px;
    }


    .comment-img-wrapper {
        max-height: 220px;
    }    

    .ast-comment-content.comment img{
        max-height: 200px;
    }        


    button.zoom-btn {
        margin-top: 6px;
        display: block;
        padding: 5px 8px !important;
        font-size: 12px !important;
        background-color: rgb(24, 92, 135);
    }    



    #image-modal .modal-content,
    #image-modal #modal-image{
        max-width: 100% !important;;
        width: 100% !important;;
        height: auto;
        max-height: unset; 
    }   

    .losses img {
        max-width: 100% !important;
    }

    .comment-respond {
        padding: 1.5em !important;
        padding-left: 1em !important;
        padding-right: 3em !important;
    }
}


/*** POLLS ***/
.wp-polls .Buttons {
    color:#185c87;
    padding: 3px 5px;
}

@media screen and (max-width: 590px) {

    /*
     * TinyMCE image popup only.
     */
    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        left: 12px !important;
        right: auto !important;
        height: 320px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-window-body {
        width: 100% !important;
        height: 230px !important;
        box-sizing: border-box !important;
    }

    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-form,
    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-form > .mce-container-body {
        width: 100% !important;
        height: 230px !important;
        box-sizing: border-box !important;
    }

    /*
     * Varje rad i formuläret.
     */
    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-formitem {
        left: 12px !important;
        width: calc(100% - 24px) !important;
        height: 72px !important;
        box-sizing: border-box !important;
    }

    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-formitem > .mce-container-body {
        width: 100% !important;
        height: 72px !important;
        box-sizing: border-box !important;
    }

    /*
     * Flytta ner raderna eftersom labels nu ligger ovanför fälten.
     */
    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-formitem:nth-of-type(2) {
        top: 12px !important;
    }

    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-formitem:nth-of-type(3) {
        top: 78px !important;
    }

    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-formitem:nth-of-type(4) {
        top: 144px !important;
    }

    /*
     * Labels ovanför fälten.
     */
    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-formitem label.mce-label {
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 20px !important;
        line-height: 20px !important;
        box-sizing: border-box !important;
    }

    /*
     * Källa och bildbeskrivning.
     */
    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-formitem > .mce-container-body > .mce-combobox,
    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-formitem > .mce-container-body > .mce-filepicker,
    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-formitem > .mce-container-body > input.mce-textbox:not([aria-label="Width"]):not([aria-label="Height"]) {
        left: 0 !important;
        top: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-combobox input.mce-textbox,
    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-filepicker input.mce-textbox {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /*
     * Containern för Mått-raden.
     */
    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-formitem div[aria-labelledby] {
        left: 0 !important;
        top: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .mce-checkbox.mce-abs-layout-item.mce-last.mce-checked {
        margin-top: 12px;
    }

    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] input[aria-label="Width"],
    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] input[aria-label="Height"] {
        width: 48px !important;
        max-width: 48px !important;
        height: 28px !important;
        box-sizing: border-box !important;
    }

    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] input[aria-label="Width"] {
        left: 0 !important;
        top: 0 !important;
    }

    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] input[aria-label="Height"] {
        left: 68px !important;
        top: 0 !important;
    }

    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] input[aria-label="Width"] + span.mce-label {
        left: 57px !important;
        top: 5px !important;
        width: 8px !important;
    }

    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-checkbox {
        left: 0 !important;
        top: 36px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-checkbox .mce-label {
        white-space: nowrap !important;
    }

    /*
     * Footer.
     */
    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-foot {
        top: 282px !important;
        width: 100% !important;
        height: 52px !important;
        box-sizing: border-box !important;
    }

    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-foot > .mce-container-body {
        width: 100% !important;
        height: 52px !important;
        box-sizing: border-box !important;
    }

    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-foot .mce-btn {
        top: 10px !important;
    }

    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-foot .mce-primary {
        left: auto !important;
        right: 78px !important;
    }

    .mce-floatpanel.mce-window.mce-in[aria-label="Insert/edit image"] .mce-foot .mce-btn.mce-last {
        left: auto !important;
        right: 12px !important;
    }
    #comment_ifr {
        width: calc(100% - 1px) !important;
    }

    .comments-area .form-submit {
        margin-top: 8px !important;
    } 
    
    


}

ul.sub-menu li.menu-item > .menu-link {
    font-size: 1em;
}

