#container .profile-stack-source { visibility: hidden !important; }
.profile-stack {
  position: absolute;
  isolation: isolate;
  overflow: visible;
}
#container .profile-stack .stack-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--photo-radius, 15px);
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  transition: transform 280ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
#container .profile-stack .stack-picture {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  /* Black and white, like the portrait. */
  filter: grayscale(1);
}
.profile-stack.is-shuffling .stack-photo { transition: none !important; }
.profile-stack .stack-control {
  position: absolute;
  z-index: 20;
  inset: 0;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 12px;
  touch-action: manipulation;
}
/* Cover the photos fanned out to the right. */
.profile-stack.is-expanded .stack-control { inset: -4% -54% -14% 0; }
.profile-stack .stack-control:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cursor-tilt-card:not(.is-flipped) .profile-stack,
.cursor-tilt-card:not(.is-flipped) .profile-stack .stack-control { pointer-events: auto; }
.profile-stack .stack-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) { #container .profile-stack .stack-photo { transition: none; } }
