/* A selected project gets a real, accurately captioned shop photograph. */
.workshop-home .project-guide .project-stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 6.5rem;
  height: clamp(26rem, 39vw, 36rem);
  min-height: 25rem;
  max-height: calc(100svh - 130px);
  box-shadow: none;
  background: var(--paper-sunk);
  border-radius: var(--radius-photo);
}
.project-stage__viewport { position: relative; min-height: 0; overflow: hidden; border-radius: var(--radius-photo) var(--radius-photo) 0 0; }
.workshop-home .project-guide .project-stage picture { display: block; width: 100%; height: 100%; }
.workshop-home .project-guide .project-stage img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: none; transform: none; transition: none;
}
/* Portrait work that must not be cropped is mounted on the sunk ground with an
   inset radius, so the frame keeps its shape instead of showing letterbox bars. */
.workshop-home .project-guide .project-stage picture[data-full-frame] {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(0.75rem, 1.6vw, 1.25rem); background: var(--paper-sunk);
}
.workshop-home .project-guide .project-stage picture[data-full-frame] img {
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: var(--radius-panel);
}
/* project-stage.js loads the next photograph hidden, then fades it in over the
   current one (opacity only). Reduced motion swaps it at once. */
.project-stage__viewport .project-stage__pending { position: absolute; inset: 0; visibility: hidden; }
.project-stage__viewport .project-stage__incoming { position: absolute; inset: 0; }
.workshop-home .project-guide .project-stage figcaption {
  position: static; display: flex; flex-direction: column; justify-content: center;
  gap: 0.45rem; min-width: 0; padding: 1rem 1.2rem;
  background: var(--paper-raised);
  border-radius: 0 0 var(--radius-photo) var(--radius-photo);
}
.workshop-home .project-guide .project-stage figcaption span {
  font: 0.72rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2);
}
.workshop-home .project-guide .project-stage figcaption b {
  font: var(--w-light) 0.95rem/1.4 var(--sans); color: var(--ink);
}
@media (max-width: 700px) {
  .workshop-home .project-guide .project-stage {
    position: relative; top: auto; order: 1; width: 100%; height: 17.5rem;
    min-height: 0; max-height: none; grid-template-rows: minmax(0, 1fr) 5.5rem;
  }
  .workshop-home .project-guide .project-stage figcaption { padding: 0.65rem 0.8rem; gap: 0.35rem; }
  /* Inside the open (white) choice the photo is the only frame; its caption
     reads as plain text under it, aligned with the guidance copy. */
  .workshop-home .project-guide .project-choice .project-stage {
    margin-block: 1rem; background: transparent; grid-template-rows: minmax(0, 1fr) 4.5rem;
  }
  .workshop-home .project-guide .project-choice .project-stage__viewport { border-radius: var(--radius-photo); }
  .workshop-home .project-guide .project-choice .project-stage figcaption { padding: 0.65rem 0 0; background: transparent; justify-content: flex-start; }
  .workshop-home .project-guide .project-stage figcaption b { font-size: 0.85rem; }
}
