/* Versie 1.4.1: formaatkeuzes werken met en zonder de DIVI-basisopmaak. */
figure.zv-editor-image {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-top: 1.4em;
    margin-bottom: 1.4em;
    padding: 0;
    float: none;
    clear: both;
}
figure.zv-editor-image.zv-image-width-75 { width: 75%; }
figure.zv-editor-image.zv-image-width-50 { width: 50%; }
figure.zv-editor-image.zv-image-width-33 { width: 33.3333%; }
figure.zv-editor-image.zv-image-align-left { margin-left: 0; margin-right: auto; }
figure.zv-editor-image.zv-image-align-center { margin-left: auto; margin-right: auto; }
figure.zv-editor-image.zv-image-align-right { margin-left: auto; margin-right: 0; }
figure.zv-editor-image img,
figure.zv-editor-image picture,
figure.zv-editor-image picture img {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px; /* Ook afbeeldingen uit eerdere versies krijgen 15px. */
    object-fit: contain;
}
figure.zv-editor-image figcaption {
    display: block;
    margin: .55em 0 0;
    font-size: .88em;
    line-height: 1.45;
    color: inherit;
    opacity: .8;
    text-align: center;
}
/* Bestaande WordPress-afbeeldingen en afbeeldingsbijschriften in de vacature. */
.zv-description img,
.zv-description .wp-caption,
.single-zv_vacature .et_pb_post_content img,
.single-zv_vacature .et_pb_post_content .wp-caption,
.single-zv_vacature .entry-content img,
.single-zv_vacature .entry-content .wp-caption {
    max-width: 100%;
    height: auto;
}
@media (max-width: 600px) {
    /* De gekozen grootte geldt op desktop; op mobiel benut de foto de tekstbreedte. */
    figure.zv-editor-image,
    figure.zv-editor-image.zv-image-width-75,
    figure.zv-editor-image.zv-image-width-50,
    figure.zv-editor-image.zv-image-width-33 {
        width: 100% !important;
        max-width: 100% !important;
    }
}
