/****** STORE SKRÆME ******/

@media only screen and (min-width: 1920px) {
    body:not(.woocommerce-cart):not(.woocommerce-checkout) .header-placeholder {
        height: 180px !important;
    }
}
@media only screen and (max-width: 1870px) {
    .section-wrap.stom-grid-section.box-section .section .grid-elements .overlay h4 a {
        font-size: 16px;
    }
}
@media only screen and (max-width: 1670px) {

    header .main-navigation ul.menu#primary-menu a {
        font-size: 16px;
    }
}
@media only screen and (max-width: 1630px) {
    :root body {
        --grid-5-cols: 3;
    }
    header .main-navigation ul.menu#primary-menu a {
        padding: 0.7em 0.2em;
    }
    #masthead .contact-btn-top-bar .stom-button a {
        font-size: 16px;
    }
    /*======================================================================//
    // top-bar                                                              //
    //======================================================================*/
    body .style-header-03 .section-wrap.top-bar  {
        padding-inline:var(--gap-l);
    }
    .site-header .header-wrapper {
        padding-inline: var(--gap-l);
    }
    /*======================================================================//
    // text-slider                                                          //
    //======================================================================*/
    body:not(.home) .page-slider-section .slider-text-inner {
        margin-inline: var(--gap-l) var(--gap-l);
    }
    body:not(.home) .page-slider-section .slider-inner .slides {
        right: var(--gap-l);
    }
    
    /* forside-headers */
    body .section-wrap.forside-header {
        margin-inline: var(--gap-l);
    }
    /* box-section */
    body .section-wrap.stom-grid-section.box-section {
        margin-inline: var(--gap-l);
    }
    /*======================================================================//
    // picture-left-section                                                 //
    //======================================================================*/
    body .section-wrap.stom-billede-sektion.picture-left-section {
        margin-inline: var(--gap-l);
    }
    /*======================================================================//
    // column-box-section                                                   //
    //======================================================================*/
    body .section-wrap.kompetence-header {
        margin-inline: var(--gap-l);
    }
    body .section-wrap.stom-grid-section.column-box-section {
        margin-inline: var(--gap-l);
    }
    /* nyheder-boxes */
    body .section-wrap.nyheder-section .section  {
        margin-inline: var(--gap-l);
    }
    /* footer */
    #colophon.footer-setting-03 .footer-widget-area .section {
        margin-inline: var(--gap-l);
    }
    /* underside */
    body:not(.home) .page-slider-section .slider-inner .slides {
        right: var(--gap-l);
    }
    body .section-wrap.subpage-content .section .left-section {
        margin-inline: var(--gap-l);
    }
    .left-section {
        width: 100%;
        width: 680px;
        padding-right: calc(var(--gap-l) + var(--gap-m));;
    }
    /* column-box-section */
    body .stom-grid-section.column-box-section .grid-element .overlay h3 {
        font-size: 26px;
    }
    .posts-archive-layout-2.posts-archive #content {
        margin-inline: var(--gap-m);
    }
    body.single.single-post #content {
        margin-inline: var(--gap-m);
    }
}
@media only screen and (max-width: 1550px) {
    .section-wrap.clear.search-wrapper {
        width: 132px;
    }
    body .stom-grid-section.column-box-section .grid-element .overlay img {
        min-height: 250px;
        max-height: 200px;
    }
}
/****** BÆRBAR / MINDRE SKÆRME ******/

@media only screen and (max-width: 1440px) {
     :root body {
        /* Font sizes */
        --h1: 43px;
        --h2: 35px;
        --h3: 32px;
        --h4: 19px;
        --h5: 15px;
        --h6: 13px;
        --p: 15px;
        /* Gaps */
        --gap-l: 60px;
        --gap-m: 25px;
        --gap-s: 20px;
        /* Sidebar */
        --sidebar-width: 280px;
    }
    /*======================================================================//
    // top-bar                                                              //
    //======================================================================*/
    body .style-header-03 .section-wrap.top-bar  {
        display: block;
        padding-inline:var(--gap-m);
    }
    .style-header-03 .section-wrap.clear.search-wrapper {
        justify-content: start;
    }
    .site-header .header-wrapper {
        max-width: unset;
        padding-inline: var(--gap-m);
    }
    /* slider-inner */
    body:not(.home) .page-slider-section .slider-text-inner {
        margin-inline:  var(--gap-m);
    }
    body:not(.home) .page-slider-section .slider-text-inner .slider-text-inner-wrapper p:last-of-type {
        max-width: 100%;
    }
    .slider-btn-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    body:not(.home) .page-slider-section .image-aligner img {
        object-position: top;
    }
    /* slider-img */
    body:not(.home)  .page-slider-section .slider-inner .slides {
        position: relative;
        top: unset;
        bottom: -60px;
        max-height: 400px;
        height: 100%;
        width: auto;
        right: unset;
        border-radius: 80px 0 80px 0;
        overflow: hidden;
        box-shadow: -3px -1px 33px #6565659e;
        margin-inline: var(--gap-m);
    }    
    #page header .main-navigation .number-three-burger-menu-content .menu-item-907 a {
        display: flex;
        justify-content: center;
        text-align: center;
        width: 200px;
        padding: 12px 20px;
        margin: 0 auto;
    }
    #site-navigation.main-navigation .current-menu-ancestor>a, #site-navigation.main-navigation .current-menu-ancestor:after {
        color: unset;
    }
    /* forside-header */
    body .section-wrap.forside-header {
        margin-top: calc(2 * var(--gap-l));
        margin-inline:  var(--gap-m);
    }
    body .section-wrap.forside-headers .section {
        max-width: unset;
    }

    /* box-section */
    .section-wrap.stom-grid-section.box-section .section .grid-elements .overlay h4 a {
        font-size: 16px;
    }
    body .stom-grid-section.box-section .grid-element {
        border-radius: 20px;
    }   
    body .stom-grid-section.box-section .grid-element .overlay {
        justify-content: start;
    }
    body .section-wrap.stom-grid-section.box-section {
        margin-top: var(--gap-s);
        margin-inline: var(--gap-m);
    }
    body .section-wrap.stom-grid-section.box-section .section{
        max-width: unset;
    }
    /* picture-left-section */
    body .section-wrap.stom-billede-sektion.picture-left-section {
        margin-top: calc(2 * var(--gap-l));
        margin-inline: var(--gap-m);
    }
    body .section-wrap.stom-billede-sektion.picture-left-section .section {
        padding: 0;
        max-width: unset;
    }
    body .section-wrap.stom-billede-sektion.picture-left-section .stom-picture img {
        border-radius: 40px;
    }
    body .section-wrap.kompetence-header {
        margin-top: var(--gap-l);
        margin-inline:  var(--gap-m);
    }
    body .section-wrap.kompetence-header .section {
        max-width: unset;
    }
    /* column-box-section */
    body .section-wrap.nyheder-section .section  {
        margin-inline: var(--gap-m);
    }
    body .section-wrap.stom-grid-section.column-box-section {
        margin-top: var(--gap-s);
        margin-inline: var(--gap-m);
    }
    /* nyheder-header */
    body .section-wrap.nyheder-section {
        margin-top: calc(2 * var(--gap-l));
        border-radius: 40px 40px 0 0;
    }
    body .section-wrap.nyheder-section .section .nyheder-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    /* footer */
    #colophon.footer-setting-03 .footer-widget-area .section {
        max-width: unset;
        padding: var(--gap-l) 0;
        margin-inline: var(--gap-m);
    }
    /* underside */
    body:not(.home) .page-slider-section .slider-inner .slides {
        position: relative;
        top: unset;
        bottom: 0px;
        max-height: 400px;
        height: 100%;
        width: auto;
        right: unset;
        border-radius: 80px 0 80px 0;
        overflow: hidden;
        box-shadow: -3px -1px 33px #6565659e;
        margin-inline: var(--gap-m);
        margin-left: 0;
    }
    body:not(.home) .site section.page-slider-section .slider-inner .slider-text {
        grid-row: 1;
        grid-column: unset;
        padding: var(--gap-m) 0;
        min-height: unset;
    }
    body .section-wrap.subpage-content .section .left-section {
        padding-right: 0;
        margin-inline: var(--gap-m);
    }
    .left-section {
        width: 550px;
        padding-right: calc(var(--gap-l) + var(--gap-m));;
    }
}

@media only screen and (max-width: 1240px) {
    
    :root body {
        --grid-5-cols: 2;
    }
    /* slider-inner */
    body:not(.home) .page-slider-section .slider-inner .slides {
        margin-inline: var(--gap-m);
    }
    body:not(.home) .site section.page-slider-section .slider-inner {
        grid-template-columns: repeat(1,minmax(0,1fr));
    }
    body:not(.woocommerce-cart):not(.woocommerce-checkout) .header-placeholder {
        height: 153px !important;
    }
    .site-branding #logo {
        padding: 0;
    }
    /* logo */
    .header-sticky-active.scrolled header .site-branding #logo img:not(.logo-landscape) {
        max-height: 120px;
    }
    /* slider-text-wrapper */
    body.home .page-slider-section .slider-text-inner .slider-text-inner-wrapper {
        background-color: rgba(255, 255, 255, 0.6);
    }
    /* column-box-section */
    body .stom-grid-section.column-box-section .grid-element .overlay h3 {
        font-size: 20px;
    }
    /* nyheder-forside */
    body .section-wrap.nyheder-section .section  {
        padding-block: var(--gap-l);
    }
    /* logo */
    .site-branding #logo img, .site-branding #logo svg {
        max-height: 120px;
    }
    body .new-stom-posts.stom-css-grid.columns-4 {
        grid-template-columns: 1fr 1fr;
    }
    /* footer */
    #colophon .widget-title {
        margin-bottom: 10px;
        font-size: 25px;
        font-weight: normal;
    }
    body .section-wrap.subpage-content .section .left-section {
        padding-right: var(--gap-l);
        margin-inline: var(--gap-m);
    }
    .stom-grid-section .section.columns-2 .grid-elements {
        grid-template-columns: 1fr;
    }
    /* left-section */
    .left-section {
        width: 100%;
        padding-right: calc(var(--gap-l) + var(--gap-m));;
    }
    /* right-section */
    #employees {
        display: block;
    }
    #employees .section .stom-button a {
        display: block;
        position: fixed;
        top: calc(30% - 170px);
        transform: translateY(50%);
        right: 0;
        background-color: var(--color-1);
        border-color: var(--color-1)!important;
        padding: 20px 6px;
        writing-mode: vertical-rl;
        cursor: pointer;
        transition: all ease-in-out 0.175s;
        pointer-events: all;
        z-index: 400;
        color: var(--color-white);
        font-size: 20px;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 400;
        width: fit-content;
        border-radius: 0;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        min-height: 130px;
    }
    
    body.home #employees .section .stom-button a {
        display: none;
    }
    .stom-grid-section.subpage-content .right-section {
        position: fixed;
        border-bottom-left-radius: var(--radius-l);
        right: -1999px;
        height: calc(100vh - var(--header-height));
        display: block;
        overflow: scroll;
        bottom: 0;
        max-width: 100%;
    }
    /*======================================================================//
    // medarbejdere                                                         //
    //======================================================================*/
    /* medarbejdere */
    /* underside medarbejder-section */
    body .section-wrap.center-text.medarbejdere-header.stom-lazyload-excluded {
        margin-top: var(--gap-m);
        margin-bottom: var(--gap-m);
    }
    /* contact */
    .section-wrap.stom-grid-section.subpage-content.underline-form.section-fullpage {
        margin-top: var(--gap-m);
    }
}

/****** 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: 2;
        --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;
    }
    body .section-wrap.nyheder-section .section .nyheder-header {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: start;
    }
    /* cookie */
    .cm-repop-element .repop-consent-wrapper {
        bottom: 70px;
    }
    body.single .entry-content .gallery img {
        max-width: 100%;
        height: auto;
    }
    
}

@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;
        --grid-5-cols: 2;
    }
    body:not(.woocommerce-cart):not(.woocommerce-checkout) .header-placeholder {
        height: 120px !important;
    }
    .style-header-03 .section-wrap.clear.search-wrapper {
        justify-content: end;
    }
    body .style-header-03 .header-inner {
        margin-top: 0;
    }
    /* slider-text-wrapper */
    body.home .page-slider-section .slider-text-inner .slider-text-inner-wrapper {
        padding: 30px;
    }
    body .stom-grid-section.box-section .grid-element .overlay {
        justify-content: start;
        padding: 30px 30px 35px;
    }
   /*======================================================================//
    // picture-left-section                                                 //
    //======================================================================*/
    body .section-wrap.stom-billede-sektion.picture-left-section {
        margin-top: var(--gap-l);
    }
    body .section-wrap.stom-billede-sektion.picture-left-section .stom-cols-6 {
        min-height: 100%;
    }
    .style-header-03 .section-wrap.top-bar {
        display: none !important;
    }
    .style-header-03 .section-wrap.contact-btn-top-bar {
        display: none !important;
    }
    .slider-btn-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--gap-s);
    }
    body .style-header-03 .header-inner {
        margin-top: 0;
    }
    .section-wrap.stom-grid-section.box-section .section .grid-elements .overlay p {
        margin-bottom: 20px;
        font-size: var(--p);
    }
    body .stom-grid-section.column-box-section .grid-element .overlay img {
        min-height: 220px;
        max-height: 170px;
    }
}

@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;
    }
    body .style-header-03 .header-inner {
        margin-top: 0;
    }
    .stom-grid-section .grid-element-slider-wrap .slick-track {
        gap: 20px;
    }
    
    /* nyheder-section */
    body .new-stom-posts.stom-css-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    body:not(.home) .overlay_1::after {
        background: url(images/isbryderen-overlay.png) no-repeat;
        background-size: contain;
        background-position: left;
        bottom: 0;
        left: 150px;
        height: 269px;
        width: 207px;
        /* max-width: calc((160vw - var(--content-width)) / 2 - var(--gap-s)); */
        min-width: 150px;
        z-index: 0;
        filter: invert(1);
        overflow: hidden;
    }
    .stom-grid-section.underside-column-menu .section.columns-2 .grid-elements {
        display: flex;
        flex-direction: column-reverse;
        grid-template-columns: 1fr;
    }
   
    section.half-column.section-wrap.stom-grid-section.underside-column-menu:after {
        content: "";
        background-color: #003878;
        display: block;
        position: absolute;
        width: 100%;
        height: 500px;
        bottom: 0;
        right: 0;
        z-index: -1;
        border-radius: 0;
    }
}


/****** MOBILER ******/

@media only screen and (max-width: 479px) {
    body:not(.woocommerce-cart):not(.woocommerce-checkout) .header-placeholder {
        height: 110px !important;
    }
    .style-header-03 .section-wrap {
        display: block;
    }
    .is-form-style {
        display: flex;
        flex-direction: row-reverse;
        margin-inline: 20px;
    }
    /* column-box-section */
    body .stom-grid-section.column-box-section .grid-element .overlay h3 {
        font-size: 18px;
    }
    body .stom-grid-section.column-box-section .grid-element .overlay img {
        min-height: 180px;
        max-height: 130px;
    }
}

@media only screen and (max-width: 400px) {
    body .stom-grid-section.column-box-section .grid-element .overlay h3 {
        font-size: 16px;
    }
}