/* Keep the crop centered on the product while preserving the original image proportions. */
.thumbnail-photo {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
}

@supports (container-type: size) and (width: 1cqw) and (translate: -50% -50%) {
  :is(.product-photo, .category-photo, .cart-photo, .thumbnail-photo) {
    position: relative;
    container-type: size;
  }

  :is(.product-photo, .category-photo, .cart-photo, .thumbnail-photo) > img {
    position: var(--crop-position, static);
    top: 50%;
    left: 50%;
    width: var(--crop-width, 100%);
    max-width: none;
    height: var(--crop-height, 100%);
    translate: var(--crop-translate, none);
  }

  /* Values below are based on a crop rectangle measured on each photograph.
     The larger zoom covers the frame for landscape and portrait viewports. */
  img[src="./media/9fb57a58d55f2f9270052c9436e1adff.webp"] {
    --crop-position: absolute;
    --crop-width: max(167.513cqw, 157.460cqh);
    --crop-height: auto;
    --crop-translate: -45.898% -34.254%;
  }

  img[src="./media/8d89668b4e189927d1a2d48374baca8f.webp"] {
    --crop-position: absolute;
    --crop-width: max(158.308cqw, 148.810cqh);
    --crop-height: auto;
    --crop-translate: -39.487% -33.383%;
  }

  img[src="./media/b832833a1002ca8a976bfaff6da6fbc8.webp"] {
    --crop-position: absolute;
    --crop-width: max(158.308cqw, 148.810cqh);
    --crop-height: auto;
    --crop-translate: -46.154% -30.690%;
  }

  img[src="./media/b7a8008cc9108e0c2df096b6711749b7.webp"] {
    --crop-position: absolute;
    --crop-width: max(169.483cqw, 159.313cqh);
    --crop-height: auto;
    --crop-translate: -43.590% -37.889%;
  }

  img[src="./media/a5e4f43c4c90a97b7d8b8bc318e799cb.webp"] {
    --crop-position: absolute;
    --crop-width: max(154.904cqw, 145.608cqh);
    --crop-height: auto;
    --crop-translate: -53.333% -40.342%;
  }

  img[src="./media/80f848c35855a4880ba5a32324f87027.webp"] {
    --crop-position: absolute;
    --crop-width: max(173.566cqw, 163.153cqh);
    --crop-height: auto;
    --crop-translate: -44.360% -37.468%;
  }

  img[src="./media/152027bbed8d1f6272d5da0b1d752658.webp"] {
    --crop-position: absolute;
    --crop-width: max(154.297cqw, 145.040cqh);
    --crop-height: auto;
    --crop-translate: -48.461% -36.573%;
  }

  img[src="./media/615814a35e7116a402c9349496570d64.webp"] {
    --crop-position: absolute;
    --crop-width: max(130.088cqw, 122.283cqh);
    --crop-height: auto;
    --crop-translate: -47.840% -35.188%;
  }

  img[src="./media/55145a964b5b4bfdb5527d80062be170.webp"] {
    --crop-position: absolute;
    --crop-width: max(132.979cqw, 125.000cqh);
    --crop-height: auto;
    --crop-translate: -47.222% -30.989%;
  }

  img[src="./media/10d5a906ec151fcec4d25dee8178292f.webp"] {
    --crop-position: absolute;
    --crop-width: max(120.890cqw, 113.636cqh);
    --crop-height: auto;
    --crop-translate: -44.136% -29.227%;
  }

  img[src="./media/a1be7e928010aa5215a7fd3b34d04093.webp"] {
    --crop-position: absolute;
    --crop-width: max(136.001cqw, 127.841cqh);
    --crop-height: auto;
    --crop-translate: -50.309% -26.442%;
  }

  img[src="./media/da5051b1345fefbac9e5980b703995f3.webp"] {
    --crop-position: absolute;
    --crop-width: max(134.474cqw, 126.404cqh);
    --crop-height: auto;
    --crop-translate: -49.382% -26.979%;
  }

  img[src="./media/ff3647843a6e9c7321d4e10f3d6659e8.webp"] {
    --crop-position: absolute;
    --crop-width: max(184.693cqw, 173.611cqh);
    --crop-height: auto;
    --crop-translate: -49.744% -36.031%;
  }

  img[src="./media/7ce49c6aad77b386079fba0178b1641e.webp"] {
    --crop-position: absolute;
    --crop-width: max(171.500cqw, 161.211cqh);
    --crop-height: auto;
    --crop-translate: -43.590% -31.910%;
  }

  img[src="./media/0f050113df662969c89bd6683078c7ff.webp"] {
    --crop-position: absolute;
    --crop-width: max(175.682cqw, 165.144cqh);
    --crop-height: auto;
    --crop-translate: -44.871% -30.720%;
  }

  img[src="./media/0f393f79df917bf6a4f9a00485f55b2b.webp"] {
    --crop-position: absolute;
    --crop-width: max(173.566cqw, 163.153cqh);
    --crop-height: auto;
    --crop-translate: -42.308% -32.852%;
  }

  img[src="./media/21e82af0684adcc20d8ebc8c8b7607e6.webp"] {
    --crop-position: absolute;
    --crop-width: max(148.041cqw, 139.159cqh);
    --crop-height: auto;
    --crop-translate: -51.283% -33.942%;
  }

  img[src="./media/e777d9b9a1bc492d06aca8db3810649d.webp"] {
    --crop-position: absolute;
    --crop-width: max(171.500cqw, 161.211cqh);
    --crop-height: auto;
    --crop-translate: -46.410% -36.140%;
  }

  img[src="./media/67797b24300a5055935c6506f504fbed.webp"] {
    --crop-position: absolute;
    --crop-width: max(173.566cqw, 163.153cqh);
    --crop-height: auto;
    --crop-translate: -44.872% -32.084%;
  }

  img[src="./media/16253b6c0e6c2bf15dc4569d0b214f44.webp"] {
    --crop-position: absolute;
    --crop-width: max(185.680cqw, 174.536cqh);
    --crop-height: auto;
    --crop-translate: -47.949% -35.945%;
  }

  img[src="./media/e5573326b9b31b9dc93f0dfb5465ed89.webp"] {
    --crop-position: absolute;
    --crop-width: max(163.704cqw, 153.884cqh);
    --crop-height: auto;
    --crop-translate: -54.103% -38.136%;
  }

  img[src="./media/bbd4cfb38c05f648f7182571540f9468.webp"] {
    --crop-position: absolute;
    --crop-width: max(171.500cqw, 161.211cqh);
    --crop-height: auto;
    --crop-translate: -52.052% -31.140%;
  }

  img[src="./media/02b2ca59789b29fe2689998dfbc30cf5.webp"] {
    --crop-position: absolute;
    --crop-width: max(177.854cqw, 167.179cqh);
    --crop-height: auto;
    --crop-translate: -44.872% -38.971%;
  }

  img[src="./media/066728b6fe1295155754d570426c1f8e.webp"] {
    --crop-position: absolute;
    --crop-width: max(116.279cqw, 109.302cqh);
    --crop-height: auto;
    --crop-translate: -57.000% -57.308%;
  }

  img[src="./media/98ef235d1f294f5cd6a9cd1b9ad316e8.webp"] {
    --crop-position: absolute;
    --crop-width: max(147.059cqw, 138.236cqh);
    --crop-height: auto;
    --crop-translate: -48.000% -53.127%;
  }

  img[src="./media/116c802bac151bd1857f3a651c004471.webp"] {
    --crop-position: absolute;
    --crop-width: max(121.951cqw, 114.634cqh);
    --crop-height: auto;
    --crop-translate: -52.000% -41.535%;
  }

  img[src="./media/7036d8797973713ce602c1500b3150ca.webp"] {
    --crop-position: absolute;
    --crop-width: max(112.360cqw, 105.617cqh);
    --crop-height: auto;
    --crop-translate: -55.500% -64.005%;
  }

  img[src="./media/99b593bc89666b38a68946f7adad0771.webp"] {
    --crop-position: absolute;
    --crop-width: max(147.059cqw, 138.236cqh);
    --crop-height: auto;
    --crop-translate: -44.000% -57.127%;
  }

  img[src="./media/f7653dc8e8517687875357b379034713.webp"] {
    --crop-position: absolute;
    --crop-width: max(131.579cqw, 123.683cqh);
    --crop-height: auto;
    --crop-translate: -58.000% -44.739%;
  }

  img[src="./media/3994662d27603b0b5e7854d00ad158eb.webp"] {
    --crop-position: absolute;
    --crop-width: max(185.185cqw, 174.075cqh);
    --crop-height: auto;
    --crop-translate: -46.000% -42.542%;
  }

  img[src="./media/1d540acd73c5265af8e9d2f92855ebc0.webp"] {
    --crop-position: absolute;
    --crop-width: max(138.889cqw, 130.555cqh);
    --crop-height: auto;
    --crop-translate: -58.000% -41.697%;
  }

  img[src="./media/1eb3af28fba348842e7d4f857c915a1f.webp"] {
    --crop-position: absolute;
    --crop-width: max(181.818cqw, 170.909cqh);
    --crop-height: auto;
    --crop-translate: -46.500% -42.941%;
  }

  img[src="./media/a7edc9d6963534cfed7ce02f3fad62a7.webp"] {
    --crop-position: absolute;
    --crop-width: max(151.515cqw, 142.425cqh);
    --crop-height: auto;
    --crop-translate: -61.000% -45.254%;
  }

  img[src="./media/08e1ba4c1dc1c5756d73e7c369a72149.webp"] {
    --crop-position: absolute;
    --crop-width: max(178.571cqw, 167.857cqh);
    --crop-height: auto;
    --crop-translate: -48.000% -36.340%;
  }

  img[src="./media/6b14ed3710be891ec744ab1f62765a77.webp"] {
    --crop-position: absolute;
    --crop-width: max(156.250cqw, 146.876cqh);
    --crop-height: auto;
    --crop-translate: -56.000% -38.390%;
  }

  img[src="./media/58df2d7cebd30cd470ed8d7befe4a26a.webp"] {
    --crop-position: absolute;
    --crop-width: max(178.571cqw, 167.857cqh);
    --crop-height: auto;
    --crop-translate: -41.500% -42.341%;
  }

  img[src="./media/239ed436f4723e6dd7daf5e7d4a7ce69.webp"] {
    --crop-position: absolute;
    --crop-width: max(178.571cqw, 167.857cqh);
    --crop-height: auto;
    --crop-translate: -43.500% -37.340%;
  }

  img[src="./media/58f2d7b3bcaf7f4aeb7975b1e10fef06.webp"] {
    --crop-position: absolute;
    --crop-width: max(142.857cqw, 134.286cqh);
    --crop-height: auto;
    --crop-translate: -61.000% -43.954%;
  }

  img[src="./media/ad1a1e0c0704269e5cd2c01d473dad34.webp"] {
    --crop-position: absolute;
    --crop-width: max(178.571cqw, 167.857cqh);
    --crop-height: auto;
    --crop-translate: -46.000% -39.340%;
  }

  img[src="./media/0e7070f916ead45faa15b8d7a4c494af.webp"] {
    --crop-position: absolute;
    --crop-width: max(138.889cqw, 130.556cqh);
    --crop-height: auto;
    --crop-translate: -48.000% -41.602%;
  }

  img[src="./media/f0b13704c8fe438f41915dfbc24b90ad.webp"] {
    --crop-position: absolute;
    --crop-width: max(160.000cqw, 150.400cqh);
    --crop-height: auto;
    --crop-translate: -43.750% -47.434%;
  }

  img[src="./media/b147baddccd793215cb3049378629b7f.webp"] {
    --crop-position: absolute;
    --crop-width: max(156.250cqw, 146.875cqh);
    --crop-height: auto;
    --crop-translate: -44.500% -47.832%;
  }

  img[src="./media/e9c37600f3f39beeabfc336526ac54b5.webp"] {
    --crop-position: absolute;
    --crop-width: max(158.730cqw, 149.206cqh);
    --crop-height: auto;
    --crop-translate: -49.500% -38.333%;
  }

  img[src="./media/9aa4f4680307c1af65daa5e58dfbe4fb.webp"] {
    --crop-position: absolute;
    --crop-width: max(156.250cqw, 146.875cqh);
    --crop-height: auto;
    --crop-translate: -46.200% -46.432%;
  }

  img[src="./media/395feade5e41890c471e4233d02f61c2.webp"] {
    --crop-position: absolute;
    --crop-width: max(159.236cqw, 149.681cqh);
    --crop-height: auto;
    --crop-translate: -44.700% -46.853%;
  }

  img[src="./assets/subcategory-lace.webp"] {
    --crop-position: absolute;
    --crop-width: max(113.636cqw, 97.637cqh);
    --crop-height: auto;
    --crop-translate: -46.500% -53.500%;
  }

  img[src="./assets/category-tinsel.webp"] {
    --crop-position: absolute;
    --crop-width: max(128.205cqw, 110.497cqh);
    --crop-height: auto;
    --crop-translate: -52.000% -52.750%;
  }
}
