/* Share the paper between the photograph and its facing recipe. */
.page:is(.photo-page, .recipe) {
  background: #efe0cf url("parchment.png") center / 100% 100% no-repeat;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* All artwork is sized to the same mat as the photo frames. */
.photo-page[data-photo-count] {
  --recipe-ornament: url("photo-rails.svg");
}
.photo-page[data-photo-count="1"] {
  --recipe-ornament: url("photo-frieze.svg");
}
.photo-page[data-photo-count="3"],
.photo-page[data-photo-count="6"] {
  --recipe-ornament: url("photo-rails-three.svg");
}
.photo-page[data-photo-count="5"] {
  --recipe-ornament: url("photo-frieze-five.svg");
}
.page.photo-page .photo-area {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.page.photo-page .photo-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--recipe-ornament) center / 100% 100% no-repeat;
  pointer-events: none;
}
.page.photo-page .photo-area::after {
  content: none;
}
