/* Motion-inspired timing and layout, adapted to Scalve's existing identity. */
body.scalve-motion .motion-managed,
body.scalve-motion .motion-managed.reveal:not(.visible) {
  opacity: 1;
  animation: none;
  transform: none;
  filter: none;
}
body.scalve-motion .motion-managed {
  transition-property: box-shadow,border-color,background-color,color;
}
.motion-photo { translate: 0 var(--motion-parallax,0px); }
.motion-filters { position: relative; isolation: isolate; }
.motion-filter-plate {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border: 1px solid #e8d2a7;
  border-radius: 8px;
  background: linear-gradient(125deg,#fff,#dce8f7);
  box-shadow: inset 0 1px #fff,0 3px 10px #04112325;
  transform-origin: top left;
}
.folio-gallery .motion-filters button[aria-pressed="true"] {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) and (transition-behavior: allow-discrete) {
    .scalve-motion details { interpolate-size: allow-keywords; }
    .scalve-motion details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size .3s cubic-bezier(.22,1,.36,1),content-visibility .3s allow-discrete;
    }
    .scalve-motion details[open]::details-content { block-size: auto; }
  }
}
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .motion-photo { translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scalve-motion .motion-managed { animation: none; transition: none; }
}
