/* Product imagery only. Original machine crop windows and enlargement buttons stay intact. */
.v128-visual-stage {
  --v128-machine-height: 350px;
  --v128-pack-height: 144px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, 31%);
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 14px 10px;
  box-sizing: border-box;
  background: #fff;
  direction: ltr;
}
.v128-visual-stage > .v128-machine,
.v128-visual-stage > .v128-context {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.v128-visual-stage .v128-machine {
  width: 100%;
  align-self: center;
}
.v128-visual-stage .v128-machine :is(.v121-machine-cell, .pd-hero-media) {
  min-width: 0;
  max-width: 100%;
}
.v128-visual-stage .v128-machine :is(.directory-photo, .pd-main-photo, .c125-photo) {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: var(--v128-machine-height);
  min-height: 0;
  padding: 4px;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  background: #fff;
}
.v128-visual-stage .v128-machine :is(.directory-photo, .pd-main-photo, .c125-photo) > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
  mix-blend-mode: normal;
}
.v128-visual-stage .v128-context {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}
.v128-materials,
.v128-packs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.v128-material,
.v128-pack {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.v128-material {
  flex: 1 1 100%;
  width: 100%;
}
.v128-material > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 66px;
  margin: 0;
  object-fit: contain;
}
.v128-pack {
  flex: 0 1 calc(50% - 4px);
  width: min(var(--native-width, 90px), calc(50% - 4px));
}
.v128-pack > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--v128-pack-height, 160px);
  margin: 0;
  border: 0;
  object-fit: contain;
  mix-blend-mode: normal;
}
.v128-pack--group {
  flex-basis: 100%;
  width: 100%;
  max-width: 100%;
}
.v128-pack--group > img {
  max-height: 150px;
}
.directory-card .v128-visual-stage {
  border-bottom: 1px solid #edf1f4;
}
.pd-hero .v128-visual-stage {
  --v128-machine-height: 490px;
  --v128-pack-height: 166px;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 30%);
  gap: 14px;
  padding: 8px 0;
}
.pd-hero .v128-material > img {
  max-height: 80px;
}
.v128-visual-stage[data-machine-shape="wide"] {
  grid-template-columns: minmax(0, 1fr) minmax(104px, 26%);
  gap: 10px;
}
.pd-hero .v128-visual-stage[data-machine-shape="wide"] {
  --v128-machine-height: 350px;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 24%);
}
.v128-pack-gallery {
  --v128-pack-height: 190px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 780px;
  min-width: 0;
  margin: 12px auto 24px;
  padding: 12px 0;
  box-sizing: border-box;
  direction: ltr;
}
.v128-pack-gallery > .v128-pack {
  flex: 0 1 var(--native-width, 120px);
  width: var(--native-width, 120px);
  max-width: calc(33.333% - 14px);
}
.v128-pack-gallery > .v128-pack--group {
  flex-basis: 400px;
  width: 400px;
  max-width: 100%;
}
@media (min-width: 541px) and (max-width: 1180px) {
  .directory-card .v128-visual-stage {
    --v128-machine-height: 310px;
    grid-template-columns: minmax(0, 1fr) minmax(104px, 34%);
    gap: 8px;
    padding: 10px 6px;
  }
  .directory-card .v128-visual-stage[data-machine-shape="wide"] {
    grid-template-columns: minmax(0, 1fr) 104px;
  }
  .directory-card .v128-context { gap: 10px; }
  .directory-card .v128-material > img { max-height: 58px; }
  .pd-hero .v128-visual-stage { --v128-machine-height: 430px; }
}
@media (max-width: 540px) {
  .v128-visual-stage,
  .directory-card .v128-visual-stage,
  .pd-hero .v128-visual-stage {
    --v128-machine-height: 340px;
    --v128-pack-height: 140px;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 10px;
    padding: 10px 4px;
  }
  .v128-visual-stage[data-machine-shape="wide"],
  .pd-hero .v128-visual-stage[data-machine-shape="wide"] {
    --v128-machine-height: 280px;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 8px;
  }
  .v128-visual-stage[data-product-visual="automatic-nicotine-pouch-packaging-line"],
  .pd-hero .v128-visual-stage[data-product-visual="automatic-nicotine-pouch-packaging-line"] {
    --v128-machine-height: 160px;
  }
  .v128-visual-stage .v128-context { gap: 10px; }
  .v128-materials,
  .v128-packs { gap: 8px; }
  .v128-material > img,
  .pd-hero .v128-material > img { max-height: 56px; }
  .v128-pack--group > img { max-height: 130px; }
  .v128-pack-gallery { gap: 14px; padding-inline: 4px; }
  .v128-pack-gallery > .v128-pack { max-width: calc(50% - 7px); }
  .v128-pack-gallery > .v128-pack--group { max-width: 100%; }
}
