/* Стили карточек продуктов и полноэкранного просмотра изображений. */
.product-card-image-frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #E7EEF4;
  align-items: center;
  justify-content: center;
}

.product-card-image-frame img,
.product-main-image-frame img,
.product-gallery-image-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-main-image-frame,
.product-gallery-image-frame {
  overflow: hidden;
  background: #E7EEF4;
}

.product-main-image-frame {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery-image-frame {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

#product-image-dialog::backdrop {
  background: rgba(20, 31, 34, .88);
  backdrop-filter: blur(4px);
}
