/* Rakuza Seventeen v1.1.14 - front page section-to-banner spacing only.
 * Twenty Seventeen inserts vertical padding on every panel's .wrap.
 * Keep content-block interior spacing intact; change neither header/carousel
 * nor individual pages (/newsevents/, /rakuza_online/, /class reservation).
 */
body.twentyseventeen-front-page #content .twentyseventeen-panel > .panel-content,
body.twentyseventeen-front-page #content .twentyseventeen-panel > .panel-content > .wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Prevent a second gap from the article/body wrapper. */
body.twentyseventeen-front-page #content .twentyseventeen-panel > .panel-content > .wrap > .entry-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* The outermost editable Gutenberg block should meet the image banner.
 * No changes to the inner text, card, cover, or button padding/margins. */
body.twentyseventeen-front-page #content .twentyseventeen-panel .entry-content > :first-child {
    margin-top: 0 !important;
}
body.twentyseventeen-front-page #content .twentyseventeen-panel .entry-content > :last-child {
    margin-bottom: 0 !important;
}

/* WordPress sometimes saves empty paragraphs/groups at panel boundaries.
 * They should not create empty lines between the banner and section. */
body.twentyseventeen-front-page #content .twentyseventeen-panel .entry-content > p:empty,
body.twentyseventeen-front-page #content .twentyseventeen-panel .entry-content > .wp-block-group:empty {
    display: none !important;
}
