/* Summerland Updates 1.0.7 — site-wide mobile header stability and homepage fixes. */
/* WoodMart recalculates the sticky header after load; keep its reserved space
   at the full initial height so every page, including 404s, remains stable. */
@media screen and (max-width: 767px) {
  body header.whb-header.whb-sticky-prepared {
    padding-top: 0 !important;
    min-height: 142px !important;
  }
}

/* The slider section carries an Elementor SVG/background layer that shows as
   a teal strip above the first slide on mobile. Keep the requested breathing
   room while removing only that decorative layer. */
@media screen and (max-width: 767px) {
  body.home .ss-slider-container,
  body.home .ss-slider-container::before,
  body.home .ss-slider-container::after,
  body.home .ss-slider-wrapper {
    background-image: none !important;
  }

  body.home .ss-slider-container {
    padding-top: 8px !important;
  }
}

@media screen and (max-width: 767px) {
	/* Elementor's wd-negative-gap adds -46px on mobile and pulls the hero into the header. */
  body.summerland-updates-active.home article#post-795125 > .elementor.elementor-795125 > .wd-negative-gap.elementor-element:nth-of-type(1) {
    margin-top: 0 !important;
  }

  /* Prevent the AI widget's late-added wrapper from moving the page upward after first paint. */
  body.summerland-updates-active.home .wd-content-layout,
  body.summerland-updates-active.home .wd-page-content,
  body.summerland-updates-active.home .site-content,
  body.summerland-updates-active.home .content-area,
  body.summerland-updates-active.home #content {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

    /* Remove the empty band above the slider while preserving the section's bottom spacing. */
    body.summerland-updates-active.home article#post-795125 > .elementor.elementor-795125 > .wd-negative-gap.elementor-element:nth-of-type(1) > .e-con-inner {
      padding-top: 0 !important;
    }

    body.summerland-updates-active.home article#post-795125 .elementor-element-79bc71f7 {
      margin-top: 0 !important;
    }

	/* Keep the Elementor hero wrapper from vertically cropping the banner. */
	body.summerland-updates-active.home article#post-795125,
	body.summerland-updates-active.home article#post-795125 > .elementor.elementor-795125,
	body.summerland-updates-active.home article#post-795125 > .elementor.elementor-795125 > .wd-negative-gap.elementor-element:nth-of-type(1) {
		overflow-x: clip !important;
		overflow-y: visible !important;
		max-height: none !important;
	}

	/* Preserve the full image and dots while allowing the carousel to size naturally. */
	body.summerland-updates-active.home article#post-795125 .elementor-widget-image-carousel,
	body.summerland-updates-active.home article#post-795125 .elementor-widget-image-carousel .swiper,
	body.summerland-updates-active.home article#post-795125 .elementor-widget-image-carousel .swiper-wrapper,
	body.summerland-updates-active.home article#post-795125 .elementor-widget-image-carousel .swiper-slide {
		max-height: none !important;
	}

	body.summerland-updates-active.home article#post-795125 .elementor-widget-image-carousel img {
		display: block;
		max-width: 100%;
	}
}
