/*
 * PonPon public-site layout
 * v5.314.0: the theme's right sidebar is not used by the school site.
 * Keep this scoped to the body class added by the plugin so WordPress admin
 * pages and unrelated embedded content are not changed.
 */

body.ppso-no-theme-sidebar #sidebar,
body.ppso-no-theme-sidebar .et_pb_widget_area {
    display: none !important;
}

body.ppso-no-theme-sidebar #main-content .container::before {
    display: none !important;
}

body.ppso-no-theme-sidebar.et_right_sidebar #left-area,
body.ppso-no-theme-sidebar.et_left_sidebar #left-area,
body.ppso-no-theme-sidebar.et_no_sidebar #left-area {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Preserve comfortable page margins while using the space released by the
 * removed sidebar. Divi rows/modules keep their own internal widths. */
body.ppso-no-theme-sidebar #main-content > .container {
    width: calc(100% - 32px) !important;
    max-width: 1280px !important;
}

@media (max-width: 767px) {
    body.ppso-no-theme-sidebar #main-content > .container {
        width: calc(100% - 20px) !important;
    }
}
