@media (max-width: 1023px) {

    body {
        overflow-x: hidden;
    }

    footer.footer .container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        overflow-x: hidden;
    }

    /* FOLLOW stacks */
    footer.footer .follow {
        flex-direction: column;
        gap: 18px;
    }

    footer.footer .social {
        margin-top: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    /* PANEL layout */
    footer.footer .panel {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        position: relative;
        display: flex;
        flex-direction: column;
        min-height: 320px;
        padding-left: 18px;
        padding-right: 18px;
    }

        footer.footer .panel .row {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 18px;
            min-height: 0 !important;
            margin-top: 8px;
        }

        /* Remove spacer heading */
        footer.footer .panel .col:nth-child(2) h3 {
        }



        /* Divider + copyright at bottom */
        footer.footer .panel .divider {
            width: 100%;
            margin-top: auto;
        }

        footer.footer .panel .copyright {
            margin-top: 10px;
        }

    footer.footer .footer-quote p {
        margin: 0;
    }
}

@media (max-width: 500px) {
    /* Hide logo on touch devices */
    footer.footer .panel .icon-col,
    footer.footer .panel .sticker,
    footer.footer .panel .footer-icon {
        display: none;
    }
    footer.footer .panel,
    footer.footer .panel .row {
        align-items: center;
    }
        
}

/* If any layout wrapper gets transformed on mobile, fixed overlays can shift */
@media (max-width: 1024px) and (hover: none) and (pointer: coarse) {
    body, .site, .page, main, .container {
        transform: none !important;
    }
}
/* Fullscreen loading overlay (bulletproof centering) */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    height: 100dvh; /* mobile-safe viewport */
    width: 100vw;
}

    /* the spinner element itself */
    .loading-overlay .spinner {
        /* no positioning needed anymore */
    }

@media (max-width: 1024px) and (hover: none) and (pointer: coarse) {

    /* Prevent hero/wave from creating horizontal scroll */
    #about.hero.pager,
    #about.hero.pager .page-hero.hero-wave,
    #about.hero.pager .page-hero.hero-wave * {
        max-width: 100%;
    }

        /* This is the common culprit: 100vw somewhere in the hero */
        #about.hero.pager .page-hero.hero-wave {
            width: 100%;
            overflow-x: clip;
        }

        /* If you have any svg wave inside the hero */
        #about.hero.pager svg {
            display: block;
            width: 100%;
            height: auto;
        }
}
@media (max-width: 1024px) and (hover: none) and (pointer: coarse) {

    /* Panel sections on home: clip decorations that extend past edges */
    body.home section.panel {
        overflow-x: clip;
        max-width: 100%;
    }

        body.home section.panel * {
            max-width: 100%;
        }
}
@media (max-width: 1023px) and (hover: none) and (pointer: coarse) {
    .page-hero,
    .page-hero.hero-wave {
        width: 100% !important;
    }
}
@media (max-width: 1023px) {

    /* Hide decor */
    .ctd-decor {
        display: none !important;
    }

    /* Make CTD layout single-column */
    .ctd {
        grid-template-columns: 1fr !important;
    }

    /* Ensure card spans full available width */
    .ctd-card {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
    }
}

.ctd-arrow {
    width: 42px;
    aspect-ratio: 1 / 1; /* ensures perfect square */
    height: auto;
    border-radius: 50%; /* clearer than 999px */
    border: 2px solid #025db9;
    display: grid;
    place-items: center;
    flex-shrink: 0; /* IMPORTANT in flex/grid rows */
    box-sizing: border-box;
}
@media (max-width: 1023px) {

    .header-wrap {
        display: flex;
        align-items: center;
        justify-content: right;
    }

    .site-logo {
        margin-right: auto;
    }

    .m-menu-btn {
        margin-left: auto;
    }
}

@media (max-width: 1023px) {

    /* The open panel (UL) becomes a drawer */
    .m-menu .primary-nav-list {
        position: fixed;
        right: 0px;
        left: auto !important;
        width: min(86vw, 420px);
        max-width: 420px;
        height: auto;
        max-height: calc(100dvh - var(--mobile-header-h, 72px) - 16px);
        transform: none !important; /* IMPORTANT: kills slide-in translateX */
        margin: 0 !important;
        overflow-y: auto;
        box-sizing: border-box;
        z-index: 9999;
    }

    /* Optional: backdrop behind the drawer (only if you already have an overlay element, ignore if not) */
    /* .m-menu.is-open::before { ... } */
}
@media (max-width: 1023px) {

    /* Don't let the last item become a full-width bar */
    .primary-nav-list #vakantiehuisbutton a {
        display: inline-flex;
        width: auto;
    }

    .primary-nav-list #vakantiehuisbutton .vakantiehuis {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        max-width: 100%;
        border-radius: 999px;
        /* remove any "full-width button" styles */
    }
}

@media (max-width: 1023px) {

    .primary-nav-list > li.menu-item {
        position: relative;
    }

        /* Give items room for the + button */
        .primary-nav-list > li.menu-item > a {
            display: block;
            padding-right: 44px; /* space for the toggle */
        }

    /* The + toggle button */
    .primary-nav-list > li.menu-item-has-children > .m-dropdown {
        position: absolute;
        right: 12px;
        display: grid;
        place-items: center;
        cursor: pointer;
    }
}

@media (max-width: 1250px) and (min-width: 1024px) {

    .site-header, .site-header.small-height {
        width: 100%;
        left: 0;
        transform: none;
        border-radius: 0;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .api_header-graphic {
        position: relative;
    }
    .sticker2 {
        display: none;
    }
    .onderbreking {
        border: none;
        border-top: 2px solid #025db9;
        border-bottom: 2px solid #025db9;
        padding: 10px;
    }

    .single-feature i {
        margin-bottom: 0;
    }

    .feature .single-feature a {
        margin-top: 0;
    }
    }

@media (max-width: 1023px) {

    /* Make the accordion column full width when stacked */
    .about-accordion__layout {
        display: block; /* overrides any 2-col grid/flex */
    }

    .about-accordion__col,
    .about-accordion__col--items,
    .about-acc-col,
    .accordian-wrapper.about-acc-list {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        height: auto;
    }

    /* Ensure each accordion item spans full width */
    .single-accordian {
        width: 100%;
    }
    .accordion-image {
        padding-top: 10px;
    }

}

@media (max-width: 991px) {
    .st1.scale10 {
        display: none !important;
    }
}

@media (max-width: 767px) {

    /* Make hero a positioning context */
    #home.hero {
        position: relative;
    }

    /* Reset the desktop right-alignment */
    #home .hero-content.custom-hero-right {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px 16px;
        /* kill desktop offsets */
        right: auto !important;
        left: auto !important;
        transform: none !important;
    }

    /* Logo */
    #home .hero-logo-repeat {
        display: block;
        margin: 0 auto 12px;
        max-width: min(70vw, 280px);
        height: auto;
    }

    /* Tagline text ("Meer dan vakantie") */
    #home .hero-tagline {
        margin: 0;
        max-width: 22ch;
        line-height: 1.05;
    }
}

@media (max-width: 767px) {

    /* Hide the sticker (2 smiley faces) on mobile */
    .volunteer-hero__sticker {
        display: none !important;
    }

    /* Make the hero a nice centered layout */
    .volunteer-hero {
        position: relative;
        padding: 18px 16px; /* side breathing room */
        background-position: center;
    }

    /* Center the glass card and make it fit mobile */
    .volunteer-hero__card {
        width: 100%;
        max-width: 520px; /* readable line length */
        margin: 0 auto; /* center */
        text-align: center;
        box-sizing: border-box;
    }

    /* If the card had absolute positioning on desktop, neutralize it */
    .volunteer-hero__card {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

        /* Ensure rich text from Umbraco doesn't add weird margins */
        .volunteer-hero__card p {
            margin: 0 0 10px;
        }

    /* Button centered */
    .volunteer-hero__btn {
        display: inline-flex;
        justify-content: center;
        margin-top: 10px;
    }
}



@media (max-width: 991px) {

    .volunteer-hero {
        position: relative;
        overflow: hidden;
    }


    .volunteer-hero__wave {
        display: block;
        width: 100%;
        height: auto;
        position: absolute;
        left: 0;
        z-index: 2;
    }

    .volunteer-hero__wave--top {
        top: -1px;
    }

    .volunteer-hero__wave--bottom {
        bottom: -1px;
    }

    /* Ensure the path uses the same fill */
    .volunteer-hero__wave path {
        fill: white;
    }

    /* Overpaint 1–2px seams (independent of background image) */
    .volunteer-hero__wave--top::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -2px; /* covers seam above */
        height: 4px;
        background: white;
        z-index: 99999;
    }

    .volunteer-hero__wave--bottom::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -2px; /* covers seam below */
        height: 4px;
        background: white;
    }
}


@media (max-width: 991px) {
    footer.footer .panel .divider {
        width: 75%;
        margin: 20px auto 12px;
    }
    .ak_strip__text {
        justify-self: left;
    }
    .qr-card {
        padding: 0;
    }
}

@media (max-width: 1200px) {
    .donorinfo-badge-arrow {
        display: none;
    }
}

/* RESPONSIVE */
@media (max-width: 960px) {
    .kok_inner {
        grid-template-columns: 1fr;
    }

    .kok_right {
        order: 2;
    }

    .kok_left {
        order: 1;
    }

    
}

@media (max-width: 992px) {
    .logi_stickers {
        display: none;
    }
}

    @media (max-width: 560px) {
        .kok_card {
            padding: 18px;
            border-radius: 22px;
        }

        .kok_btn {
            width: 100%;
            text-align: center;
        }
    }

footer.footer .panel .sticker {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0) rotate(-15deg);
}