/* Kolom (from BRM): vertical alignment of its stack within the row. */
.wzr-column--valign-center,
.wzr-column--valign-center > .acf-innerblocks-container { justify-content : center; }

.wzr-column--valign-bottom,
.wzr-column--valign-bottom > .acf-innerblocks-container { justify-content : flex-end; }

/* Editor: the column sits in the editor's block wrapper (the grid item); let it fill the row, so alignment works there too. */
.acf-innerblocks-container > .wp-block:has(> .wzr-column) { display : flex; flex-direction : column; }
.acf-innerblocks-container > .wp-block > .wzr-column      { flex : 1; }

/* Backgrounds. The text tokens follow the ground, so headings and text inside need no colours of their own. */
.wzr-column--bg       { padding : var(--wzr-panel-padding-y) var(--wzr-panel-padding-x); }
.wzr-column--bg-dark  { background : var(--wzr-gradient-dark); --wzr-color-heading : var(--wzr-color-heading-on-dark); --wzr-color-body : var(--wzr-color-body-on-dark); }
.wzr-column--bg-white { background : var(--color-white); --wzr-color-heading : var(--wzr-color-heading-on-light); --wzr-color-body : var(--wzr-color-body-on-light); }
/* Kaart: a white card with the card radius and shadow on any ground (the contact form box, Webflow widget-contact). */
.wzr-column--bg-outline { padding : 4.8rem; border : 1px solid var(--color-gray-200); border-radius : 2.4rem; background : var(--color-white); --wzr-color-heading : var(--wzr-color-heading-on-light); --wzr-color-body : var(--wzr-color-body-on-light); }
@media screen and (max-width: 991px) { .wzr-column--bg-outline { padding : 2.4rem 3.2rem 3.2rem; } }
.wzr-column--bg-card  { background : var(--color-white); border-radius : var(--wzr-radius-xl); box-shadow : var(--wzr-shadow-card); --wzr-color-heading : var(--wzr-color-heading-on-light); --wzr-color-body : var(--wzr-color-body-on-light); }

.wzr-column--bg-image {
    --wzr-color-heading : var(--wzr-color-heading-on-dark);
    --wzr-color-body    : var(--wzr-color-body-on-image);
    position            : relative;
    isolation           : isolate;
    min-height          : var(--wzr-panel-media-min);
}

.wzr-column__media,
.wzr-column__media::after {
    position : absolute;
    inset    : 0;
    z-index  : -1;
}

.wzr-column__media::after {
    content    : "";
    z-index    : 0;
    background : var(--wzr-overlay-dark);
}

.wzr-column__media img {
    width      : 100%;
    height     : 100%;
    object-fit : cover;
}

/* Outside a CTA card a panel column has its own rounded corners. */
.wzr-columns:not(.wzr-columns--cta) > .wzr-column--bg { border-radius : var(--wzr-radius-l); overflow : hidden; }

/* Afbeelding zonder overlay: the photo fills the column, the text colours stay those of the ground. */
.wzr-column--bg-photo {
    position   : relative;
    isolation  : isolate;
    min-height : var(--wzr-panel-media-min);
}

.wzr-column--bg-photo .wzr-column__media::after { content : none; }


/* Smaller: indented on both sides (desktop), e.g. 6 of 12 tracks inside a 2:1 column. */
@media screen and (min-width: 992px) {
    .wzr-column--inset { padding-inline : var(--wzr-column-inset); }
}

/* Verbergen op: tablet and phone, or phones only (front end; the editor keeps showing it). */
@media screen and (max-width: 991px) {
    .wzr-column--hide-tablet:not(.editor-styles-wrapper *) { display : none; }
}

@media screen and (max-width: 767px) {
    .wzr-column--hide-mobile:not(.editor-styles-wrapper *) { display : none; }
}

/* Naast elkaar: the blocks side by side, from the left or spread over the width (wrapping when there's no room). */
.wzr-column--row,
.wzr-column--row > .acf-innerblocks-container {
    flex-direction  : row;
    flex-wrap       : wrap;
    align-items     : center;           /* "Verticaal uitlijnen" works across now: the row is centred by default */
    justify-content : flex-start;
    column-gap      : var(--wzr-gap-l);
}

.wzr-column--row-spread,
.wzr-column--row-spread > .acf-innerblocks-container { justify-content : space-between; }
