/* ACTIVITY_LIFE_SINGLE_GALLERY_HERO_V1 */

@supports selector(.activity-life-contract:has(+ .activity-life-gallery)) {
  /*
   * Scope is structural, not post-ID based:
   * apply only where Traveler renders an empty feature banner immediately
   * before the page's own standard gallery.
   */
  body.single #st-content-wrapper.st-style-elementor:has(> .banner.st-bg-feature + .container-fluid > .st-gallery) {
    position: relative;
  }

  body.single #st-content-wrapper.st-style-elementor:has(> .banner.st-bg-feature + .container-fluid > .st-gallery) > .banner.st-bg-feature {
    position: relative;
    z-index: 3;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    background-image: none !important;
  }

  body.single #st-content-wrapper.st-style-elementor:has(> .banner.st-bg-feature + .container-fluid > .st-gallery) > .banner.st-bg-feature::before,
  body.single #st-content-wrapper.st-style-elementor:has(> .banner.st-bg-feature + .container-fluid > .st-gallery) > .banner.st-bg-feature::after {
    display: none !important;
    content: none !important;
  }

  body.single #st-content-wrapper.st-style-elementor:has(> .banner.st-bg-feature + .container-fluid > .st-gallery) > .banner.st-bg-feature > .container {
    position: absolute;
    top: clamp(24px, 4vw, 64px);
    right: 0;
    left: 0;
    z-index: 2;
  }

  body.single #st-content-wrapper.st-style-elementor:has(> .banner.st-bg-feature + .container-fluid > .st-gallery) > .banner.st-bg-feature .st-banner-search-form {
    padding: 0 !important;
  }

  body.single #st-content-wrapper.st-style-elementor:has(> .banner.st-bg-feature + .container-fluid > .st-gallery) > .banner.st-bg-feature .st-banner-search-form__title {
    margin: 0 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.56);
  }

  body.single #st-content-wrapper.st-style-elementor:has(> .banner.st-bg-feature + .container-fluid > .st-gallery) > .banner.st-bg-feature .st-breadcrumb {
    margin-top: 10px;
  }

  body.single #st-content-wrapper.st-style-elementor:has(> .banner.st-bg-feature + .container-fluid > .st-gallery) > .banner.st-bg-feature .st-breadcrumb .container {
    width: auto;
    max-width: none;
    padding: 0;
  }

  body.single #st-content-wrapper.st-style-elementor:has(> .banner.st-bg-feature + .container-fluid > .st-gallery) > .banner.st-bg-feature .st-breadcrumb ul li,
  body.single #st-content-wrapper.st-style-elementor:has(> .banner.st-bg-feature + .container-fluid > .st-gallery) > .banner.st-bg-feature .st-breadcrumb ul li a,
  body.single #st-content-wrapper.st-style-elementor:has(> .banner.st-bg-feature + .container-fluid > .st-gallery) > .banner.st-bg-feature .st-breadcrumb ul li.active,
  body.single #st-content-wrapper.st-style-elementor:has(> .banner.st-bg-feature + .container-fluid > .st-gallery) > .banner.st-bg-feature .st-breadcrumb ul li:not(:last-child)::after {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.56);
  }

  body.single #st-content-wrapper.st-style-elementor:has(> .banner.st-bg-feature + .container-fluid > .st-gallery) > .container-fluid:has(> .st-gallery) {
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.single #st-content-wrapper.st-style-elementor:has(> .banner.st-bg-feature + .container-fluid > .st-gallery) > .container-fluid > .st-gallery {
    margin-top: 0 !important;
  }

  @media (max-width: 767.98px) {
    body.single #st-content-wrapper.st-style-elementor:has(> .banner.st-bg-feature + .container-fluid > .st-gallery) > .banner.st-bg-feature > .container {
      top: 22px;
    }

    body.single #st-content-wrapper.st-style-elementor:has(> .banner.st-bg-feature + .container-fluid > .st-gallery) > .banner.st-bg-feature .st-breadcrumb {
      margin-top: 7px;
    }
  }
}
