/**
 * Standard photo corners for the Marine Group public website.
 * Scope to photographic components; preserve logos, diagrams and full-bleed heroes.
 */
body.lmg-photo-corners {
    --lmg-photo-radius: 5px;
}

/* Clip the actual photo viewport, including zoomed images and their overlays. */
body.lmg-photo-corners :is(
    .lma-story-image,
    .lma-mission-photo,
    .lma-member-photo,
    .lma-hero-portrait,
    .lmgc-job-image,
    .lch-featured__slide > a,
    .lch-card__media,
    .lch-offering-card__media,
    .lch-latest-card__media,
    .vcex-blog-entry-media,
    .single-blog-media,
    .related-post-thumb,
    .wpex-carousel-entry-media,
    .vcex-video-inner
) {
    border-radius: var(--lmg-photo-radius);
    overflow: hidden;
}

/*
 * Round the image itself as well. In the mission layout the intermediate
 * WPBakery wrappers are intentionally static and must not become clipping boxes.
 */
body.lmg-photo-corners :is(
    .lma-story-image,
    .lma-mission-photo,
    .lma-member-photo,
    .lma-hero-portrait,
    .lmgc-job-image,
    .lch-card__media,
    .lch-offering-card__media,
    .lch-latest-card__media,
    .vcex-blog-entry-media,
    .single-blog-media,
    .related-post-thumb,
    .wpex-carousel-entry-media,
    .vcex-video-inner
) img,
body.lmg-photo-corners .lma-mini-member > img,
body.lmg-photo-corners .lch-featured__slide > a > img {
    border-radius: var(--lmg-photo-radius);
}

/* The homepage's two photographic compositions use native Total image modules. */
body.lmg-photo-corners.home .vcex-image-inner:has(> img[src*="/3-Stuks-Plaatjes-DEF-GOED-V2-"]) {
    border-radius: var(--lmg-photo-radius);
    overflow: hidden;
}

body.lmg-photo-corners.home .vcex-image-img[src*="/3-Stuks-Plaatjes-DEF-GOED-V2-"],
body.lmg-photo-corners .vcex-video-overlay {
    border-radius: var(--lmg-photo-radius);
}
