/****** STORE SKRÆME ******/

@media only screen and (min-width: 1920px) {}


/****** BÆRBAR / MINDRE SKÆRME ******/

@media only screen and (max-width: 1440px) { 
    :root body {
        --p: 16px;
    }

    .site-branding #logo img, 
    .site-branding #logo svg {
        width: 100%;
    }

    #masthead .stom-button a {
        font-size: 12px;
    }

    header .main-navigation ul.menu a {
        font-size: 14px;
    }

    /* body:not(.home) .entry-content .logo-container > img {
        max-height: 250px;
        max-width: 250px;
    } */

    body.contact-page #main-content #content aside#secondary {
        max-width: 500px;
    }
}


@media only screen and (max-width: 1240px) {
     :root body {
        /* Font sizes */
        --h1: 30px;
        --h1-special: 28px;
        --h2: 28px;
        --h3: 22px;
        --h4: 16px;
        --h5: 18px;
        --h6: 13px;
        --p: 15px;
        /* Gaps */
        --gap-l: 60px;
        --gap-m: 25px;
        --gap-s: 20px;
        /* Sidebar */
        --sidebar-width: 320px;
    }

    body:not(.home) #main-content #content {
        margin-inline: 0;
    }

    .widget-area .widget:not(.widget_search):not(.widget_instagram-feed-widget):not(.widget-no-border) {
        font-size: 14px;
    }

    aside#secondary .custom-overflow-wrapper {
        padding: calc(var(--gap-m) * 2.5) 40px 40px;
    }

    .stom-button a {
        font-size: 12px;
    }

    .section-wrap.clear.stom-billede-sektion .section .stom-cols-6 {
        padding: var(--gap-l) var(--gap-l);
        min-height: 600px;
    }

    .section-wrap.clear.intro-section .section .clinic-content {
        padding: var(--gap-l) var(--gap-l);
    }

    .section-wrap.clear.intro-section .section .clinic-content .content {
        max-width: none;
    }

    .section-wrap.clear.intro-section .section .clinic-content .sune-logo {
        margin-bottom: inherit;
    }

    .widget-area .widget:not(.widget_search):not(.widget_instagram-feed-widget):not(.widget-no-border) {
        padding: 0;
    }

    .section-wrap.clear.intro-section .section .clinic-information > .entry-title strong,
    .section-wrap.clear.intro-section .section .clinic-information > .aabningstider-list .entry-title strong {
        font-size: 18px;
    }

    .section-wrap.clear.stom-medarbejder-sektion {
        margin-inline: var(--gap-m);
    }

    .footer-setting-02 .footer-widget-area .section .grid-elements {
        grid-template-columns: repeat(3, 1fr);
        column-gap: var(--gap-l);
    }

    #colophon .footer-logo-widget .textwidget {
        grid-template-columns: 60px 1fr;
    }
    
    .footer-setting-02 .footer-widget-area .section .grid-elements .grid-element:first-of-type {
        grid-column: span 3;
    }

    .footer-setting-02 .footer-widget-area .section .grid-elements .grid-element:first-of-type .textwidget {
        align-items: center;
    }

    .section-wrap.clear.external-section .section .content {
        padding: var(--gap-l) var(--gap-m);
    }

    .section-wrap.clear.guarantee-section .section .logo {
        width: 265px;
    }

    #colophon .footer-logo-widget .textwidget > p:first-of-type img {
        top: inherit;
    }

    /* body:not(.home) .entry-content .logo-container > img {
        max-height: 250px;
        max-width: 250px;
    } */

    body.contact-page #main-content #content aside#secondary {
        max-width: 400px;
    }

    .gform_wrapper form .gform_footer .gform_button {
        font-size: 12px;
    }
	
	.gform_wrapper.gavekort-formular_wrapper form .gform_footer .gform_button {
		font-size: 12px;
	}
	
	.section-wrap.clear.stom-billede-sektion .section .stom-cols-6 {
		min-height: 350px;
	}
}

@media only screen and (max-width: 1060px) {
    .stom-reference-sektion .section > h2 {
        max-width: none;
    }

    .stom-anmeldelse-wrapper.slick-slider {
        padding-inline: 0;
    }
   
    .stom-anmeldelse-wrapper .slick-list {
        max-width: none;
    }

    .stom-anmeldelse-wrapper .slick-dots {
        top: calc(100% + 35px);
    }
	
	.section-wrap.clear.intro-section .section .clinic-information {
		padding: var(--gap-l) 30px;
	}
}


/****** 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;
    }

    #secondary.sidebar-setup-after-content {
        margin-bottom: var(--gap-m);
    }

    body.page-template-page-featured-image #main-content #content #primary {
        width: 100%;
    }

    body.page-template-page-featured-image #main-content #content #primary .page .thumbnail {
        margin-bottom: var(--gap-l);
    }

    .section-wrap.clear.intro-section .section {
        display: block;
    }

    .stom-medarbejdere {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-setting-02 .footer-widget-area .section .grid-elements {
        grid-template-columns: 1fr;
        gap: var(--gap-l);
    }

    .footer-setting-02 .footer-widget-area .section .grid-elements .grid-element:first-of-type {
        grid-column: span 1;
    }

    body:not(.home) .entry-content {
        padding-bottom: 0;
    }

    .section-wrap.clear.external-section .section .content {
        padding-block: 0;
        padding-left: 0;
    }

    .section-wrap.clear.guarantee-section .section {
        flex-direction: column;
        gap: var(--gap-l);
    }

    .section-wrap.clear.guarantee-section .section .logo {
        top: 0;
    }

    .contact-container {
        
    }

    body.contact-page #main-content #content aside#secondary .custom-overflow-wrapper .widget .textwidget > p span.title {
        padding-inline: 0;
    }

    body:not(.home) .entry-content .logo-container {
        position: static;
        transform: none;
        margin-top: var(--gap-l);
    }

    body:not(.home) .entry-content .logo-container > img {
        max-height: 200px;
        max-width: 200px;
    }

    body:not(.home) #main-content #content {
        display: block;
    }

    body:not(.home) #main-content #content #primary {
        width: 100%;
    }

    body.contact-page #main-content #content aside#secondary {
        max-width: none;
    }

    body.contact-page #main-content #content aside#secondary .custom-overflow-wrapper {
        padding: var(--gap-m);
    }

    body.contact-page #main-content #content aside#secondary .custom-overflow-wrapper .widget .textwidget > p:last-of-type .stom-button {
        margin-top: 0;
    }
	
	.section-wrap.clear.intro-section .section .clinic-information {
		padding: var(--gap-l) var(--gap-l);
	}
}

@media only screen and (max-width: 810px) {
    .section-wrap.clear.external-section .section {
        flex-direction: column;
        gap: var(--gap-l);
    }

    .section-wrap.clear.external-section .section .content {
        width: 100%;
        padding-right: 0;
    }

    .section-wrap.clear.external-section .section .image {
        width: 75%;
    }
}


/****** MINDRE END IPADS VERTIKALT ******/

@media only screen and (max-width: 782px) {}

@media only screen and (max-height: 767px) {
	.modal-content {
		height: 90%;
	}
	
	.modal-content > iframe {
		height: 100% !important;
	}
}

@media only screen and (max-width: 767px) {
     :root body {
        /* Font sizes */
        --h1: 24px;
        --h1-special: 24px;
        --h2: 21px;
        --h3: 18px;
        --h4: 15px;
        --h5: 17px;
        --h6: 12px;
        --p: 14px;
        /* Gaps */
        --gap-l: 50px;
        --gap-m: 20px;
        --gap-s: 15px;
        /* Outer margin */
        --content-margin: 0;
    }

    .style-header-03 .header-inner {
        padding-top: 20px;
    }

    .site-branding #logo, 
    .style-header-02 .site-branding #logo {
        padding: 20px 0;
    }

    .site-branding #logo img, 
    .site-branding #logo svg {
        max-width: 250px;
    }

    .section-wrap.clear.stom-billede-sektion .section .stom-cols-6 {
        min-height: auto;
    }

    body #page {
        max-width: calc(var(--content-width) + calc(20px * 2));
        padding-inline: 20px;
    }

    body.stom-terms-page .entry-content > h3 {
        margin-top: var(--gap-l);
    }

    .site-header .header-wrapper {
        padding-inline: 20px;
    }

    .section-wrap.clear.intro-section .section .clinic-content {
        padding: var(--gap-l) var(--gap-m);
    }

    .section-wrap.clear.intro-section .section .clinic-information {
        padding: var(--gap-l) var(--gap-m);
    }

    body:not(.home) #main-content #content {
        margin-inline: 0;
    }

    body:not(.home):not(.page-template-page-featured-image) #main-content #content #primary {
        margin-top: var(--gap-l);
    }

    .section-wrap.clear.stom-medarbejder-sektion {
        margin-inline: 0;
    }

    .stom-medarbejdere {
        grid-gap: 70px var(--gap-m);
    }
	
	.home .section-wrap.clear.stom-billede-sektion {
		padding-top: 0;
	}

}

@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;
    }

    #masthead .stom-button a {
        font-size: 10px;
    }

    .site-branding #logo img, 
    .site-branding #logo svg {
        max-width: 235px;
    }

    .behandling-container table thead tr th, 
    .behandling-container table tbody tr td {
        font-size: 12px;
    }

    .section-wrap.clear.guarantee-section {
        padding-inline: 0;
    }

    body:not(.home) .entry-content .logo-container {
        text-align: center;
    }

}

@media only screen and (max-width: 541px) {
    .contact-container {
        flex-direction: column;
        gap: var(--gap-m);
    }

    .contact-container .buttons .stom-button:not(:last-of-type) {
        margin-bottom: var(--gap-s);
    }
}


/****** MOBILER ******/

@media only screen and (max-width: 479px) {
    :root body {
        --h1-special: 21px;
        --h5: 16px;
    }

    .home .page-slider-section .slider-text-inner .slider-text-inner-wrapper {
        display: block;
    }

    .home .page-slider-section .slider-text-inner .slider-text-inner-wrapper>.slider-slogan>p:first-of-type img {
        max-width: 150px;
        max-height: 150px;
    }

    .section-wrap.clear.stom-billede-sektion .section .stom-cols-6 {
        padding-inline: var(--gap-m);
    }

    .section-wrap.clear.basis.has-background {
        padding-inline: var(--gap-m);
    }

    aside#secondary .custom-overflow-wrapper {
        padding: var(--gap-l) var(--gap-m);
    }

    .home .section-wrap.clear.stom-medarbejder-sektion {
		padding-bottom: 50px;
	}
	
	.stom-medarbejdere {
        grid-template-columns: repeat(1, 1fr);
		grid-gap: 50px var(--gap-m);
    }
	

    .stom-medarbejder-thumb {
        max-width: 175px;
        max-height: 175px;
    }

    .section-wrap.clear.external-section {
        padding-inline: var(--gap-m);
    }

    .section-wrap.clear.external-section .section .image {
        width: 100%;
    }

    .section-wrap.clear.stom-reference-sektion {
        padding-inline: var(--gap-m);
    }

    .section-wrap.clear.intro-section .section .clinic-content .sune-logo {
        margin-bottom: 0;
    }

    .section-wrap.clear.intro-section .section .clinic-content {
        gap: var(--gap-l);
    }

    .section-wrap.clear.intro-section .section .clinic-content .sune-logo {
        display: block;
        width: 100%;
        text-align: center;
    }

    .section-wrap.clear.intro-section .section .clinic-content .sune-logo .stom-custom-svg {
        line-height: 0;
    }

    .widget.number-three-default-widget .aabningstider-list .aabningstider-dage .aabningstider-dag {
        justify-content: space-between;
    }

    body:not(.home) .section-wrap.clear.stom-medarbejder-sektion .section {
        padding: var(--gap-l) var(--gap-m);
    }

    #colophon .section-wrap {
        padding-inline: var(--gap-m);
    }

    #colophon .footer-logo-widget .textwidget {
        column-gap: 15px;
    }

    div.links > ul li a {
        font-size: 12px;
    }
    
    div.links > ul li a:after {
        width: 15px;
        height: 10px;
    }

    .footer-setting-02 .footer-widget-area .section {
        padding: 50px 0;
    }

    .widget.number-three-default-widget .stom_maps_free {
        min-height: 350px !important;
    }

    .section-wrap.clear.gavekort {
        padding-inline: var(--gap-m);
    }

    #bestil-gavekort {
        scroll-margin-top: 75px;
    }
}

@media only screen and (max-width: 400px) {}