/* The home carousel uses the SF-Zero split layout with two landscape photographs. */
#MainContent .sfh[data-layout="split"] {
  --sfh-bg: #f5eee5;
  --sfh-text: #30231f;
  --sfh-muted: #534741;
  --sfh-soft: #665953;
  --sfh-accent: #835434;
  --sfh-btn-bg: #382820;
  --sfh-btn-text: #fffaf4;
  --sfh-btn-bg-hover: #573e32;
  --sfh-btn-text-hover: #fff;
  --sfh-height-d: clamp(460px, 39vw, 660px);
  --sfh-h-size-d: clamp(40px, 4.4vw, 72px);
}

#MainContent .sfh[data-layout="split"] .sfh-slide:nth-child(2) {
  --sfh-bg: #f2ebf1;
  --sfh-accent: #73536f;
}

#MainContent .sfh[data-layout="split"] .sfh-media::after { display: none; }
#MainContent .sfh[data-layout="split"] .sfh-copy { text-shadow: none; }
#MainContent .sfh[data-layout="split"] .sfh-slide:first-child img { object-position: 52% 68%; }
#MainContent .sfh[data-layout="split"] .sfh-slide:nth-child(2) .sfh-media { background: #e2d3e4; }

/* Keep the entire tray in view, including on ultrawide displays. */
#MainContent .sfh[data-layout="split"] .sfh-slide:nth-child(2) picture {
  display: block;
  position: absolute;
  width: min(100%, calc(var(--sfh-height-d) * 1.5));
  aspect-ratio: 3 / 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  mask-image: linear-gradient(to right, transparent, black 9%, black 92%, transparent),
              linear-gradient(to bottom, transparent, black 7%, black 94%, transparent);
  mask-composite: intersect;
}

#MainContent .sfh[data-layout="split"] .sfh-dot { background: #b9aaa1; }
#MainContent .sfh[data-layout="split"] .sfh-dot[aria-current="true"] { background: var(--sfh-text); }
#MainContent .sfh[data-layout="split"] .sfh-arrow { background: rgba(255, 251, 246, .89); }

@media (min-width: 750px) {
  #MainContent .sfh[data-layout="split"] .sfh-slide { grid-template-columns: 45% 55%; }
  #MainContent .sfh[data-layout="split"] .sfh-copy {
    max-width: 740px;
    padding: 34px clamp(30px, 4vw, 72px) 54px clamp(52px, 6vw, 124px);
  }
  #MainContent .sfh[data-layout="split"] .sfh-heading em { display: block; }
  #MainContent .sfh[data-layout="split"] .sfh-text { max-width: 35ch; }
  #MainContent .sfh[data-layout="split"] .sfh-dots {
    left: calc(max(0px, (45% - 740px) / 2) + clamp(52px, 6vw, 124px));
  }
}

@media (min-width: 750px) and (max-width: 1000px) {
  #MainContent .sfh[data-layout="split"] { --sfh-height-d: 500px; }
  #MainContent .sfh[data-layout="split"] .sfh-copy { padding: 26px 22px 48px 52px; }
  #MainContent .sfh[data-layout="split"] .sfh-text { margin-bottom: 20px; }
  #MainContent .sfh[data-layout="split"] .sfh-btn { min-width: 200px; }
}

@media (max-width: 749px) {
  #MainContent .sfh[data-layout="split"] .sfh-slide {
    --banner-photo-height: min(66.6667vw, 360px);
    display: grid;
    grid-template-rows: var(--banner-photo-height) 1fr;
    aspect-ratio: auto;
  }
  #MainContent .sfh[data-layout="split"] .sfh-media { position: relative; }
  #MainContent .sfh[data-layout="split"] .sfh-slide:nth-child(2) picture {
    width: min(100%, calc(var(--banner-photo-height) * 1.5));
  }
  #MainContent .sfh[data-layout="split"] .sfh-copy {
    position: static;
    justify-content: center;
    padding: 22px clamp(20px, 6vw, 42px) 24px;
  }
  #MainContent .sfh[data-layout="split"] .sfh-heading { font-size: clamp(28px, 6vw, 37px); }
  #MainContent .sfh[data-layout="split"] .sfh-arrow { top: min(33.3333vw, 180px); }
}
