/* === Default Page === */

body.page.page-template-default .page__featured-image {
    position: initial;
}

body.page.page-template-default .page__featured-image figure {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 100%;
    width: 100%;
    height: inherit;
    margin: unset !important;
    z-index: initial;
}

body.page.page-template-default .page__featured-image figure img {
    width: 100%;
    height: inherit;
    object-fit: cover;
    object-position: center;
    max-height: 100%;
    filter: blur(1px) contrast(110%) brightness(80%);
}

body.page.page-template-default .page__featured-image ~ * {
    z-index: 1;
}

/*
 * On mobile the default page content area is squeezed twice: the generic
 * `:where(.wp-block-group.has-background)` rule adds 2.375em (38px) of side
 * padding to <main>, and the constrained layout caps the page-content
 * template part at 80%. Together they leave embedded elements (e.g. contact
 * forms that already carry their own padding) with very little width.
 * Reduce the side padding and let the content use the full width on phones,
 * keeping just a small 10px gutter so content is not glued to the edges.
 */
@media screen and (max-width: 599px) {
    body.page.page-template-default .wp-site-blocks main.wp-block-group.has-background {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body.page.page-template-default .wp-site-blocks main .wp-block-template-part.alignwide {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
