/* Sara Agliocchi — interactive scrapbook board · v1.5 · 2026-11-19 · v1.6 2026-11-23 (pieces roam the whole About page). Used with about-collage.js */
/* while a piece is held nothing on the page can be text selected */
.ac-page-dragging,.ac-page-dragging *{-webkit-user-select:none!important;user-select:none!important;cursor:grabbing!important}
.ac{position:relative;width:100%;aspect-ratio:4479/3239;isolation:isolate;touch-action:pan-y pinch-zoom}
.ac__static{position:absolute;inset:0;width:100%;height:100%;max-width:none;pointer-events:none}
.ac--live .ac__static{visibility:hidden}

.ac__layer{
  position:absolute;display:block;max-width:none;height:auto;
  pointer-events:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;
  backface-visibility:hidden;
  /* slow, clean return, no bounce */
  transition:transform .9s cubic-bezier(.22,1,.36,1),filter .9s cubic-bezier(.22,1,.36,1);
}
/* hover: lifts slightly, soft shadow */
.ac__layer.is-active{
  transition:transform .6s cubic-bezier(.22,1,.36,1),filter .6s cubic-bezier(.22,1,.36,1);
  filter:drop-shadow(0 18px 22px rgba(20,20,35,.16)) drop-shadow(0 3px 5px rgba(20,20,35,.10));
}
/* dragged piece: higher, deeper shadow, follows the hand without lag */
.ac__layer.is-held{
  transition:transform .25s cubic-bezier(.22,1,.36,1),filter .3s ease;
  filter:drop-shadow(0 30px 32px rgba(20,20,35,.22)) drop-shadow(0 5px 9px rgba(20,20,35,.12));
}
.ac__layer[style*="mix-blend-mode"].is-active,.ac__layer[style*="mix-blend-mode"].is-held{filter:none}
.ac--dragging{cursor:grabbing!important}
.ac--dragging *{user-select:none}
/* shuffle / reset: pieces glide to their place */
.ac--settling .ac__layer{transition:translate 1s cubic-bezier(.65,0,.35,1),transform .9s cubic-bezier(.22,1,.36,1),filter .9s cubic-bezier(.22,1,.36,1)}

@media (prefers-reduced-motion:reduce){
  .ac__layer,.ac--settling .ac__layer{transition:none}
}
