#client-stories { position: relative; }
#client-stories .stories-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .22;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}

#client-stories .stories-atmosphere__photo {
  position: absolute;
  inset: -3%;
  display: block;
  width: 106%;
  height: 106%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 4s linear;
}

#client-stories .stories-atmosphere__photo.is-active { opacity: 1; }
#client-stories .stories-atmosphere__photo.is-moving {
  animation: stories-photo-drift 20s linear both;
}
#client-stories .stories-atmosphere.is-paused .stories-atmosphere__photo {
  animation-play-state: paused;
}

#client-stories .stories-atmosphere__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--surface-shell) 78%, transparent),
    color-mix(in srgb, var(--surface-shell) 48%, transparent) 40%,
    color-mix(in srgb, var(--surface-shell) 68%, transparent)
  );
}

@keyframes stories-photo-drift {
  from { transform: translate3d(-1.2%, .8%, 0) scale(1.025); }
  to { transform: translate3d(1.2%, -.8%, 0) scale(1.09); }
}

@media (max-width: 700px) {
  #client-stories .stories-atmosphere__photo { object-position: 30% center; }
}

@media (prefers-reduced-motion: reduce) {
  #client-stories .stories-atmosphere__photo {
    animation: none !important;
    transition: none;
    transform: none;
  }
}
