:root {
  --corner-radius: 1rem;
}

.production-process {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding: clamp(1rem, 3vw, 2.5rem);
  border: 1px solid var(--rule);
  border-radius: var(--corner-radius);
  background: #f8f4ec;
}
.production-steps {
  --step-gap: clamp(.75rem, 2vw, 1.5rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem) var(--step-gap);
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
}
.production-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .65rem;
  text-align: center;
}
.production-steps li::before {
  content: "";
  position: absolute;
  inset: 1rem calc(var(--step-gap) / -2) auto;
  border-top: 1px solid var(--rule);
}
.production-step-number {
  position: relative;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gold);
  font-weight: 700;
}
.production-steps .production-step-photo {
  /* The supplied 1386 × 639 sheet has 247 × 184 photo crops. */
  width: 100%;
  aspect-ratio: 247 / 184;
  border-radius: var(--corner-radius);
  background: var(--panel) url("assets/store/production-process.png") no-repeat;
  background-size: calc(1386 / 247 * 100%) calc(639 / 184 * 100%);
  background-position: calc(var(--photo-x) / (1386 - 247) * 100%) calc(var(--photo-y) / (639 - 184) * 100%);
}
.production-steps img.production-step-photo { background: var(--panel); object-fit: cover; }
.production-steps :is(h3, .production-step-label) { margin: 0; font-size: clamp(.95rem, 1.5vw, 1.15rem); line-height: 1.25; }
@media (max-width: 760px) {
  .production-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
