/* Keep the photo panel and the bottle's proportions; scale its measured alpha bounds. */
@supports (width: 1cqh) {
  body .x-main ul.products > li.product .entry-featured > a:has(> img.samaria-bottle-presentation) {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    container-type: size;
  }

  body .x-main ul.products > li.product .entry-featured > a:has(> img.samaria-bottle-landscape) {
    aspect-ratio: 2 / 1;
  }

  body.samaria-catalog-archive .x-main ul.products > li.product .entry-featured > a:has(> img.samaria-bottle-presentation),
  body .x-main .samaria-home-products ul.products > li.product .entry-featured > a:has(> img.samaria-bottle-presentation) {
    aspect-ratio: 4 / 5;
  }

  body .x-main ul.products > li.product .entry-featured > a > img.samaria-bottle-presentation {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: auto;
    min-width: 0;
    max-width: none;
    /* Borovička fills 70% of the reference panel. A 5% relative increase gives 73.5%. */
    height: min(
      calc(var(--samaria-card-bottle-height, 73.5cqh) * var(--samaria-bottle-height-scale)),
      calc(var(--samaria-card-bottle-width, 90cqw) * var(--samaria-bottle-width-height-scale))
    );
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    object-fit: fill;
    transform: translate(var(--samaria-bottle-shift-x), var(--samaria-bottle-shift-y));
  }

  .samaria-site-light img.samaria-bottle-presentation.samaria-bottle-200ml {
    --samaria-card-bottle-height: 66.9cqh;
    --samaria-card-bottle-width: 81.9cqw;
    scale: none;
  }
}
