/* Beheer (website-cms): opmaak van wat cms.js op de site van Ivanhoe zet. */

/* Een aangepaste tekst bestaat uit losse alinea's; even veel witruimte als de oorspronkelijke </br></br>. */
[data-cms] > p:not(:last-child) { margin-bottom: 1.625em; }
.callaction-area [data-cms="contact-tekst"] { padding: 20px 0; }
.callaction-area [data-cms="contact-tekst"] p { padding: 0; }
[data-cms] ul { padding-left: 1.25em; }

/* Nieuws */
.cms-news { min-height: 200px; }
.cms-news__item + .cms-news__item { margin-top: 60px; }
.cms-news__body > p:not(:last-child) { margin-bottom: 1.625em; }
.cms-news__body ul { padding-left: 1.25em; }
.cms-news__img { display: block; max-width: 100%; max-height: 480px; width: auto; height: auto; margin-top: 10px; }
.cms-news__empty { margin: 0; text-align: center; }

/* Titelhouders: ruimte reserveren tot de carrousel klaar is, zodat de pagina niet verspringt. */
[data-cms-titles]:empty { min-height: 420px; background-color: #04091e; }
/* Alle foto's in dezelfde verhouding (2:3, zoals de oorspronkelijke), ook als er een ander formaat opgeladen wordt. */
[data-cms-titles] .speaker-img img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

/* Alle titelhouders even hoog (zo hoog als de langste), met of zonder foto; de inhoud staat verticaal in het midden. */
[data-cms-titles].owl-loaded .owl-stage { display: flex; }
[data-cms-titles].owl-loaded .owl-stage::after { display: none; }
[data-cms-titles] .owl-item { display: flex; flex-shrink: 0; }
[data-cms-titles] .single-speaker { display: flex; align-items: center; width: 100%; min-height: 320px; }
[data-cms-titles] .single-speaker > .container { width: 100%; }

/* Titelhouder zonder foto: tekst over de volle breedte, gecentreerd. */
[data-cms-titles] .single-speaker--text .speaker-info { padding: 48px 40px; text-align: center; }
[data-cms-titles] .single-speaker--text .speaker-info p { max-width: 60ch; margin-left: auto; margin-right: auto; }
@media (max-width: 767px) {
  [data-cms-titles] .single-speaker--text .speaker-info { padding: 40px 24px; }
}
