/* IKD_TYUMEN_PRODUCT_GALLERY_V3_20261117 — visual sizing only. */
/* Reduce letterboxing by matching the container to landscape photography;
   source images are NEVER stretched, cropped or transformed. */
.catalog-page-v2 .product-grid > .product-card > .product-photo {
  aspect-ratio: 1.6 / 1 !important;
  min-height: 0 !important;
  background: #f7f4ef !important;
}
.catalog-page-v2 .product-grid > .product-card > .product-photo > img {
  object-fit: contain !important;
  object-position: center center !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  transform: none !important;
  scale: 1 !important;
}
/* Fit the product detail canvas to the actual image proportions where possible. */
.product-page .detail-gallery-main {
  aspect-ratio: var(--ikd-product-hero-ratio, 1.65) !important;
  height: auto !important;
  min-height: 0 !important;
  background: #f7f4ef !important;
}
.product-page .detail-gallery-main > img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  scale: 1 !important;
}
@media (max-width: 620px) {
  .catalog-page-v2 .product-grid > .product-card > .product-photo {
    aspect-ratio: 1.42 / 1 !important;
  }
  .product-page .detail-gallery-main {
    aspect-ratio: var(--ikd-product-hero-ratio, 1.55) !important;
  }
}
