/* Public memorial page, on top of memorial.css (Standard v2 + its "Teal board" header layer):
   "Header: Hung portrait" (docs/design/obituary-header-hung.html) in the original Nemojo colours.
   The aqua-to-cream band, the portrait framed like a print in a white mount, tall (4:5) and hanging over the band's
   lower edge, the name large and light, and the funeral card rising into the band on the other side. */

/* ===== palette: the original Nemojo colours (as on Standard v2 / the original page): teal #48bbbb, aqua #d4eef0,
   cream #f5ead6, ink #1d2324; the band is the aqua-to-cream memorial header ===== */
:root{
  --c-ground:#f3f7f7; --c-surface:#fff; --c-ink:#1d2324; --c-muted:#465253; --c-line:#d8e2e2;
  --c-accent:#48bbbb; --c-on-accent:#1d2324; --c-frame:#d4eef0; --c-on-frame:#1d2324; --c-highlight:#f5ead6;
  --band:linear-gradient(22deg,var(--c-frame) 50%,var(--c-highlight) 100%);
  --hang:80px;
}
.head-actions .ic{color:var(--teal-ink)}

/* ===== the hung portrait ===== */
.hero .portrait{aspect-ratio:4/5}
.hero .head{--pw:236px}
.head h1 .known{font-weight:300}
.top .mbtn-ghost,.top .mbtn-ghost:hover{color:var(--c-ink)}
@media (min-width:1041px){
  .hero .head{align-items:end;padding-bottom:48px}
  .hero .portrait{margin-bottom:calc(-1*var(--hang) - 48px);z-index:2;align-self:end}
  .hero .head>div:last-child{padding-bottom:4px}
  .page .main{padding-top:calc(var(--hang) + 8px)}
  .is-lifted .side{margin-top:calc(-1*var(--lift) - 56px + 24px)}
}
@media (max-width:640px){
  .hero .portrait{width:min(40vw,var(--pws))}
}

/* ===== body: the refinements asked for on the memorial page ===== */
/* the opening words in a card like every other section */
.page .notice{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px 26px 24px;max-width:none}
@media (max-width:640px){ .page .notice{padding:18px 18px 20px} }
/* the family message card gets the same edge and shadow as the other cards, in its warm tone */
.family-msg{border:1px solid color-mix(in oklab,var(--c-highlight) 60%,var(--c-line));box-shadow:var(--shadow)}
/* gallery: three equal square tiles per row, so the photos always fill the card */
.gal-list{columns:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.gal-list>li{margin:0}
.gal-list .gal-item{aspect-ratio:1/1}
.gal-list .gal-item img,.gal-list .gal-item video{width:100%;height:100%;object-fit:cover}
@media (max-width:640px){ .gal-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px} }
