/*
 * SLO County Homes footer alignment
 * Keep the footer background full width, constrain the content,
 * and move the desktop footer content slightly right to line up visually
 * with the site's main content.
 */

footer.wp-block-template-part {
    width: 100%;
}

footer.wp-block-template-part > .wp-block-group > .wp-block-columns,
footer.wp-block-template-part .wp-block-group.alignfull > .wp-block-columns,
footer.wp-block-template-part > .wp-block-columns {
    width: min(100% - 48px, 1310px) !important;
    max-width: 1310px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
    position: relative;
    left: 40px;
}

footer.wp-block-template-part > .wp-block-group.alignfull > .wp-block-group:not(.alignfull) {
    width: min(100% - 48px, 1310px) !important;
    max-width: 1310px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
    position: relative;
    left: 40px;
}

@media (max-width: 781px) {
    footer.wp-block-template-part > .wp-block-group > .wp-block-columns,
    footer.wp-block-template-part .wp-block-group.alignfull > .wp-block-columns,
    footer.wp-block-template-part > .wp-block-columns,
    footer.wp-block-template-part > .wp-block-group.alignfull > .wp-block-group:not(.alignfull) {
        width: calc(100% - 32px) !important;
        max-width: none !important;
        left: 0;
    }
}
