/* Widen the Alves homepage on desktop screens */
@media only screen and (min-width: 1024px) {

    body.home .content-area,
    body.home .site-main,
    body.home .site-main > article,
    body.home .entry-content {
        width: 100% !important;
        max-width: none !important;
    }

    /*
     * Alves normally limits nearly every direct homepage block
     * to approximately 750px. Override that restriction.
     */
    body.home .entry-content > *:not(.alignfull),
    body.home .entry-content > .alignwide,
    body.home .entry-content [class*="inner-container"] >
        *:not(.alignfull) {
        width: min(1800px, calc(100vw - 80px)) !important;
        max-width: min(1800px, calc(100vw - 80px)) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Widen and tightly compact the navigation/header container */
    body.home:not(.fse-enabled) #masthead {
        width: min(1800px, calc(100vw - 80px)) !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding-top: 3px !important;
        padding-bottom: 3px !important;
        min-height: 0 !important;
    }

    /* Remove extra navigation spacing */
    body.home #masthead .main-navigation,
    body.home #masthead .main-navigation ul,
    body.home #masthead .main-navigation li {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Keep the Home link compact */
    body.home #masthead .main-navigation a {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        line-height: 1.1 !important;
    }

    /* Remove theme-created space before the homepage article */
    body.home .site-main > article,
    body.home .entry-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Remove external margin before the first homepage section */
    body.home .entry-content > *:first-child {
        margin-top: 0 !important;
    }

    /* Permit sections marked Full Width to reach the screen edges */
    body.home .entry-content > .alignfull {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }
}
/* Hide the redundant Home navigation bar on the homepage only */
body.home:not(.fse-enabled) #masthead {
    display: none !important;
}

/* Remove any remaining gap above the homepage content */
body.home:not(.fse-enabled) #content,
body.home:not(.fse-enabled) .site-content,
body.home:not(.fse-enabled) .site-main,
body.home:not(.fse-enabled) .site-main > article,
body.home:not(.fse-enabled) .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}