/*
 * ILI Hero Split Layout Fix v1.1
 * Clear split hero: lighter charcoal copy panel on the left, full uncropped image on the right.
 * Designed for ILI Community V18 rotating homepage hero.
 */

@media (min-width: 901px) {
  body.ili-hero-split-fix-active .ili-hero-carousel {
    min-height: 620px;
    background: #343b45;
    overflow: hidden;
  }

  body.ili-hero-split-fix-active .ili-hero-slides,
  body.ili-hero-split-fix-active .ili-hero-slide {
    position: absolute;
    inset: 0;
  }

  /* Keep the COMPLETE photograph visible on the right: no cropping. */
  body.ili-hero-split-fix-active .ili-hero-slide__image {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 64%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
    display: block;
    background: #f7f7f5;
  }

  /* Lighter charcoal content panel with only a soft seam blend. */
  body.ili-hero-split-fix-active .ili-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      90deg,
      #343b45 0%,
      #343b45 35%,
      rgba(52,59,69,.98) 38%,
      rgba(52,59,69,.86) 42%,
      rgba(52,59,69,.42) 47%,
      rgba(52,59,69,0) 53%
    );
    pointer-events: none;
  }

  body.ili-hero-split-fix-active .ili-hero-overlay {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 62px;
  }

  body.ili-hero-split-fix-active .ili-hero-copy {
    width: 37%;
    max-width: 570px;
    min-width: 0;
    padding-right: 24px;
    text-shadow: none;
  }

  body.ili-hero-split-fix-active .ili-hero-copy h1 {
    font-size: clamp(3rem, 4.5vw, 5rem);
    line-height: .98;
    max-width: 540px;
  }

  body.ili-hero-split-fix-active .ili-hero-copy h2 {
    font-size: clamp(1.4rem, 1.85vw, 1.95rem);
    line-height: 1.28;
    max-width: 500px;
  }

  body.ili-hero-split-fix-active .ili-hero-copy p {
    max-width: 475px;
    line-height: 1.62;
  }

  body.ili-hero-split-fix-active .ili-hero-rule {
    max-width: 260px;
  }

  body.ili-hero-split-fix-active .ili-hero-actions {
    gap: 14px;
  }

  body.ili-hero-split-fix-active .ili-hero-arrow--prev { left: 18px; }
  body.ili-hero-split-fix-active .ili-hero-arrow--next { right: 18px; }

  body.ili-hero-split-fix-active .ili-hero-dots {
    left: 69%;
    bottom: 22px;
  }
}

/* Smaller desktop/laptop screens: retain full image and a clear text panel. */
@media (min-width: 901px) and (max-width: 1180px) {
  body.ili-hero-split-fix-active .ili-hero-slide__image {
    width: 62%;
    object-fit: contain !important;
    object-position: center center !important;
  }

  body.ili-hero-split-fix-active .ili-hero-copy {
    width: 40%;
    padding-right: 16px;
  }

  body.ili-hero-split-fix-active .ili-hero-shade {
    background: linear-gradient(
      90deg,
      #343b45 0%,
      #343b45 37%,
      rgba(52,59,69,.96) 40%,
      rgba(52,59,69,.68) 45%,
      rgba(52,59,69,.20) 50%,
      rgba(52,59,69,0) 55%
    );
  }

  body.ili-hero-split-fix-active .ili-hero-dots { left: 70%; }
}

/* Mobile: image first, copy below/over lower area with softer charcoal overlay. */
@media (max-width: 900px) {
  body.ili-hero-split-fix-active .ili-hero-carousel,
  body.ili-hero-split-fix-active .ili-hero-overlay {
    min-height: 650px;
  }

  body.ili-hero-split-fix-active .ili-hero-slide__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center top !important;
    background: #f7f7f5;
  }

  body.ili-hero-split-fix-active .ili-hero-shade {
    background: linear-gradient(
      180deg,
      rgba(52,59,69,0) 0%,
      rgba(52,59,69,.10) 32%,
      rgba(52,59,69,.80) 63%,
      rgba(52,59,69,.98) 100%
    );
  }

  body.ili-hero-split-fix-active .ili-hero-overlay {
    align-items: flex-end;
    padding-top: 90px;
    padding-bottom: 78px;
  }

  body.ili-hero-split-fix-active .ili-hero-copy {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
  }

  body.ili-hero-split-fix-active .ili-hero-copy h1 {
    font-size: clamp(2.7rem, 12vw, 4.1rem);
  }

  body.ili-hero-split-fix-active .ili-hero-dots { left: 50%; }
}

@media (max-width: 560px) {
  body.ili-hero-split-fix-active .ili-hero-carousel,
  body.ili-hero-split-fix-active .ili-hero-overlay {
    min-height: 700px;
  }

  body.ili-hero-split-fix-active .ili-hero-copy {
    padding-left: 8px;
    padding-right: 8px;
  }

  body.ili-hero-split-fix-active .ili-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(330px, 100%);
  }
}

/* v1.7 — clean three-part editorial flow. */
body.ili-hero-split-fix-active .ili-welcome-section {
  background:#fff;
}

body.ili-hero-split-fix-active .ili-building-belonging-between {
  margin-top:0 !important;
  margin-bottom:0 !important;
}

/* Keep the existing culture image visible after moving the whole section. */
body.ili-hero-split-fix-active .ili-building-belonging-between .ili-card,
body.ili-hero-split-fix-active .ili-building-belonging-between .ili-card__img {
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}
body.ili-hero-split-fix-active .ili-building-belonging-between .ili-card__img img {
  display:block !important;
  width:100%;
  height:auto;
  visibility:visible !important;
  opacity:1 !important;
}

body.ili-hero-split-fix-active .ili-community-intro-section {
  background:#fbf7f2;
  border-top:1px solid rgba(89,20,70,.08);
}

body.ili-hero-split-fix-active .ili-community-intro-content {
  max-width:1050px;
}

body.ili-hero-split-fix-active .ili-community-intro-content > :first-child {
  margin-top:0;
}

@media (max-width:900px) {
  body.ili-hero-split-fix-active .ili-building-belonging-between .ili-grid--2 {
    grid-template-columns:1fr;
  }
}

/* v1.8 — allow manual crop positioning for the Building Belonging photo. */
body.ili-hero-split-fix-active .ili-building-belonging-between .ili-card__img {
  overflow: hidden !important;
}
body.ili-hero-split-fix-active .ili-building-belonging-between .ili-card__img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
