/* Replace the baked-in physical ID in every 756 × 1550 wallet screenshot.
   The mask covers the complete first card for all three demonstration people.
   The following cards, insertion area, highlight and navigation keep their
   original positions and animations. */
.wi-digital-identity {
  position: absolute;
  z-index: 1;
  top: 8.7%;
  left: 0;
  right: 0;
  height: 30.1%;
  background: #fff;
  pointer-events: none;
}

.wi-digital-identity-card {
  position: absolute;
  top: 2.7%;
  left: 2.5%;
  width: 95%;
  aspect-ratio: 541 / 340;
  overflow: hidden;
  border-radius: 5.2% / 8.3%;
  box-shadow: 0 3px 9px #00000020;
  background: #fff;
}

/* Keep the exact crop height even when aspect-ratio is unsupported. */
.wi-digital-identity-card::before {
  content: '';
  display: block;
  padding-top: calc(340 / 541 * 100%);
}

/* Exact reference crop: x=25, y=108, width=541, height=340. These relative
   coordinates scale with the existing portrait stage without editing pixels. */
.wi-digital-identity-card > img {
  position: absolute;
  top: calc(-108 / 340 * 100%);
  left: calc(-25 / 541 * 100%);
  width: calc(592 / 541 * 100%);
  max-width: none;
  height: auto;
  display: block;
  user-select: none;
}
