/* Public memorials share the typography and surfaces of the home page. */
.mem-page, .mem-lightbox {
    --mem-ink: var(--arc-heading, #47433f);
    --mem-copy: var(--arc-copy, #56504b);
    --mem-accent: var(--arc-accent, #236fa6);
    --mem-line: var(--arc-line, #d1e0e9);
    --mem-tint: var(--arc-tint, #eff6fa);
}
.mem-page {
    box-sizing: border-box;
    width: min(1328px, calc(100% - 64px));
    margin: 0 auto;
    padding: clamp(20px, 3vw, 44px) 0 clamp(45px, 6vw, 84px);
    color: var(--mem-copy);
    font: inherit;
}
main.content:has(> .mem-page) { overflow:clip; }
.mem-page *, .mem-lightbox * { box-sizing: border-box; }
.mem-page :is(h1,h2,h3,p,dl,dt,dd,figure,blockquote),
.mem-lightbox p { margin: 0; }
.mem-page .mem-hero, .mem-page .mem-section, .mem-page .mem-nav {
    width: 100%;
    border: 1px solid var(--mem-line);
    background: white;
    box-shadow: 0 5px 22px -14px rgba(55,73,83,.24);
}
.mem-page .mem-hero {
    --mem-hero-text-size: clamp(18px, 1.48vw, 22px);
    --mem-hero-inset: clamp(22px, 3vw, 44px);
    --mem-hero-columns: minmax(230px, .7fr) minmax(0, 1.55fr);
    --mem-hero-gap: clamp(26px, 4.3vw, 70px);
    --mem-hero-rule: 1px solid #e8e7e5;
    position: relative; inset: auto; z-index: auto; height: auto; overflow: hidden;
    border: 1px solid #e8e7e5; border-radius: 26px; background: #fff;
    box-shadow: 0 3px 12px -8px rgba(0, 0, 0, .16);
}
.mem-hero__body, .mem-hero__details {
    display: grid; grid-template-columns: var(--mem-hero-columns);
    column-gap: var(--mem-hero-gap); padding-inline: var(--mem-hero-inset);
}
.mem-hero__body {
    align-items: center;
    padding-block: var(--mem-hero-inset);
    background: #fff;
}
.mem-page .mem-portrait {
    display: grid; place-self: start; width: fit-content; max-width: 100%; min-width: 0;
    padding: 0; overflow: hidden; border: 2px solid #fff; border-radius: 25px;
    background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
}
.mem-page .mem-portrait img {
    display: block; width: auto; height: auto; max-width: 100%; max-height: clamp(290px, 52vh, 435px);
    object-fit: contain; object-position: center;
}
.mem-identity {
    display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; row-gap: clamp(10px, .95vw, 14px);
    container-type: inline-size;
}
.mem-page #mem-name {
    display: block; position: static; width: auto; margin: 0;
    font-family: inherit; font-size: clamp(32px, calc(3.6vw - 2px), 56px); line-height: 1.08;
    font-weight: 500; text-transform: uppercase; text-align: start; color: var(--mem-ink);
    overflow-wrap: anywhere;
}
.mem-page #mem-name > span { display: block; font: inherit; }
.mem-page #mem-name > span:first-child { color: var(--mem-accent); }
.mem-page #mem-name > span + span { margin-block-start: clamp(3px, .10em, 6px); }
.mem-heading, .mem-bio > *, .mem-place > *, .mem-videos > *, .mem-audio > div { min-width: 0; }
.mem-page .mem-dates {
    --mem-date-space: clamp(10px, 1.95cqi, 21px);
    --mem-date-label-ink: #686664;
    --mem-date-label-size: clamp(13px, 2.05cqi, 17.5px);
    --mem-date-value-size: clamp(17px, 3.25cqi, 26px);
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min-content, max-content);
    grid-template-rows: auto auto; gap: 3px var(--mem-date-space);
    width: fit-content; max-width: 100%; color: var(--mem-ink); text-align: start;
    font-variant-numeric: tabular-nums;
}
.mem-dates__cell {
    display: grid; grid-row: span 2; grid-template-rows: auto 1fr;
    grid-template-rows: subgrid; align-items: start; min-width: 0;
}
.mem-dates__cell + .mem-dates__cell {
    position: relative; padding-inline-start: calc(var(--mem-date-space) + 1px);
}
.mem-dates__cell + .mem-dates__cell::before {
    content: ""; position: absolute; inset-inline-start: 0;
    /* Align the line with the visible top of the label and the foot of the numerals. */
    inset-block: calc(var(--mem-date-label-size) * .21) calc(var(--mem-date-value-size) * .18);
    width: 1px; background: var(--mem-date-label-ink); pointer-events: none;
}
.mem-page .mem-dates dt {
    align-self: end; color: var(--mem-date-label-ink); font-size: var(--mem-date-label-size);
    font-weight: 400; line-height: 1.18; text-wrap: balance;
}
.mem-page .mem-dates dd {
    font-size: var(--mem-date-value-size); font-weight: 700; line-height: 1.12;
}
.mem-page .mem-dates__date { color: var(--mem-ink); text-transform: uppercase; }
.mem-page .mem-dates__age dd,
.mem-family-person .banner_yearsOfLife_number { color: var(--mem-accent); }
.mem-family-person .fullpage_banner_yearsOfLife {
    flex-direction: column-reverse;
    gap: 2px;
    text-align: center;
}
.mem-anniversaries {
    justify-self: start; display: grid; gap: 4px; max-width: 100%;
    padding: 7px 14px; border-inline-start: 2px solid #85a7ba; border-radius: 3px 12px 12px 3px;
    background: linear-gradient(110deg, #eef5f8, #f8fafb); color: #374e59;
    font-size: clamp(16px, 1.3vw, 19px); line-height: 1.35;
}
.mem-anniversaries strong { font-weight: 600; }
.mem-anniversaries[hidden], .mem-anniversaries p[hidden] { display: none; }
.mem-page .mem-epitaph {
    position: relative; margin-top: 24px; padding: 13px 20px;
    border-inline-start: 3px solid #83b1cf;
    background: linear-gradient(90deg, #eef5f8, rgba(238,245,248,0));
    color: var(--mem-ink); font-size: var(--mem-hero-text-size); line-height: 1.45;
    overflow-wrap: anywhere;
}
.mem-epitaph p { white-space: pre-line; }
.mem-epitaph cite {
    display: block; margin-top: 6px; color: #376d90;
    font-size: .83em; line-height: 1.3; font-style: normal;
}
.mem-hero__details {
    min-width: 0; align-items: start; row-gap: 16px;
    padding-block: 18px; border-block-start: var(--mem-hero-rule);
}
.mem-hero__secondary {
    position: relative; display: grid; grid-column: 2; gap: 14px; min-width: 0;
}
.mem-hero__secondary .mem-facts + .mem-relations { padding-block-start: 12px; border-block-start: var(--mem-hero-rule); }
.mem-page .mem-facts, .mem-relations { min-width: 0; }
.mem-page .mem-facts dt { color: #625f5b; font-size: 15px; font-weight: 450; }
.mem-page .mem-facts dd { margin-top: 2px; color: var(--mem-ink); font-size: 18px; line-height: 1.38; overflow-wrap: anywhere; }
.mem-page .mem-relations h2 {
    margin: 0 0 7px; color: #625f5b; font: inherit; font-size: 15px; font-weight: 450;
    line-height: 1.25; text-transform: none; text-align: start;
}
.mem-kin {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    align-items: stretch; gap: 8px;
    list-style: none; padding: 0; margin: 0;
}
.mem-kin li { display: flex; align-items: center; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.mem-kin li > a { width: 100%; align-self: stretch; }
.mem-kin li:only-child { justify-self: start; }
.mem-kin__link svg { flex: none; color: #65737b; }
.mem-kin__link span { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 761px) {
    /* Compensate for the small left side bearing of the heading and first numeral. */
    .mem-page #mem-name > span { text-indent: -.055em; }
    .mem-page .mem-dates__birth .mem-dates__date { text-indent: -.045em; }
    .mem-facts + .mem-hero__secondary:has(.mem-relations)::before {
        content: ""; position: absolute; inset-block: 0; inset-inline-start: calc(var(--mem-hero-gap) / -2);
        border-inline-start: var(--mem-hero-rule);
    }
}
.mem-page .mem-nav {
    position: sticky; top: calc(var(--mem-head-height, 96px) + 4px); z-index: 8;
    --mem-nav-gap: 4px;
    --mem-nav-item-inset: 15px;
    --mem-nav-rule: rgba(143, 164, 176, .16), rgba(143, 164, 176, .82) 32%, rgba(143, 164, 176, .82) 68%, rgba(143, 164, 176, .16);
    display: flex; flex-wrap: nowrap; align-items: center; gap: var(--mem-nav-gap); overflow-x: auto;
    overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #bdbebb transparent;
    margin-block: 15px 25px; padding: 5px 9px; border-radius: 16px;
    border-color: var(--mem-ice-edge); background: #f6f9fb;
    box-shadow: var(--mem-glass-shadow), 0 4px 13px -10px rgba(0, 0, 0, .20);
}
@supports (backdrop-filter: blur(15px)) or (-webkit-backdrop-filter: blur(15px)) {
    .mem-page .mem-nav {
        background: rgba(249, 252, 255, .4);
        -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px);
    }
}
.mem-page .mem-nav a {
    position: relative; flex: 0 0 auto; display: inline-grid; place-items: center; min-height: 43px; background: transparent;
    padding: 6px var(--mem-nav-item-inset); border-radius: 10px; text-decoration: none; line-height: 1.15; white-space: nowrap;
    color: var(--mem-glass-ink); font-size: 17px; font-weight: 400;
}
.mem-page .mem-nav > a + a::before {
    content: ""; position: absolute; inset-inline-start: calc(var(--mem-nav-gap) / -2 - .5px);
    top: 50%; transform: translateY(-50%); width: 1px; height: 1.05em; max-height: 45%;
    border-radius: 1px; pointer-events: none;
    background: linear-gradient(to bottom, var(--mem-nav-rule));
}
.mem-page .mem-nav a > span { position: relative; grid-area: 1 / 1; }
@media (hover: hover) {
    /* Measure both weights: a few words are wider in the regular face. */
    .mem-page .mem-nav a::after {
        content: attr(data-label); grid-area: 1 / 1; visibility: hidden; font-weight: 700; pointer-events: none;
    }
    .mem-page .mem-nav a:hover > span { font-weight: 700; }
    .mem-page .mem-nav a:hover::after { font-weight: 400; }
}
.mem-page .mem-nav a[aria-current="location"] > span::after {
    content: ""; position: absolute; inset-inline: 0; top: calc(50% + .66em);
    height: 2px; border-radius: 2px; background: currentColor; pointer-events: none;
}
@media (forced-colors: active) {
    .mem-page .mem-nav a[aria-current="location"] > span::after { forced-color-adjust: none; }
}
.mem-page .mem-nav a:focus-visible { outline-color: var(--mem-glass-focus); outline-offset: -3px; }
.mem-page .mem-section {
    margin: 0 0 20px; padding: clamp(20px, 2.8vw, 40px);
    border-radius: 22px; scroll-margin-top:calc(var(--mem-head-height,96px) + var(--mem-nav-height,54px) + 16px); min-width: 0;
}
.mem-page .mem-section:last-child { margin-bottom: 0; }
.mem-page :is(.mem-section, .mem-section__head, .mem-qr__info) > h2 {
    width: auto; margin: 0 0 clamp(16px,1.7vw,25px); text-align: start;
    font-family: inherit; font-weight: 700;
    font-size: clamp(23px, 2.04vw, 31px); line-height: 1.12; letter-spacing: .01em;
    text-transform: uppercase; color: var(--mem-ink);
}
.mem-section h2 > span, .mem-page #mem-bio-title { color: var(--mem-accent); }
.mem-bio__saved { margin-block-end: 12px !important; color: #426552; }
.mem-page .mem-section h3 { font: inherit; color: var(--mem-ink); font-weight: 650; font-size: 21px; line-height: 1.25; }
.mem-bio { display: grid; gap: clamp(16px, 2.2vw, 32px); }
.mem-prose { min-width: 0; font-size: clamp(18px,1.38vw,22px); line-height: var(--bio-text-leading,1.56); overflow-wrap: anywhere; }
.mem-prose p + p, .mem-prose :is(ul,ol,h2,h3,blockquote):not(:first-child) { margin-top: .8em; }
.mem-page .mem-prose :is(h2,h3,h4) { font-size: 1.16em; margin-bottom: .4em; line-height: 1.3; }
.mem-prose a, .mem-videos a { color: var(--mem-accent); text-underline-offset: 3px; }
.mem-bio__pictures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 26px); }
.mem-bio__pictures > :only-child { grid-column: 1 / -1; }

.mem-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,318px),1fr)); gap: 24px 18px; }
.mem-page .mem-photo { min-width: 0; }
.mem-photo > a {
    position: relative; display: grid; place-items: center; aspect-ratio: 4/3;
    border: 1px solid var(--mem-photo-edge); border-radius: var(--mem-photo-radius); background: #eeefec; overflow: hidden;
}
.mem-photo img { width: 100%; height: 100%; min-height: 0; display: block; object-fit: contain; }
.mem-photo figcaption, .mem-videos figcaption { padding-top: 8px; color: #56636a; font-size: 16px; line-height: 1.38; overflow-wrap: anywhere; }
.mem-photo figcaption, .mem-viewer__bottom [data-photo-caption] {
    text-align: center; padding: 7px 13px; border: 1px solid var(--mem-glass-edge); border-radius: 12px;
    background: var(--mem-glass-fill); box-shadow: var(--mem-glass-shadow); color: var(--mem-glass-ink);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); overflow-wrap: anywhere;
}
.mem-photo figcaption { margin: 0; border-radius: 0 0 var(--mem-photo-radius) var(--mem-photo-radius); }
.mem-photo:has(> figcaption) > a { border-radius: var(--mem-photo-radius) var(--mem-photo-radius) 0 0; border-bottom: 0; }
.mem-gallery .mem-photo { align-self: start; }
.mem-gallery .mem-photo:has(> figcaption) img { object-position: center bottom; }
.mem-expand {
    position: absolute; bottom: 8px; right: 8px; display: grid; place-items: center;
    width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ffffff90;
    background: #343332bf; color: white; font: 18px/1 system-ui,sans-serif;
}
a[data-mem-photo] { cursor: zoom-in; }
.mem-audios, .mem-videos { display: grid; gap: clamp(16px,2vw,28px); }
.mem-videos { grid-template-columns: repeat(2,minmax(0,1fr)); }
.mem-videos figure:only-child { width: min(100%,800px); grid-column: 1/-1; }
.mem-audio {
    display:grid; grid-template-columns:minmax(180px,.8fr) minmax(310px,1.5fr);
    align-items:center; gap:14px clamp(18px,3vw,42px); padding:clamp(16px,2vw,26px);
    border:1px solid #c7dce8; border-radius:16px;
    background:linear-gradient(112deg,#eaf4f9,#f9fbfc 62%,#f3f7fa);
}
.mem-audio__head { display:flex; align-items:center; gap:13px; }
.mem-page .mem-audio__head h3 { color:#344954; font-size:clamp(19px,1.8vw,25px); overflow-wrap:anywhere; }
.mem-audio__signal { flex:none; display:flex; align-items:center; justify-content:center; gap:3px; width:46px; height:46px; border-radius:14px; color:var(--mem-accent); background:#fff; border:1px solid #d3e4ee; }
.mem-audio__signal i { display:block; width:3px; height:10px; background:currentColor; border-radius:2px; }
.mem-audio__signal i:nth-child(2), .mem-audio__signal i:nth-child(4) { height:19px; }
.mem-audio__signal i:nth-child(3) { height:26px; }
@media (prefers-reduced-motion:no-preference) {
    .mem-audio.is-playing .mem-audio__signal i { animation:mem-sound .85s ease-in-out infinite alternate; }
    .mem-audio.is-playing .mem-audio__signal i:nth-child(even) { animation-delay:-.5s; }
    .mem-audio.is-playing .mem-audio__signal i:nth-child(3) { animation-delay:-.28s; }
    @keyframes mem-sound { from { transform:scaleY(.55); } to { transform:scaleY(1); } }
}
.mem-audio audio { display:block; width:100%; height:48px; }
.mem-player { display:grid; grid-template-columns:auto minmax(90px,1fr) auto auto; grid-template-areas:"play position sound rate"; align-items:center; gap:clamp(10px,1.5vw,22px); }
.mem-audio [hidden] { display:none; }
.mem-player button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; border-radius:100px; cursor:pointer; font:inherit; line-height:1.1; }
.mem-player button.mem-player__toggle { grid-area:play; min-width:104px; gap:9px; padding:8px 16px; border:1px solid var(--mem-accent); background:var(--mem-accent); color:#fff; font-weight:600; }
.mem-player__toggle:is(:hover,:focus-visible) { background:#1b5d8d; }
.mem-player__glyph { display:block; width:12px; height:14px; background:currentColor; clip-path:polygon(12% 0,100% 50%,12% 100%); }
.mem-audio.is-playing .mem-player__glyph { clip-path:none; border-inline:4px solid currentColor; background:transparent; }
.mem-player__position { grid-area:position; display:grid; grid-template-columns:minmax(0,1fr); min-width:0; align-items:center; }
.mem-player__time { display:block; text-align:end; font-size:14px; line-height:1.1; color:#415b69; font-variant-numeric:tabular-nums; }
.mem-player__slash { color:#77848a; }
.mem-player__rate { grid-area:rate; min-width:47px; padding:6px 9px; border:1px solid #c5d9e5; background:white; color:#255e82; font-variant-numeric:tabular-nums; }
.mem-player__sound { grid-area:sound; display:flex; align-items:center; gap:6px; }
.mem-player__mute { width:44px; height:44px; border:1px solid #c5d9e5; background:white; color:#255e82; }
.mem-player__mute i { font-size:16px; }
.mem-player__mute:is(:hover,:focus-visible) { background:#e8f2f9; }
.mem-page input.mem-player__level { display:none; }
@media (min-width:1000px) and (hover:hover) and (pointer:fine) {
    .mem-page input.mem-player__level { display:block; appearance:auto; width:62px; height:28px; margin:0; padding:0; box-shadow:none; border:0; background:transparent; accent-color:var(--mem-accent); cursor:pointer; }
}
.mem-player__rate:is(:hover,:focus-visible) { background:#e8f2f9; }
.mem-page input.mem-player__seek {
    --mem-progress:0%; display:block; appearance:none; -webkit-appearance:none; width:100%; min-width:0;
    height:27px; padding:0; margin:0; background:transparent; border:0; border-radius:6px; box-shadow:none; cursor:pointer; accent-color:var(--mem-accent);
}
.mem-player__seek::-webkit-slider-runnable-track { height:5px; border-radius:5px; background:linear-gradient(to right,var(--mem-accent) var(--mem-progress),#cbdae3 var(--mem-progress)); }
.mem-player__seek::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:15px; height:15px; margin-top:-5px; border-radius:50%; background:var(--mem-accent); border:2px solid white; box-shadow:0 0 0 1px #74a5c3; }
.mem-player__seek::-moz-range-track { height:5px; border-radius:5px; background:#cbdae3; }
.mem-player__seek::-moz-range-progress { height:5px; border-radius:5px; background:var(--mem-accent); }
.mem-player__seek::-moz-range-thumb { width:12px; height:12px; border-radius:50%; background:var(--mem-accent); border:2px solid white; }
.mem-player__seek:focus-visible { outline:2px solid #5591b8; outline-offset:1px; }
.mem-player__seek:disabled { opacity:.55; cursor:default; }
.mem-page .mem-player__error { grid-column:1/-1; color:#89492d; font-size:16px; }
.mem-videos iframe { display:block; width:100%; aspect-ratio:16/9; height:auto; border:0; border-radius:14px; background:#272b2e; }
.mem-videos figcaption { display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px 12px; }
.mem-videos figcaption a { text-decoration:none; font-weight:600; }
.mem-section__head { display:flex; flex-wrap:wrap; gap:12px 20px; align-items:center; justify-content:space-between; margin-bottom:18px; }
.mem-page .mem-section__head h2, .mem-page .mem-qr h2 { margin-bottom:0; }
.mem-page .mem-action {
    display:inline-flex; min-height:44px; align-items:center; justify-content:center; gap:9px;
    padding: 8px 22px; border:1px solid var(--mem-accent); border-radius:100px;
    background:var(--mem-accent); color:#fff; font:inherit; font-size:17px; font-weight:650;
    line-height:1.25; text-decoration:none; cursor:pointer; list-style:none;
}
.mem-page .mem-action--outline { background:white; color:var(--mem-accent); }
.mem-page .mem-action:is(:hover,:focus-visible) { border-color:#494641; background:#494641; color:white; }
#add_comments .mem-preview-note { margin: 5px 0 0; padding: 10px 14px; border: 1px solid #d1e0e9; border-radius: 12px; background: #eff6fa; color: #355970; text-align: center; font-size: 16px; }
.mem-empty { font-size:18px; color:#606a70; }
.mem-links { display:flex; gap:10px; flex-wrap:wrap; list-style:none; padding:0; margin:0; }
.mem-links a {
    display: inline-flex; align-items: center; gap: 12px; max-width: 100%; min-height: 44px;
    padding: 10px 16px; border: 1px solid var(--mem-ice-edge); border-radius: 12px;
    background: var(--mem-ice-fill); box-shadow: var(--mem-glass-shadow); color: var(--mem-glass-ink);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    font-size: 18px; text-decoration: none; overflow-wrap: anywhere;
}
.mem-links li { min-width: 0; max-width: 100%; }
.mem-links a:hover { border-color: #a6bcc7; text-decoration: underline; text-underline-offset: 3px; }
.mem-page :is(a,button,summary):focus-visible, .mem-lightbox button:focus-visible { outline:3px solid #5591b8; outline-offset:3px; }
.mem-lightbox {
    --viewer-space: 10px;
    --viewer-width: min(1050px, calc(100vw - 24px));
    --viewer-height: calc(100dvh - 24px);
    --viewer-button: 44px;
    box-sizing: border-box;
    width: max-content;
    min-width: min(160px, var(--viewer-width));
    max-width: var(--viewer-width);
    max-height: var(--viewer-height);
    margin: auto; padding: 0;
    border: 1px solid var(--mem-glass-edge); border-radius: 19px;
    color: var(--mem-ink); background: #fff; overflow: auto;
}
.mem-lightbox:not([open]) { display:none; }
.mem-lightbox::backdrop { background:rgba(22,27,31,.8); }
body:has(.mem-lightbox[open]), html:has(.mem-lightbox[open]) { overflow:hidden; }
.mem-viewer { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--viewer-space); padding: var(--viewer-space); }
.mem-viewer:focus { outline: none; }
.mem-viewer__top, .mem-viewer__bottom { align-items: center; gap: var(--viewer-space); }
.mem-viewer .mem-viewer__top { display:grid; grid-template-columns:minmax(0,1fr) auto; }
.mem-viewer__top [data-photo-count] { grid-column:1; grid-row:1; }
.mem-viewer__top [data-photo-close] { grid-column:2; grid-row:1; justify-self:end; appearance:none; -webkit-tap-highlight-color:transparent; }
.mem-viewer__top { padding-left:9px; color:#56636a; font-size:16px; }
.mem-viewer button {
    display: grid; place-items: center; width: var(--viewer-button); height: var(--viewer-button); padding: 0;
    border: 1px solid var(--mem-glass-edge); border-radius: 50%; color: var(--mem-glass-ink);
    background: var(--mem-glass-fill); box-shadow: var(--mem-glass-shadow); cursor: pointer;
}
.mem-viewer button:hover { border-color: var(--arc-viewer-edge-hover, #a8aaa7); color: #363636; }
.mem-lightbox .mem-viewer button:focus-visible, .mem-page .mem-links a:focus-visible { outline-color: var(--mem-glass-focus); }
.mem-viewer button[hidden] { display:none; }
.mem-viewer__image { display:grid; place-items:center; border-radius:10px; background:#fff; overflow:hidden; }
.mem-viewer__image img {
    display: block; width: auto; height: auto; object-fit: contain;
    max-width: calc(var(--viewer-width) - 2px - 2 * var(--viewer-space));
    max-height: min(660px, max(48px, calc(var(--viewer-height) - 2px - 4 * var(--viewer-space) - var(--viewer-button) - var(--viewer-footer, 44px))));
}
.mem-viewer__bottom {
    display: grid; grid-template-columns: var(--viewer-button) minmax(0,1fr) var(--viewer-button);
    /* Let long captions widen a portrait for reading, then fill the width of larger photos. */
    width: max-content; min-width: 100%;
    max-width: min(420px, calc(var(--viewer-width) - 2px - 2 * var(--viewer-space)));
}
.mem-viewer__bottom [data-photo-prev] { grid-column: 1; grid-row: 1; }
.mem-viewer__bottom [data-photo-next] { grid-column: 3; grid-row: 1; }
.mem-viewer__bottom p {
    grid-column: 2; grid-row: 1; justify-self: center; align-self: stretch;
    max-width: 100%; margin: 0; line-height: 1.35; overflow-wrap: anywhere;
}
.mem-viewer__bottom p:not([hidden]) { display: grid; align-content: center; }
.mem-viewer__bottom:has(> [data-photo-prev][hidden]) { grid-template-columns: minmax(0, 1fr); }
.mem-viewer__bottom:has(> [data-photo-prev][hidden]) p { grid-column: 1; }
.mem-viewer__bottom:not(:has(> :not([hidden]))) { display: none; }
.mem-viewer__bottom button svg { display: block; }
@media (min-width:761px) and (max-width:900px) {
    .mem-audio { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:760px) {
    .mem-page { width:calc(100% - 24px); padding-top:14px; }
    .mem-page .mem-hero, .mem-page .mem-section { border-radius:18px; }
    .mem-page .mem-hero {
        --mem-hero-columns: minmax(0, 1fr); --mem-hero-gap: 0px; --mem-hero-inset: 18px;
    }
    .mem-hero__body { row-gap: 22px; }
    .mem-page .mem-portrait { justify-self: center; }
    .mem-hero__secondary { grid-column: 1; gap: 12px; }
    .mem-page .mem-portrait img { max-height:clamp(285px,50vh,435px); max-height:clamp(285px,50svh,435px); }
    .mem-identity { row-gap: 13px; }
    .mem-anniversaries { justify-self: center; text-align: center; }
    .mem-page #mem-name { font-size: clamp(26px, 8.15vw, 34px); letter-spacing: -.01em; text-align: center; }
    .mem-page .mem-dates {
        --mem-date-space: clamp(5px, 2.25cqi, 12px);
        --mem-date-label-size: clamp(13px, 3.15cqi, 15px);
        --mem-date-value-size: clamp(15px, 4.45cqi, 21px);
        justify-self: center;
    }
    .mem-hero__details { padding-block: 15px; row-gap: 12px; }
    .mem-page .mem-epitaph { margin-top:17px; }
    .mem-page .mem-nav { --mem-nav-gap:2px; --mem-nav-item-inset:10px; top:calc(var(--mem-head-height,67px) + 3px); padding:4px; margin:10px 0 15px; border-radius:13px; }
    .mem-page .mem-nav a { min-height:44px; font-size:16px; }
    .mem-page .mem-section { padding:18px; margin-bottom:14px; }
    .mem-videos { grid-template-columns:1fr; }
    .mem-gallery, .mem-bio__pictures { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 10px; }
    .mem-photo figcaption { font-size:15px; }
    .mem-expand { width:24px; height:24px; bottom:5px; right:5px; font-size:15px; }

    .mem-audio { grid-template-columns:minmax(0,1fr); padding:16px; gap:16px; }
}
@media (max-width: 760px), (max-width: 991px) and (pointer: coarse) {
    .mem-photo > :is([data-mem-photo="biography"], [data-mem-photo="album"]) > .mem-expand { display: none; }
}
@media (max-width: 760px), (max-width: 932px) and (pointer: coarse) {
    .mem-kin { grid-template-columns: minmax(0, 1fr); }
    .mem-kin li:only-child { justify-self: stretch; }
    .mem-kin a.mem-kin__link {
        width: 100%; min-width: 0; justify-content: flex-start; gap: 6px;
        padding-inline: 11px; font-size: clamp(14px, 4.1vw, 16px);
    }
    .mem-kin__link svg { width: 16px; height: 16px; }
    .mem-kin__link span, .mem-kin li > span {
        display: block; min-width: 0; max-width: 100%; overflow: hidden;
        white-space: nowrap; text-overflow: ellipsis; overflow-wrap: normal;
    }
}
@media (max-width:500px) {
    .mem-page .mem-portrait { justify-self: start; }
    .mem-page .mem-portrait img { max-height: clamp(285px, 68vh, 520px); max-height: clamp(285px, 68svh, 520px); }
    .mem-player { grid-template-columns:minmax(0,1fr) auto auto; grid-template-areas:"play sound rate" "position position position"; gap:6px 12px; }
    .mem-player__toggle { justify-self:start; }
    .mem-player__position { gap:1px; }
    .mem-page input.mem-player__seek { height:35px; }
}
@media (max-width:410px) {
    .mem-page .mem-section__head { align-items:start; }

}

.mem-links a .mem-external-mark {
    display: inline-block; flex: none; position: relative; width: .88em; height: .88em;
    border: 1px solid currentColor; border-radius: .22em; box-sizing: border-box;
}
.mem-external-mark::before, .mem-external-mark::after {
    content: ""; position: absolute; box-sizing: border-box; color: inherit;
}
.mem-external-mark::before { top: 25%; right: 22%; width: 42%; height: 42%; border-top: 1px solid; border-right: 1px solid; }
.mem-external-mark::after { top: 49%; left: 20%; width: 57%; border-top: 1px solid; transform: rotate(-45deg); }
