/****** STORE SKRÆME ******/

@media only screen and (max-width: 1798px) and (min-width: 960px) {
    .stom-grid-section.tilbud-sektion .section.columns-5 .grid-elements {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    section.section-wrap.tilbud-sektion .section .grid-element:nth-last-child(2), section.section-wrap.tilbud-sektion .section .grid-element:last-child {
        grid-column: span 2;
        grid-row: 2;
        width: 74.8%;
        height: 400px;
    }

    section.section-wrap.tilbud-sektion .section .grid-element:last-child {
        grid-column: 2 / span 2;
        place-self: right;
        place-self: start end;
    }

    section.section-wrap.tilbud-sektion .section .grid-element:nth-last-child(2) {
        grid-column: 1 / span 2;
    }

    section.section-wrap.tilbud-sektion .section .grid-element:nth-last-child(2) img, section.section-wrap.tilbud-sektion .section .grid-element:last-child img {
        height: 400px;
    }
}


/****** BÆRBAR / MINDRE SKÆRME ******/

@media only screen and (max-width: 1240px) {
     :root body {
        /* Font sizes */
        --h1: 45px;
        --h2: 30px;
        --h3: 20px;
        --p-4: 30px;
      
    }

    .section-wrap.stom-billede-sektion.picture-left .section .stom-cols-6 {
        padding-left: var(--gap-m);
    }

    body:not(.home) .section-wrap.stom-billede-sektion.picture-right .section .stom-cols-6 {
        padding-right: var(--gap-m);
    }
}

@media only screen and (min-width: 1199px) {
  footer .footer-widget-area .grid-element:nth-child(2) .socials-wrapper {
    display: none;
  }
}

@media only screen and (max-width: 1198px) {
    footer .footer-widget-area .grid-element:last-child {
        display: none;
    }

    footer.site-footer .footer-widget-area .section .grid-element:first-child {
        flex-grow: initial;
    }

    footer.site-footer .footer-widget-area .section .grid-element:first-child img {
        width: 130px;
    }
}

@media only screen and (max-width: 1109px) {
    #site-navigation.main-navigation .current-menu-ancestor  {
        background-color: rgb(47 95 5 / 30%);
    }

    #site-navigation ul.menu li.header-button {
        background-color: var(--color-1);
        width: 90%;
        margin: auto;
        margin-top: var(--gap-s);
        color: var(--color-light);
    }
   
}


@media only screen and (min-width: 960px) {
    .section-wrap.ikon-sektion .section.columns-3 .grid-elements {
        grid-template-rows: repeat(4, auto);
        justify-content: center;
    }
    
    .section-wrap.ikon-sektion .grid-element.fullwidth {
        grid-row: 1;
    }
    
    .section-wrap.ikon-sektion .grid-element:not(.fullwidth) {
        grid-template-rows: subgrid;
        grid-row: 2 / -1;
    }
    
    .section-wrap.ikon-sektion .section .grid-elements .overlay {
        display: grid;
        grid-template-rows: subgrid;
        justify-items: center;
        justify-content: center;
    }
    
    .section-wrap.ikon-sektion .section .grid-elements h3, .section-wrap.ikon-sektion .section .grid-elements h3+p {
        place-self: start center;
    }

   
}


/****** 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-grid-section.ikon-sektion .grid-element:last-child {
        grid-column: 1/-1;
    }

    .section-wrap.ikon-sektion .section .grid-elements {
        row-gap: var(--gap-m);
    }

    .page-slider-section .slider-text {
        padding: var(--gap-xl) var(--gap-m);
    }

    .stom-grid-section.tilbud-sektion .section.columns-5 .grid-elements {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 250px;
    }

    section.section-wrap.tilbud-sektion .section .grid-element img {
        height: 250px;
    }

    section.section-wrap.tilbud-sektion .section .grid-element:last-child {
        grid-column: span 2;
    }

    .section-wrap.footer-form .section .grid-element h1 {
        max-width: 100%;
    }

    .section-wrap.footer-form .section .grid-element a {
        font-size: var(--p-3);
    }

    .style-header-02 .top-bar .top-bar-right>*:not(:last-child) {
        display: block;
    }
	
	.section-wrap.clear.city-section .section .grid-elements .grid-element.city-list {
		margin-top: var(--gap-l);
	}
	
	.section-wrap.clear.city-section .section .grid-elements .grid-element.city-list .overlay > .stom-city-list ul {
		padding-left: 0;
	}
}

@media only screen and (max-width: 940px) {
    footer.site-footer .footer-widget-area .section .grid-element:first-child {
        width: 100%;
    }

    footer section.stom-grid-section .section.columns-4 .grid-elements {
        row-gap: var(--gap-m);
    }

    footer.site-footer .footer-widget-area .section .grid-element {
        margin-left: 0;
    }

   
}


/****** MINDRE END IPADS VERTIKALT ******/

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

}

@media only screen and (max-width: 767px) {
     :root body {
        /* Font sizes */
        --h1: 30px;
        --h2: 25px;
        --p-3: 18px;
        --p-4: 25px;
        --button: 16px;

        /* Gaps */
        --gap-3xl: 45px;
        --gap-4xl: 90px;

        /* Outer margin */
        --content-margin: 0;
    }

    main section.section-wrap.stom-billede-sektion.not-fullwidth .section {
        display: contents;
    }

    .overlap-image.stom-billede-sektion .stom-picture, .stom-billede-sektion .stom-picture {
        padding-inline: var(--gap-m);
        height: 300px;
    }

    .section-wrap.stom-billede-sektion p:not(:has(.button-primary)), .section-wrap.stom-billede-sektion li {
        max-width: 60ch;
    }

    section .gform_wrapper.gravity-theme input:not([type=radio]):not([type=checkbox]):not([type=image]):not([type=file]) {
        line-height: normal;
    }
}

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

        /* Gaps */
        --gap-l: 25px;
        --gap-2xl: 50px;
    }

    .section-wrap.ikon-sektion img {
        width: 80px;
    }

    .section-wrap.ikon-sektion .section .grid-elements h3+p {
        max-width: 39ch;
    }

    .stom-grid-section.tilbud-sektion .section.columns-5 .grid-elements {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    section.section-wrap.tilbud-sektion .section .grid-element:last-child {
        grid-column: span 1;
    }

    .style-header-02 .top-bar .top-bar-right>*:not(:last-child) {
        display: none;
    }

    #page header .main-navigation .number-three-burger-menu-content li a, #page header .main-navigation .number-three-burger-menu-content li.mega-menu ul a, #page header .main-navigation ul li.mega-menu ul ul a, #page header .main-navigation ul li.mega-menu>ul>li>a {
        padding: 4px 20px;
    }

}


/****** MOBILER ******/

@media only screen and (max-width: 479px) {}

@media only screen and (max-width: 400px) {}