/* RC30: packaging visual hierarchy. A small 400 g/360 g can should
   appear smaller than 1.56 kg/2.5 kg family-size cans.
   Product metadata, images and packaging measurements are unchanged. */
:where(.products-page,.mayan-rc25-product-grid,.mayan-single-related-grid)
  [data-product-card][data-id="1041"] .product-card__media img,
:where(.products-page,.mayan-rc25-product-grid,.mayan-single-related-grid)
  [data-product-card][data-id="1042"] .product-card__media img,
:where(.products-page,.mayan-rc25-product-grid,.mayan-single-related-grid)
  [data-product-card][data-id="1047"] .product-card__media img {
  display:block!important;
  width:62%!important;
  height:62%!important;
  max-width:62%!important;
  max-height:62%!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:auto!important;
  transform:none!important;
}
/* Olive 936 g pouch is an intermediate size between 360 g and 1.56 kg. */
:where(.products-page,.mayan-rc25-product-grid,.mayan-single-related-grid)
  [data-product-card][data-id="1044"] .product-card__media img {
  display:block!important;
  width:80%!important;
  height:80%!important;
  max-width:80%!important;
  max-height:80%!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:auto!important;
  transform:none!important;
}
/* Keep figures centered independently of older card-media layouts. */
:where(.products-page,.mayan-rc25-product-grid,.mayan-single-related-grid)
  [data-product-card][data-id="1041"] .product-card__media,
:where(.products-page,.mayan-rc25-product-grid,.mayan-single-related-grid)
  [data-product-card][data-id="1042"] .product-card__media,
:where(.products-page,.mayan-rc25-product-grid,.mayan-single-related-grid)
  [data-product-card][data-id="1044"] .product-card__media,
:where(.products-page,.mayan-rc25-product-grid,.mayan-single-related-grid)
  [data-product-card][data-id="1047"] .product-card__media {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
/* In popups the 100% zoom label still means actual image zoom, not package scale. */
#productModal[data-mayan-visual-size="small"] .m16-image-viewport img {
  width:65%!important;height:65%!important;
  max-width:65%!important;max-height:65%!important;
  object-fit:contain!important;
}
#productModal[data-mayan-visual-size="medium"] .m16-image-viewport img {
  width:82%!important;height:82%!important;
  max-width:82%!important;max-height:82%!important;
  object-fit:contain!important;
}
/* Individual search-indexed product URLs use the same relative can scaling. */
body.mayan-single-product-page .mayan-single-detail[data-mayan-visual-size="small"] .m16-image-viewport img {
  width:65%!important;height:65%!important;
  max-width:65%!important;max-height:65%!important;
  object-fit:contain!important;
}
body.mayan-single-product-page .mayan-single-detail[data-mayan-visual-size="medium"] .m16-image-viewport img {
  width:82%!important;height:82%!important;
  max-width:82%!important;max-height:82%!important;
  object-fit:contain!important;
}
