.product-picture {
  isolation: isolate;
}

.product-art.art-studio img,
.product-detail .main-photo .art-studio img,
.comparison .art-studio img {
  mix-blend-mode: multiply;
}

.product-art.art-pair {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2%;
}

.product-art.art-pair img,
.product-detail .main-photo .art-pair img {
  mix-blend-mode: multiply;
}

.product-art.art-pair img:first-child {
  max-width: 76%;
  max-height: 56%;
  margin-bottom: -7%;
}

.product-art.art-pair img:last-child {
  max-width: 69%;
  max-height: 35%;
  margin-left: 8%;
}

/* Keep the white-source artwork in the same blending group as the card background. */
.product-picture .product-art,
.product-picture:hover .product-art {
  transform: none;
  transition: none;
}

.product-picture:hover ~ h3 a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.product-picture .art-photo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
}

/* Center the actual device in the stage. The source JPG has a large pedestal below it. */
.art-cut img[src$="/face-mask-device.jpg"] {
  translate: 0 16.4%;
}

.gallery-art { position: absolute; inset: 0; }
.gallery-expand, .gallery-close, .gallery-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
}
.gallery-expand[hidden] { display: none; }
.gallery-expand, .gallery-close { position: absolute; top: 12px; right: 12px; }
.gallery-expand:hover, .gallery-close:hover, .gallery-controls button:hover { background: var(--surface-band); }
.gallery-dialog {
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--surface-soft);
  color: var(--ink);
  width: min(1000px, 92vw);
  max-height: 90dvh;
}
.gallery-dialog::backdrop { background: #14241ec2; }
.gallery-dialog-stage {
  position: relative;
  height: min(72dvh, 68vw);
  min-height: 240px;
  background: var(--surface-media);
}
.gallery-dialog-stage .art-photo { --art-size: 100%; }
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 12px;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.icon-left { display: inline-flex; transform: rotate(180deg); }
