.sxgc-home-gallery {
  overflow: hidden;
  padding: clamp(42px, 4vw, 56px) 0;
  border-top: 1px solid var(--ed-line, #e8e8e8);
  border-bottom: 1px solid var(--ed-line, #e8e8e8);
  background: var(--ed-warm, #f7f7f7);
  color: var(--ed-ink, #111111);
}

.sxgc-home-gallery *,
.sxgc-home-gallery *::before,
.sxgc-home-gallery *::after { box-sizing: border-box; }

.sxgc-home-gallery__inner {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: clamp(54px, 7vw, 112px);
}

.sxgc-home-gallery__copy { max-width: 560px; }

.sxgc-home-gallery__eyebrow { margin-bottom: 14px; }

.sxgc-home-gallery__heading {
  max-width: 11ch;
  margin: 0;
  color: var(--ed-ink, #111111);
  font: inherit;
  font-size: clamp(38px, 4.1vw, 60px);
  font-weight: 470;
  letter-spacing: -.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.sxgc-home-gallery__body {
  max-width: 48ch;
  margin: 21px 0 0;
  color: var(--ed-muted, #666666);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.65;
}

.sxgc-home-gallery__action { margin-top: 26px; }

.sxgc-home-gallery__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--ed-ink, #111111);
  border-radius: 0;
  background: var(--ed-ink, #111111);
  color: #fff;
  font-size: 12px;
  font-weight: 630;
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.sxgc-home-gallery__button span {
  font-size: 11px;
  transition: transform .2s ease;
}

.sxgc-home-gallery__button:hover,
.sxgc-home-gallery__button:focus-visible {
  border-color: var(--sxgc-primary-hover, #2a2a2a);
  background: var(--sxgc-primary-hover, #2a2a2a);
  color: #fff;
}

.sxgc-home-gallery__button:hover span { transform: translate(2px, -2px); }
.sxgc-home-gallery__button:focus-visible { outline: 2px solid var(--ed-ink, #111111); outline-offset: 3px; }

.sxgc-home-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 38px 128px 38px 128px 38px;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.sxgc-home-gallery__cell {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius, 12px);
  background: var(--ed-paper, #ffffff);
  box-shadow: 0 14px 34px rgba(17, 17, 17, .08);
}

.sxgc-home-gallery__cell.is-empty {
  border: 1px solid var(--ed-line, #e8e8e8);
  background: var(--sxgc-bg-subtle, #f7f7f7);
  box-shadow: none;
}

.sxgc-home-gallery__cell--1 { grid-column: 2 / 3; grid-row: 1 / 3; }
.sxgc-home-gallery__cell--2 { grid-column: 1 / 2; grid-row: 2 / 4; }
.sxgc-home-gallery__cell--3 { grid-column: 1 / 2; grid-row: 4 / 6; }
.sxgc-home-gallery__cell--4 { grid-column: 2 / 3; grid-row: 3 / 5; }

.sxgc-home-gallery__image,
.sxgc-home-gallery__empty-media {
  display: block;
  width: 100%;
  height: 100%;
}

.sxgc-home-gallery__image {
  object-fit: cover;
  object-position: center;
  transition: transform .65s cubic-bezier(.2, .7, .2, 1);
}

.sxgc-home-gallery__cell:hover .sxgc-home-gallery__image { transform: scale(1.035); }

.sxgc-home-gallery__cell--1.is-visible { animation-delay: .06s; }
.sxgc-home-gallery__cell--2.is-visible { animation-delay: .13s; }
.sxgc-home-gallery__cell--3.is-visible { animation-delay: .2s; }
.sxgc-home-gallery__cell--4.is-visible { animation-delay: .27s; }

@media (max-width: 900px) {
  .sxgc-home-gallery { padding: 38px 0; }
  .sxgc-home-gallery__inner { grid-template-columns: 1fr; gap: 38px; }
  .sxgc-home-gallery__copy { max-width: 650px; }
  .sxgc-home-gallery__grid { max-width: 620px; }
}

@media (max-width: 560px) {
  .sxgc-home-gallery { padding: 32px 0 36px; }
  .sxgc-home-gallery__inner { gap: 30px; }
  .sxgc-home-gallery__heading { max-width: 12ch; font-size: clamp(34px, 10.5vw, 43px); }
  .sxgc-home-gallery__body { margin-top: 16px; font-size: 14px; }
  .sxgc-home-gallery__action { margin-top: 20px; }
  .sxgc-home-gallery__grid {
    grid-template-rows: 24px 92px 24px 92px 24px;
    gap: 9px;
  }
  .sxgc-home-gallery__cell { border-radius: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .sxgc-home-gallery__image,
  .sxgc-home-gallery__button,
  .sxgc-home-gallery__button span { transition: none; }
}

/* A warm stone band separates account content from the white gallery and shop. */
.ed-home .ed-welcome-offer {
  background: #f3f2ee !important;
  border-top: 1px solid #e2e0da !important;
  border-bottom: 1px solid #e2e0da !important;
}

.ed-home .ed-welcome-offer .ed-welcome-account-state,
.ed-home .ed-welcome-offer .ed-welcome-form {
  background: #ffffff;
  border-color: #dedcd6;
  box-shadow: 0 14px 36px rgba(17, 17, 17, .04);
}

/* v2.0.9 — centered heading with vertical product cards ordered left to right. */
@media (min-width: 1101px), (min-width:761px) and (max-width:1100px) and (orientation:portrait) {
  /* Prevent the lower gallery padding and upper product padding from stacking. */
  .ed-wall-gallery-section--before-account {
    padding-bottom: 8px;
  }

  .ed-wall-gallery-section--before-account .ed-wall-gallery-shopping-links {
    margin-bottom: 8px;
  }

  .sxgc-products-desktop.ed-products {
    padding: 14px 0 42px;
  }

  .sxgc-products-desktop .ed-section-heading {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    width: 100%;
    margin-bottom: 14px;
    padding-inline: 110px;
    text-align: center;
  }

  .sxgc-products-desktop .ed-section-heading > div {
    display: grid;
    grid-column: 1 / -1;
    justify-items: center;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .sxgc-products-desktop .ed-section-heading .ed-kicker {
    margin-bottom: 7px;
    letter-spacing: .19em;
  }

  .sxgc-products-desktop .ed-section-heading h2 {
    max-width: 28ch;
    font-size: clamp(29px, 1.95vw, 34px) !important;
    font-weight: 480;
    letter-spacing: -.035em;
    line-height: 1.04;
  }

  .sxgc-products-desktop .ed-section-heading .ed-text-link {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 11px;
  }

  /* The active tab supplies enough structure; remove the long empty rule. */
  .sxgc-products-desktop .ed-product-filter-bar {
    display: flex;
    justify-content: center;
    margin: 0 0 25px;
    border-bottom: 0;
  }

  .sxgc-products-desktop .ed-product-filters {
    gap: 24px;
  }

  .sxgc-products-desktop .ed-product-filter {
    padding-bottom: 8px;
    font-size: 12px;
    font-weight: 550;
  }

  /* Ten-product catalogue: five equal columns, then a clean second row. */
  .sxgc-products-desktop .ed-product-grid-filtered {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 34px 26px;
  }

  .sxgc-products-desktop .ed-product-grid-filtered .ed-product {
    display: flex;
    min-width: 0;
    flex-direction: column;
  }

  .sxgc-products-desktop .ed-product-grid-filtered .ed-product-image {
    aspect-ratio: 1 / 1 !important;
    border: 1px solid #ecebe8;
    background: #f7f7f5;
  }

  .sxgc-products-desktop .ed-product-image img {
    object-fit: contain;
  }

  .sxgc-products-desktop .ed-product-meta {
    flex: 1 1 auto;
    gap: 10px;
    padding-top: 9px;
    font-size: 11px;
  }

  .sxgc-products-desktop .ed-product-meta > div > small {
    margin-bottom: 4px;
    font-size: 8.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .sxgc-products-desktop .ed-product-meta > div > a {
    font-size: 13px;
    line-height: 1.32;
  }

  .sxgc-products-desktop .ed-product-grid-filtered .ed-product-action {
    margin-top: 9px;
  }

  .sxgc-products-desktop .ed-product-grid-filtered .ed-product-add-to-cart {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 10.5px;
    letter-spacing: .025em;
  }

}

@media (max-width: 1100px) and (max-width:760px), (max-width: 1100px) and (orientation:landscape) {
  .sxgc-products-mobile.ed-products {
    padding: 34px 0 46px;
  }

  .sxgc-products-mobile .ed-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    width: 100%;
    margin-bottom: 17px;
    text-align: center;
  }

  .sxgc-products-mobile .ed-section-heading > div {
    display: grid;
    justify-items: center;
    width: 100%;
  }

  .sxgc-products-mobile .ed-section-heading h2 {
    max-width: 620px;
    font-size: clamp(28px, 7vw, 34px) !important;
    letter-spacing: -.035em;
  }

  .sxgc-products-mobile .ed-section-heading .ed-text-link {
    margin-top: 12px;
  }

  .sxgc-products-mobile .ed-product-filter-bar {
    display: flex;
    justify-content: center;
    margin: 0 0 22px;
    border-bottom: 0;
  }

  .sxgc-products-mobile .ed-product-filter {
    padding-bottom: 8px;
    font-size: 12px;
  }

  .sxgc-products-mobile .ed-product-grid-filtered .ed-product-image {
    aspect-ratio: 1 / 1 !important;
    border: 1px solid #ecebe8;
    background: #f7f7f5;
  }

  .sxgc-products-mobile .ed-product-image img {
    object-fit: contain;
  }
}

@media (max-width: 560px) {
  .sxgc-products-mobile.ed-products {
    padding: 28px 0 40px;
  }

  .sxgc-products-mobile .ed-section-heading h2 {
    font-size: clamp(27px, 8.5vw, 31px) !important;
  }
}

/* v2.1.25 — phone heading only: use the available width instead of a narrow ch column. */
@media (max-width: 760px) {
  .ed-home .sxgc-home-gallery .sxgc-home-gallery__heading {
    width: 100%;
    max-width: 100%;
    font-size: clamp(28px, 7.2vw, 32px) !important;
    line-height: 1.16 !important;
    letter-spacing: -.025em;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    text-wrap: balance;
  }
}
