#categories:has(.home-featured-families) {
  padding-block: clamp(48px, 6vw, 100px);
}
#categories:has(.home-featured-families) > .container { max-width: 1400px; }
.home-featured-families { gap: clamp(12px, 1.4vw, 22px); }
.home-featured-families .family-directory-card {
  background: #fcf9fd;
}
.home-featured-families .family-directory-card img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.home-featured-families .home-family-copy { padding: clamp(12px, 1.5vw, 22px); }
.home-featured-families .home-family-copy > span {
  display: block;
  padding: 0;
  color: #382641;
  font-size: clamp(15px, 1.55vw, 23px);
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.home-family-description {
  margin: .5em 0 0;
  color: #67566d;
  font-size: clamp(.8rem, 1.05vw, .96rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
@media (min-width: 1000px) {
  .home-featured-families {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,.85fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .home-featured-families .family-directory-card:nth-child(-n+2) img {
    height: auto;
    min-height: 100%;
  }
  .home-featured-families .family-directory-card:nth-child(n+3) {
    position: relative;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
    align-content: stretch;
    align-items: stretch;
  }
  .home-featured-families .family-directory-card:nth-child(n+3) img {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 55%;
    height: 100%;
    aspect-ratio: auto;
  }
  .home-featured-families .family-directory-card:nth-child(n+3) .home-family-copy {
    grid-column: 2;
    align-self: center;
    padding: 12px;
  }
  .home-featured-families .family-directory-card:nth-child(n+3) .home-family-copy > span {
    font-size: clamp(15px, 1.2vw, 18px);
  }
  .home-featured-families .family-directory-card:nth-child(n+3) .home-family-description {
    font-size: .8rem;
  }
}
.gel-page-layout,
.gel-page-layout > :is(.gel-section, .gel-bottom-cta, .family-cross-nav) {
  background: #fff;
}
.gel-page-layout > .gel-hero-editorial { margin-block: 0; padding-block: 0; }
.gel-page-layout > #gel-range { padding-block-start: 0; }
.gel-page-layout .gel-section-switch { margin-block-start: 0; }
.gel-page-layout .gel-process-section .gel-section-heading h2 { color: var(--gel-ink); }
.gel-page-layout .gel-process-section .gel-section-heading p { color: var(--gel-muted); }

/* Keep the RTL homepage language menu inside the tablet viewport. */
@media (min-width: 621px) {
  html[dir="rtl"]:has(.home-featured-families, .accessories-body-white) #site-header .lang-dropdown {
    left: 0;
    right: auto;
  }
}
