
/*
 * Stardust Fullscreen Reset
 * Safe global reset intended for a single-purpose Stardust site.
 * If used on a multi-purpose WordPress install, deactivate on non-Stardust pages.
 */

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  background: #03040a !important;
}

/* Common WordPress / block theme wrappers */
body.stardust-fullscreen-reset-active .wp-site-blocks,
body.stardust-fullscreen-reset-active .site,
body.stardust-fullscreen-reset-active .site-content,
body.stardust-fullscreen-reset-active .content-area,
body.stardust-fullscreen-reset-active .site-main,
body.stardust-fullscreen-reset-active main,
body.stardust-fullscreen-reset-active article,
body.stardust-fullscreen-reset-active .entry-content,
body.stardust-fullscreen-reset-active .entry,
body.stardust-fullscreen-reset-active .page,
body.stardust-fullscreen-reset-active .page-content,
body.stardust-fullscreen-reset-active .wp-block-group,
body.stardust-fullscreen-reset-active .wp-block-post-content {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
}

/* WordPress block theme alignment constraints */
body.stardust-fullscreen-reset-active .alignwide,
body.stardust-fullscreen-reset-active .alignfull,
body.stardust-fullscreen-reset-active .is-layout-constrained,
body.stardust-fullscreen-reset-active .is-layout-flow,
body.stardust-fullscreen-reset-active .wp-block-group__inner-container {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Elementor wrappers */
body.stardust-fullscreen-reset-active .elementor,
body.stardust-fullscreen-reset-active .elementor-section-wrap,
body.stardust-fullscreen-reset-active .elementor-location-single,
body.stardust-fullscreen-reset-active .elementor-widget-wrap,
body.stardust-fullscreen-reset-active .elementor-widget-shortcode,
body.stardust-fullscreen-reset-active .elementor-shortcode,
body.stardust-fullscreen-reset-active .elementor-widget-container,
body.stardust-fullscreen-reset-active .e-con,
body.stardust-fullscreen-reset-active .e-con-inner,
body.stardust-fullscreen-reset-active .elementor-container,
body.stardust-fullscreen-reset-active .elementor-column,
body.stardust-fullscreen-reset-active .elementor-column-wrap,
body.stardust-fullscreen-reset-active .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Remove Elementor default side padding around shortcode containers */
body.stardust-fullscreen-reset-active .elementor-element-populated,
body.stardust-fullscreen-reset-active .elementor-widget-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Hide default theme chrome if it sneaks back in */
body.stardust-fullscreen-reset-active header.wp-block-template-part,
body.stardust-fullscreen-reset-active footer.wp-block-template-part,
body.stardust-fullscreen-reset-active .site-header,
body.stardust-fullscreen-reset-active .site-footer,
body.stardust-fullscreen-reset-active .wp-site-blocks > header,
body.stardust-fullscreen-reset-active .wp-site-blocks > footer {
  display: none !important;
}

/* Stardust sections must own the viewport */
body.stardust-fullscreen-reset-active .sd-section {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Force Stardust backgrounds to cover the whole viewport */
body.stardust-fullscreen-reset-active .sd-page-bg,
body.stardust-fullscreen-reset-active .sd-fade-bg,
body.stardust-fullscreen-reset-active .sd-fade-bg:before,
body.stardust-fullscreen-reset-active .sd-fade-bg:after,
body.stardust-fullscreen-reset-active .sd-bg-logo {
  width: 100vw !important;
  max-width: 100vw !important;
  left: 0 !important;
  right: 0 !important;
  background-size: cover !important;
}

/* Keep the Stardust logo as a full page centerpiece rather than tiled/boxed */
body.stardust-fullscreen-reset-active .sd-bg-logo {
  background-size: min(1280px, 96vw) auto !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
