/* A narrow edge and two shadow distances separate the stone from the page. */
.stone-surface {
  --stone-lift: -8px;
  --stone-scale: 1.018;
  --stone-blur: 36px;
  --stone-spread: -11px;
  box-shadow: 0 1px 2px rgb(43 33 21 / .22), 0 5px 12px -7px rgb(43 33 21 / .27);
  transform-origin: center;
}
.at-swatch .stone-surface, .pc-thumbs .stone-surface, .atelier-sample.stone-surface {
  --stone-lift: -4px;
  --stone-scale: 1.04;
  --stone-blur: 13px;
  --stone-spread: -4px;
}
.pc-intro-photo:has(> .stone-surface) {
  overflow: visible;
}
.pc-intro-photo:has(> .stone-surface) > span {
  z-index: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .stone-surface {
    transition: transform 280ms cubic-bezier(.2,.78,.23,1), box-shadow 280ms ease-out;
  }
  .stone-surface.stone-raised {
    transform: perspective(1000px) translateY(var(--stone-lift)) rotateX(var(--stone-rx,0deg)) rotateY(var(--stone-ry,0deg)) scale(var(--stone-scale));
    box-shadow:
      0 1px 0 rgb(255 251 237 / .65),
      0 3px 1px -1px rgb(74 62 44 / .60),
      calc(var(--stone-sx,0px) * .4) calc(var(--stone-sy,14px) * .4) 10px -3px rgb(42 32 20 / .33),
      var(--stone-sx,0px) var(--stone-sy,14px) var(--stone-blur) var(--stone-spread) rgb(40 30 18 / .45);
    transition-duration: 105ms, 120ms;
  }
  @media (pointer:coarse) {
    .stone-surface {--stone-lift:-6px;--stone-scale:1.014}
    .stone-surface.stone-raised {transition-duration:60ms,75ms}
  }
}
.pc-card a:hover .stone-surface img,
.collection-card:hover .stone-surface img,
.home-product:hover .stone-surface img {transform:none}
@media (prefers-reduced-motion:reduce) {
  .stone-surface, .stone-surface.stone-raised {transform:none;transition:none}
}
