/* Full-screen photo hero: the photo fades in on the right, the lettering sits on the dark faded side.
   Used by /what-it-takes/, /chaplain-journey/ and /memorial-services-101/. */
.ph{position:relative !important;isolation:isolate;overflow:hidden !important;
 min-height:calc(100svh - var(--ph-top,96px)) !important;display:flex !important;align-items:center;
 width:auto !important;max-width:none !important;margin:0 !important;border-radius:0 !important;box-shadow:none !important;
 padding:clamp(48px,7vw,96px) max(28px,calc((100vw - 1180px)/2)) clamp(64px,8vw,110px) !important;
 background:#0f1c18 !important;color:#f3ecdd !important;text-align:left !important;justify-content:flex-start !important}
.ph::after{display:none !important}
.ph-photo{position:absolute;top:0;right:0;bottom:0;width:70%;z-index:-2;overflow:hidden}
.ph-photo img{position:absolute;inset:0;width:100% !important;height:100% !important;max-height:none !important;object-fit:cover;object-position:var(--ph-pos,50% 40%);
 border-radius:0 !important;box-shadow:none !important;animation:phIn 2.2s cubic-bezier(.2,.7,.2,1) both}
.ph-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0f1c18 0%,#0f1c18f0 14%,#0f1c18a8 34%,#0f1c1840 56%,#0f1c1800 74%),linear-gradient(0deg,#0f1c18aa 0%,#0f1c1800 30%)}
.ph-copy{position:relative;z-index:2;max-width:560px}
.ph-copy > *{animation:phRise 1s cubic-bezier(.2,.8,.2,1) both}
.ph-copy > :nth-child(1){animation-delay:.5s}.ph-copy > :nth-child(2){animation-delay:.7s}.ph-copy > :nth-child(3){animation-delay:.9s}
.ph-copy > :nth-child(4){animation-delay:1.1s}.ph-copy > :nth-child(5){animation-delay:1.3s}.ph-copy > :nth-child(6){animation-delay:1.5s}.ph-copy > :nth-child(7){animation-delay:1.7s}
.ph-copy h1{color:#f3ecdd !important;text-shadow:0 3px 22px #0009}
.ph-copy h1 em{color:#e9c675 !important}
.ph-copy p{color:#e6e0cf !important}
@keyframes phIn{from{opacity:0;transform:scale(1.08)}to{opacity:1;transform:none}}
@keyframes phRise{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
/* the site card frame on gx pages is stronger; match it */
body.gx .gx-hero.ph{width:auto !important;margin:0 !important;max-width:none !important;border-radius:0 !important;box-shadow:none !important}
@media (max-width:820px){
 .ph,body.gx .gx-hero.ph{flex-direction:column !important;align-items:stretch !important;min-height:0 !important;padding:0 22px 40px !important}
 .ph-photo{position:relative !important;width:auto;height:56svh;min-height:300px;margin:0 -22px;z-index:0}
 .ph-photo::after{background:linear-gradient(0deg,#0f1c18 0%,#0f1c18cc 14%,#0f1c1800 46%)}
 .ph-copy{max-width:none;margin-top:-56px}
}
@media (prefers-reduced-motion:reduce){.ph-photo img,.ph-copy > *{animation:none !important}}
