/* The silhouettes follow the edges in the farm's two original photographs. */
.pack-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  container-type: size;
  overflow: hidden;
  pointer-events: none;
}

.pack-visual .pack-object {
  position: relative;
  height: 82%;
  filter: drop-shadow(0 6px 6px rgb(3 9 2 / 30%));
}

.pack-visual--one .pack-object,
.pack-visual--three .pack-object {
  height: min(82cqh, 61cqw);
}

.pack-visual--one .pack-object {
  aspect-ratio: 326 / 428;
}

.pack-visual--three .pack-object {
  aspect-ratio: 680 / 473;
}

.pack-visual--one .pack-object::before,
.pack-visual--three .pack-object::before,
.pack-visual--bag .pack-object::before,
.pack-visual--four .pack-object i::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  filter: brightness(1.13) saturate(1.09);
}

.pack-visual--one .pack-object::before {
  background-image: url("media/kartony.webp");
  background-position: left bottom;
  background-size: 208.59% 110.51%;
  clip-path: polygon(
    0.00% 11.21%, 1.23% 10.05%, 29.14% 0.23%, 31.29% 0.23%, 99.08% 4.44%,
    98.77% 5.84%, 97.24% 7.71%, 99.69% 7.71%, 99.69% 71.73%, 99.39% 77.80%,
    94.48% 87.38%, 93.25% 88.79%, 91.72% 89.02%, 85.58% 99.53%, 84.36% 99.77%,
    15.64% 90.89%
  );
}

.pack-visual--three .pack-object::before {
  background-image: url("media/kartony.webp");
  background-size: 100% 100%;
  clip-path: polygon(
    0.00% 19.66%, 0.59% 18.60%, 13.97% 9.73%, 15.15% 9.73%, 38.24% 12.68%,
    38.38% 10.15%, 45.88% 4.44%, 46.76% 4.02%, 68.24% 7.19%, 68.97% 5.07%,
    73.24% 0.42%, 74.12% 0.21%, 99.71% 3.59%, 92.79% 64.48%, 92.50% 66.38%,
    72.21% 61.31%, 71.76% 65.96%, 70.59% 71.88%, 69.71% 73.15%, 68.68% 78.44%,
    67.94% 79.70%, 66.76% 79.70%, 48.09% 74.42%, 47.65% 79.92%, 45.29% 88.58%,
    44.71% 89.85%, 43.97% 90.06%, 41.03% 99.58%, 40.59% 99.79%, 7.50% 91.75%
  );
}

.pack-visual--four .pack-object {
  height: min(84cqh, 49cqw);
  aspect-ratio: 1.77;
}

.pack-visual--four .pack-object i {
  position: absolute;
  height: 79%;
  aspect-ratio: 386 / 457;
  transform-origin: center;
  filter: drop-shadow(1px 3px 2px rgb(10 8 3 / 48%));
}

.pack-visual--bag .pack-object::before,
.pack-visual--four .pack-object i::before {
  background-image: url("media/worek.webp");
  background-size: 100% 100%;
  clip-path: polygon(
    0.00% 100.00%, 0.52% 96.50%, 0.26% 90.37%, 2.07% 86.43%, 3.89% 82.06%,
    4.66% 75.93%, 5.44% 71.33%, 5.70% 60.61%, 6.22% 48.58%, 6.99% 34.57%,
    8.29% 27.13%, 8.55% 14.44%, 8.55% 12.04%, 6.22% 10.50%, 6.48% 9.41%,
    11.66% 5.91%, 13.99% 4.60%, 18.65% 4.81%, 38.60% 5.03%, 55.70% 5.03%,
    67.62% 3.72%, 79.79% 3.06%, 88.60% 0.22%, 88.34% 1.75%, 87.56% 3.50%,
    85.49% 6.13%, 85.23% 8.97%, 84.72% 14.22%, 85.75% 19.91%, 87.05% 24.51%,
    87.31% 31.51%, 89.12% 39.39%, 91.45% 47.92%, 93.52% 59.30%, 94.82% 65.86%,
    94.56% 68.05%, 95.60% 70.90%, 96.37% 73.09%, 97.93% 73.52%, 99.48% 73.74%,
    99.74% 74.40%, 97.93% 75.05%, 96.89% 75.05%, 97.15% 78.77%, 98.19% 82.49%,
    98.96% 84.46%, 97.93% 87.09%, 98.45% 92.34%, 99.22% 94.31%, 97.67% 95.40%,
    95.34% 95.19%, 90.67% 93.65%, 86.01% 94.53%, 81.09% 93.44%, 75.13% 94.09%,
    65.54% 94.97%, 57.77% 95.40%, 51.30% 95.19%, 45.34% 95.62%, 38.60% 96.06%,
    34.46% 96.28%, 26.68% 96.28%, 18.91% 96.06%, 13.47% 95.40%, 10.36% 94.97%,
    8.81% 96.06%, 7.25% 98.03%, 3.37% 99.56%
  );
}

.pack-visual--four .pack-object i:nth-child(1) {
  left: 3%;
  top: 16%;
  z-index: 4;
  transform: rotate(-10deg);
}

.pack-visual--four .pack-object i:nth-child(2) {
  left: 22%;
  top: 10%;
  z-index: 3;
  transform: rotate(-4deg);
}

.pack-visual--four .pack-object i:nth-child(3) {
  left: 41%;
  top: 5%;
  z-index: 2;
  transform: rotate(3deg);
}

.pack-visual--four .pack-object i:nth-child(4) {
  left: 60%;
  top: 2%;
  z-index: 1;
  transform: rotate(10deg);
}

.juice-kit .pack-visual {
  display: block;
  inset: auto;
  bottom: 12%;
  overflow: visible;
  container-type: normal;
}

.juice-kit .pack-visual--one {
  right: 49%;
  width: min(36cqw, 57cqh);
  aspect-ratio: 326 / 428;
}

.juice-kit .pack-visual--bag {
  left: 50%;
  width: min(34cqw, 52cqh);
  aspect-ratio: 386 / 457;
  transform: rotate(4deg);
  transform-origin: center bottom;
}

.juice-kit .pack-object {
  width: 100%;
  height: 100%;
  filter: drop-shadow(1px 5px 4px rgb(42 46 27 / 22%));
}
