/* Text stays on an opaque surface; the photo is never a text background. */
.page-hero.page-hero--photo { padding-block: clamp(2rem, 4vw, 4rem); }
.page-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.page-hero__copy { min-width: 0; }
.page-hero--photo h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.page-hero__copy > :last-child { margin-bottom: 0; }
.page-hero__copy .eyebrow { font-size: 0.85rem; }
.page-hero__copy > p:not(.eyebrow) { font-size: 1.08rem; }
.page-hero__photo { position: relative; min-width: 0; width: 100%; max-width: 31rem; margin: 0; justify-self: end; }
.page-hero__picture { position: relative; isolation: isolate; }
.page-hero__picture::before {
  content: ''; position: absolute; z-index: -1; inset: 0.65rem -0.45rem -0.5rem 0.65rem;
  background: var(--color-gold-soft); border-radius: 4rem 1.25rem 3.5rem 1.25rem;
  transform: rotate(2deg); pointer-events: none;
}
.page-hero__frame { border-radius: 3.5rem 1.25rem 3.5rem 1.25rem; box-shadow: var(--shadow-sm); background: var(--color-paper); }
.page-hero__frame img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: inherit; }
.page-hero__frame::after { right: 1rem; bottom: 1rem; }
.page-hero__photo figcaption { position: relative; margin-block-start: 0.8rem; padding-inline: 0.3rem; color: var(--color-muted); font-size: 0.75rem; line-height: 1.5; }
.page-hero__photo figcaption a { display: inline-block; min-height: 1.5rem; }
.page-hero--photo[data-hero-image="saint"] .page-hero__photo { max-width: 17rem; justify-self: center; }
.page-hero--photo[data-hero-image="saint"] .page-hero__frame img { aspect-ratio: 400 / 566; object-fit: contain; }
.page-hero--photo .menu-archive-facts, .page-hero--photo .calendar-facts { gap: 0.5rem 1.2rem; margin-top: 1.25rem; }
.page-hero--photo .parent-archive-warning { font-size: 0.95rem; }
@media (max-width: 52rem) {
  .page-hero__layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .page-hero__photo { max-width: 35rem; justify-self: center; }
  .page-hero__frame img { aspect-ratio: 2 / 1; }
  .page-hero--photo[data-hero-image="saint"] .page-hero__photo { max-width: 14rem; }
}
@media (max-width: 30rem) {
  .page-hero__frame { border-radius: 2.5rem 1rem 2.5rem 1rem; }
  .page-hero__frame img { aspect-ratio: 1.7; }
  .page-hero__picture::before { inset-inline-end: -0.2rem; }
}
html[data-contrast="high"] .page-hero__picture::before { display: none; }
html[data-contrast="high"] .page-hero__frame { border: 2px solid #000; box-shadow: none; }
html[data-contrast="high"] .page-hero__photo figcaption { color: #000; }
@media (forced-colors: active) {
  .page-hero__picture::before { display: none; }
  .page-hero__frame { border: 2px solid CanvasText; }
}
@media print {
  .page-hero.page-hero--photo { padding-block: 1rem; }
  .page-hero__layout { display: block; }
  .page-hero__photo { display: none; }
}
