.photo-fold {
  position: absolute;
  inset: 0;
  z-index: 1;
  perspective: 1150px;
  pointer-events: none;
  background: #e8eef6;
}

.photo-fold-image,
.photo-fold-hinge,
.photo-fold-face {
  position: absolute;
  inset: 0;
}
.photo-fold-image { background: #e8eef6; }
.photo-fold-image img { display: block; width: 100%; height: 100%; }
.photo-fold-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #08182c;
  opacity: var(--face-shadow, 0);
}
.photo-fold-rest, .photo-fold-back > div { clip-path: var(--rest-half); }
.photo-fold-front > div { clip-path: var(--turning-half); }

.photo-fold-hinge { transform-style: preserve-3d; will-change: transform; }
.photo-fold-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.photo-fold-front { --face-shadow: calc(var(--fold-progress) * .38); }
.photo-fold-back { --face-shadow: calc((1 - var(--fold-progress)) * .38); }
.photo-fold[data-axis="photo"] .photo-fold-back { transform: rotateY(180deg); }
.photo-fold[data-axis="listing"] .photo-fold-back { transform: rotateX(180deg); }
