/* ═══════════════════════════════════════
   ICON PACKS — the Evolution step's rarity strip, and the 3D model step's
   row per picture.
   The Generate step and the Calibrate wrapper use the shared generator step
   rules in workbench-pages.css.
   ═══════════════════════════════════════ */

/* Side by side, common to legendary. The light table centres its content,
   so the strip takes the width itself. */
.wbic-variants {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(1000px, 100%);
}

.wbic-variant {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  text-align: center;
}

/* The box takes the picture's own height at the strip's width — an icon is
   rarely square, and a square box let a tall one spill out of it. */
.wbic-variant .wb-img {
  min-height: 0;
}

/* The width is set per picture, to one scale across the four
   (WorkbenchIconEvolution sizeTogether). */
.wbic-variant .wb-img img {
  width: 100%;
  height: auto;
  max-height: none;
}

/* The strip grows with its pictures, so its frame never scrolls. */
.wbsp-table.wbic-table {
  overflow: visible;
}

@media (max-width: 700px) {
  .wbic-variants {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── The 3D model step: a row per picture of the pack
   (WorkbenchIconModel3dTemplates.js) ── */

/* A row reads from its top: the picture, what it has, its model. */
.wbic-models td {
  vertical-align: top;
}

/* The picture a model is built from: a thumbnail, whatever its shape. In
   px, not per cent — a percentage height against an auto-height cell never
   resolves. */
.wbic-model-pic {
  width: 132px;
}

.wbic-model-pic .wb-img {
  width: 104px;
  height: 104px;
  min-height: 0;
  padding: 6px;
}

.wbic-model-pic .wb-img img {
  max-height: 90px;
}

.wbic-model-what {
  width: 270px;
}

.wbic-model-name {
  margin-bottom: 4px;
  font-weight: 600;
}

.wbic-model-what .wbsp-row,
.wbic-model-what .wbsp-working {
  margin: 10px 0 0;
}

/* The model from eight sides is one wide picture: it takes its cell's width,
   up to a height that keeps five rows within a screen or two. */
.wbic-model-turn .wb-img {
  min-height: 0;
  padding: 6px;
}

.wbic-model-turn .wb-img img {
  max-height: 260px;
}
