/* Memorial Photography visual polish — limited to the memorial page only. */
body.mpf-memorial-refined {
  --mpf-memorial-ink: #292721;
  --mpf-memorial-ivory: #faf7f2;
  --mpf-memorial-sand: #e7dfd1;
  --mpf-memorial-brass: #a98a62;
}
/* Template-generated title is redundant when the page already opens with a hero heading. */
body.mpf-memorial-refined .mpf-memorial-duplicate-title {
  display: none !important;
}
/* Respectful, properly spaced hero: keep its real background image. */
body.mpf-memorial-refined .mpf-memorial-hero {
  box-sizing: border-box !important;
  min-height: clamp(370px, 43vw, 560px) !important;
  padding: clamp(72px, 9vw, 128px) clamp(24px, 5vw, 72px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(14px, 2vw, 24px);
  text-align: center !important;
  background-position: center !important;
}
body.mpf-memorial-refined .mpf-memorial-hero-title {
  max-width: 900px !important;
  margin: 0 auto 12px !important;
  font-size: clamp(36px, 5.2vw, 66px) !important;
  line-height: 1.09 !important;
  letter-spacing: -0.025em !important;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.37);
}
body.mpf-memorial-refined .mpf-memorial-hero p {
  max-width: 630px !important;
  margin: 0 auto 18px !important;
  line-height: 1.65 !important;
  text-wrap: pretty;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36);
}
body.mpf-memorial-refined .mpf-memorial-hero-button,
body.mpf-memorial-refined .mpf-memorial-intro-button {
  box-sizing: border-box !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 46px !important;
  padding: 12px 26px !important;
  border-radius: 7px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  line-height: 1.25 !important;
  transition: background-color .23s ease, color .23s ease, transform .23s ease, box-shadow .23s ease;
}
body.mpf-memorial-refined .mpf-memorial-hero-button {
  background: var(--mpf-memorial-ivory) !important;
  color: var(--mpf-memorial-ink) !important;
  border: 1px solid var(--mpf-memorial-ivory) !important;
}
body.mpf-memorial-refined .mpf-memorial-intro-button {
  background: var(--mpf-memorial-ink) !important;
  color: #fff !important;
  border: 1px solid var(--mpf-memorial-ink) !important;
}
body.mpf-memorial-refined .mpf-memorial-hero-button:hover,
body.mpf-memorial-refined .mpf-memorial-hero-button:focus-visible {
  background: var(--mpf-memorial-sand) !important;
  color: var(--mpf-memorial-ink) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0,0,0,.13);
}
body.mpf-memorial-refined .mpf-memorial-intro-button:hover,
body.mpf-memorial-refined .mpf-memorial-intro-button:focus-visible {
  background: #554b3c !important;
  color: #fff !important;
  transform: translateY(-2px);
}
body.mpf-memorial-refined .mpf-memorial-hero-button:focus-visible,
body.mpf-memorial-refined .mpf-memorial-intro-button:focus-visible {
  outline: 2px solid var(--mpf-memorial-brass) !important;
  outline-offset: 3px;
}
/* Refine the opening text-and-image block without altering its layout or form. */
body.mpf-memorial-refined .mpf-memorial-intro {
  box-sizing: border-box;
  border-radius: 12px;
}
body.mpf-memorial-refined .mpf-memorial-intro-title {
  font-size: clamp(30px, 3.6vw, 46px) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.018em !important;
  text-wrap: balance;
}
body.mpf-memorial-refined .mpf-memorial-intro img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
}
body.mpf-memorial-refined .mpf-memorial-intro p {
  font-size: clamp(15px, 1.2vw, 17px) !important;
  line-height: 1.75 !important;
}
@media (max-width: 781px) {
  body.mpf-memorial-refined .mpf-memorial-hero {
    min-height: 390px !important;
    padding: 65px 20px !important;
  }
  body.mpf-memorial-refined .mpf-memorial-hero-title {
    font-size: clamp(34px, 9vw, 52px) !important;
    line-height: 1.14 !important;
  }
  body.mpf-memorial-refined .mpf-memorial-hero p {
    max-width: 95% !important;
  }
  body.mpf-memorial-refined .mpf-memorial-hero-button,
  body.mpf-memorial-refined .mpf-memorial-intro-button {
    font-size: 14px !important;
    padding: 12px 22px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.mpf-memorial-refined .mpf-memorial-hero-button,
  body.mpf-memorial-refined .mpf-memorial-intro-button { transition: none !important; }
}
