.rcc-page-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1px clamp(16px, 3vw, 32px);
    box-sizing: border-box;
    clear: both;
}

.rcc-page-shell .rcc-project {
    width: 100%;
    max-width: 1160px;
    font-size: 16px;
    line-height: 1.65;
}

/* Full-width project content without changing the theme header or footer. */
body.single-regio_project #secondary,
body.single-regio_project .site-content > .sidebar,
body.single-regio_project .site-content > .widget-area,
body.single-regio_project #content > .sidebar,
body.single-regio_project #content > .widget-area,
body.single-regio_project .site-content > aside[role="complementary"],
body.single-regio_project #content > aside[role="complementary"],
body.single-regio_project .container:has(.rcc-project) > .sidebar,
body.single-regio_project .container:has(.rcc-project) > .widget-area,
body.single-regio_project .post-meta,
body.single-regio_project .entry-meta,
body.single-regio_project .comments-area,
body.single-regio_project #comments {
    display: none !important;
}

body.single-regio_project #primary.content-area {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    float: none !important;
}

body.single-regio_project .site-content:has(.rcc-project) > .content-area,
body.single-regio_project #content:has(.rcc-project) > .content-area,
body.single-regio_project .container:has(.rcc-project) > .content-area {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    float: none !important;
}

body.single-regio_project article.regio_project > .entry-header,
body.single-regio_project article.regio_project > .entry-footer {
    display: none !important;
}

body.single-regio_project .rcc-project {
    width: calc(100% - 32px);
    max-width: 1160px;
    font-size: 16px;
    line-height: 1.65;
}

/* The Rimma block template uses a three-column blog layout. Keep only the
   column that contains the REGIO project and let it occupy the full row. */
body.single-regio_project .wp-block-columns:has(.rcc-project) > .wp-block-column:not(:has(.rcc-project)) {
    display: none !important;
}

body.single-regio_project .wp-block-columns:has(.rcc-project) > .wp-block-column:has(.rcc-project) {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.single-regio_project .wp-block-columns:has(.rcc-project) {
    display: block !important;
    width: calc(100% - 32px) !important;
    max-width: 1160px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.single-regio_project .wp-block-columns.h282 {
    display: none !important;
}

body.single-regio_project .wp-block-group:has(> .wp-block-columns.h282),
body.single-regio_project .wp-block-template-part:first-child + .aw-curved-spacer-wrapper {
    display: none !important;
}

.rcc-page-shell .rcc-project h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
}

.rcc-page-shell .rcc-project h2 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.3;
}

.rcc-page-shell .rcc-project h3 {
    font-size: 1.15rem;
    line-height: 1.35;
}

.rcc-home-banner-section {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 28px 16px;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0 0 0 100vmax #fff;
    clip-path: inset(0 -100vmax);
}

/* The homepage spacer is a sibling of the banner inside a theme-colored
   Gutenberg group. Make only that immediate group white. */
.wp-block-group:has(> .rcc-home-banner-section) {
    background-color: #fff !important;
}

.rcc-home-banner {
    width: min(100%, 600px);
    max-width: 600px;
    margin: 0 auto;
    background: transparent;
    box-shadow: none;
}

.rcc-home-banner img {
    width: 100%;
    max-height: none;
    height: auto;
    object-fit: initial;
}

.rcc-home-banner > a {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.rcc-home-banner .rcc-banner-action {
    width: 100%;
    padding: 7px 14px;
    box-sizing: border-box;
    font-size: .8rem;
    line-height: 1.2;
}

@media (max-width: 700px) {
    body.single-regio_project .wp-block-columns:has(.rcc-project),
    body.single-regio_project .wp-block-columns:has(.rcc-project) > .wp-block-column:has(.rcc-project),
    body.single-regio_project .entry-content:has(> .rcc-project) {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    body.single-regio_project .wp-block-columns:has(.rcc-project) {
        padding-top: 22px !important;
    }

    body.single-regio_project .rcc-project {
        width: calc(100% - 32px);
        margin: 0 auto 24px;
        padding: 16px 14px 22px;
        border-radius: 8px;
        font-size: 16px;
        line-height: 1.55;
    }

    body.single-regio_project .rcc-project h1 {
        font-size: 26px !important;
        line-height: 1.16 !important;
        letter-spacing: -.015em;
        overflow-wrap: anywhere;
        hyphens: auto;
        text-wrap: pretty;
    }

    body.single-regio_project .rcc-project h2 {
        font-size: 21px !important;
        line-height: 1.25 !important;
    }

    body.single-regio_project .rcc-project h3 {
        font-size: 19px !important;
        line-height: 1.3 !important;
    }

    body.single-regio_project .rcc-project .rcc-kicker {
        font-size: 12px !important;
        line-height: 1.35 !important;
        letter-spacing: .06em;
    }

    body.single-regio_project .rcc-identity {
        margin-bottom: 22px;
        padding: 8px;
    }

    body.single-regio_project .rcc-facts {
        margin: 24px 0;
        gap: 10px;
    }

    body.single-regio_project .rcc-facts > div {
        padding: 15px 16px;
    }

    body.single-regio_project .rcc-section {
        margin: 28px 0;
    }

    .rcc-home-banner-section {
        padding: 20px clamp(28px, 7.5vw, 40px);
    }

    .rcc-home-banner,
    .rcc-home-banner > a {
        width: 100%;
        max-width: 600px;
    }

    .rcc-home-banner .rcc-banner-action {
        padding: 8px 10px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .rcc-home-banner-section {
        padding-right: clamp(24px, 7.5vw, 32px);
        padding-left: clamp(24px, 7.5vw, 32px);
    }

    body.single-regio_project .rcc-project h1 {
        font-size: 24px !important;
    }
}
