/*
Theme Name: Kledingverhuur Eringa
Theme URI: https://lefcreative.nl/
Author: Lef Creative
Author URI: https://lefcreative.nl/
Description: Childthema van Leflite voor Kledingverhuur Eringa
Text Domain: kledingverhuur-eringa
Version: 1.0.0
License: /
License URI: /
Template: leflite
*/

/* ---------- fonts (self-hosted, AVG) ---------- */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-stretch: 75% 100%; font-display: swap; src: url('fonts/bricolage-grotesque-var.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url('fonts/open-sans-var.woff2') format('woff2'); }

/* ---------- tokens ---------- */
:root {
    --er-tekst: #3B3B3B;            /* running copy (same as the old site) */
    --er-grijs: var(--darkgray);    /* meta */
    --er-lijn: #E6E3D8;
    --er-lijn-donker: rgba(38, 38, 38, .18);
    --er-lijn-op-donker: rgba(255, 255, 255, .12);
    --er-r-kaart: var(--general-border-radius);
    --er-r-blok: 28px;
    --er-ease: cubic-bezier(.16, 1, .3, 1);
    --er-schaduw: var(--general-box-shadow);
    --er-kop-marge: clamp(32px, 4vw, 52px);   /* section header to its content */
    --er-uitsteek: clamp(48px, 7vw, 112px);   /* how far the subpage header photo hangs into the next section */
}

/* ---------- basis ---------- */
html:root {
    --section-padding: clamp(64px, 9vw, 120px);
    --transparent-top-section-padding: calc(var(--fake-menu-height) + var(--section-padding));
}
html,
body {
    overflow-x: clip;
}
body {
    color: var(--er-tekst);
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
    color: var(--black);
    font-stretch: 85%;
    letter-spacing: -.02em;
    text-wrap: balance;
}
::selection {
    background: var(--primary);
    color: var(--black);
}
/* ring for keyboard users only, never after a click or tap */
:focus:not(:focus-visible) {
    outline: none;
}
:focus-visible {
    outline: 3px solid var(--error);
    outline-offset: 3px;
}
a, button {
    -webkit-tap-highlight-color: transparent;
}
@media (min-width: 1200px) {
    body .container {
        max-width: min(1310px, calc(100% - 50px));
    }
}
/* the design has no vertical margin on columns (the col block adds 10px); rows space them with row-gap */
section.lef-section .row > .wp-block-custom-section-block-col {
    margin-top: 0;
    margin-bottom: 0;
}
/* running copy is --er-tekst; the theme colours light sections with their -content token */
section.lef-section.bg-white,
section.lef-section.bg-tertiary {
    color: var(--er-tekst);
}
:where(section.lef-section .content-wrapper) h2:not(:last-child) {
    margin-bottom: 16px;
}
/* two sections on the same background read as one block */
section.lef-section.bg-white + section.lef-section.bg-white,
section.lef-section.bg-tertiary + section.lef-section.bg-tertiary {
    padding-top: 0;
}
/* a section header sits close to its content */
section.lef-section.section-kop {
    padding-bottom: var(--er-kop-marge);
}
section.lef-section.section-kop p {
    max-width: 46rem;
    font-size: 18px;
}
/* split header: h2 left, lead right, 64px apart (32px padding either side) */
section.lef-section.section-kop.align-bottom p {
    max-width: 34rem;
}
@media (min-width: 992px) {
    section.lef-section.section-kop.align-bottom .row > div:first-child {
        padding-right: 32px;
    }
    section.lef-section.section-kop.align-bottom .row > div + div {
        padding-left: 32px;
    }
}
section.lef-section.section-smal {
    padding-bottom: clamp(40px, 5vw, 64px);
}
/* text links in content: orange underline */
#main .content-wrapper p a:not(.btn),
#main .content-wrapper p button.eringa-cookie-instellingen {
    color: var(--black);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 3px;
    text-decoration-skip-ink: none;
    text-underline-offset: 4px;
}
#main .content-wrapper p a:not(.btn):hover,
#main .content-wrapper p button.eringa-cookie-instellingen:hover {
    text-decoration-color: var(--black);
}

/* ---------- topbar ---------- */
.topbar {
    font-size: 14px;
}
.topbar .topbar-inner {
    min-height: 38px;
    white-space: nowrap;
}
.topbar .topbar-text {
    display: flex;
    gap: 24px;
}
.topbar .topbar-text a {
    text-decoration: none;
    opacity: .85;
}
.topbar .topbar-text a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* open status: dot + text (theme shortcode) */
.open-status {
    display: inline-flex;
    gap: .55em;
    font-weight: 600;
}
body .open-status .open-status-circle {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--yellow);
}
body .open-status .open-status-circle.opened {
    background-color: var(--succes);
}
body .open-status .open-status-circle.opened::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: er-puls 1.8s ease-out infinite;
}
@keyframes er-puls {
    to { transform: scale(2.6); opacity: 0; }
}

/* ---------- header ---------- */
header.navigation {
    border-bottom: 1px solid transparent;
    transition-property: background-color, border-color, box-shadow;
}
header.navigation.scrolled {
    border-color: var(--er-lijn);
    box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .5);
}
body .main-navigation .menu {
    gap: 32px;
    margin: 0;
}
body .main-navigation-alt .main-nav-menu {
    margin: 0;
}
body .main-navigation .menu > li > a {
    padding: 6px 0;
    font-size: 17px;
    background: linear-gradient(var(--primary), var(--primary)) 0 88% / 0 6px no-repeat;
    transition: background-size .3s var(--er-ease);
}
body .main-navigation .menu > li > a:hover,
body .main-navigation .menu > li.current-menu-item > a {
    background-size: 100% 6px;
}
/* menu on the right, beside the button (the theme pushes it to the logo) */
body .navigation .navigation-inner.display-logo-menu-menu.alignment-left-right .nav-holder-primary-1 {
    margin-left: auto;
    margin-right: 22px;
}
/* "Plan je bezoek" */
body .menu-item-has-button > a {
    padding: 0 !important;
}
body .menu-item-button {
    border-width: 2px;
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding-block: 0;
    transition: background-color .25s;
}

/* mobile menu: big items with dividers, full-width button (component CSS loads later: body + its depth) */
body nav.mobile-navigation .menu > li > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--er-lijn);
    font-weight: 600;
    line-height: 1.65;
}
body nav.mobile-navigation .menu > li.menu-item-has-button > a {
    margin-top: 20px;
    border: 0;
}
body nav.mobile-navigation .menu-item-button {
    display: flex;
    justify-content: center;
}

/* ---------- buttons ---------- */
body .btn {
    justify-content: center;
    gap: .5em;
    border-width: 2px;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .25s, color .25s, border-color .25s, transform .2s var(--er-ease);
}
body .btn:active {
    transform: scale(.97);
}
body .btn.btn-big {
    padding: var(--btn-big-padding);
    font-size: var(--btn-big-font-size);
}
body .btn.bg-black:hover {
    background-color: #000;
    color: var(--white);
}
body .btn.bg-transparent {
    border-width: 2px;
}
body .btn.bg-transparent:hover,
body .btn.bg-white:hover {
    background-color: var(--black);
    border-color: var(--black);
    color: var(--white);
}
/* buttons sit 12px apart, like the design */
body .buttons-holder {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: var(--btn-margin-top) 0 0;
}
body .buttons-holder .btn {
    margin: 0;
}
body .buttons-holder.alignment-center {
    justify-content: center;
}

/* ==========================================================================================================
   Components = Eringa's own blocks (functions/blocks.php). Every rule keys off the class the block template
   prints itself, or :has() of that class for its column/section: nothing depends on a class an editor types.
   ========================================================================================================== */

/* ---------- hero (block "Hero met kledingrek", in a yellow section) ---------- */
section.lef-section:has(.eringa-hero) {
    isolation: isolate;
    overflow: hidden;
    min-height: calc(min(80vh, 760px) + var(--fake-menu-height));
    align-items: center;
    padding-top: calc(var(--fake-menu-height) + clamp(48px, 6vw, 80px));
    padding-bottom: clamp(48px, 6vw, 80px);
}
.eringa-hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 24px;
}
@media (min-width: 992px) {
    /* the rail starts 66px from the text, as with the 5/7 columns before */
    .eringa-hero {
        gap: 66px;
    }
}
/* the design size is tuned to the slogan; "verkleedkleding" needs a little less to stay inside its column */
.eringa-hero h1 {
    margin-bottom: 0;
    font-size: clamp(46px, 5.6vw, 88px);
    line-height: .94;
    letter-spacing: -.022em;
    word-spacing: .04em;
}
.eringa-hero-tekst p {
    max-width: 34ch;
    margin: 24px 0 0;
    font-size: clamp(17px, 1.4vw, 20px);
}

/* clothes rail: hangs from the ceiling and runs on to the edge of the screen (there is more) */
/* the rail runs to the viewport edge: container edge to screen edge (container min(1310, 100% - 50) incl. 15px padding) */
.kledingrek {
    position: relative;
    margin-right: calc((min(1310px, 100vw - 50px) - 100vw) / 2 - 15px);
    padding-top: 12px;
}

.kledingrek-stang {
    position: absolute;
    left: 0;
    right: 0;
    top: 20px;
    z-index: 2;
    height: 12px;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(#e2e2e2, #9a9a9a 55%, #6d6d6d);
    box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .4);
}
.kledingrek-stang::before,
.kledingrek-stang::after {
    content: "";
    position: absolute;
    bottom: 6px;
    width: 8px;
    height: 1200px;
    background: linear-gradient(90deg, #8e8e8e, #d4d4d4, #7a7a7a);
}
.kledingrek-stang::before { left: 9%; }
.kledingrek-stang::after { left: 74%; }
.kledingrek .kledingrek-lijst {
    position: relative;
    z-index: 3;
    display: flex;
    gap: clamp(12px, 1.4vw, 22px);
    margin: 0;
    padding: 0 0 40px 3%;
    list-style: none;
    overflow: hidden;
}
.kledingrek .kledingrek-hanger {
    --rust: 0deg;
    flex: 0 0 clamp(150px, 14vw, 205px);
    transform: rotate(var(--rust));
    transform-origin: 50% 14px;
}
.kledingrek-hanger:nth-child(8n+1) { --rust: -2deg; --dy: 4px; }
.kledingrek-hanger:nth-child(8n+2) { --rust: 1.5deg; --dy: 44px; }
.kledingrek-hanger:nth-child(8n+3) { --rust: -1deg; --dy: 12px; }
.kledingrek-hanger:nth-child(8n+4) { --rust: 2deg; --dy: 56px; }
.kledingrek-hanger:nth-child(8n+5) { --rust: -1.5deg; --dy: 20px; }
.kledingrek-hanger:nth-child(8n+6) { --rust: 1deg; --dy: 48px; }
.kledingrek-hanger:nth-child(8n+7) { --rust: -2deg; --dy: 8px; }
.kledingrek-hanger:nth-child(8n) { --rust: 1.5deg; --dy: 36px; }
.kledingrek button.kledingrek-knop {
    all: unset;
    display: block;
    width: 100%;
    color: var(--black);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.kledingrek button.kledingrek-knop:focus-visible {
    outline: 3px solid var(--error);
    outline-offset: 6px;
    border-radius: 12px;
}
.kledingrek-haak {
    display: block;
    width: 72%;
    margin: 0 auto -4px;
    overflow: visible;
    color: #3a3a3a;
}
.kledingrek-foto {
    position: relative;
    display: block;
    margin-top: var(--dy);
    padding: 6px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--er-schaduw);
    transition: transform .4s var(--er-ease);
}
/* cords from the hanger's ends (x 8 and 112 of 120 = 19% and 81%) to the photo, with a clip on the edge */
.kledingrek-foto::before,
.kledingrek-foto::after {
    content: "";
    position: absolute;
    bottom: calc(100% - 9px);
    width: 8px;
    height: calc(var(--dy) + 14px);
    background: linear-gradient(#3a3a3a, #3a3a3a) 50% 0 / 2px 100% no-repeat, linear-gradient(#3a3a3a, #3a3a3a) 50% 100% / 8px 12px no-repeat;
    border-radius: 0 0 2px 2px;
    pointer-events: none;
}
.kledingrek-foto::before { left: calc(19% - 4px); }
.kledingrek-foto::after { right: calc(19% - 4px); }
.kledingrek-foto img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4.3;
    object-fit: cover;
    border-radius: 7px;
}
.kledingrek-label {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 10px 0 0 14%;
    padding: 5px 10px 5px 18px;
    overflow: hidden;
    border-radius: 4px 10px 10px 4px;
    background: var(--white);
    box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .45);
    font: 700 13.6px/1.2 var(--body-font);
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: rotate(-4deg);
}
.kledingrek-label::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: inset 0 0 0 1.5px var(--black);
}
.kledingrek-knop:hover .kledingrek-foto {
    transform: translateY(-4px);
}
/* the theme makes every direct child of a section relative */
section.lef-section > .kledingrek-confetti {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
/* arrival: costumes are hung on the rail and swing out */
@media (prefers-reduced-motion: no-preference) {
    .kledingrek-hanger:not(.is-klaar) {
        animation: er-ophangen 1.5s var(--er-ease) both;
        animation-delay: calc(.12s + var(--i) * .11s);
    }
    .kledingrek-hanger.is-swing {
        animation: er-slinger 1.3s ease-out;
    }
}
@keyframes er-ophangen {
    0%   { opacity: 0; transform: translateY(-70px) rotate(0); }
    30%  { opacity: 1; transform: translateY(0) rotate(9deg); }
    50%  { transform: rotate(-6deg); }
    68%  { transform: rotate(3.5deg); }
    84%  { transform: rotate(-1.5deg); }
    100% { transform: rotate(var(--rust)); }
}
@keyframes er-slinger {
    0%   { transform: rotate(var(--rust)); }
    18%  { transform: rotate(-11deg); }
    40%  { transform: rotate(7deg); }
    60%  { transform: rotate(-4deg); }
    80%  { transform: rotate(1.5deg); }
    100% { transform: rotate(var(--rust)); }
}


/* ---------- costume cards (block "Kostuumkaart") ---------- */
/* every card as tall as its row, "Vraag naar je maat" at the bottom: the links of a row line up even when a
   description wraps to two lines (it did in the design too) */
section.lef-section .row:has(> .wp-block-custom-section-block-col > .card-kostuum) {
    align-items: stretch;
    row-gap: clamp(16px, 2vw, 28px);
}
body .row:has(> .wp-block-custom-section-block-col > .card-kostuum) > .col-lg-12 .buttons-holder {
    margin-top: 12px;
}
/* doubled class: beats the theme's .row.align-stretch .card and .card .content-outer */
body .row .card.card-kostuum.card-kostuum,
body .row .card.card-deur.card-deur {
    border: 0;
    border-radius: 0;
    background: transparent;
}
body .row .card.card-kostuum.card-kostuum {
    display: flex;
    flex-direction: column;
    height: 100%;
}
body .card.card-kostuum .image-outer .image-holder {
    padding-bottom: 125%;   /* 4 / 5 */
    overflow: hidden;       /* the photo zooms inside its frame, like the design */
    background-color: var(--tertiary);
}
body .card.card-kostuum .image-holder img,
body .card.card-deur .image-holder img {
    border-radius: 0;
    transition: transform .6s var(--er-ease);
}
.card-kostuum:hover .image-holder img {
    transform: scale(1.04);
}
body .card.card-kostuum .content-outer {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 2px 0;
}
.card-kostuum h3 {
    margin: 0;
    font-size: 21.6px;
    font-weight: 700;
}
.card-kostuum p {
    margin: 3px 0 8px;
    color: var(--er-grijs);
    font-size: 15px;
    line-height: 1.65;
}
/* #main a:not(.btn):not(.button) (theme) resets the underline colour: same depth to win.
   The impression card (block "Impressiekaart") is one link as a whole; its "Bekijk 6 foto's" is a span */
#main .card-kostuum a.kostuum-vraag,
#main .card-impressie .kostuum-vraag {
    align-self: flex-start;
    margin-top: auto;
    color: var(--black);
    font-size: 14.4px;
    font-weight: 700;
    line-height: 1.65;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    /* bigger hit area without moving anything */
    padding-block: 12px;
    margin-bottom: -12px;
}
#main .card-kostuum a.kostuum-vraag:hover,
#main a.card-impressie:hover .kostuum-vraag {
    text-decoration-color: var(--black);
}
#main a.card.card-impressie.card-impressie {
    text-decoration: none;
}
#main a.card-impressie:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 4px;
    border-radius: var(--er-r-kaart);
}

/* ---------- theme doors (block "Deurkaart"): arched tiles, like the rooms in the shop ---------- */
.row:has(> .wp-block-custom-section-block-col > .card-deur) {
    row-gap: clamp(16px, 2vw, 28px);
    margin: 0 -11.5px;
}
.row > .wp-block-custom-section-block-col:has(> .card-deur),
.row:has(> .wp-block-custom-section-block-col > .card-deur) > .col-lg-12 {
    padding: 0 11.5px;
}
body .row .card.card-deur.card-deur {
    display: block;
    color: var(--black);
}
#main a.card.card-deur:not(.btn) {
    text-decoration: none;
}
body .card.card-deur .image-outer .image-holder {
    padding-bottom: calc(140% - 16.8px);   /* 3 / 4.2 inside the 6px border */
    border: 6px solid var(--white);
    border-radius: 999px 999px 14px 14px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: var(--er-schaduw);
}
.card-deur:hover .image-holder img {
    transform: scale(1.05);
}
.card-deur .content-outer {
    display: block;
    padding: 14px 2px 0;
}
.card-deur .deur-naam {
    display: block;
    margin-top: 4px;
    font: 700 18.4px/1.15 var(--heading-font);
}
.card-deur .deur-tekst {
    display: block;
    margin-top: 4px;
    color: var(--er-tekst);
    font-size: 14.4px;
    line-height: 1.65;
}

/* ---------- steps and house rules (block "Stappen") ---------- */
.eringa-stappen {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: stap;
}
.eringa-stappen.kolommen-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.eringa-stappen li {
    position: relative;
    padding: 28px;
    border: 2px solid var(--black);
    border-radius: var(--er-r-kaart);
}
.eringa-stappen.genummerd li {
    padding-left: 84px;
    counter-increment: stap;
}
.eringa-stappen.genummerd li::before {
    content: counter(stap);
    position: absolute;
    left: 24px;
    top: 24px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--black);
    font: 800 21px/1 var(--heading-font);
}
.eringa-stappen h3 {
    margin-bottom: 8px;
    font-size: 22.4px;
    font-weight: 700;
}
.eringa-stappen p {
    margin: 0;
    font-size: 16px;
}
.eringa-stappen + .content-wrapper {
    margin-top: 28px;
}

/* ---------- visit block (block "Bezoekblok"): yellow card, copy left, shop photo right ---------- */
.eringa-bezoek {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--er-r-blok);
    background-color: var(--primary);
    color: var(--black);
}
.eringa-bezoek-tekst {
    padding: clamp(32px, 5vw, 64px);
}
.eringa-bezoek h2 {
    margin: 0;
}
.eringa-status {
    margin: 0;
}
/* open status as a pill (visit block, contact) */
.eringa-bezoek .open-status,
.eringa-openingstijden .open-status {
    margin: 16px 0 24px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--white);
    font-weight: 700;
}
.eringa-bezoek .openinghours {
    font-size: 17px;
}
.eringa-bezoek-adres p {
    margin: 0 0 12px;
}
.eringa-bezoek-adres p:last-child {
    margin-bottom: 0;
}
.eringa-bezoek-adres strong {
    font-weight: 600;
}
body .eringa-bezoek .buttons-holder {
    margin-top: 24px;
}
.eringa-bezoek-foto img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: 50% 40%;
}

/* opening hours (theme shortcode) */
.openinghours {
    display: grid;
    line-height: 1.65;
    max-width: 26rem;
    margin: 0 0 24px;
    padding: 0;
}
.openinghours .single-day {
    flex-wrap: wrap;   /* too narrow: the time drops whole to the next line instead of breaking */
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--er-lijn-donker);
}
.openinghours .day-time {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}
.openinghours .day-name {
    font-weight: 600;
}
.openinghours .single-day.active .day-name::after {
    content: "vandaag";
    margin-left: .5em;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--black);
    color: var(--white);
    font: 700 12px/1 var(--body-font);
    vertical-align: 2px;
}


/* ---------- reviews (block "Reviews", theme review card): first one large, the rest beside it ---------- */
.eringa-reviews.met-lijst {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: clamp(32px, 5vw, 72px);
}
body .eringa-reviews .card.card-reviews {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
/* the theme sets a 10px gap in lazily loaded component CSS: body prefix */
body .eringa-reviews .card.card-reviews .content-outer {
    gap: 0;
    padding: 0;
}
.eringa-reviews .excerpt-holder {
    order: -1;
}
.eringa-reviews .excerpt-holder p {
    margin: 0;
}
body .eringa-reviews .card-reviews .review-intro .star-count {
    display: none;
}
.eringa-reviews .excerpt-holder p::before { content: "\201C"; }
.eringa-reviews .excerpt-holder p::after { content: "\201D"; }
.eringa-reviews-groot .excerpt-holder p {
    color: var(--black);
    font: 700 clamp(24px, 2.6vw, 35px)/1.2 var(--heading-font);
    font-stretch: 90%;
    letter-spacing: -.015em;
}
body .eringa-reviews .card .review-intro h4 {
    margin-top: 14px;
    font: 700 17px/1.65 var(--body-font);
    letter-spacing: 0;
}
.eringa-reviews h4::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 4px;
    margin-right: .6em;
    border-radius: 2px;
    background: var(--primary);
    vertical-align: middle;
}
.eringa-reviews-lijst {
    display: grid;
    gap: 28px;
}

/* ---------- accented intro (block "Accenttekst") ---------- */
.eringa-accenttekst {
    padding-left: clamp(20px, 3vw, 40px);
    border-left: 6px solid var(--primary);
}
.eringa-accenttekst h2 {
    font-size: clamp(26px, 3vw, 36px);
}
.eringa-accenttekst-tekst p {
    margin: 16px 0 0;
    font-size: 18px;
}

/* ---------- photos in an image block: rounded corners (atelier photo, landing pages) ---------- */
.row > .wp-block-custom-section-block-col > .image-outer img {
    width: 100%;
}

/* ---------- galleries (theme gallery block): square tiles, 8px apart ---------- */
.gallery-outer.row {
    row-gap: 8px;
    margin: 0 -4px;
}
.gallery-outer.row > div {
    padding: 0 4px;
}
.gallery-outer .image-gallery-outer {
    overflow: hidden;
    border-radius: 10px;
}
.gallery-outer.gallery-outer a.image-gallery-outer img {
    padding: 0;
}
.gallery-outer img {
    aspect-ratio: 1;
    transition: transform .5s var(--er-ease), opacity .3s;
}
.gallery-outer + .buttons-holder {
    margin-top: 40px;
}
.gallery-outer a:hover img {
    transform: scale(1.06);
    opacity: .9;
}

/* ---------- subpage header (block "Paginakop", in a yellow section): the photo hangs tilted over the next section ---------- */
section.lef-section:has(.eringa-paginakop) {
    z-index: 1;
    padding-top: calc(var(--fake-menu-height) + var(--er-kop-marge));
    padding-bottom: var(--er-kop-marge);
}
section.lef-section:has(.eringa-paginakop) + section.lef-section {
    padding-top: calc(var(--er-uitsteek) + clamp(40px, 4vw, 56px));
}
.eringa-paginakop {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}
.eringa-paginakop h1 {
    letter-spacing: -.03em;
}
.eringa-paginakop p {
    max-width: 36rem;
    margin-top: 16px;
    font-size: 18px;
}
.eringa-paginakop-foto {
    align-self: start;
    margin: 8px 0 calc(-1 * (var(--er-kop-marge) + var(--er-uitsteek)));
    padding: 6px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--er-schaduw);
    transform: rotate(2deg);
}
.eringa-paginakop-foto img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 30%;
    border-radius: 11px;
}
.eringa-paginakop #breadcrumbs {
    display: block;
    margin-bottom: 16px;
    font-size: 14px;
}
#main .eringa-paginakop #breadcrumbs a {
    display: inline-block;
    padding-block: 8px;
    margin-block: -8px;
    text-decoration: none;
    opacity: .75;
}
#main .eringa-paginakop #breadcrumbs a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* ---------- running text: beside the side card, or any text with several headings (legal pages) ---------- */
.row:has(> .wp-block-custom-section-block-col > .eringa-zijkaart) > .wp-block-custom-section-block-col:not(:has(> .eringa-zijkaart)) h2,
.content-wrapper:has(> h2 ~ h2) h2 {
    margin: 44px 0 14px;
    font-size: clamp(25.6px, 2.8vw, 35.2px);
}
.row:has(> .wp-block-custom-section-block-col > .eringa-zijkaart) > .wp-block-custom-section-block-col:not(:has(> .eringa-zijkaart)) > .content-wrapper:first-child > h2:first-child,
.content-wrapper:has(> h2 ~ h2) > h2:first-child {
    margin-top: 0;
}
.content-wrapper:has(> h2 ~ h2) {
    max-width: 44rem;
}
.content-wrapper:has(> h2 ~ h2) ul li {
    margin-bottom: 6px;
    font-size: 17px;
    line-height: 1.65;
}
/* small outline buttons are chips (theme themes, related pages) */
body .buttons-holder:has(> .btn-small.bg-transparent) {
    gap: 9.6px;
    margin-top: 16px;
}
body .buttons-holder .btn.btn-small.bg-transparent {
    max-width: 100%;        /* a long theme ("Jaren 20, Charleston en Peaky Blinders") wraps instead of leaving a 320px screen */
    padding: 8.8px 16px;
    font-size: 15.2px;
    line-height: 1.5;
    white-space: normal;
}

/* ---------- photo row with captions (block "Fotorij") ---------- */
.eringa-fotorij {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.eringa-fotorij img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
}
.eringa-fotorij figcaption {
    margin-top: 8px;
    padding-left: 0;
    border-left: 0;
    color: var(--er-grijs);
    font-size: 14.4px;
}

/* ---------- side card (block "Zijkaart") ---------- */
.row > .wp-block-custom-section-block-col:has(> .eringa-zijkaart) {
    position: sticky;
    top: calc(var(--fake-menu-height) + 26px);
    align-self: flex-start;
}
.eringa-zijkaart {
    max-width: 340px;
    margin-left: auto;
    padding: 28px;
    border-radius: var(--er-r-kaart);
    background-color: var(--tertiary);
    color: var(--black);
}
.eringa-zijkaart h2 {
    margin-bottom: 12px;
    font-size: 25.6px;
}
.eringa-zijkaart .openinghours {
    margin: 28px 0 20px;
    font-size: 14.7px;
}
.eringa-zijkaart .openinghours .single-day {
    padding: 5.6px 0;
}
/* narrow lists (side card, footer): today is a highlighted row instead of the "vandaag" label,
   which does not fit next to "9.00–12.00 / 13.00–17.00" */
.eringa-zijkaart .openinghours .single-day.active,
#footer .openinghours .single-day.active {
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-bottom-color: transparent;
    border-radius: 8px;
    /* the colours of the design's "vandaag" label: ink on a light background, yellow in the dark footer */
    background: var(--black);
    color: var(--white);
}
.eringa-zijkaart .openinghours .single-day.active .day-name::after,
#footer .openinghours .single-day.active .day-name::after {
    content: none;
}
.eringa-zijkaart-adres {
    margin: 0;
}
body .eringa-zijkaart .buttons-holder {
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
body .eringa-zijkaart .buttons-holder .btn {
    width: 100%;
}

/* ---------- contact (blocks "Openingstijden" and "Contactlijst") ---------- */
.eringa-openingstijden h2 {
    font-size: clamp(25.6px, 3vw, 36px);
}
.eringa-openingstijden .open-status {
    background: var(--tertiary);
}
.eringa-contactlijst {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
#main .eringa-contactlijst a:not(.btn) {
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: center;
    column-gap: 14px;
    padding: 16px 20px;
    border: 2px solid var(--black);
    border-radius: 14px;
    color: var(--black);
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s;
}
#main .eringa-contactlijst a:not(.btn):hover {
    background-color: var(--primary);
}
.eringa-contactlijst .icon {
    grid-row: span 2;
    margin: 0;
    font-size: 24px;
}
.eringa-contactlijst small {
    grid-column: 2;
    color: var(--er-grijs);
    font-size: 14.4px;
    font-weight: 400;
}

/* ---------- dark CTA band (block "CTA-band") ---------- */
.eringa-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(32px, 5vw, 56px);
    border-radius: var(--er-r-blok);
    background-color: var(--black);
}
.eringa-cta h2 {
    max-width: 22ch;
    margin: 0;
    color: var(--white);
    font-size: clamp(28px, 3.2vw, 41.6px);
}
.eringa-cta p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .8);
}
body .eringa-cta .buttons-holder {
    margin: 0;
}
body .btn.bg-primary:hover {
    background-color: var(--primary-darkened);
    color: var(--black);
}

/* ---------- FAQ (theme block "Veelgestelde vragen", FAQPage markup) ---------- */
.featured-faqs {
    margin-top: 16px;
}
body .featured-faqs .accordion {
    border: 0;
    border-top: 1px solid var(--er-lijn);
    border-radius: 0;
}
body .featured-faqs .accordion:last-child {
    border-bottom: 1px solid var(--er-lijn);
}
body .featured-faqs .accordion-title {
    position: relative;
    padding: 17.6px 44px 17.6px 0;
}
body .featured-faqs .accordion-title .title {
    color: var(--black);
    font-size: 17px;
}
body .featured-faqs .accordion-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--black);
    transform: translateY(-50%);
}
body .featured-faqs .accordion-toggle .icon {
    margin: 0;
    font-size: 13px;
}
body .featured-faqs .accordion-content {
    padding: 0;
}
body .featured-faqs .accordion-content .content-wrapper {
    padding: 0 0 20px;
}

/* ---------- Complianz cookie banner (build/complianz.php), in the site's own buttons ---------- */
body .cmplz-cookiebanner {
    --cmplz_banner_background_color: var(--white);
    --cmplz_banner_border_color: var(--er-lijn);
    --cmplz_banner_border_width: 1px;
    --cmplz_banner_border_radius: var(--er-r-kaart);
    --cmplz_banner_margin: 16px;
    --cmplz_text_color: var(--er-tekst);
    --cmplz_hyperlink_color: var(--black);
    --cmplz_text_font_size: 14.4px;
    --cmplz_text_line_height: 1.55;
    --cmplz_title_font_size: 22px;
    --cmplz_link_font_size: 13.6px;
    --cmplz_button_font_size: 15px;
    --cmplz_button_border_radius: 999px;
    --cmplz_button_accept_background_color: var(--black);
    --cmplz_button_accept_border_color: var(--black);
    --cmplz_button_accept_text_color: var(--white);
    --cmplz_button_deny_background_color: transparent;
    --cmplz_button_deny_border_color: var(--black);
    --cmplz_button_deny_text_color: var(--black);
    --cmplz_button_settings_background_color: transparent;
    --cmplz_button_settings_border_color: transparent;
    --cmplz_button_settings_text_color: var(--black);
    --cmplz_slider_active_color: var(--black);
    --cmplz_slider_inactive_color: #c9c6bd;
    --cmplz_slider_bullet_color: #fff;
    --cmplz_category_header_always_active_color: var(--black);
    padding: 22px 22px 18px;
    box-shadow: var(--er-schaduw);
}
/* title on the left (Complianz centres it between an empty logo and the close button) */
body .cmplz-cookiebanner .cmplz-header {
    display: flex;
    justify-content: space-between;
}
body .cmplz-cookiebanner .cmplz-title {
    color: var(--black);
    font-weight: 800;
    font-stretch: 85%;
    letter-spacing: -.02em;
}
body .cmplz-cookiebanner .cmplz-buttons {
    gap: 8px;
}
/* leflite styles Complianz itself (accept and deny both primary, hovers on the container id): same id to win */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
    height: 44px;
    padding: 0 18px;
    border-width: 2px;
    transition: background-color .25s, border-color .25s, color .25s;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept {
    border-color: var(--black);
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover {
    background: #000;
    border-color: #000;
    color: var(--white);
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences {
    border-color: var(--black);
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny:hover,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}
/* preferences = a text link with the site's orange underline */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences:hover {
    background: transparent;
    border-color: transparent;
    color: var(--black);
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences:hover {
    text-decoration-color: var(--black);
}
body .cmplz-cookiebanner .cmplz-links .cmplz-link {
    text-decoration-color: var(--yellow);
    text-underline-offset: 3px;
}
/* Complianz moves the focus into the banner: ring for the keyboard only. The theme's hamburger had no keyboard
   ring at all (outline: none): same ring as everywhere else */
body .cmplz-cookiebanner :focus-visible,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:focus-visible,
#header .mobile-menu-toggle:focus-visible {
    outline: 3px solid var(--error);
    outline-offset: 3px;
}
body .cmplz-cookiebanner :focus:not(:focus-visible) {
    outline: none;
}
/* "Cookie-instellingen" (socket and cookie statement) reads as a link */
body button.eringa-cookie-instellingen,
body button.eringa-cookie-instellingen:hover,
body button.eringa-cookie-instellingen:focus {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-underline-offset: 3px;
    cursor: pointer;
}

/* ---------- map (block "Routekaart"), blocked by Complianz until consent ---------- */
.wp-block-custom-section-block-col > .eringa-kaart,
.eringa-kaart > * {
    height: 100%;
}
.eringa-kaart iframe,
.eringa-kaart .cmplz-blocked-content-container {
    display: block;
    height: 100%;
    min-height: var(--eringa-kaart-hoogte, 380px);
    border: 0;
    border-radius: var(--er-r-kaart);
    overflow: hidden;
}
.eringa-kaart iframe {
    filter: saturate(.9);
}

/* ---------- tables in running text (cookie statement) ---------- */
.content-wrapper table {
    margin: 8px 0 20px;
    font-size: 15px;
}
.content-wrapper th,
.content-wrapper td {
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid var(--er-lijn);
    text-align: left;
    vertical-align: top;
}
.content-wrapper th {
    color: var(--black);
}


/* ---------- footer ---------- */
#footer {
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
}
#footer .footer-inner.section-padding {
    padding: clamp(56px, 7vw, 88px) 0 0;
}
@media (min-width: 992px) {
    #footer .footer-inner > .container > .row {
        display: grid;
        grid-template-columns: 1.3fr 1fr 1fr 1fr;
        gap: 0 40px;
        margin: 0;
    }
    #footer .footer-inner > .container > .row > div {
        max-width: none;
        padding: 0;
    }
}
#footer h3 {
    margin: 0 0 14px;
    color: var(--primary);
    font: 700 17.6px/1.2 var(--heading-font);
}
#footer .widget + .widget h3 {
    margin-top: 28px;
}
#footer p,
#footer .content-wrapper > a {
    display: block;
    margin: 0 0 7px;
    font-size: 15px;
    line-height: 1.65;
}
#footer a {
    text-decoration: none;
}
#footer a:hover {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--primary);
}
#footer .footer-merk img {
    width: auto;
    height: 88px;
    padding: 12px 18px;
    border-radius: 16px;
    background: var(--white);
}
#footer .footer-merk p:first-child {
    margin-bottom: 27px;
}
#footer .footer-merk p:nth-child(2) {
    max-width: 30ch;
    margin-bottom: 20px;
}
/* socials: round icon buttons, the label stays for screen readers */
#footer .footer-merk p:last-child {
    display: flex;
    gap: 10px;
}
#footer .footer-merk p:last-child a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    font-size: 0;
    transition: background-color .2s;
}
#footer .footer-merk p:last-child a .icon {
    margin: 0;
    color: var(--white);
    font-size: 19px;
}
#footer .footer-merk p:last-child a:hover {
    background: var(--primary);
}
#footer .footer-merk p:last-child a:hover .icon {
    color: var(--black);
}
#footer .openinghours {
    font-size: 14.4px;
}
#footer .openinghours .single-day {
    padding: 5px 0;
    border-color: var(--er-lijn-op-donker);
}
#footer .openinghours .single-day.active {
    background: var(--primary);
    color: var(--black);
}
#footer .widget-menu ul {
    display: grid;
    gap: 7px;
}
#footer .widget-menu li,
#footer .widget-menu a {
    line-height: 1.65;
}
#footer .socket {
    margin-top: 56px;
    padding: 0 0 96px;
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
    line-height: 1.65;
}
#footer .socket > .container {
    padding-top: 24px;
    border-top: 1px solid var(--er-lijn-op-donker);
}
#footer #socket-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
#footer .socket-half:first-child {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
}
#footer .socket-half:last-child {
    flex: none;
    white-space: nowrap;
}
#footer .socket-inner {
    align-items: flex-start;
}
/* in the socket the button reads like the links next to it */
#footer button.eringa-cookie-instellingen {
    text-decoration: none;
}
#footer button.eringa-cookie-instellingen:hover {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--primary);
}

/* ---------- WhatsApp button (theme) ---------- */
body .whatsapp-button {
    right: clamp(14px, 2vw, 24px);
    bottom: clamp(14px, 2vw, 24px);
    width: 60px;
    height: 60px;
    background-color: #25D366;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45);
    transition: transform .3s var(--er-ease), background-color .2s;
}
body .whatsapp-button:hover {
    background-color: #1EBE5A;
    transform: translateY(-2px);
}

/* ---------- tablet & mobile ---------- */
/* running text beside (or, below 992, above) the side card keeps a readable measure (cards, like the house rules, use the full column) */
.row:has(> .wp-block-custom-section-block-col > .eringa-zijkaart) > .wp-block-custom-section-block-col:not(:has(> .eringa-zijkaart, > .eringa-stappen)) {
    max-width: 44rem;
}
@media (min-width: 992px) and (max-height: 740px) {
    /* a short screen can't hold the sticky side card: let it scroll with the text */
    .row > .wp-block-custom-section-block-col:has(> .eringa-zijkaart) {
        position: static;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    /* Bootstrap fixes the container at 960 here, so the hero text column is always about 370px wide */
    .eringa-hero h1 {
        font-size: 58px;
    }
    .eringa-bezoek-tekst {
        padding-inline: clamp(32px, 4.4vw, 64px);
    }
    .kledingrek {
        margin-right: calc((960px - 100vw) / 2 - 15px);
    }
    #footer .footer-inner > .container > .row {
        grid-template-columns: minmax(0, 1fr) 236px auto minmax(0, .9fr);
        column-gap: 28px;
    }
}
@media (max-width: 1199px) {
    .row > .wp-block-custom-section-block-col:has(> .card-deur) {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    /* Bootstrap's 720px container leaves 40-110px margins on tablets; the design keeps a ~25px gutter */
    body .container {
        max-width: calc(100% - 50px);
    }
}
@media (min-width: 576px) and (max-width: 991px) {
    #cmplz-cookiebanner-container .cmplz-cookiebanner {
        max-width: 440px;
        left: 16px;
        bottom: 16px;
    }
}
@media (max-width: 991px) {
    html:root {
        --logo-height: 62px;
        --padding-inner-navigation-y: 8px;
        --fake-menu-height: calc(var(--logo-height) + 2 * var(--padding-inner-navigation-y));
    }
    /* the design keeps the open-status strip on phones; the theme hides the topbar below desktop */
    .topbar {
        display: block;
    }
    body .mobile-menu-toggle,
    body .mobile-menu-toggle:focus {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: var(--primary);
    }
    body .mobile-menu-toggle .hamburger {
        transform: scale(.7);
    }
    :where(.lef-section) .row {
        row-gap: 24px;
    }
    .row > .wp-block-custom-section-block-col:not(:has(*)) {
        display: none;
    }
    section.lef-section:has(.eringa-hero) {
        min-height: 0;
        padding-bottom: 24px;
    }
    .eringa-hero {
        grid-template-columns: minmax(0, 1fr);
    }
    .kledingrek {
        margin-inline: calc(50% - 50vw);
    }
    .kledingrek-stang {
        border-radius: 0;
    }
    .kledingrek-stang::before,
    .kledingrek-stang::after {
        height: 40px;
    }
    .kledingrek-stang::before { left: 20%; }
    .kledingrek-stang::after { left: 80%; }
    .kledingrek .kledingrek-lijst {
        padding: 0 clamp(16px, 4vw, 40px) 28px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .kledingrek .kledingrek-lijst::-webkit-scrollbar {
        display: none;
    }
    .kledingrek .kledingrek-hanger {
        flex: 0 0 min(42vw, 200px);
        scroll-snap-align: center;
    }
    .row > .wp-block-custom-section-block-col:has(> .eringa-zijkaart) {
        position: static;
    }
    .row:has(> .wp-block-custom-section-block-col > .eringa-zijkaart) {
        row-gap: 32px;
    }
    .eringa-zijkaart {
        max-width: 44rem;
    }
    .eringa-zijkaart .openinghours {
        max-width: none;   /* the list spans the stacked card, like its buttons */
    }
    .eringa-bezoek,
    .eringa-reviews.met-lijst,
    .eringa-stappen.kolommen-3 {
        grid-template-columns: minmax(0, 1fr);
    }
    section.lef-section.section-kop .row {
        row-gap: 33px;
    }
    .row:has(> .wp-block-custom-section-block-col > .card-deur) {
        margin-inline: -6px;
    }
    .row > .wp-block-custom-section-block-col:has(> .card-deur),
    .row:has(> .wp-block-custom-section-block-col > .card-deur) > .col-lg-12 {
        padding-inline: 6px;
    }
    .eringa-paginakop {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    .eringa-paginakop-foto {
        justify-self: end;
        width: min(88%, 26rem);
        margin-top: 0;
    }
    .row:has(> .wp-block-custom-section-block-col > .card-kostuum) {
        margin-inline: -8px;
    }
    .row > .wp-block-custom-section-block-col:has(> .card-kostuum) {
        flex: 0 0 50%;
        max-width: 50%;
        padding-inline: 8px;
    }
    .gallery-outer.row > div {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}
@media (max-width: 760px) {
    .eringa-stappen.kolommen-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (min-width: 561px) and (max-width: 991px) {
    #footer .footer-inner > .container > .row > div {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 700px) {
    .eringa-fotorij {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .eringa-fotorij > figure:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
    .eringa-fotorij > figure:last-child:nth-child(odd) img {
        aspect-ratio: 16 / 9;
    }
}
@media (max-width: 767px) {
    /* Complianz hides the title on phones but keeps its empty row: show the title instead */
    #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-header .cmplz-title {
        display: block;
    }
}
@media (max-height: 400px) {
    /* phones in landscape: Complianz zooms the banner to .6 and its buttons/links to .5 (14px buttons, 5px text);
       full size instead, and the banner scrolls itself when it doesn't fit */
    /* !important only because Complianz's own landscape rules (banner-1-optin.css) are !important */
    #cmplz-cookiebanner-container .cmplz-cookiebanner,
    #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-close,
    #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn,
    #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-documents,
    #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-information {
        zoom: 1 !important;
    }
    #cmplz-cookiebanner-container .cmplz-cookiebanner {
        height: auto;
        max-height: calc(100dvh - 16px);
        overflow-y: auto;
        grid-template-rows: auto !important;   /* Complianz's rows gave the header 0px: the title stuck out above */
        grid-auto-rows: auto !important;
    }
    #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-header {
        max-height: none !important;
        margin-bottom: 4px !important;
    }
    /* the banner scrolls as a whole (title on top), not a cut-off message in an inner scroller */
    #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-body {
        flex: 0 0 auto;
        overflow: visible;
        margin-top: 0 !important;
    }
    #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
        height: auto !important;
        min-height: 44px !important;   /* the portrait height */
        padding: 0 16px !important;
        line-height: 1.2 !important;
        font-size: inherit !important;
    }
}
/* open mobile menu: the page behind it stays put (the theme toggles body.menu-open but doesn't lock scrolling) */
html:has(body.menu-open),
body.menu-open {
    overflow: hidden;
}
body.menu-open .mobile-navigation {
    overscroll-behavior: contain;
}
@media (max-width: 400px) {
    /* the e-mail address must not push the contact cards past the screen edge */
    #main .eringa-contactlijst a:not(.btn) {
        grid-template-columns: 26px minmax(0, 1fr);
        column-gap: 10px;
        padding: 14px;
        overflow-wrap: anywhere;
    }
}
@media (max-width: 640px) {
    /* tables in running text: stacked rows instead of a hidden sideways scroll */
    .content-wrapper table,
    .content-wrapper tbody,
    .content-wrapper tr,
    .content-wrapper td {
        display: block;
    }
    .content-wrapper thead {
        display: none;
    }
    .content-wrapper tr {
        padding: 10px 12px;
        border-bottom: 1px solid var(--er-lijn);
    }
    .content-wrapper td[data-label]::before {
        content: attr(data-label) ": ";
        color: var(--black);
        font-weight: 600;
    }
    .content-wrapper td {
        padding: 2px 0;
        border: 0;
    }
    .content-wrapper td:first-child {
        color: var(--black);
        font-weight: 700;
    }
    .topbar {
        font-size: 12.8px;
    }
    .topbar .topbar-text {
        display: none;
    }
}
@media (max-width: 600px) {
    .row > .wp-block-custom-section-block-col:has(> .card-deur) {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 520px) {
    .eringa-stappen.genummerd li {
        padding: 80px 22px 22px;
    }
    .eringa-stappen.genummerd li::before {
        left: 22px;
        top: 22px;
    }
    .row:has(> .wp-block-custom-section-block-col > .card-kostuum) {
        margin: 0 -6px;
    }
    .row > .wp-block-custom-section-block-col:has(> .card-kostuum) {
        padding: 0 6px;
    }
    .card-kostuum h3 {
        font-size: 17.6px;
    }
    .card-kostuum p {
        font-size: 13.6px;
    }
}
