img[draggable="false"] {
  -webkit-user-drag: none;
}

/* Keep the homepage scroll reveal and parallax independent of link hover. */
#main:has(> .home-art-hero) a .motion-media.is-revealed {
  --hover-scale: 1;
}

#main:has(> .home-art-hero) :is(.selected-product, .goal-card, .editorial-gateway):is(:hover, :focus-visible) img:not(.motion-media),
#main:has(> .home-art-hero) .editorial-category-card:is(:hover, :focus-visible) .editorial-category-image > :is(img, svg):not(.motion-media),
#main:has(> .home-art-hero) :is(.editorial-inline-link, .editorial-gateway):is(:hover, :focus-visible) .editorial-arrow {
  transform: none;
}

#main:has(> .home-art-hero) .portfolio-oval:hover {
  background: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Keep the linked ELAXEN packshot inside its own frame. */
#main:has(> .home-art-hero) > #new-products .new-product-packshot {
  overflow: hidden;
}

/* Homepage card hover is scoped to the three editorial groups. */
@media (hover: hover) and (pointer: fine) {
  #main:has(> .home-art-hero) > #selected-products .selected-product:hover,
  #main:has(> .home-art-hero) > :is(#treatment-goals, #product-categories) :is(.goal-card, .editorial-category-card):hover {
    box-shadow: 0 8px 25px #0f302a10;
  }

  #main:has(> .home-art-hero) > .home-gateways .editorial-gateway:hover .home-reference-cta .ce-link {
    opacity: 1;
  }

  @media (prefers-reduced-motion: no-preference) {
    #main:has(> .home-art-hero) > #selected-products .selected-product {
      transition: box-shadow .22s ease-out;
    }

    #main:has(> .home-art-hero) > :is(#treatment-goals, #product-categories) :is(.goal-card, .editorial-category-card) {
      transition: transform .22s ease-out, box-shadow .22s ease-out;
    }

    #main:has(> .home-art-hero) > :is(#treatment-goals, #product-categories) :is(.goal-card, .editorial-category-card):hover {
      transform: scale(1.012);
    }

    #main:has(> .home-art-hero) > #new-products .new-product-packshot:hover > img.motion-media.is-revealed,
    #main:has(> .home-art-hero) > .home-gateways .editorial-gateway:hover .gateway-image > img.motion-media.is-revealed {
      --hover-scale: 1.012;
    }

    #main:has(> .home-art-hero) > #new-products .new-product-packshot > img:not(.motion-media),
    #main:has(> .home-art-hero) > .home-gateways .gateway-image > img:not(.motion-media) {
      transition: transform .22s ease-out;
    }

    #main:has(> .home-art-hero) > #new-products .new-product-packshot:hover > img:not(.motion-media),
    #main:has(> .home-art-hero) > .home-gateways .editorial-gateway:hover .gateway-image > img:not(.motion-media) {
      transform: scale(1.012);
    }
  }
}
