@media (max-width: 768px) {
  .page-hero.collection-banner,
  .page-hero.mobile-category-scene,
  .gel-hero.gel-hero-editorial {
    --mobile-media-height: calc(100vw * 809 / 1942);
    --mobile-overlap: 30px;
    --mobile-art-mask: linear-gradient(to bottom, transparent, #000 40px);
    position: relative;
    isolation: isolate;
    display: block;
    min-height: 0;
    padding: 0 0 calc(var(--mobile-media-height) - var(--mobile-overlap));
    background: var(--mobile-matte, var(--scene-mobile-base, var(--banner-base)));
  }

  .page-hero.mobile-category-scene--jewelry::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 12px;
    z-index: 1;
    background: linear-gradient(to bottom, transparent, var(--mobile-hero-end, #fff));
    pointer-events: none;
  }

  .page-hero.collection-banner > :is(img, picture),
  .page-hero.mobile-category-scene::before {
    position: absolute;
    z-index: 0;
    inset: auto 0 0;
    display: block;
    width: 100%;
    max-width: none;
    height: var(--mobile-media-height);
    aspect-ratio: auto;
    margin: 0;
    overflow: hidden;
    mask-image: var(--mobile-art-mask);
  }

  .page-hero.collection-banner > img,
  .page-hero.collection-banner > picture img {
    object-fit: contain;
    object-position: center bottom;
  }

  .page-hero.collection-banner > picture img { width: 100%; height: 100%; }
  .page-hero.collection-banner--accessories { --mobile-media-height: calc(100vw * 754 / 2084); }
  .accessories-body-white .entry-kit { padding-block-start: 0; }
  .page-hero.machine-catalog-banner.machine-scene { --mobile-media-height: calc(100vw * 21 / 40); }
  .page-hero.machine-scene--valentine { --mobile-art-mask: linear-gradient(to bottom, transparent, #000 32px); }

  .page-hero.collection-banner .collection-banner-copy,
  .page-hero.mobile-category-scene > .container {
    position: relative;
    z-index: 2;
    padding-block: 16px 9px;
    overflow-wrap: anywhere;
  }

  .page-hero.mobile-category-scene {
    color: var(--mobile-ink, #251a27);
    text-align: start;
  }

  .page-hero.mobile-category-scene::before {
    background: var(--mobile-scene) center bottom / contain no-repeat;
  }

  .page-hero.mobile-category-scene :is(h1, .breadcrumb, .breadcrumb a, .breadcrumb .sep, .page-hero-sub) {
    color: inherit;
  }

  .page-hero.mobile-category-scene h1 {
    margin-block: 0 7px;
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.15;
  }

  .page-hero.mobile-category-scene .breadcrumb { margin-block-end: 8px; font-size: 12px; }
  .page-hero.mobile-category-scene .page-hero-sub { margin-block: 0; font-size: 14px; line-height: 1.45; }

  .mobile-category-scene--handmade {
    --mobile-matte: #ead6ce;
    --mobile-scene: url("/images/banner/collection/handmade-880.webp?v=1");
  }

  .mobile-category-scene--machine {
    --mobile-matte: #d5b69e;
    --mobile-media-height: calc(100vw * 21 / 40);
    --mobile-scene: url("/images/banner/machine-product-scenes/overview-mobile-800.webp");
  }

  .mobile-category-scene--jewelry {
    --mobile-matte: #fbf7f3;
    --mobile-media-height: calc(100vw * 442 / 640);
    --mobile-scene: url("/images/jewelry/jewelry-sets/set-bridal-04.jpg");
  }

  .gel-hero.gel-hero-editorial {
    --mobile-matte: #e5c6a6;
    --mobile-media-height: calc(100vw * 9 / 16);
    --mobile-overlap: 10px;
    --mobile-art-mask: linear-gradient(to bottom, transparent, #000 12px);
  }

  .gel-hero-editorial .gel-hero-grid { position: relative; z-index: 2; padding-inline: 16px; }
  .gel-hero-editorial .gel-editorial-copy { padding-block: 12px 5px; overflow-wrap: anywhere; }
  .gel-hero-editorial .breadcrumb { margin-block-end: 6px; font-size: 12px; }
  .gel-hero-editorial .gel-eyebrow { display: flex; width: fit-content; font-size: 11px; line-height: 1.4; }
  .gel-hero-editorial h1 { margin-block: 5px 6px; line-height: 1.12; }
  .gel-hero-editorial .gel-hero-copy { margin-block: 0; line-height: 1.4; }
  .gel-hero-editorial .gel-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 7px;
    max-width: 390px;
    margin-block-start: 10px;
  }
  .gel-hero-editorial .gel-actions .btn {
    min-height: 44px;
    padding: 7px 8px;
    font-size: 13px;
    line-height: 1.3;
    white-space: normal;
  }

  .gel-hero-editorial .gel-editorial-art {
    position: absolute;
    inset: 0;
    width: 100%;
    pointer-events: none;
  }

  /* Extend the photograph's unoccupied limestone into the copy area. */
  .gel-hero-editorial .gel-editorial-art::before {
    content: "";
    position: absolute;
    inset: 0 0 calc(var(--mobile-media-height) - 22px);
    background:
      linear-gradient(180deg, rgb(255 247 235 / .67), rgb(255 247 235 / .43) 72%, transparent),
      url("/images/gel-polish/packaging-concepts/hero.webp") left 30% / 480% auto no-repeat;
    mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent);
  }

  .gel-hero-editorial .gel-editorial-art picture {
    position: absolute;
    inset: auto 0 0;
    height: var(--mobile-media-height);
    aspect-ratio: auto;
  }

  .gel-hero-editorial .gel-editorial-art img {
    object-fit: contain;
    object-position: center bottom;
    mask-image: var(--mobile-art-mask);
  }

  .gel-hero-editorial .gel-editorial-art figcaption { right: auto; left: 12px; bottom: 10px; }
}
