.block-section {

}
.block-section::before,
.block-section::after {
    content: '';
    display: block;
    height: 1px;
}

.block-section::before {
    margin-bottom: 80px;
}
.block-section::after {
    margin-top: 80px;
}

/* Special case where two sections with a white background follow each other. Exclude case where we have ".block-latest-clients", it has a gradient background so we need to keep the space */
.block-section.has-white-background-color:not(:has(.block-latest-clients)) + .block-section.has-white-background-color::before {
    display: none;
}

.block-section__inner {
    justify-content: center;
}

.block-section__content {
    --custom-theme-flex-span: var(--custom-theme-flex-inner-span);
}

.page-body__content .block-section:has(.block-section__content > .block-latest-news:last-child:first-child:empty) {
    display: none;
}


@media screen and (max-width: 991px) {
    .block-section__content > .block-h1,
    .block-section__content > .is-style-like-h1 {
        font-size: clamp(2.5rem, 3.6vw, 2.875rem);
    }
}

@media screen and (max-width: 767px) {

    .block-section::before {
        margin-bottom: 64px;
    }
    .block-section::after {
        margin-top: 64px;
    }

    .block-section__content > .block-h1,
    .block-section__content > .is-style-like-h1 {
        font-size: clamp(2rem, 8.88vw, 2.5rem);
    }
}
