/* Supplied can artwork already includes its silhouette, lighting and transparency. */
.can-photo,
.can-label-fallback {
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.can-photo::before,
.can-photo::after,
.can-label-fallback::before,
.can-label-fallback::after { content: none; }
.can-photo {
  width: calc(var(--can-w, 110px) * 1.4);
  height: calc(var(--can-h, 182px) * 1.18);
}
.can-photo > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-can .can-photo {
  width: calc(var(--can-h) * .73);
  height: calc(var(--can-h) * 1.1);
}
.hero-can.front { top: 90px; transform: translateX(-50%) rotate(-11deg); }
.hero-can.left { left: 21%; transform: translateX(-50%) rotate(-21deg); }
.hero-can.right { left: 79%; transform: translateX(-50%) rotate(18deg); }
.can-label-fallback {
  width: min(88%, 260px);
  height: auto;
  padding: 8px;
  background: #fbf8f0;
  border: 1px solid #d2c9ba;
}
.can-label-fallback > img { width: 100%; height: auto; }
.artwork-caption {
  display: block;
  margin-top: 8px;
  text-align: center;
  font: 500 8px var(--display);
  letter-spacing: 1.5px;
  color: #8a7b65;
}
.product-art .can-label-fallback,
.product-open:hover .can-label-fallback { transform: none; filter: none; }
.product-arrow, .stock-badge { z-index: 2; }
.hero-can .can-label-fallback { width: var(--can-w); }
.dialog-art .can-photo {
  --can-w: 175px;
  --can-h: 290px;
  transform: none;
  filter: none;
  flex-shrink: 0;
}
@media (min-width: 601px) and (max-width: 1100px) {
  .hero-can.front { top: 125px; }
}
@media (max-width: 600px) {
  .hero-can.front { top: 20px; }
  .hero-can.left { left: 23%; }
  .hero-can.right { left: 77%; }
  .dialog-art .can-photo { --can-w: 142px; --can-h: 236px; }
  .can-label-fallback { padding: 5px; }
  .artwork-caption { font-size: 7px; letter-spacing: .8px; }
}

/* Keep the original printed can upright behind the unfolding label. */
.lineup { overflow: clip; }
.product-art { overflow: visible; }
.product-card:has(.product-open:focus-visible) { z-index: 20; }
.product-info { position: relative; z-index: 5; }
.product-can-stack { position: relative; isolation: isolate; flex: 0 0 auto; z-index: 1; }
.product-can-stack > .can { z-index: 2; opacity: 1; }
.product-art .product-arrow, .product-art .stock-badge { z-index: 4; }
.label-unfold {
  position: absolute;
  left: 50%;
  top: 53%;
  height: 74%;
  width: auto;
  aspect-ratio: 2.4 / 1;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: 0 7px 14px #302c241c;
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(.24);
  transform-origin: center;
  transition: transform .8s ease-in-out, opacity .4s ease;
  pointer-events: none;
  z-index: 3;
}
.label-unfold img { width: 100%; height: 100%; object-fit: contain; }
.product-card[data-product="series3-3"] .label-unfold { aspect-ratio: 1983 / 793; }
.product-card[data-product="series3-4"] .label-unfold { aspect-ratio: 2048 / 858; }
.product-art .product-can-stack > .can {
  transition: transform .95s ease-in-out, filter .95s ease-in-out;
}
.product-open:focus-visible .product-can-stack > .can {
  transform: rotate(0);
}
.product-open:focus-visible .label-unfold {
  opacity: 1;
  transform: translate(-50%, -50%) scaleX(1);
  transition-duration: 1.25s, .6s;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover { z-index: 20; }
  .product-open:hover .product-can-stack > .can {
    transform: rotate(0);
  }
  .product-open:hover .label-unfold {
    opacity: 1;
    transform: translate(-50%, -50%) scaleX(1);
    transition-duration: 1.25s, .6s;
  }
}
@media (hover: none), (pointer: coarse) {
  .product-open:hover:not(:focus-visible) .product-can-stack > .can {
    transform: rotate(-7deg);
    filter: drop-shadow(6px 18px 10px #0002);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-art .product-can-stack > .can, .label-unfold { transition: none; }
}
