/* Only the memorial component; do not alter the existing memorial wall. */
.fh-memorial-card .fh-memorial-trigger { display:block;position:relative;isolation:isolate;text-decoration:none; }
.fh-memorial-trigger:focus-visible { outline:3px solid #b31c01;outline-offset:6px;border-radius:200px 200px 16px 16px; }
.fh-memorial-trigger .fh-memorial-badge { position:absolute;bottom:16px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;white-space:nowrap;background:#fbf6ef;color:#49362d;border-radius:999px;padding:9px 15px;font:500 12px/1.3 'Poppins',sans-serif;box-shadow:0 4px 20px #0003; }
.fh-memorial-card .fh-memorial-badge span { font-size:16px; }
.fh-memorial-fallback { margin:2rem auto;padding:1rem;max-width:920px;border:1px solid #d5c8bb;border-radius:12px; }
.fh-memorial-fallback[hidden] { display:none !important; }
.fh-memorial-fallback summary { cursor:pointer; }
.fh-memorial-static { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px; }
.fh-memorial-static img { width:100%;height:auto;display:block; }
.fh-photo-dialog { box-sizing:border-box;width:min(920px,calc(100vw - 48px));height:min(900px,calc(100vh - 48px));height:min(900px,calc(100dvh - 48px));max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #eadfd2;border-radius:20px;background:#fbf6ef;color:#2e2a26;box-shadow:0 24px 100px #0006;overflow:hidden;font-family:'Poppins',sans-serif; }
.fh-photo-dialog[open] { display:flex;flex-direction:column; }
.fh-photo-dialog::backdrop { background:rgba(17,22,17,.86);backdrop-filter:blur(6px); }
.fh-photo-header { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 22px;flex-shrink:0; }
.fh-photo-header h2 { font:400 30px/1.2 'Fraunces',Georgia,serif;margin:0 0 4px;text-transform:none;letter-spacing:0;color:#2e2a26; }
.fh-photo-header p { font:400 12px/1.5 'Poppins',sans-serif;color:#74665a;margin:0; }
.fh-photo-dialog button { box-sizing:border-box;min-height:44px;min-width:44px;border:1px solid #dfd2c4;border-radius:999px;box-shadow:none;background:transparent;color:#49362d;font:500 12px/1.2 'Poppins',sans-serif;text-transform:none;letter-spacing:0;cursor:pointer; }
.fh-photo-dialog button:hover { background:#f0e6d9; }
.fh-photo-dialog button:focus-visible { outline:3px solid #b31c01;outline-offset:3px; }
.fh-photo-dialog .fh-photo-close { width:44px;height:44px;font:300 30px/1 sans-serif;padding:0;flex-shrink:0; }
.fh-photo-stage { min-height:0;flex:1;position:relative;display:flex;align-items:center;justify-content:center;background:#1d231d;overflow:hidden; }
.fh-photo-stage .fh-photo-main { display:block;width:100%;height:100%;object-fit:contain;border-radius:0;margin:0;box-shadow:none; }
.fh-photo-stage .fh-photo-main[hidden] { display:none; }
.fh-photo-error { position:absolute;left:15px;right:15px;bottom:15px;padding:12px;border-radius:8px;background:#fbf6ef;color:#492f25;text-align:center;font-size:13px; }
.fh-photo-error[hidden] { display:none; }
.fh-photo-toolbar { display:flex;justify-content:center;align-items:center;gap:14px;padding:12px 18px 8px;flex-shrink:0; }
.fh-photo-toolbar button { padding:10px 16px; }
.fh-photo-toolbar [data-play] { background:#a83216;border-color:#a83216;color:white;min-width:100px; }
.fh-photo-toolbar [data-play]:hover { background:#852610; }
.fh-photo-counter { font:400 12px/1 'Poppins',sans-serif;min-width:38px;text-align:center;color:#74665a;font-variant-numeric:tabular-nums; }
.fh-photo-thumbs { display:flex;justify-content:center;gap:8px;padding:8px 18px 16px;flex-shrink:0;overflow-x:auto; }
.fh-photo-thumbs button { padding:2px;flex:0 0 54px;width:54px;height:58px;min-height:44px;border-radius:8px;border:2px solid transparent;overflow:hidden;opacity:.65; }
.fh-photo-thumbs button[aria-current="true"] { border-color:#a83216;opacity:1; }
.fh-photo-thumbs img { display:block;width:100%;height:100%;object-fit:cover;border-radius:4px; }
.fh-photo-sr { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
@media(max-width:600px) {
 .fh-photo-dialog { width:calc(100vw - 16px);height:calc(100dvh - 24px);border-radius:14px; }
 .fh-photo-header { padding:12px 14px;gap:8px; }
 .fh-photo-header h2 { font-size:26px; }
 .fh-photo-header p { font-size:10px; }
 .fh-photo-toolbar { gap:8px;padding:10px 8px 4px; }
 .fh-photo-toolbar button { padding:10px 12px; }
 .fh-photo-toolbar [data-prev] span,.fh-photo-toolbar [data-next] span { display:none; }
 .fh-photo-thumbs { justify-content:flex-start;padding:8px 10px 12px;gap:6px; }
 .fh-photo-thumbs button { flex-basis:44px;width:44px;height:48px; }
 .fh-memorial-static { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(prefers-reduced-motion:reduce) { .fh-photo-dialog * { animation:none !important;transition:none !important;scroll-behavior:auto !important; } }
/* Wall paging */
#memorials { scroll-margin-top:calc(var(--header-h,84px) + var(--admin-bar,0px) + 24px); }
.fh-memorial-pages { display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:3rem auto 1rem;font:500 14px/1 'Poppins',sans-serif; }
.fh-memorial-pages a, .fh-memorial-pages span[aria-current] { display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:0 14px;border:1px solid #dfd2c4;border-radius:999px;color:#49362d;text-decoration:none;background:transparent; }
.fh-memorial-pages a:hover { background:#f0e6d9; }
.fh-memorial-pages a:focus-visible { outline:3px solid #b31c01;outline-offset:3px; }
.fh-memorial-pages span[aria-current] { background:#a83216;border-color:#a83216;color:#fff; }
@media(max-width:600px) { .fh-memorial-pages { gap:6px; } .fh-memorial-pages__step span { display:none; } .fh-memorial-pages a, .fh-memorial-pages span[aria-current] { padding:0 10px; } }
