/* Photography refresh. Load after the existing presentation styles. */

.lead-hero {
  margin: 20px 0 44px;
}

.lead-hero .hero-frame {
  --frame-radius: 16px;
  --slide-inset: clamp(28px, 4vw, 64px);
  --control-inset: clamp(28px, 4vw, 64px);
  --bubble-clear: 0px;
}

.lead-hero .hero-card {
  aspect-ratio: 2 / 1;
  min-height: 430px;
  background: #f3f6f5;
  color: #000;
}

.lead-hero .hero-card .hero-slides picture img {
  object-fit: cover;
  object-position: right center;
  mix-blend-mode: normal;
}

/* All three photographs have a light, quiet area behind the copy. */
.lead-hero .hero-card .hero-slides::after {
  background: linear-gradient(90deg, #f5f8f74d, transparent 46%);
}

.lead-hero .hero-card .slide-main {
  inset: clamp(28px, 4vw, 64px) auto 84px var(--slide-inset);
  width: 36%;
  max-width: 480px;
  gap: 20px;
  color: #000;
}

.lead-hero .slide-text h2 {
  font-size: clamp(2rem, 3.6vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  overflow-wrap: normal;
  text-wrap: balance;
}

.lead-hero .slide-text p {
  max-width: 35ch;
  margin: 14px 0 0;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.5;
  color: inherit;
}

.lead-hero .slide-text .slide-tagline {
  margin-top: 9px;
  font-size: clamp(.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.4;
  color: inherit;
}

.lead-hero .slide-text .slide-tagline:empty {
  display: none;
}

html[lang^="zh"] .lead-hero .slide-text h2 {
  line-height: 1.2;
  letter-spacing: .005em;
}

.lead-hero .hero-card .slide-link,
html[data-riches-liquid] .lead-hero .hero-card .slide-link {
  --riches-liquid-base: #000;
  --riches-liquid-ink: #fff;
  --riches-liquid-fill: #fff;
  --riches-liquid-active-ink: #000;
  min-height: 48px;
  padding: 11px 23px;
  border-color: #000;
  background: #000;
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
}

html[data-riches-liquid] .lead-hero .hero-card .slide-link[data-riches-liquid-active] {
  color: var(--riches-liquid-active-ink);
}

.lead-hero .slide-buttons {
  bottom: 17px;
  padding-top: 7px;
  border-color: #00000026;
  color: #000;
}

.lead-hero .slide-step:hover {
  background: #0000000c;
  border-color: #0000002b;
}

.lead-hero .slide-buttons button:focus-visible {
  outline-color: #000;
}

.lead-hero .slide-buttons .slide-dots button::before {
  width: 6px;
  height: 6px;
  border: 0;
  background: #000;
  opacity: .35;
}

.lead-hero .slide-buttons .slide-dots button[aria-pressed="true"]::before {
  width: 9px;
  height: 9px;
  border: 0;
  background: #000;
  opacity: 1;
}

/* Keep the existing five / three / two-column category breakpoints. */
.ranges {
  gap: clamp(12px, 1.5vw, 20px);
}

.ranges .range-tile {
  border-color: #e2e8e4;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.ranges .range-tile .range-frame {
  aspect-ratio: 4 / 3;
  background: #f3f6f4;
}

.ranges .range-tile .range-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: normal;
}

.ranges .range-tile .range-caption {
  min-height: 56px;
  padding: 13px 14px;
  color: #25352d;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

/* The broad assortment photos must retain both outermost products. */
.catalog-lead picture {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #f3f6f4;
}

.catalog-lead picture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  mix-blend-mode: normal;
}

.catalog-lead h1 {
  margin-top: 26px;
}

.company .company-photo {
  max-width: none;
  margin-top: 25px;
}

.company .company-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  mix-blend-mode: normal;
  border-radius: 14px;
  background: #f3f6f4;
}

/* Product records continue to use their original, uncropped SKU photographs. */
.cards {
  gap: 32px 18px;
}

.card-image {
  border-color: #e4e9e6;
  border-radius: 12px;
  background: #fff;
}

.card-image img {
  padding: clamp(8px, 1vw, 16px);
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
}

.card h3 {
  margin: 14px 0 7px;
  line-height: 1.24;
}

.product-media {
  border-color: #e4e9e6;
  border-radius: 14px;
  background: #fff;
}

.product-media img,
.photo-button img,
.thumbnail img,
.dialog .zoom-image,
.zoom-dialog #panel-body > img {
  object-fit: contain;
  mix-blend-mode: normal;
}

.product-media .photo-button > img {
  height: auto;
  aspect-ratio: 1;
  padding: clamp(12px, 2vw, 28px);
  background: #fff;
}

.product-media .thumbnail-row {
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #edf0ee;
  background: #fff;
}

.product-media .thumbnail {
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 900px) {
  .lead-hero {
    margin: 14px 0 34px;
  }

  .lead-hero .hero-frame {
    --frame-radius: 13px;
    --control-inset: 18px;
  }

  .lead-hero .hero-card {
    min-height: 0;
    aspect-ratio: auto;
    padding-bottom: 62px;
    background: #f4f7f5;
  }

  .lead-hero .hero-card .hero-slides {
    position: relative;
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .lead-hero .hero-card .hero-slides picture img {
    object-position: center;
  }

  .lead-hero .hero-card .hero-slides::after {
    background: none;
  }

  .lead-hero .hero-card .slide-main {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    padding: 20px 20px 10px;
    gap: 14px;
    justify-content: flex-start;
    color: #000;
  }

  .lead-hero .slide-text h2 {
    font-size: clamp(1.75rem, 6.9vw, 2.5rem);
    line-height: 1.16;
  }

  .lead-hero .slide-text p {
    max-width: 58ch;
    margin-top: 8px;
    font-size: 1rem;
    line-height: 1.45;
  }

  .lead-hero .slide-text .slide-tagline {
    margin-top: 6px;
    font-size: .9375rem;
  }

  .lead-hero .hero-card .slide-link,
  html[data-riches-liquid] .lead-hero .hero-card .slide-link {
    min-height: 44px;
    padding: 9px 18px;
  }

  .lead-hero .slide-buttons {
    bottom: 9px;
    padding-top: 4px;
  }
}

@media (max-width: 740px) {
  .ranges {
    gap: 12px;
  }

  .ranges .range-tile .range-caption {
    min-height: 54px;
    padding: 11px 12px;
  }

  .cards {
    gap: 27px 12px;
  }

  .catalog-lead h1 {
    margin-top: 22px;
  }
}

@media (max-width: 380px) {
  .lead-hero .hero-card .slide-main {
    padding: 17px 16px 9px;
  }

  .lead-hero .slide-text h2 {
    font-size: 1.6875rem;
  }
}
