/* The artwork keeps its own space when there is no product preview overlay. */
.studio-grid {
  min-height: clamp(29rem, 45.83vw, 39rem);
}

@media (max-width: 680px) {
  .studio-grid {
    min-height: 0;
    row-gap: 1.625rem;
  }

  .studio-art {
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
  }

  .studio-art .thread-fold {
    width: 118%;
    height: auto;
    aspect-ratio: 1079 / 780;
    left: -14%;
    top: -.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .thread-glint {
    offset-path: path("M 121 413 C 114 293 188 188 313 133 S 532 54 656 104 S 860 261 1066 256");
    offset-anchor: 0 0;
    offset-rotate: 0deg;
    animation: trace-hero-thread 2.8s ease-in-out .3s 1;
  }

  @keyframes trace-hero-thread {
    0%   { offset-distance: 0%; opacity: 0; }
    15%  { opacity: .8; }
    80%  { opacity: .8; }
    100% { offset-distance: 100%; opacity: 0; }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .studio-art .thread-fold { animation: hero-thread-drift 12s ease-in-out infinite alternate; }
  @keyframes hero-thread-drift {
    from { transform: translate(-1%,1%) rotate(-1deg); }
    to { transform: translate(2%,-2%) rotate(1deg); }
  }
}
