/* Homepage media proportions */
.home-edition .hero-slides,
body.page-index .banner-stage,
body.page-index .hero-slides {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
}

.home-edition .product-image,
body.page-index .product-image {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1;
}

/* Product listing and detail media */
body.page-products .product-image,
body.page-product_search .product-image,
body.page-product_keyword .product-image,
body.page-product_detail .main-image,
body.page-product_detail .thumb,
body.page-product_detail .recommend-item img {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 !important;
}

body.page-product_detail .main-image img,
body.page-product_detail .main-image video,
body.page-product_detail .thumb img,
body.page-product_detail .recommend-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
