/****** STORE SKRÆME ******/

@media only screen and (min-width: 1920px) {}


@media only screen and (max-width: 1640px) {
    section.basis-checkbox-section .section div.checkboxes-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
    }
}

/****** 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;
    }
    section.section-wrap.box-green-background-section .section .grid-elements{
        margin-inline: var(--gap-s);
    }
    body.single-post .page-slider-section .slider-text-inner .slider-text-inner-wrapper .case-box-container{
        bottom: unset;
    }
    .gallery-columns-3{
        grid-template-columns: repeat(2, 1fr);
    }
    body.single-post.sidebar-new:not(.no-sidebar) #primary{
        width: 100%;
    }
}

@media only screen and (max-width: 1160px) {
    section.basis-checkbox-section .section div.checkboxes-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    section.section-wrap.box-kontakt-os-section .section .grid-elements .box-kontakt-os-text .overlay div.kontakt-os-text-container{
        grid-template-columns: 1fr 1fr;
        gap: var(--gap-s);
    }
    body section.box-kontakt-section .section .box-kontakt-grouped-images .overlay{
        flex-wrap: wrap;
    }
}


/****** 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;
    }
    section.section-wrap.box-kontakt-os-section{
        background-size: cover;
    }
    section.section-wrap.box-kontakt-os-section .section .grid-elements{
        gap: 0;
    }
    aside#secondary .custom-overflow-wrapper section#black-studio-tinymce-3 .textwidget .gform_wrapper form .gform_footer{
        justify-content: flex-start;
    }
    .gallery-columns-4{
        grid-template-columns: repeat(3, 1fr);
    }
    
 

}

@media only screen and (max-width: 860px) {
    
}

@media only screen and (max-width: 810px) {
    .posts-archive-layout-2.posts-archive .post-thumbnail img{
        height: 440px;
    }
}


/****** 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;
    }
    .posts-archive-layout-2.posts-archive #primary{
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .gallery-columns-3{
        grid-template-columns: repeat(1, 1fr);
    }
}

@media only screen and (max-width: 685px) {
    section.basis-checkbox-section .section div.checkboxes-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .gallery-columns-4{
        grid-template-columns: repeat(2, 1fr);
    }
    body.single-post .page-slider-section .slider-text-inner .slider-text-inner-wrapper .case-box-container{
        width: 400px;
    }
}


@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;
    }
    section.box-ydelser-section .section .box-ydelser-item:last-of-type .overlay{
        padding-inline: 0;
    }
    section.box-ydelser-section .section .box-ydelser-item .overlay span.button-green{
        width: 100%;
    }
    section.box-ydelser-section .section .box-ydelser-item .overlay span.button-green a{
        width: 100%;
    }
    section.box-referencer-section .section .grid-elements{
        --grid-5-cols: 2;
    }
    section.page-slider-section .slider-text-inner .slider-text-inner-wrapper div.buttons-wrapper{
        display: flex;
        flex-direction: column;
        gap: 0;
    }
}


/****** MOBILER ******/

@media only screen and (max-width: 479px) {
    body:not(.home) .page-slider-section .slider-text-inner .slider-text-inner-wrapper h2{
        font-size: var(--h1);
    }
    .gallery-columns-4{
        grid-template-columns: repeat(1, 1fr);
    }
    section.page-slider-section .slider-text-inner .slider-text-inner-wrapper p:first-of-type{
        font-size: 16px;
    }
    body.single-post .page-slider-section .slider-text-inner .slider-text-inner-wrapper .case-box-container{
        width: 300px;
    }
    .footer-setting-03 .footer-widget-area-extra .textwidget{
        flex-wrap: wrap;
    }
}

@media only screen and (max-width: 400px) {
    body:not(.home) .page-slider-section .slider-text-inner .slider-text-inner-wrapper span.button-green a{
        padding: 10px 50px;
    }
}