/****** STORE SKRÆME ******/

@media only screen and (min-width: 1920px) {}


/****** BÆRBAR / MINDRE SKÆRME ******/

@media only screen and (max-width: 1440px) {
    :root body {
        /* Font sizes */
        --h1: 40px;
    }

    .page-slider-section .slider-text-inner .slider-text-inner-wrapper p {
        font-size: 16px;
    }

    .section-wrap.clear.cta-section .section .cta-container .element > p a {
        font-size: 18px;
    }

    .section-wrap.clear.news-section {
        margin-left: var(--gap-m);
        margin-right: var(--gap-m);
    }

    .new-stom-posts {
        column-gap: var(--gap-m);
    }
}

@media only screen and (max-width: 1240px) {
     :root body {
        /* Font sizes */
        --h1: 40px;
        --h2: 28px;
        --h3: 18px;
        --h4: 19px;
        --h5: 15px;
        --h6: 13px;
        --p: 15px;
        /* Gaps */
        --gap-l: 60px;
        --gap-m: 25px;
        --gap-s: 20px;
        /* Sidebar */
        --sidebar-width: 280px;
    }

    .stom-button a {
        padding: 11px 30px;
    }

    .stom-button.inline:not(:last-of-type) {
        margin-right: 10px;
        margin-bottom: 10px;
    }

    header .main-navigation ul.menu a {
        font-size: 14px;
    }

    header .top-bar ul li a {
        font-size: 14px;
    }

    .home .page-slider-section .image-aligner img {
        min-height: 60vh;
    }

    .new-stom-posts .new-stom-post-wrapper .new-stom-post-thumb > img {
        height: 230px;
    }

    #colophon.footer-setting-02 {
        font-size: var(--p);
    }

    .section-wrap.clear.cards-section .section .grid-elements .grid-element:not(.heading) .overlay > h2, 
    .section-wrap.clear.cards-section .section .grid-elements .grid-element:not(.heading) .overlay > h3 {
        font-size: 16px;
    }

    .medarbejder-container {
        grid-template-columns: repeat(3, 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;
    }

    .stom-button a {
        font-size: var(--p);
    }



    .section-wrap.clear.cta-section .section .cta-container .element > p a {
        font-size: var(--p);
    }

    .section-wrap.clear.news-section .section .new-stom-posts {
        grid-template-columns: 1fr;
        gap: var(--gap-l);
    }

    .new-stom-posts .new-stom-post-wrapper .new-stom-post-title > h4 {
        min-height: auto;
    }

    .new-stom-posts .new-stom-post-wrapper .new-stom-post-title {
        margin-bottom: 0;
    }

    .footer-setting-02 .footer-widget-area .section .grid-elements {
        grid-template-columns: 1fr;
        gap: var(--gap-l);
    }

    #colophon .widget-title {
        border-bottom: 1px solid #fff;
        padding-bottom: 10px;
    }

    .section-wrap.clear.cards-section .section .grid-elements .grid-element:not(.heading) > img {
        height: 250px;
    }

    .site-branding #logo img, 
    .site-branding #logo svg {
        max-height: 65px;
    }

    .header-sticky-active.scrolled header .site-branding #logo img.logo-landscape {
        max-height: 65px;
    }

    .section-wrap.clear.facebook-section .section .grid-elements {
        row-gap: var(--gap-l);
    }

    .section-wrap.clear.facebook-section .section .grid-elements .grid-element.content .overlay {
        padding-right: 0;
    }

    .section-wrap.clear.facebook-section .section .grid-elements .grid-element.image .overlay > p img {
        width: 100%;
    }

    div.stom-gallery .gallery {
        grid-template-columns: repeat(4, 1fr);
    }

    .section-wrap.clear.contact-section .section .grid-elements {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .section-wrap.clear.contact-section .section .grid-elements .grid-element.grid-span-2 {
        grid-column: inherit;
    }

    .section-wrap.clear.contact-section .section .grid-elements .grid-element .overlay {
        padding: 50px var(--gap-m);
    }

    .section-wrap.clear.cards-section .section .grid-elements .grid-element.heading {
        margin-bottom: 0;
    }

    .section-wrap.clear.cards-section .section .grid-elements {
        row-gap: var(--gap-m);
    }

    .section-wrap.clear.news-section .section .new-stom-posts {
        gap: var(--gap-l);
    }
}

@media only screen and (max-width: 810px) {}


/****** 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 .section-wrap.clear.stom-billede-sektion {
        margin-top: calc(var(--gap-l) * 1);
    }

    .stom-billede-sektion .stom-picture {
        padding-inline: var(--gap-m);
        margin-top: var(--gap-l);
    }

    .page-slider-section .cta-section {
        position: static;
        margin-inline: 0;
        border-bottom: 1px solid var(--color-1);
    }

    .section-wrap.clear.cta-section .section .cta-container .element:not(:last-of-type) {
        border-right: 1px solid var(--color-1);
    }

    .section-wrap.clear.news-section .section .container {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: var(--gap-l);
    }

    .section-wrap.clear.news-section .section .container > p a {
        font-size: var(--p);
    }

    .page-slider-section .slider-text-inner .slider-text-inner-wrapper p {
        font-size: var(--p);
    }

    .home .page-slider-section .image-aligner img {
        min-height: 40vh;
        height: 100%;
    }

    .section-wrap.clear.facebook-section {
        margin-top: calc(var(--gap-l) * 1);
    }

    #colophon .copyright {
        font-size: 12px;
    }

    header .top-bar ul li a {
        font-size: 12px;
    }

    body:not(.home) .entry-content p {
        font-size: var(--p);
    }

    body:not(.home) .entry-content ul li, 
    body:not(.home) .entry-content ol li {
        font-size: var(--p);
    }

    .stom-table table tbody tr th,
    .stom-table table tbody tr td {
        font-size: 12px;
    }

    .section-wrap.clear.news-section .section {
        padding-block: calc(var(--gap-l) * 1);
    }

    .footer-setting-02 .footer-widget-area .section {
        padding: 50px 0;
    }

    .medarbejder-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@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;
    }

    div.stom-gallery .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}


/****** MOBILER ******/

@media only screen and (max-width: 479px) {
    .section-wrap.clear.cta-section .section .cta-container {
        grid-template-columns: repeat(1, 1fr);
        border-radius: 0;
    }

    .section-wrap.clear.cta-section .section .cta-container .element {
        border-right: none;
    }

    .section-wrap.clear.cta-section .section .cta-container .element:not(:last-of-type) {
        border-bottom: 1px solid var(--color-1);
    }

    .site-branding #logo img, 
    .site-branding #logo svg {
        max-height: 40px;
    }

    body:not(.woocommerce-cart):not(.woocommerce-checkout) .header-sticky-active.scrolled header .site-branding #logo img {
        max-height: 40px;
    }
    
    .medarbejder-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media only screen and (max-width: 410px) {
    .new-stom-posts .new-stom-post-wrapper .new-stom-post-thumb > img {
        height: 200px;
    }
}