/* Consistent photo frames; fit wide bags and tall packs without distortion. */
.product-visual { container-type: size; }
.product-card .product-visual,
.dialog-product > .product-visual-large {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .product-visual .product-packshot img,
.dialog-product .product-visual .product-packshot img {
  padding: 0;
  image-rendering: auto;
}
.product-packshot {
  position: relative;
  flex: none;
  height: min(calc(100cqh - 32px), calc((100cqw - 32px) / var(--pack-ratio)));
  aspect-ratio: var(--pack-ratio);
  overflow: hidden;
}
.product-visual .product-packshot img {
  position: absolute;
  width: var(--image-width);
  height: var(--image-height);
  max-width: none;
  left: var(--image-left);
  top: var(--image-top);
  padding: 0;
  object-fit: fill;
}
.product-grid { grid-auto-rows: 1fr; }
.product-card .card-text strong { min-height: 4.05em; }
.product-card .card-text small { min-height: 1.4em; }
.product-card .card-text small:empty { display: block; }
.product-visual-large .product-packshot { height: min(calc(100cqh - 48px), calc((100cqw - 48px) / var(--pack-ratio))); }
@media(max-width:639px) {
  .product-packshot { height: min(calc(100cqh - 28px), calc((100cqw - 20px) / var(--pack-ratio))); }
  .product-card .card-text strong { min-height: 5.4em; }
}

.identification-status { color: #806226; font-size: .78rem; }
.identification-note { background: #faf6eb; padding: 1rem; border-radius: .75rem; }

.catalog-intro .draft-notice { font-size: .9rem; color: #715a29; }
.product-composition p { overflow-wrap: anywhere; line-height: 1.65; }
.composition-note { color: #695f4f; font-size: .9rem; }
.back-label img { display: block; max-width: 100%; width: 360px; height: auto; margin: 1rem auto; }
.back-label a span { display: block; text-align: center; }

/* Use identical scale for all four body-butter packshots. */
.product-packshot img[src='images/clean/product-10-v48.png'],
.product-packshot img[src='images/clean/product-11-v57.png'],
.product-packshot img[src='images/clean/product-12-v57.png'],
.product-packshot img[src='images/clean/product-20-v57.png'] {
  transform: scale(.85);
  transform-origin: center;
}
