.hero-set .screen-window[data-screen-corners] {
  z-index: 1;
  mask: none;
  -webkit-mask: none;
}
.hero-set .screen-window[data-screen-corners] > .screen-plane {
  overflow: hidden;
  border-radius: 11% / 5%;
}
.hero-set .screen-window.mac-display[data-screen-corners] > .screen-plane {
  border-radius: 1.4% / 2%;
}

/* The photo and its masked app screen tilt together as a single flat surface. */
#gallery-product .physical {
  animation: none;
  transform-style: flat;
  transform-origin: center;
  transform: perspective(1100px) rotateY(var(--photo-yaw, 0rad)) rotateX(var(--photo-pitch, 0rad));
  backface-visibility: hidden;
  isolation: isolate;
  user-select: none;
}

#gallery-product .hardware {
  -webkit-user-drag: none;
}

.gallery-photo:focus-visible {
  outline: 2px solid #97e8f5;
  outline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-photo { cursor: grab; }
  .gallery-photo[data-dragging] { cursor: grabbing; }
}
