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

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


/****** BÆRBAR / MINDRE SKÆRME ******/
@media only screen and (max-width: 1550px) {
    body.home .page-slider-section.main-slider-section .slider-inner .slide-element.slide-video .video-aligner video {
        width: 100%;
        object-position: right;
    }
}
@media only screen and (max-width: 1500px) {
    body .page-slider-section .slider-text-inner .slider-text-inner-wrapper .pre-content-bg{
        padding-bottom: 100px;
    }
}

@media only screen and (max-width: 1440px) {
	body:not(.home) .page-slider-section .slider-text-inner .slider-text-inner-wrapper .white-text > h1, 
	body:not(.home) .page-slider-section .slider-text-inner .slider-text-inner-wrapper .white-text .stom-print-title > h1 {
		font-size: 60px;
	}
	
	body:not(.home) .page-slider-section .slider-text-inner .slider-text-inner-wrapper .white-text > p {
		font-size: 19px;
	}
	
	body:not(.home) .page-slider-section .slider-text-inner .slider-text-inner-wrapper .white-text > .stom-button a {
		font-size: 19px;
	}
	
	.section-wrap.clear.usp-section .section .container .content > h2, 
	.section-wrap.clear.usp-section .section .container .content > h3 {
		font-size: 20px;
	}
}

@media only screen and (max-width: 1240px) {
     :root body {
        /* Font sizes */
        --h1: 43px;
        --h2: 40px;
        --h3: 22px;
        --h4: 19px;
        --h5: 15px;
        --h6: 13px;
        --p: 15px;
        /* Gaps */
        --gap-l: 60px;
        --gap-m: 25px;
        --gap-s: 20px;
        /* Sidebar */
        --sidebar-width: 280px;
    }
    body .page-slider-section .slider-text-inner .slider-text-inner-wrapper p {
        max-width: 740px;
        font-size: 18px;
        font-weight: 300;
        line-height: 1.3;
    }
    body .page-slider-section .slider-text-inner .slider-text-inner-wrapper .pre-content-services p a {
        font-size: 18px;
        font-weight: 500;
    }
    .pre-content-services {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        text-align: center;
        padding-inline: var(--gap-m);
        margin-bottom: 20px;
    }
    .pre-content-bg::after {
        height: 150px;
    }
    .section-wrap.stom-grid-section.choose-us-section .grid-element .overlay .stom-button {
        margin-top: auto;
    }
    body.medarbejdere-page .stom-medarbejdere.cols_4 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
        row-gap: 60px;
    }
    .stom-medarbejdere .stom-medarbejder-wrapper {
        width: 100%;
    }
    .gallery-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
	
	.stom-billede-sektion .stom-cols-6 {
		padding: var(--gap-l) 0;
	}
	
	body:not(.home) .page-slider-section .slider-text-inner .slider-text-inner-wrapper .white-text > h1, 
	body:not(.home) .page-slider-section .slider-text-inner .slider-text-inner-wrapper .white-text .stom-print-title > h1 {
		font-size: 50px;
	}
	
	body:not(.home) .page-slider-section .slider-text-inner .slider-text-inner-wrapper .white-text > p {
		font-size: 18px;
	}
	
	body:not(.home) .page-slider-section .slider-text-inner .slider-text-inner-wrapper .white-text > .stom-button a {
		font-size: 18px;
	}
	
	.section-wrap.clear.stom-billede-sektion {
		padding-inline: var(--gap-m);
	}
	
	.section-wrap.clear.cases-section .section .new-stom-posts {
		column-gap: var(--gap-m);
	}
	
	.new-stom-posts .new-stom-post-wrapper .new-stom-post-title > h4 {
		font-size: 21px;
	}
	
	.section-wrap.clear.cases-section .section > h2, 
	.section-wrap.clear.cases-section .section > h3 {
		font-size: var(--h2);
	}
	
	.section-wrap.clear.faq-section .section .stom-cols-6 {
		padding-right: var(--gap-m);
	}
	
	.section-wrap.clear.faq-section .section .stom-cols-6 .stom-center-box > .mere-tekst-wrapper .button {
		font-size: 20px;
	}
	
	.section-wrap.clear.contact-section {
		padding-inline: 0;
	}
	
	.section-wrap.clear.contact-section .section .stom-cols-6 {
		
	}
}


@media only screen and (max-width: 1100px) {
	.section-wrap.clear.usp-section .section {
		flex-direction: column;
		gap: var(--gap-m);
		align-items: flex-start;
		padding-block: 25px;
	}
}



@media only screen and (max-width: 959px) {	
	body.home .page-slider-section.main-slider-section .slider-inner .slide-element.slide-video .video-aligner video {
		width: unset;
	}
	
	.section-wrap.clear.cases-section .section .new-stom-posts {
		
		grid-template-columns: 1fr;
		row-gap: 40px;
	}
	
	.section-wrap.clear.contact-section .section .stom-cols-6 {
		padding-left: 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: 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-wrap.stom-grid-section.welcome-section .section .grid-elements {
        gap: 0;
    }
    .section-wrap.stom-grid-section.service-section .grid-element .overlay img {
        width: 100%;
    }
    .stom-grid-section.our-customers-section .section .grid-elements .grid-element::before {
        border-left: none;
    }
    .stom-grid-section.our-customers-section .section .grid-elements .no-border-left.grid-element::before {
        border-left: none;
    }
    .stom-grid-section.our-customers-section .section .grid-elements .grid-element::after  {
        border-bottom: none;
    }
    .stom-grid-section.our-customers-section .section .grid-elements .no-border-bottom.grid-element::after  {
        border-bottom: none;
    }
    body.home .page-slider-section .slider-text {
        margin-bottom: 8px;
    }
    .stom-grid-section.individuel-section .section .grid-elements {
        display: flex;
        flex-direction: column-reverse;
    }
    .stom-grid-section.individuel-section .grid-element .overlay img {
        max-height: unset;
    }
    body.medarbejdere-page .stom-medarbejdere.cols_4 {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        row-gap: 60px;
    }
    .stom-medarbejdere .stom-medarbejder-wrapper {
        width: unset;
    }
    .stom-medarbejdere .stom-medarbejder-wrapper .stom_medarbejder-detaljer .stom-medarbejder-phone a,
    .stom-medarbejdere .stom-medarbejder-wrapper .stom_medarbejder-detaljer .stom-medarbejder-email a {
        font-size: 14px;
    }
}

@media only screen and (max-width: 810px) {
    body.home .page-slider-section.main-slider-section .slider-inner .slide-element.slide-video .video-aligner video {
        float: right;
        max-height: 650px;
    }
    body.home .page-slider-section.main-slider-section .slider-text::before {
        bottom: 0px;
    }
    body.home .page-slider-section .slider-text {
        margin-bottom: 0;
    }
}


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

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

@media only screen and (max-width: 767px) {
     :root body {
        /* Font sizes */
        --h1: 40px;
        --h2: 30px;
        --h3: 20px;
        --h4: 18px;
        --h5: 14px;
        --h6: 12px;
        --p: 15px;
        /* Gaps */
        --gap-l: 50px;
        --gap-m: 20px;
        --gap-s: 15px;
        /* Outer margin */
        --content-margin: 0;
    }
	
	.stom-button a {
		font-size: var(--p);
	}
	
	.section-wrap.clear.stom-billede-sektion {
		padding-inline: 0;
	}
	
	.stom-billede-sektion .stom-picture {
		padding-inline: var(--gap-m);
		margin-top: var(--gap-m);
	}
	
	body:not(.home) .stom-billede-sektion:not(.has-background) .stom-cols-6 .stom-center-box > h2 {
		font-size: var(--h2);
	}
	
	.section-wrap.clear.faq-section .section {
		padding-block: var(--gap-l);
	}
	
	.section-wrap.clear.faq-section .section .stom-cols-6 .stom-center-box {
		width: 100%;
	}
	
	.section-wrap.clear.contact-section {
		margin-top: calc(var(--gap-l) * 1);
		margin-inline: 0;
	}
	
	.section-wrap.clear.contact-section .section .stom-cols-6 .stom-center-box > .gform_wrapper form .gform_body .gform_fields .gfield .ginput_container > * {
		font-size: var(--p);
	}
	
	.section-wrap.clear.contact-section .section .stom-cols-6 .stom-center-box > .gform_wrapper form .gform_body .gform_fields .gfield .ginput_container > *::placeholder {
		font-size: var(--p);
	}
	
	.section-wrap.clear.cases-section {
		margin-top: calc(var(--gap-l) * 1);
	}
	
	.section-wrap.clear.cases-section .section .new-stom-posts {
		margin-top: 0;
	}
	
	.section-wrap.clear.faq-section {
		margin-top: calc(var(--gap-l) * 1);
	}
	
	.section-wrap.clear.faq-section .section .stom-cols-6 .stom-center-box > .mere-tekst-wrapper .button {
		font-size: 18px;
		font-weight: 300;
	}
	
	.section-wrap.clear.faq-section .section .stom-cols-6 .stom-center-box > .mere-tekst-wrapper .mere-tekst {
		font-size: var(--p);
	}
	
	body:not(.home) .page-slider-section .slider-text-inner .slider-text-inner-wrapper .white-text > h1, 
	body:not(.home) .page-slider-section .slider-text-inner .slider-text-inner-wrapper .white-text .stom-print-title > h1 {
		font-size: var(--h1);
	}
}

@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-wrap.stom-grid-section.service-section .section.columns-4 .grid-elements {
        grid-template-columns: 1fr 1fr;
    }
    body .mere-tekst-wrapper button {
        padding: 20px 0px 10px 0px;
    }
    .gallery-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    body.home .page-slider-section.main-slider-section .slider-inner .slide-element.slide-video .video-aligner video {
        max-height: 550px;
    }
    
    body .page-slider-section .slider-text-inner .slider-text-inner-wrapper p {
        font-size: 16px;
    }
    .colored-pre-text-slider {
        font-size: 18px;
    }
	
	body.home .page-slider-section .slider-text {
		display:inherit;
	}
	body.home .page-slider-section:not(.different-text) .slider-inner, .page-slider-section.different-text .slide-element {
		display: flex;
		flex-direction: column;
	}
	body.home .slider-text {
		background-color:white;
	}
	body.home .slider-text p, body.home .slider-text h1 {
		color: black !important;
	}
	

}


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

@media only screen and (max-width: 479px) {
    .site-branding #logo img {
        max-width: 210px;
    }
    body:not(.woocommerce-cart):not(.woocommerce-checkout) .header-sticky-active.scrolled header .site-branding #logo img {
        max-height: 50px;
    }
    .section-wrap.stom-grid-section.service-section .section.columns-4 .grid-elements {
        grid-template-columns: 1fr;
    }
    .section-wrap.anmeldelser-section.has-background {
        margin-top: 0;
    }
    .section-wrap.stom-grid-section.service-section {
        padding-bottom: 0;
    }
    .gallery .gallery-item {
        height: 190px;
    }

    body.home .page-slider-section.main-slider-section .slider-inner .slide-element.slide-video .video-aligner video {
        max-height: 370px;
    }
    body.home .page-slider-section .slider-text {
        margin-bottom: 6px;
    }
    body .page-slider-section .slider-text-inner .slider-text-inner-wrapper .pre-content-bg {
        padding-bottom: 83px;
    }
	
	.home .section-wrap.clear.welcome-section {
		display: none;
	}
	
	body:not(.home) .page-slider-section .slider-text-inner .slider-text-inner-wrapper .white-text > p {
		font-size: 16px;
	}
	
	body:not(.home) .page-slider-section .slider-text-inner .slider-text-inner-wrapper .white-text > h1, 
	body:not(.home) .page-slider-section .slider-text-inner .slider-text-inner-wrapper .white-text .stom-print-title > h1 {
		font-size: 34px;
	}
	
	body:not(.home) .page-slider-section .slider-text-inner .slider-text-inner-wrapper .white-text > .stom-button a {
		font-size: var(--p);
	}
	
	.section-wrap.clear.usp-section .section .container .content > h2, 
	.section-wrap.clear.usp-section .section .container .content > h3 {
		font-size: 18px;
	}
	
	.section-wrap.clear.usp-section .section .container > p:first-of-type {
		width: 40px;
	}
	
	.section-wrap.clear.cases-section .section > h2, 
	.section-wrap.clear.cases-section .section > h3 {
		margin-bottom: 20px;
	}
	
	.section-wrap.clear.faq-section .section .stom-cols-6 .stom-center-box > .mere-tekst-wrapper .button {
		font-size: 16px;
	}
	
	.section-wrap.clear.contact-section {
		padding-block: 0;
	}
	
	.section-wrap.clear.contact-section .section .stom-cols-6 .stom-center-box > .gform_wrapper form .gform_footer .gform_button {
		font-size: var(--p);
	}
	
	.section-wrap.clear.contact-section .section .stom-cols-6 .stom-center-box > .gform_wrapper form .gform_footer .gform_button .btn-text {
		margin-right: .5em;
	}
	
	.section-wrap.clear.usp-section .section .container .content > p {
		font-size: var(--p);
	}
	  
}

@media only screen and (max-width: 407px) {
	
	
    
    body.home .page-slider-section .slider-text {
        margin-bottom: 0px;
    }
    body.home #main-content.site-main {
        margin-top: -8px;
    }
   /* .pre-content-bg::after {
        display: none;
    }*/
    .page-slider-section .slider-text {
        position: relative;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: var(--gap-m);
        
    }
    /*.pre-content-services {
        display: none;
    }*/
   /* body .page-slider-section .slider-text-inner .slider-text-inner-wrapper .pre-content-bg {
        display: none;
    }*/
   /* .pre-content-services {
        margin-bottom: 40px;
    }*/
    body.home .page-slider-section .slider-text h1 {
        font-size: 22px;
    }
    
    body.home .page-slider-section.main-slider-section .slider-inner .slide-element.slide-video .video-aligner video {
        max-height: 215px;
    }
   /* .stom-button.slider-btn a {
        background-color: transparent;
        border: 1px solid var(--color-white);
        color: var(--color-white);
        font-size: 14px;
        width: 240px;
        text-align: center;
    } */
	
	.white-text {
		margin-bottom:20px;
	}
}
@media only screen and (max-width: 400px) {
    body.home #main-content.site-main {
        margin-top: -15px;
    }
}