/**
 * NivoSync Full-Width Main Container.
 *
 * Base styles for the plugin's <main class="ns-rb-main"> wrapper,
 * rendered via page-nivosync-fullwidth.php on ALL plugin virtual pages.
 *
 * @since 2.3.0
 */

/* ── Main container ──────────────────────────────────────────────────── */
.ns-rb-main {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* Override any theme constraints on plugin pages */
body.ns-rb-page .ns-rb-main,
body.ns-diamond-page .ns-rb-main,
body.ns-diamond-catalog .ns-rb-main {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    float: none;
}

/* ── Theme safety overrides ──────────────────────────────────────────── */
/*                                                                        */
/* The fullwidth template (page-nivosync-fullwidth.php) bypasses the      */
/* theme's single.php/page.php entirely, so these elements should NOT     */
/* appear in the DOM. These rules are defensive — they protect against    */
/* themes that inject page-header / entry-content from get_header() or   */
/* via hooks, and also cover edge-cases where fallback templates load.    */
/* ────────────────────────────────────────────────────────────────────── */

/* Hide WP page title, breadcrumbs, entry headers, and comments area */
body.ns-rb-page .entry-title,
body.ns-rb-page .page-header,
body.ns-rb-page .hentry > .entry-header,
body.ns-rb-page .comments-area,
body.ns-diamond-page .entry-title,
body.ns-diamond-page .page-header,
body.ns-diamond-page .hentry > .entry-header,
body.ns-diamond-page .comments-area,
body.ns-diamond-catalog .entry-title,
body.ns-diamond-catalog .page-header,
body.ns-diamond-catalog .hentry > .entry-header,
body.ns-diamond-catalog .comments-area {
    display: none !important;
}

/* Neutralise theme page-content / entry-content / site-main width caps  */
/* so the plugin controls its own layout via inner containers.            */
body.ns-rb-page .site-main,
body.ns-rb-page .entry-content,
body.ns-rb-page .page-content,
body.ns-rb-page .site-content .content-area,
body.ns-rb-page .hentry .entry-content,
body.ns-rb-page .type-page .entry-content,
body.ns-diamond-page .site-main,
body.ns-diamond-page .entry-content,
body.ns-diamond-page .page-content,
body.ns-diamond-page .site-content .content-area,
body.ns-diamond-page .hentry .entry-content,
body.ns-diamond-page .type-page .entry-content,
body.ns-diamond-catalog .site-main,
body.ns-diamond-catalog .entry-content,
body.ns-diamond-catalog .page-content,
body.ns-diamond-catalog .site-content .content-area,
body.ns-diamond-catalog .hentry .entry-content,
body.ns-diamond-catalog .type-page .entry-content {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}
