/****** STORE SKRÆME ******/

@media only screen and (min-width: 1920px) {}


/****** BÆRBAR / MINDRE SKÆRME ******/

@media only screen and (max-width: 1240px) {
     :root body {
        /* Font sizes */
        --h1: 43px;
        --h2: 28px;
        --h3: 22px;
        --h4: 19px;
        --h5: 15px;
        --h6: 13px;
        --p: 15px;
        /* Gaps */
        --gap-l: 60px;
        --gap-m: 25px;
        --gap-s: 20px;
        /* Sidebar */
        --sidebar-width: 280px;
    }

    body:not(.no-sidebar) #primary{
        width: 100%;
    }

    .home .site-main .site-content .content-area .page .clearfix .stom-posts{
        grid-template-columns: repeat(2, 1fr);
    }

    aside.widget-area .custom-overflow-wrapper{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        max-width: 100%;
        padding-top: 30px;
    }

    .category .content-area .article-wrapper{
        grid-template-columns: repeat(2, 1fr);
    }

    .related-posts-section .related-grid{
        grid-template-columns: repeat(2, 1fr);
    }

   
}


/****** IPADS - VERTIKALT ******/

@media only screen and (max-width: 959px) {
     :root body {
        /* Grid columns */
        --grid-2-cols: 1;
        --grid-3-cols: 2;
        --grid-4-cols: 2;
        --grid-5-cols: 3;
        --grid-6-cols: 3;
        --grid-7-cols: 4;
        --grid-8-cols: 4;
        --grid-9-cols: 5;
        --grid-10-cols: 5;
        --grid-11-cols: 6;
        --grid-12-cols: 6;
    }
    /* Move this rule if you change the the grid columns */
    .last-on-mobile {
        order: 66;
    }

    .site-footer .section-wrap .section .grid-elements .grid-element .overlay .footer-widgets .widget ul{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    header .nav-wrap{
        justify-content: flex-end !important;
    }

    .page .entry-content .stom-posts{
        grid-template-columns: repeat(2, 1fr);
    }

   
    
}

@media only screen and (max-width: 810px) {
     .page-slider-section .slide-element .slider-text .slider-text-inner .white-text h1{
        font-size: 4vw;
    }

    /*.page-slider-section .slide-element .slider-text .slider-text-inner .white-text p{
        font-size: 2vw;
        max-width: 800px;
        padding-inline: 40px;
    }*/

    .page-slider-section .slide-element .slider-text .slider-text-inner .white-text h1 {
        font-size: clamp(16px, 4vw, 35px) !important;
    }

    .page-slider-section .slide-element .slider-text .slider-text-inner .white-text p {
        font-size: clamp(12px, 1.8vw, 16px) !important;
    }
}


/****** MINDRE END IPADS VERTIKALT ******/

@media only screen and (max-width: 782px) {}

@media only screen and (max-width: 767px) {
     :root body {
        /* Font sizes */
        --h1: 30px;
        --h2: 25px;
        --h3: 20px;
        --h4: 18px;
        --h5: 14px;
        --h6: 12px;
        --p: 14px;
        /* Gaps */
        --gap-l: 50px;
        --gap-m: 20px;
        --gap-s: 15px;
        /* Outer margin */
        --content-margin: 0;
    }

    .home .wrapper h2{
        font-size: 25px;
    }

    .page-slider-section .slide-element .slider-text .slider-text-inner .white-text p{
        max-width: 700px;
    }

    .custom-info-image,
    .custom-info-content{
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    
}

@media only screen and (max-width: 639px) {
     :root body {
        /* Grid columns */
        --grid-2-cols: 1;
        --grid-3-cols: 1;
        --grid-4-cols: 1;
        --grid-5-cols: 1;
        --grid-6-cols: 1;
        --grid-7-cols: 1;
        --grid-8-cols: 1;
        --grid-9-cols: 1;
        --grid-10-cols: 1;
        --grid-11-cols: 1;
        --grid-12-cols: 1;
    }

    .home .site-main .site-content .content-area .page .clearfix .stom-posts{
        grid-template-columns: 1fr;
    }

    aside.widget-area .custom-overflow-wrapper{
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .category .content-area .article-wrapper{
        grid-template-columns: 1fr;
    }

    .related-posts-section .related-grid{
        grid-template-columns: 1fr;
    }

    .page-slider-section .slide-element .slider-text .slider-text-inner .white-text p{
        max-width: 450px;
    }

    .site-footer .section-wrap .section .grid-elements .grid-element .overlay .footer-widgets .widget ul{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .page .entry-content .stom-posts{
        grid-template-columns: 1fr;
    }

}


/****** MOBILER ******/

@media only screen and (max-width: 479px) {
    .page-slider-section .slide-element .slider-text .slider-text-inner .white-text p{
        max-width: 300px;
    }

    .site-footer .section-wrap .section .grid-elements .grid-element .overlay .footer-widgets .widget ul{
        display: grid;
        grid-template-columns: 1fr;
        text-align: center;
    }
    .instantsearch-trigger{
        width: 100% !important;
    }

    .page-slider-section .slider-text{
        padding: var(--gap-s);
    }
}

@media only screen and (max-width: 400px) {}