/**
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;
}


body.archive .ast-archive-description .ast-archive-title {
        font-size: 1.2rem;
}

.ast-comment-list li {
    padding-left: 0px !important;
    padding-right: 0px !important;

}


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;


}


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*/
}

.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));
}


.ast-comment-content.comment img{
    max-width: 768px;
    width: auto;
    height: auto;
    max-height: 250px; /* Justera detta värde om du vill ha en annan maxhöjd */
}

button.zoom-btn {
    margin-top: 3px;
    display: block;
    padding: 6px 9px;
    font-size: 13px;
    background-color: rgb(24, 92, 135);
}

#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: 10px;
    right: 15px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 35px;
}

.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;
    }

    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;
}

.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;
    }

    
}

@media screen and (max-width: 768px) {

    .site-announcement {
        margin: 15px 0px 0px 0px !important;
        padding: 5px 10px;
    }


    button.zoom-btn {
        margin-top: 3px;
        display: block;
        padding: 5px 8px !important;
        font-size: 12px !important;
        background-color: rgb(24, 92, 135);
    }    

    .ast-comment-content.comment img{
        max-width: 40% !important;
        height: auto !important;
        max-height: unset !important;
    }    
    #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;
    }
}


@media screen and (max-width: 590px) {

   


    .twitter-tweet.twitter-tweet-rendered {
        max-width: 550px !important;
    }

    #trp-link-id {
        display:none;
    }
}


/*** POLLS ***/
.wp-polls .Buttons {
    color:#185c87;
    padding: 3px 5px;
}


