/* ПитомЧик v78.5 — единый стандарт фотографий товара 4:3 */
/* Метрика, SEO, sitemap, robots и cookie-уведомление не затрагиваются. */

.product-card-media{
  aspect-ratio:4/3;
  background:#f7f3ec;
}
.product-card-media>img,
.product-card>img{
  width:100%;
  height:100%;
}
.product-card-media>img[src*="uploads/catalog/"],
.product-card-media>img[src*="/uploads/catalog/"],
.product-card>img[src*="uploads/catalog/"],
.product-card>img[src*="/uploads/catalog/"]{
  object-fit:contain!important;
  object-position:center!important;
  background:#f7f3ec!important;
}

.product-detail-card .product-main-media{
  display:grid;
  place-items:center;
  aspect-ratio:4/3;
  background:#f7f3ec;
}
.product-detail-card .product-main-image{
  width:100%!important;
  height:100%!important;
  aspect-ratio:4/3!important;
}
.product-detail-card .product-main-image[src*="uploads/catalog/"],
.product-detail-card .product-main-image[src*="/uploads/catalog/"]{
  object-fit:contain!important;
  object-position:center!important;
  background:#f7f3ec!important;
}
.product-detail-card .product-thumbnail img[src*="uploads/catalog/"],
.product-detail-card .product-thumbnail img[src*="/uploads/catalog/"]{
  object-fit:contain!important;
  object-position:center!important;
  background:#f7f3ec!important;
}

.product-lightbox{
  justify-content:center!important;
  justify-items:center!important;
}
.product-lightbox figure{
  grid-column:2!important;
  justify-self:center!important;
  align-self:center!important;
  width:100%!important;
  max-width:min(1180px,82vw)!important;
}
.product-lightbox figure img{
  margin-inline:auto!important;
  object-fit:contain!important;
  object-position:center!important;
}

@media(max-width:720px){
  .product-lightbox figure{
    grid-column:1!important;
    max-width:100%!important;
  }
  .product-card-media>img[src*="uploads/catalog/"],
  .product-card-media>img[src*="/uploads/catalog/"],
  .product-card>img[src*="uploads/catalog/"],
  .product-card>img[src*="/uploads/catalog/"]{
    object-fit:contain!important;
  }
}
