/* Preserve existing product photo frames and native spacing. */
.catalog-main-product .cmp-picture > a[data-st-photo-frame="20261203-sitewide"],
.st-home-stock__photo[data-st-photo-frame="20261203-sitewide"],
.st-pdp-photo[data-st-photo-frame="20261203-sitewide"],
.st-pdp-editions .product-tp-list-item[data-st-photo-frame="20261203-sitewide"],
figure.st-pdp-description-visual[data-st-photo-frame="20261203-sitewide"] {
  overflow: hidden;
}
/* Mapped front photographs have one framing model, including older browsers. */
.st-pdp-photo > img[data-st-photo-fit="20261203-sitewide"],
.st-pdp-editions .product-tp-list-item > img[data-st-photo-fit="20261203-sitewide"],
figure.st-pdp-description-visual > img.st-pdp-description-image[data-st-photo-fit="20261203-sitewide"] {
  object-view-box: none !important;
  --st-pdp-photo-scale: 1 !important;
  --st-pdp-photo-safe-margin: 0% !important;
}

/* Runtime photo-fit properties must update together, without native all transitions. */
#basket-root .basket-item-image-link > img.basket-item-image[data-st-photo-fit="20261203-sitewide"] {
  transition-property: opacity, filter, transform !important;
}
/* Localized MARS cover only; alpha >= 64 bounds measured on the unchanged original
 * Match the existing OCEAN visible height inside the neighboring 736:1020 photo area
 * Mobile layout remains unchanged
 */
@media (min-width: 681px) {
  html:has(link[data-st-section-kind="localized"]) .main-content .catalog-sections-flex > .catalog-section-item > a.catalog-section-item_picture[href="/catalog/mars/"]:has(> img[src="/upload/dev2fun.imagecompress/webp/resize_cache/uf/b50/1020_1020_1/b50af9d1e07b68a2fc2afedf093ef70b.webp"]) {
    position: relative;
    height: auto;
    aspect-ratio: 736 / 1020;
    flex-shrink: 0;
    overflow: hidden;
  }
  html:has(link[data-st-section-kind="localized"]) .main-content .catalog-sections-flex > .catalog-section-item > a.catalog-section-item_picture[href="/catalog/mars/"]:has(> img[src="/upload/dev2fun.imagecompress/webp/resize_cache/uf/b50/1020_1020_1/b50af9d1e07b68a2fc2afedf093ef70b.webp"]) > img[src="/upload/dev2fun.imagecompress/webp/resize_cache/uf/b50/1020_1020_1/b50af9d1e07b68a2fc2afedf093ef70b.webp"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 50% 50%;
    transform-origin: 50% 50%;
    scale: 1.332236996;
    translate: -3.791449744% -3.301816951%;
  }
}

/* The verified Luna 25 collection cover keeps the neighboring photo proportions. */
html:has(link[data-st-section-kind="localized"]) .main-content .catalog-sections-flex > .catalog-section-item > a.catalog-section-item_picture:has(> img[data-st-collection-cover="luna"]) {
  position: relative;
  height: auto;
  aspect-ratio: 736 / 1020;
  flex-shrink: 0;
  overflow: hidden;
}
html:has(link[data-st-section-kind="localized"]) .main-content .catalog-sections-flex > .catalog-section-item > a.catalog-section-item_picture > img[data-st-collection-cover="luna"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  scale: 0.9804703;
  translate: -3.913% -0.1882%;
}
@media (max-width: 680px) {
  html:has(link[data-st-section-kind="localized"]) .main-content .catalog-sections-flex > .catalog-section-item > a.catalog-section-item_picture:has(> img[data-st-collection-cover="luna"]) { aspect-ratio: 1; }
  html:has(link[data-st-section-kind="localized"]) .main-content .catalog-sections-flex > .catalog-section-item > a.catalog-section-item_picture > img[data-st-collection-cover="luna"] { translate: -2.824% -0.1882%; }
}
