/* Optional preparation photography. Ordinary recipes retain their existing layout. */
.recipe-steps.recipe-steps--photos,
.rp-steps.rp-steps--photos { margin: 0; padding: 0; list-style: none; }
.recipe-steps .step.recipe-photo-step,
.rp-steps li.recipe-photo-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 0 0 28px;
  padding: 0 0 4px;
  border: 0;
  min-width: 0;
}
.recipe-steps .step.recipe-photo-step.has-step-photo,
.rp-steps li.recipe-photo-step.has-step-photo { grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); }
.recipe-photo-step .recipe-step-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #f5f0e7;
}
.recipe-step-copy { min-width: 0; overflow-wrap: anywhere; }
.recipe-step-heading { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.recipe-step-heading h3 { margin: 0; font-size: 1.08rem; line-height: 1.4; color: #3c493c; }
.recipe-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #53714d;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
}
.recipe-photo-step .recipe-step-description { margin: 0; font-size: 1rem; line-height: 1.7; white-space: pre-line; color: #374151; }
.recipe-step-image-note { margin: 12px 0 0; font-size: .85rem; line-height: 1.5; color: #536252; }
@media (max-width: 640px) {
  .recipe-steps .step.recipe-photo-step.has-step-photo,
  .rp-steps li.recipe-photo-step.has-step-photo { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .recipe-step-heading h3 { font-size: 1.05rem; }
}
@media print {
  .recipe-photo-step .recipe-step-photo,
  .recipe-step-image-note { display: none; }
  .recipe-steps .step.recipe-photo-step.has-step-photo,
  .rp-steps li.recipe-photo-step.has-step-photo { grid-template-columns: 1fr; }
}
