/* =============================================================
   José M. Delgado — In Memoriam
   Memorial-specific layer on top of restoration.css + home-restoration.css.
   Single-column memorial: large hero portrait, all text in the main column,
   in-text framed photographs sized to each source's native resolution.
   ============================================================= */

/* ---------- Lifespan + requiescat line beneath the masthead title ---------- */
.life-dates {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0.25rem 0 0.35rem;
}
.life-dates .sep { color: var(--rule); margin: 0 0.5rem; }
.requiescat {
  font-family: var(--serif-sc);
  font-size: 0.92rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  margin: 0;
}

/* ---------- Single-column page wrapper (no sidebar; all text in main) ---------- */
.memorial-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
@media (max-width: 700px) {
  .memorial-wrap { padding: 0 1.25rem 3rem; }
}

/* ---------- Large hero portrait (main photo, 1000×665 — goes big) ---------- */
.hero-portrait {
  margin: 0 auto 2.75rem;
  max-width: 680px;
  padding: 10px 10px 12px;
  background: var(--frame-matte);
  border: 10px solid var(--frame-wood);
  border-image: linear-gradient(135deg, var(--frame-wood-light) 0%, var(--frame-wood) 25%, #1a0f06 50%, var(--frame-wood) 75%, var(--frame-wood-light) 100%) 1;
  box-shadow:
    inset 0 0 0 1px var(--frame-gold),
    0 18px 30px rgba(10, 10, 10, 0.32),
    0 30px 52px rgba(10, 10, 10, 0.18);
}
.hero-portrait img { width: 100%; height: auto; display: block; }
.hero-portrait figcaption {
  font-family: var(--serif-sc);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 0.8rem;
  line-height: 1.45;
}

/* ---------- At-a-glance / service facts panel (was the sidebar) ---------- */
.facts-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2.25rem 0 1rem;
  padding: 1.75rem 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  box-shadow: 0 1px 3px rgba(26, 47, 75, 0.05), 0 10px 24px rgba(26, 47, 75, 0.07);
}
.facts-heading {
  font-family: var(--serif-sc);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 600;
  margin: 0 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gold-pale);
}
.facts-list { list-style: none; padding: 0; margin: 0; }
.facts-list li {
  font-family: var(--serif-body);
  font-size: 1.02rem;
  line-height: 1.45;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
}
.facts-list li:last-child { border-bottom: none; }
@media (max-width: 640px) {
  .facts-panel { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; }
}

/* ---------- In-text framed photographs ----------
   Floated so text wraps; capped at each photo's native width to stay sharp.
   Default cap 400px (cigar 400 / retreat 375). --small = 280px (family 250). */
.memorial-figure {
  margin: 0.4rem 0 1.5rem;
  padding: 8px;
  background: var(--frame-matte);
  border: 6px solid var(--frame-wood);
  border-image: linear-gradient(135deg, var(--frame-wood-light) 0%, var(--frame-wood) 25%, #1a0f06 50%, var(--frame-wood) 75%, var(--frame-wood-light) 100%) 1;
  box-shadow:
    inset 0 0 0 1px var(--frame-gold),
    0 12px 22px rgba(10, 10, 10, 0.30),
    0 22px 38px rgba(10, 10, 10, 0.16);
}
.memorial-figure img { width: 100%; height: auto; display: block; }
.memorial-figure figcaption {
  font-family: var(--serif-sc);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 0.6rem;
  line-height: 1.35;
}
.memorial-figure--right {
  float: right;
  width: 50%;
  max-width: 400px;
  margin-left: 2.25rem;
  shape-outside: margin-box;
}
.memorial-figure--left {
  float: left;
  width: 50%;
  max-width: 400px;
  margin-right: 2.25rem;
  shape-outside: margin-box;
}
.memorial-figure--small { max-width: 290px; }
@media (max-width: 700px) {
  .memorial-figure--right,
  .memorial-figure--left {
    float: none;
    width: 86%;
    max-width: 400px;
    margin: 1.5rem auto;
  }
  .memorial-figure--small { max-width: 300px; }
}

/* ---------- Memorial-gift call to action ---------- */
.memorial-cta-wrap { text-align: center; margin: 2.25rem 0 0.5rem; clear: both; }
.memorial-cta,
.memorial-cta:link,
.memorial-cta:visited,
.memorial-cta:active {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.85rem;
  background: var(--navy);
  color: #FBF6EC !important;
  font-family: var(--serif-sc);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--navy);
  border-radius: 2px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(26, 47, 75, 0.16);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.memorial-cta:hover,
.memorial-cta:focus {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #FBF6EC !important;
  transform: translateY(-1px);
}

/* ---------- Closing prayer card at the foot of the article ---------- */
.requiescat-card {
  text-align: center;
  max-width: 560px;
  margin: 2.5rem auto 1rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  box-shadow: 0 1px 3px rgba(26, 47, 75, 0.06), 0 10px 24px rgba(26, 47, 75, 0.08);
  clear: both;
}
.requiescat-card .cross { color: var(--gold); font-size: 1.4rem; line-height: 1; }
.requiescat-card p {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.25rem !important;
  line-height: 1.5 !important;
  color: var(--ink-soft) !important;
  margin: 0.85rem 0 0 !important;
  text-align: center !important;
}
.requiescat-card .amen {
  font-family: var(--serif-sc);
  font-style: normal;
  font-size: 0.9rem !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted) !important;
  margin-top: 1rem !important;
}
