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

@media only screen and (min-width: 1920px) {}


/****** BÆRBAR / MINDRE SKÆRME ******/
@media only screen and (max-width: 1440px) {
   header .top-bar  {
       margin-inline: 0;
   }
}

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

    .single-referencer .referencer-wrapper {
        grid-template-columns: auto 300px;
    }
    .referencer-visflere-sektion-background {
        left: calc(0px - var(--gap-m));
    }
    header .top-bar  {
        margin-inline: 0;
    }
    body:not(.home) .page-slider-section .slider-inner .slider-text {
        border-radius: 0;
    }
    .page-slider-section .slider-text {
        align-items: end;
    }
    .site.header-sticky.header-sticky-active .header-wrapper {
        margin-top: 0px;
    }
    header#masthead .header-wrapper {
        border-radius: 0;
        margin-inline: 0;
        max-width: 100%;
    }
    .site.header-sticky.header-sticky-active.scrolled .header-wrapper {
        margin-top: 0;
    }
    header#masthead {
        padding-inline: 0;
    }
    .page-slider-section {
        margin-top: 90px !important;
    }
    body.home .page-slider-section .image-aligner img {
        border-radius: 0;
    }
    body:not(.home) .page-slider-section .image-aligner img {
        border-radius: 0;
    }
    header.site-header .section-wrap .section {
        padding-top: 0;
    }
    header .top-bar .top-bar-right {
        background-color: #303030;
        color: var(--color-white);
        transition: var(--transition);
        max-width: unset;
        padding-inline: 10px;
        border-radius: 0;
    }
    .header-sticky-active.scrolled .style-header-02 .section-wrap .section {
        padding: 0px 0;
    }
    .stom-grid-section.box-section .grid-element.has-background .overlay span {
        padding: 16px;
    }
	.reference-overskrift {
		margin-bottom: -20px;
	}
}


/****** 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;
    }
    .single-referencer .referencer-wrapper .referencer-left .referencer-galleri .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Move this rule if you change the the grid columns */
    .last-on-mobile {
        order: 66;
    }
	
	.aabningstider-list {
	    font-size: var(--p);
}
	
    .stom-button.slider-btn a {
        font-size: 18px;
    }
    /* billeder */
    .stom-grid-section.byggeplaner-section .section.columns-3 .grid-elements {
        grid-template-columns: 20% 1fr;
    }
    .stom-grid-section.byggeplaner-section .section.columns-3 .grid-elements .grid-element.text-wrapper {
        margin-left: var(--gap-s);
    }
    .stom-grid-section.byggeplaner-section .section.columns-3 .grid-elements .grid-element.image-1 {
        display: none;
    }
    .footer-setting-03 .footer-widget-area-extra .textwidget {
        
        align-items: start;
        flex-direction: column;
    }
    .footer-setting-03 .footer-widget-area-extra .textwidget span {
        display: none;
    }
    .footer-setting-03 .footer-widget-area-extra .textwidget #text {
        display: none;
    }
	
	
}

@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;
    }
    body:not(.home) .stom-billede-sektion .stom-picture img {
        border-radius: 0;
    }
    /* underside kontakt */
    body.kontakt-side .page-slider-section .slider-inner .slider-text {
        min-height: 600px;

    }
    .single-referencer .referencer-wrapper {
        grid-template-columns: 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;
    }
    .stom-grid-section.byggeplaner-section .section.columns-3 .grid-elements {
        grid-template-columns: 1fr;
    }


    .stom-grid-section.byggeplaner-section .section.columns-3 .grid-elements .grid-element.image-2 {
        display: none;
    }
    .stom-grid-section.byggeplaner-section .section.columns-3 .grid-elements .grid-element.text-wrapper {
        margin-left: unset;
    }
    .new-stom-post-wrapper .new-stom-post-thumb img {
        height: 100%;
        width: 100%;
    }
    body.home .page-slider-section.image-pos-center-center.main-slider-section {
        display: none;
    }
    body.home .page-slider-section .slider-text {
        background-color: transparent;
    }
    .page-slider-section.mobile-slider.stom-lazyload-excluded.image-pos-center-center {
        display: block;
    }
    .stom-grid-section.byggeplaner-section .section.columns-3 .grid-elements .grid-element.text-wrapper .overlay .stom-button.primary-btn {
        width: 100%;
    }
    /* underside kontakt */
    body.kontakt-side .page-slider-section .slider-inner .slider-text {
        min-height: 400px;
    }
}


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

@media only screen and (max-width: 479px) {
    :root body {
        /* Grid columns */
        --h2-second: 30px;
    }
    body:not(.stom-gform-legacy) .gform_wrapper .gform_footer button {
        font-size: 13px;
    }
	
	.stom_medarbejder-detaljer {
		font-size: 15px;
	}
	body .stom-medarbejder-thumb {
    height: 210px;
    overflow: hidden;
    padding-top: unset;
}
	
	.txt-left-pad.stom-billede-sektion .stom-cols-6 {
		justify-content: start;
	}
}

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

@media only screen and (max-width: 410px) {
    .stom-medarbejdere.cols_6,.stom-medarbejdere.cols_5,.stom-medarbejdere.cols_4,.stom-medarbejdere.cols_3,.stom-medarbejdere.cols_2 {
        --cols-medarbejdere: 2;
    }
}