
/*
 * Homepage donation and volunteer section spacing.
 *
 * Retain the paired columns and sliding-panel behavior.
 * The section's existing cream background remains visible
 * above and beneath the columns.
 */

.page-home .home-support {
    padding-top: var(--space-9);
    padding-bottom: var(--space-9);
}

/*
 * Volunteer panel background.
 *
 * Layer 1: Black-and-white photograph.
 * Layer 2: Theme accent color at 90% opacity.
 * Layer 3: Existing text and buttons.
 */

.page-home .home-support__volunteer {
    position: relative;
    isolation: isolate;

    background-color: var(--color-surface-accent);
}

/*
 * Black-and-white photograph.
 */

.page-home .home-support__volunteer::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 0;

    background-image:
        url("../../../images/campaign/jc-photo-20.webp");

    background-position: left center;
    background-size: cover;
    background-repeat: no-repeat;

    filter: grayscale(100%);

    pointer-events: none;
}

/*
 * Theme-aware color overlay.
 */

.page-home .home-support__volunteer::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    background-color:
        color-mix(
            in srgb,
            var(--color-surface-accent) 90%,
            transparent
        );

    pointer-events: none;
}

/*
 * Keep existing content above both layers.
 */

.page-home .home-support__volunteer > * {
    position: relative;
    z-index: 2;
}

@media (max-width: 48rem) {
    .page-home .home-support {
        padding-top: var(--space-7);
        padding-bottom: var(--space-7);
    }
}
