/*** Fixes to the DSFR classes ***/

.fr-header__service-title em {
    font-weight: lighter
}

/*** Prefix the classes defined here with cmsfr- ***/

/* cf. https://github.com/wagtail/wagtail/issues/4431 */
.cmsfr-block-text p:empty {
    display: none
}

.cmsfr-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat
}

.cmsfr-hero-large {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center
}

.cmsfr-background-dark h1,
.cmsfr-background-dark p,
.cmsfr-background-dark button,
.cmsfr-background-dark ul {
    color: white
}

:root[data-fr-theme=light] .cmsfr-background-dark .fr-btn--secondary {
    background-color: rgba(255, 255, 255, 0.3)
}

.cmsfr-author_card__header {
    flex: 0 0 6rem !important;
    width: 6rem !important
}

.cmsfr-author-img {
    border-radius: 50%;
    height: 4.5rem !important;
    margin: 1.5rem;
    width: 4.5rem
}

.cmsfr-vertical_contact_card__header {
    background: var(--background-default-grey)
}

.cmsfr-vertical_contact_card-img {
    border-radius: 50%;
    height: 100%;
    width: 100%;
    margin: auto;
    max-width: 50%;
    aspect-ratio: initial !important
}

.cmsfr-block-stepper dd {
    padding-left: 0
}

.cmsfr-stepper__details {
    display: inherit;
    margin-top: 1rem;
    width: 100%
}

.cmsfr-footer__bottom-extra {
    border-left: 1px solid var(--border-default-grey);
    padding-left: 1em;
    margin-left: 1em
}

.cmsfr-display__inline {
    display: inline
}

@media all and (max-width: 575px) {
    .cmsfr-order__2 {
        order: 2
    }
}
