/* The hero ends at the midpoint of the key figures card, whatever its height. */
@media (min-width: 822px) {
    /* Keep the image/card junction free of the theme section margins. */
    .single-projet .site-main > article > .header-article { margin-bottom: 0; }
    .single-projet .site-main > article > .header-article + section { margin-top: 0; display: flow-root; }
    .single-projet .header-article .space-title { height: var(--project-card-half, 284px); }
    .single-projet .project-number { position: relative; z-index: 2; margin-top: calc(-1 * var(--project-card-half, 284px)); }
}

/* Match the 55px image spacing in News, including classic-editor images. */
.single-projet .contener-article :is(.wp-block-image, .wp-block-gallery, p:has(> img), p:has(> a > img)) { margin-top: 55px; margin-bottom: 55px; }
.single-projet .contener-article img { display: block; }
@media (max-width: 600px) {
    .single-projet .contener-article :is(.wp-block-image, .wp-block-gallery, p:has(> img), p:has(> a > img)) { margin-top: 32px; margin-bottom: 32px; }
}

/* Leave breathing room after the project content before the next section. */
.single-projet .contener-article { padding-bottom: 120px; }
.single-projet .contener-article > :last-child { margin-bottom: 0; }
@media (max-width: 821px) {
    .single-projet .contener-article { padding-bottom: 60px; }
}

/* No extra space below the single project page. */
.single-projet .site-main { padding-bottom: 0; }
