/* HM SOURCE TRACKING | source_version=2.1.2-r67.52 | updated_at=2026-11-21T09:12:00+08:00 | release=HM-R67.52 | history=SOURCE-METADATA.json */
/* HM SOURCE STAMP | source_version=2.1.2-r67.19 | metadata_stamped_at=2026-11-19 | file_history=SOURCE-METADATA.json | release=HM-R67.19 */
/*
 * HEAVENLY MEMORIALS — GLOBAL STYLESHEET
 * File: assets/style.css
 * Purpose: Shared visual system for public pages, admin pages, forms and design studios.
 * Webmaster editing map:
 *   1. Global tokens, reset and typography
 *   2. Public homepage and memorial profile components
 *   3. Admin dashboard and authentication
 *   4. Add/Edit Memorial form
 *   5. Homepage Design Studio
 *   6. Memorial Page Design Studio
 *   7. Theme artwork and version-specific overrides
 * Rule: Add new version-specific styles under a clearly named version heading.
 *       Prefer scoped selectors; avoid broad overrides that unintentionally affect other pages.
 * Version: 1.8.2
 */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&family=Lato:wght@400;700&family=Libre+Baskerville:wght@400;700&family=Lora:wght@400;500;600;700&family=Merriweather:wght@400;700&family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');
:root{--ink:#27332f;--muted:#78827c;--green:#536d5f;--green-dark:#354c40;--cream:#f7f6f1;--line:#e8e8e0;--gold:#c5a66a}
*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font-family:'DM Sans',sans-serif;font-size:15px;line-height:1.65}a{color:inherit;text-decoration:none}.site-header,.admin-header{height:86px;padding:0 max(6vw,24px);display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-family:'Playfair Display',serif;font-size:21px;font-weight:600;letter-spacing:.1px}.brand small{display:block;font:10px 'DM Sans',sans-serif;color:var(--muted);letter-spacing:1.1px;text-transform:uppercase}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border:1px solid #d9d2bf;border-radius:50%;color:var(--gold);font-size:21px}.brand-mark.large{width:54px;height:54px;font-size:27px;margin:auto auto 18px}.site-header nav,.admin-header nav{display:flex;gap:30px;font-size:13px;color:#56625b}.site-header nav a:hover,.admin-header nav a:hover{color:var(--gold)}.hero{min-height:480px;background:linear-gradient(90deg,rgba(28,48,39,.88),rgba(28,48,39,.46)),linear-gradient(135deg,#7b8a7e,#31483b);display:flex;align-items:center;color:white;padding:75px 10%}.hero-inner{max-width:640px}.eyebrow{font-size:10px;letter-spacing:2.5px;font-weight:700;color:var(--gold);margin:0 0 14px}.hero h1,.memorial-profile h1,.auth-card h1,.form-card h1,.admin-title h1{font:500 clamp(38px,5vw,62px)/1.12 'Playfair Display',serif;margin:0 0 20px}.hero h1 em{color:#e1c995}.hero-copy{max-width:475px;color:#e2e7e1;font-size:16px;margin-bottom:30px}.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:4px;padding:12px 21px;background:var(--green);color:white;font:600 13px 'DM Sans',sans-serif;cursor:pointer;transition:.2s}.button:hover{background:var(--green-dark)}.button-light{background:#f5f1e7;color:#34493d}.button-light:hover{background:white}.button-outline{background:transparent;color:var(--green);border:1px solid #cbd4cd}.section{max-width:1180px;margin:auto;padding:78px 28px 90px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:35px}.section-heading h2,.biography h2,.admin-panel h2{font:500 34px 'Playfair Display',serif;margin:0 0 5px}.muted{color:var(--muted);margin:0}.search{display:flex;gap:8px}.search input{width:220px}.memorial-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.memorial-card{border:1px solid var(--line);border-radius:7px;overflow:hidden;background:white;transition:transform .2s,box-shadow .2s}.memorial-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px #293b2d12}.portrait{height:220px;background:#eeeee8;display:grid;place-items:center;color:#c4b58e;font-size:45px;overflow:hidden}.portrait img{width:100%;height:100%;object-fit:cover}.card-content{padding:22px}.card-content h3{font:500 23px 'Playfair Display',serif;margin:0 0 4px}.dates,.profile-dates{font-size:12px;color:var(--gold);letter-spacing:.5px}.card-content>p:not(.dates){font-size:13px;color:var(--muted);min-height:42px}.read-more{font-size:12px;color:var(--green);font-weight:700}.empty{text-align:center;padding:55px 15px;color:var(--muted)}.empty-icon{font-size:35px;color:var(--gold)}.empty h3{font:24px 'Playfair Display',serif;color:var(--ink);margin:5px}.quote-band{text-align:center;background:var(--cream);padding:48px 20px}.quote-band p{font:italic 24px 'Playfair Display',serif;margin:0 0 8px}.quote-band span{font-size:10px;letter-spacing:2px;color:var(--gold);text-transform:uppercase}.footer{display:flex;justify-content:space-between;padding:25px 7%;font-size:11px;color:var(--muted);border-top:1px solid var(--line)}.memorial-page{background:var(--cream);min-height:75vh;padding:35px 20px 80px}.back-link{display:block;max-width:850px;margin:0 auto 25px;color:var(--green);font-size:13px}.memorial-profile{max-width:850px;margin:auto;text-align:center;background:white;padding:55px 9%;box-shadow:0 8px 35px #26392b0a}.profile-photo{width:180px;height:180px;border-radius:50%;overflow:hidden;background:#efeee8;margin:0 auto 28px;display:grid;place-items:center;color:var(--gold);font-size:40px}.profile-photo img{width:100%;height:100%;object-fit:cover}.memorial-profile h1{font-size:44px;margin-bottom:8px}.dedication{font:italic 20px 'Playfair Display',serif;color:var(--green);margin:25px 0}.ornament{color:var(--gold);margin:25px}.biography{text-align:left;max-width:620px;margin:35px auto 0;white-space:normal;color:#5d6861}.biography h2{font-size:25px;color:var(--ink);margin-bottom:12px}.auth-page{min-height:100vh;background:var(--cream);display:grid;place-items:center;padding:25px}.auth-card,.form-card{background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 40px #293b2d0b}.auth-card{width:min(100%,430px);padding:42px;text-align:center}.auth-card h1{font-size:34px;margin-bottom:8px}.auth-card .muted{margin-bottom:25px}.auth-card label,.form-card label{display:block;text-align:left;font-size:12px;font-weight:700;margin:16px 0 7px}.auth-card input,.form-card input,.form-card textarea,.form-card select,.search input{width:100%;padding:12px 13px;border:1px solid #dfe3dc;border-radius:4px;background:white;color:var(--ink);font:14px 'DM Sans',sans-serif;outline:none}.auth-card input:focus,.form-card input:focus,.form-card textarea:focus,.search input:focus{border-color:#8ca393}.auth-card .button{margin-top:22px}.full{width:100%}.auth-back{display:block;font-size:12px;color:var(--muted);margin-top:20px}.tiny{font-size:10px;color:var(--muted);margin-top:22px}.error{background:#fff0ee;color:#9b382c;padding:10px;border-radius:4px;font-size:13px}.admin-wrap{max-width:1180px;margin:auto;padding:55px 28px}.admin-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.admin-title h1{font-size:40px;margin-bottom:4px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:25px}.stat{background:var(--cream);padding:22px;border:1px solid var(--line);border-radius:6px}.stat span{display:block;color:var(--muted);font-size:12px}.stat strong{font:34px 'Playfair Display',serif}.admin-panel{border:1px solid var(--line);border-radius:7px;background:white}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 25px;border-bottom:1px solid var(--line)}.panel-heading h2{font-size:23px}.panel-heading span{font-size:11px;color:var(--muted)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th,td{padding:15px 22px;border-bottom:1px solid #f0f0eb;white-space:nowrap}th{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}.actions{display:flex;gap:14px;align-items:center}.actions a{color:var(--green);font-weight:600}.actions form{display:inline}.link-danger{border:0;background:none;color:#a54c42;cursor:pointer;font:600 13px 'DM Sans',sans-serif;padding:0}.status{font-size:10px;padding:4px 8px;border-radius:20px;background:#e8f0e9;color:#47634f}.status.draft{background:#f3eee1;color:#8b7040}.form-wrap{max-width:800px;margin:35px auto 80px;padding:0 20px}.form-card{padding:35px 42px}.form-card h1{font-size:38px;margin-bottom:5px}.form-card form{margin-top:25px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-card textarea{resize:vertical}.form-actions{display:flex;gap:10px;margin-top:25px}.current-photo{width:100px;height:100px;object-fit:cover;border-radius:5px;display:block;margin:8px 0}@media(max-width:800px){.memorial-grid{grid-template-columns:repeat(2,1fr)}.section-heading{align-items:flex-start;flex-direction:column}.hero{min-height:420px}.site-header,.admin-header{padding:0 20px}.site-header nav,.admin-header nav{gap:13px}}@media(max-width:560px){.site-header,.admin-header{height:auto;min-height:75px;flex-wrap:wrap;padding:15px 18px;gap:12px}.brand{font-size:18px}.site-header nav,.admin-header nav{width:100%;justify-content:space-between;padding:8px 0}.hero{padding:55px 25px}.section{padding:55px 18px}.memorial-grid{grid-template-columns:1fr}.portrait{height:250px}.search{width:100%}.search input{flex:1;min-width:0}.footer{gap:8px;flex-direction:column}.memorial-profile{padding:35px 22px}.memorial-profile h1{font-size:34px}.stats{grid-template-columns:1fr}.admin-title{align-items:flex-start;gap:15px;flex-direction:column}.admin-title h1{font-size:34px}.form-card{padding:25px 20px}.two-fields{grid-template-columns:1fr;gap:0}.actions{gap:10px}}

.memorial-feature{max-width:620px;margin:42px auto 0;padding:28px;background:#faf9f5;border:1px solid var(--line);border-radius:6px;text-align:center}.memorial-feature h2{font:500 26px 'Playfair Display',serif;margin:0 0 5px}.song-feature audio{display:block;width:100%;margin:20px auto 0}.candle-symbol{font-size:34px;margin-bottom:5px}.candle-count{font:30px 'Playfair Display',serif;color:var(--green);margin:12px 0}.candle-count span{font:12px 'DM Sans',sans-serif;color:var(--muted)}.guestbook{text-align:left}.guestbook>h2,.guestbook>p{text-align:center}.guestbook-form{margin-top:24px}.guestbook-form label{display:block;font-size:12px;font-weight:700;margin:13px 0 6px}.guestbook-form input:not([type=hidden]),.guestbook-form textarea{width:100%;padding:12px;border:1px solid #dfe3dc;border-radius:4px;font:14px 'DM Sans',sans-serif}.guestbook-form textarea{resize:vertical}.guestbook-form button{margin-top:15px}.guestbook-entries{margin-top:30px}.guest-entry{display:flex;gap:13px;padding:18px 0;border-top:1px solid var(--line)}.guest-avatar{flex:0 0 36px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e9eee8;color:var(--green);font-weight:700}.guest-entry strong{font-size:13px}.guest-entry time{display:block;color:var(--muted);font-size:10px}.guest-entry p{margin:8px 0 0;color:#5d6861;font-size:13px;overflow-wrap:anywhere}.empty-note{text-align:center;color:var(--muted);font-size:13px}.honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.current-song{font-size:12px;color:var(--muted)}.current-song a{color:var(--green);text-decoration:underline}.check-label{display:flex!important;align-items:center;gap:8px;font-weight:400!important}.check-label input{width:auto!important}.field-help{font-size:11px;color:var(--muted);margin:5px 0}

.captcha-wrap{margin:18px 0;overflow-x:auto}.guestbook-form input[name=captcha_answer]{max-width:180px}

/* Photo-album homepage */
.album-hero{min-height:540px;position:relative;display:flex;align-items:center;padding:75px 10%;overflow:hidden;color:#fff;background:linear-gradient(110deg,rgba(22,39,31,.91) 0%,rgba(31,49,39,.75) 48%,rgba(31,49,39,.23) 100%),url('https://images.unsplash.com/photo-1470252649378-9c29740c9fa8?auto=format&fit=crop&w=2000&q=85') center 48%/cover no-repeat}
.hero-vignette{position:absolute;inset:0;box-shadow:inset 0 0 120px #15251d55;pointer-events:none}.album-hero-content{position:relative;z-index:1;max-width:680px}.album-hero h1{font:500 clamp(42px,6vw,70px)/1.08 'Playfair Display',serif;margin:0 0 20px;letter-spacing:-1px}.album-hero h1 em{color:#e2c895}.album-hero-content>p:not(.eyebrow){max-width:500px;color:#e1e6df;font-size:16px;margin:0 0 28px}.album-hero .button{gap:14px}.hero-note{position:absolute;right:6%;bottom:35px;color:#f0e6d0;font-size:9px;letter-spacing:2px;z-index:1}.hero-note span{color:var(--gold);font-size:16px;margin-right:8px}.featured-section,.gallery-section{max-width:1260px;margin:auto;padding:78px 30px 45px}.gallery-section{padding-top:65px;padding-bottom:90px}.album-heading{align-items:end;margin-bottom:32px}.album-heading h2{font:500 clamp(30px,4vw,42px) 'Playfair Display',serif}.section-index{font-size:11px;color:var(--gold);letter-spacing:1.5px;white-space:nowrap}.section-index i{font-style:normal;color:var(--muted);font-size:9px}.featured-album{display:grid;grid-template-columns:1.25fr 1fr 1fr;grid-template-rows:245px 245px;gap:18px}.featured-card{min-width:0}.featured-1{grid-row:span 2}.featured-2{grid-column:2}.featured-3{grid-column:3}.featured-4{grid-column:2}.featured-5{grid-column:3}.featured-6{display:none}.album-card{display:block;background:#fff;border:1px solid #e9e6dc;padding:7px;box-shadow:0 5px 18px #293b2d0a;transition:transform .22s,box-shadow .22s;min-width:0}.album-card:hover{transform:translateY(-4px) rotate(-.25deg);box-shadow:0 14px 30px #293b2d18}.album-photo{height:calc(100% - 30px);min-height:180px;position:relative;overflow:hidden;background:#e8e8df}.album-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s}.album-card:hover .album-photo img{transform:scale(1.04)}.album-placeholder{height:100%;display:grid;place-items:center;background:linear-gradient(145deg,#e8e5da,#cbd2c7);color:#9b9a7e;font-size:42px}.photo-overlay{position:absolute;inset:25% 0 0;background:linear-gradient(transparent,rgba(18,30,23,.78))}.photo-caption{position:absolute;bottom:15px;left:17px;right:14px;color:white}.photo-caption strong{display:block;font:500 22px 'Playfair Display',serif;line-height:1.2}.photo-caption small{display:block;margin-top:5px;font-size:10px;color:#e6e6df;letter-spacing:.4px}.album-card-foot{height:30px;display:flex;align-items:center;justify-content:space-between;padding:0 8px;color:#9b927c;font-size:8px;letter-spacing:1.2px}.album-card-foot span:last-child{color:var(--green);font-size:9px;letter-spacing:0}.photo-album-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.photo-album-grid .album-photo{height:245px}.photo-album-grid .album-card{aspect-ratio:auto}.photo-album-grid .photo-caption strong{font-size:19px}.album-search input{width:230px}.memory-quote{text-align:center;background:#f5f3ed;padding:58px 20px 62px;border-top:1px solid #ece9df}.quote-ornament{font-size:25px;color:var(--gold)}.memory-quote p{font:italic 27px/1.45 'Playfair Display',serif;color:#405247;margin:10px 0 17px}.memory-quote span{font-size:9px;letter-spacing:2.3px;color:#a48b5c}.feature-check{margin:22px 0!important;padding:13px;background:#f7f6f1;border:1px solid var(--line);border-radius:4px}
@media(max-width:900px){.featured-album{grid-template-columns:1fr 1fr;grid-template-rows:260px 220px 220px}.featured-1{grid-row:span 2}.featured-2,.featured-3,.featured-4,.featured-5{grid-column:auto}.featured-6{display:block;grid-column:2}.photo-album-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.album-hero{min-height:465px;padding:65px 25px;background-position:58% center}.hero-note{right:22px;bottom:20px;font-size:8px}.featured-section,.gallery-section{padding-left:17px;padding-right:17px}.featured-album{grid-template-columns:1fr 1fr;grid-template-rows:220px 190px 190px;gap:10px}.featured-1{grid-row:span 1;grid-column:span 2}.featured-2,.featured-3,.featured-4,.featured-5,.featured-6{display:block;grid-column:auto}.featured-6{display:none}.featured-1 .photo-caption strong{font-size:24px}.album-card{padding:5px}.album-photo{min-height:145px}.featured-album .album-photo{height:calc(100% - 27px)}.photo-caption{left:10px;bottom:10px}.photo-caption strong{font-size:16px}.photo-caption small{font-size:9px}.album-card-foot{height:27px;padding:0 5px;font-size:7px}.album-card-foot span:last-child{font-size:8px}.photo-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.photo-album-grid .album-photo{height:190px}.photo-album-grid .photo-caption strong{font-size:16px}.album-heading{gap:15px}.album-search{width:100%}.album-search input{flex:1;width:auto;min-width:0}.memory-quote p{font-size:22px}}

/* ADMIN DESIGN STUDIO */
.admin-title-actions{display:flex;gap:10px;flex-wrap:wrap}
.design-wrap{max-width:1320px;margin:35px auto 80px;padding:0 24px}
.design-title{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:0 0 28px}
.design-title h1{font:500 clamp(32px,4vw,44px)/1.15 'Playfair Display',serif;margin:0 0 8px}
.design-status{font-size:9px;letter-spacing:1.5px;color:var(--green);border:1px solid var(--line);border-radius:30px;padding:8px 12px;white-space:nowrap}
.success-message{padding:13px 16px;background:#eaf3eb;color:#365e43;border:1px solid #d5e6d8;border-radius:5px;font-size:13px}
.design-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:25px;align-items:start}
.design-form{display:grid;gap:16px}
.design-panel{background:#fff;border:1px solid var(--line);border-radius:8px;padding:23px 25px}
.design-panel-heading{display:flex;align-items:flex-start;gap:13px;margin-bottom:20px}
.design-number{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#f2efe6;color:#a88b56;font-size:11px;font-weight:700}
.design-panel-heading h2{font:500 22px 'Playfair Display',serif;margin:0 0 2px}
.design-panel-heading p{font-size:12px;color:var(--muted);margin:0}
.design-panel>label,.design-panel form>label{display:block;font-size:12px;font-weight:700;margin:15px 0 7px}
.design-panel select{width:100%;padding:12px;border:1px solid #dfe3dc;border-radius:5px;background:#fff;color:var(--ink);font:13px 'DM Sans',sans-serif}
.color-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.color-control{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:5px;font-size:11px;color:#526058}
.color-control input{width:38px;height:32px;padding:2px;border:1px solid #ddd;background:white;border-radius:4px;cursor:pointer}
.color-control code{margin-left:auto;font-size:10px;color:var(--muted)}
.choice-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0 18px}
.choice-card{border:1px solid var(--line);border-radius:6px;padding:12px 8px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:8px;cursor:pointer;font-size:11px}
.choice-card:has(input:checked){border-color:var(--green);background:#f4f7f4}
.choice-card input{accent-color:var(--green)}
.shape-icon{display:block;width:42px;height:42px;border:2px solid #a89a7c;background:#f3efe5}
.shape-circle{border-radius:50%}.shape-rounded{border-radius:9px}.shape-square{border-radius:0}
.range-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.design-panel output{float:right;font-size:11px;color:var(--green);font-weight:700}
.design-panel input[type=range]{display:block;width:100%;accent-color:var(--green);margin:12px 0 18px}
.design-actions{display:flex;gap:10px;flex-wrap:wrap}
.design-preview-wrap{min-width:0}
.preview-sticky{position:sticky;top:20px}
.preview-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px;font-size:13px}
.preview-heading span,.preview-note{font-size:11px;color:var(--muted)}
.design-preview{--pv-primary:#536d5f;--pv-accent:#c5a66a;--pv-bg:#f7f6f1;--pv-card:#fff;--pv-text:#27332f;--pv-muted:#78827c;--pv-photo-width:220px;--pv-photo-height:220px;--pv-photo-radius:50%;--pv-card-radius:8px;--pv-width:900px;--pv-font:Georgia,serif;--pv-align:center;background:var(--pv-bg);color:var(--pv-text);border:1px solid var(--line);border-radius:8px;padding:28px 18px;text-align:var(--pv-align)}
.preview-photo{width:min(var(--pv-photo-width),100%);height:var(--pv-photo-height);max-height:360px;margin:0 auto 18px;border-radius:var(--pv-photo-radius);background:linear-gradient(135deg,#d5d8cc,#a9b7a7);display:grid;place-items:center;color:#fff;font-size:32px;overflow:hidden}
.design-preview h3{font:500 25px var(--pv-font);color:var(--pv-text);margin:4px 0}
.preview-eyebrow{font-size:9px;letter-spacing:2px;color:var(--pv-accent);font-weight:700}
.preview-dates{font-size:11px;color:var(--pv-accent)}
.preview-dedication{font:italic 16px var(--pv-font);color:var(--pv-primary)}
.preview-divider{color:var(--pv-accent);margin:15px}
.preview-copy{text-align:left;color:var(--pv-muted);font-size:12px}
.preview-copy h4{font:500 18px var(--pv-font);color:var(--pv-text);margin:0 0 5px}
.preview-button{margin-top:15px;border:0;border-radius:4px;padding:10px 15px;background:var(--pv-primary);color:white}
.preview-note{line-height:1.5;margin-top:10px}
@media(max-width:900px){.design-layout{grid-template-columns:1fr}.preview-sticky{position:static}.design-preview-wrap{grid-row:1}}
@media(max-width:560px){.design-wrap{padding:0 14px}.design-title{align-items:flex-start;flex-direction:column}.design-panel{padding:19px 16px}.color-grid{grid-template-columns:1fr}.range-grid{grid-template-columns:1fr}.choice-row{gap:6px}.choice-card{font-size:10px;padding:10px 4px}.admin-title-actions{width:100%}.admin-title-actions .button{flex:1}}


/* VISUAL THEME SELECTOR — ADMIN DESIGN STUDIO */
.theme-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:12px 0 8px}
.theme-card{appearance:none;display:block;width:100%;padding:7px;text-align:left;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s}
.theme-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px #26392b12}
.theme-card.is-selected{border:2px solid var(--green);padding:6px;box-shadow:0 0 0 3px #536d5f18}
.theme-art{height:132px;display:grid;place-items:center;padding:10px;border-radius:5px;overflow:hidden}
.theme-art-frame{width:76%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid currentColor;text-align:center;padding:8px;box-shadow:0 3px 10px #00000012}
.theme-art-frame i{font-size:19px;font-style:normal;line-height:1}
.theme-art-frame b{font:600 8px 'DM Sans',sans-serif;letter-spacing:1.2px;text-transform:uppercase}
.theme-art-frame em{font:italic 17px 'Playfair Display',serif}
.theme-art-frame small{font:8px 'DM Sans',sans-serif;opacity:.8}
.theme-art-garden{background:linear-gradient(140deg,#dce5d9,#f5f4e9);color:#536d5f}
.theme-art-garden .theme-art-frame{background:#fbfcf8;border-radius:3px}
.theme-art-ivory{background:linear-gradient(140deg,#e8dcc7,#f8f1e4);color:#806b52}
.theme-art-ivory .theme-art-frame{background:#fffaf0;border:3px double #b99a68;outline:1px solid #b99a68;outline-offset:3px}
.theme-art-midnight{background:linear-gradient(140deg,#101a16,#35483e);color:#d5b779}
.theme-art-midnight .theme-art-frame{background:#202e28;border-color:#bca36d;box-shadow:inset 0 0 0 3px #202e28,inset 0 0 0 4px #8c7953}
.theme-art-rose{background:linear-gradient(140deg,#f0dedd,#fbf5f1);color:#936c73}
.theme-art-rose .theme-art-frame{background:#fffafa;border-color:#c69a8f;border-radius:12px}
.theme-art-ocean{background:linear-gradient(140deg,#c9e0e2,#eef5f3);color:#477a88}
.theme-art-ocean .theme-art-frame{background:#fbffff;border-color:#8db5bb;border-radius:2px}
.theme-card-copy{display:flex;flex-direction:column;gap:2px;padding:9px 5px 5px}
.theme-card-copy strong{font:600 13px 'DM Sans',sans-serif}
.theme-card-copy small{font:11px 'DM Sans',sans-serif;color:var(--muted)}
.theme-select-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
@media(max-width:560px){.theme-gallery{grid-template-columns:1fr 1fr;gap:9px}.theme-art{height:112px}.theme-art-frame{width:88%}.theme-card-copy strong{font-size:12px}.theme-card-copy small{font-size:10px}}


/* =============================================================
   MEMORIAL EDITOR — structured admin editing experience
   Edit these selectors to customize the memorial editing screen.
   ============================================================= */
.memorial-editor{max-width:980px;margin:0 auto;padding:38px 24px 90px}
.editor-back{display:inline-block;font-size:13px;color:var(--green);margin-bottom:30px}
.editor-intro{text-align:center;margin:0 auto 34px;max-width:650px}
.editor-intro h1{font:500 clamp(34px,4vw,46px)/1.2 'Playfair Display',serif;margin:0 0 12px}
.editor-intro>p:last-child{color:var(--muted);margin:0}
.editor-form{display:grid;gap:22px}
.editor-section{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 30px #293b2d08;overflow:hidden}
.editor-section-head{display:flex;align-items:center;gap:16px;padding:24px 30px;background:var(--cream);border-bottom:1px solid var(--line)}
.editor-step{flex:0 0 42px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #d8d7c9;color:var(--green);font-weight:700;font-size:13px}
.editor-section-head h2{font:500 25px 'Playfair Display',serif;margin:0 0 3px}
.editor-section-head p{margin:0;color:var(--muted);font-size:12px}
.editor-section-body{padding:28px 30px;display:grid;gap:22px}
.editor-field{min-width:0;display:flex;flex-direction:column;gap:9px}
.editor-field>label{font-size:13px;font-weight:700;color:var(--ink)}
.editor-field input:not([type=checkbox]),.editor-field textarea,.editor-field select{width:100%;min-width:0;padding:12px 14px;border:1px solid #d9e0d9;border-radius:7px;background:white;color:var(--ink);font:14px 'DM Sans',sans-serif;line-height:1.5}
.editor-field input:focus-visible,.editor-field textarea:focus-visible,.editor-field select:focus-visible{outline:2px solid var(--green);outline-offset:1px}
.editor-field textarea{resize:vertical}
.editor-fields-two,.editor-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.editor-media-card{padding:22px;border:1px solid var(--line);border-radius:9px;background:#fcfcfa;align-content:start}
.editor-current-photo{width:150px;height:150px;object-fit:cover;border-radius:12px;display:block;margin:4px auto 8px}
.editor-photo-placeholder{height:150px;width:150px;border-radius:12px;background:#e8eee8;display:grid;place-items:center;color:var(--green);font-size:45px;margin:4px auto 8px}
.editor-media-note{color:var(--muted);font-size:13px;min-height:55px}
.editor-help{font-size:12px;color:var(--muted);margin:0;line-height:1.5}
.editor-check{display:flex;gap:9px;align-items:center;font-size:12px;color:var(--ink);cursor:pointer}
.required-mark{color:#a54c42}
.editor-option{display:flex;align-items:flex-start;gap:14px;padding:18px 20px;border:1px solid var(--line);border-radius:9px;cursor:pointer;background:#fcfcfa}
.editor-option input{margin-top:4px;accent-color:var(--green)}
.editor-option strong,.editor-option small{display:block}
.editor-option strong{font-size:14px}
.editor-option small{font-size:12px;color:var(--muted);margin-top:4px}
.editor-save-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:28px 30px;border:1px solid var(--line);border-radius:12px;background:var(--cream)}
.editor-save-footer strong{font:500 23px 'Playfair Display',serif}
.editor-save-footer p{margin:5px 0 0;color:var(--muted);font-size:12px}
.editor-save-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.editor-save-button{min-width:210px;padding:14px 22px}
@media(max-width:700px){.memorial-editor{padding:25px 14px 60px}.editor-section-head{padding:19px 18px}.editor-section-body{padding:20px 18px}.editor-fields-two,.editor-media-grid{grid-template-columns:1fr}.editor-save-footer{flex-direction:column;align-items:stretch;padding:22px 18px}.editor-save-actions{justify-content:stretch}.editor-save-actions .button{flex:1}.editor-section-head h2{font-size:22px}}


/* ============================================================
   MEMORIAL DESIGN STUDIO — DASHBOARD EDITOR (v1.0.5)
   ============================================================ */
.profile-editor-dashboard{
  margin:0 0 22px;background:#fff;border:1px solid var(--line);
  border-radius:12px;overflow:hidden;box-shadow:0 8px 28px #26392b08
}
.profile-editor-welcome{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:25px 28px;background:linear-gradient(120deg,#f5f7f3,#fff 70%);
  border-bottom:1px solid var(--line)
}
.profile-editor-kicker{font-size:9px;font-weight:700;letter-spacing:1.8px;color:var(--green)}
.profile-editor-welcome h2{font:500 25px 'Playfair Display',serif;margin:5px 0}
.profile-editor-welcome p{font-size:12px;color:var(--muted);margin:0;max-width:620px}
.profile-editor-icon{width:54px;height:54px;flex:0 0 54px;border-radius:16px;display:grid;place-items:center;background:#e9eee8;color:var(--green);font-size:26px}
.profile-editor-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.profile-editor-shortcuts button{
  display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;
  padding:17px 20px;background:#fff;border:0;border-right:1px solid var(--line);
  cursor:pointer;color:var(--ink);transition:background .18s
}
.profile-editor-shortcuts button:last-child{border-right:0}
.profile-editor-shortcuts button:hover{background:#f7f8f5}
.profile-editor-shortcuts button span{font-size:9px;letter-spacing:1px;color:#ad9361;font-weight:700}
.profile-editor-shortcuts button b{font-size:13px}
.profile-editor-shortcuts button small{font-size:10px;color:var(--muted)}
.design-form{gap:13px}
.design-panel.design-accordion{padding:0;overflow:hidden;border-radius:10px;scroll-margin-top:18px}
.design-panel-heading.accordion-toggle{
  align-items:center;margin:0;padding:19px 22px;cursor:pointer;
  background:linear-gradient(180deg,#fff,#fcfcfa);transition:background .18s
}
.design-panel-heading.accordion-toggle:hover{background:#f8f9f6}
.design-panel-heading.accordion-toggle:after{
  content:"⌄";margin-left:auto;color:var(--green);font-size:21px;line-height:1;
  transition:transform .18s
}
.design-panel.design-accordion.is-collapsed .design-panel-heading:after{transform:rotate(-90deg)}
.design-panel.design-accordion.is-collapsed .design-panel-heading{border-bottom:0}
.design-panel.design-accordion>*:not(.design-panel-heading){margin-left:22px;margin-right:22px}
.design-panel.design-accordion>*:last-child{margin-bottom:22px}
.design-panel.design-accordion.is-collapsed>*:not(.design-panel-heading){display:none}
.design-panel-heading.accordion-toggle:focus-visible{outline:3px solid #9db4a3;outline-offset:-3px}
.design-savebar{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:19px 22px;background:#f5f7f3;border:1px solid #dfe6de;border-radius:10px;
  margin-top:4px
}
.design-savebar>div:first-child{display:flex;flex-direction:column;gap:4px}
.design-savebar strong{font-size:13px;color:var(--ink)}
.design-savebar small{font-size:11px;color:var(--muted)}
.design-savebar .design-actions{justify-content:flex-end}
@media(max-width:760px){
 .profile-editor-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .profile-editor-shortcuts button:nth-child(2){border-right:0}
 .profile-editor-shortcuts button:nth-child(-n+2){border-bottom:1px solid var(--line)}
 .design-savebar{align-items:stretch;flex-direction:column}
 .design-savebar .design-actions{display:grid;grid-template-columns:1fr}
 .design-savebar .design-actions .button{width:100%}
}
@media(max-width:480px){
 .profile-editor-welcome{padding:20px}
 .profile-editor-icon{width:42px;height:42px;flex-basis:42px}
 .profile-editor-shortcuts button{padding:14px}
 .design-panel-heading.accordion-toggle{padding:17px}
 .design-panel.design-accordion>*:not(.design-panel-heading){margin-left:16px;margin-right:16px}
}


/* ============================================================
   PROFILE PAGE EDITOR — HOMEPAGE EDITOR VISUAL LANGUAGE (v1.0.6)
   Centered panels, consistent section rhythm and clear controls.
   ============================================================ */
.profile-home-editor{
  max-width:1120px;margin:35px auto 90px;padding:0 22px
}
.profile-home-editor>.back-link{max-width:none;margin:0 0 18px}
.profile-home-editor .design-title.home-editor-head{
  display:block;text-align:center;margin:18px 0 30px
}
.profile-home-editor .design-title.home-editor-head h1{
  font:500 42px 'Playfair Display',serif;margin:0 0 8px
}
.profile-home-editor .design-title.home-editor-head .muted{
  max-width:680px;margin:0 auto
}
.profile-home-editor .design-status{display:inline-flex;margin-top:14px}
.profile-home-editor .profile-editor-dashboard{
  border-radius:10px;margin-bottom:18px;box-shadow:none
}
.profile-home-editor .profile-editor-welcome{
  background:linear-gradient(120deg,#f5f7f3,#fff 70%);padding:22px 25px
}
.profile-home-editor .profile-editor-welcome h2{
  font:500 24px 'Playfair Display',serif
}
.profile-home-editor .profile-editor-shortcuts button{padding:15px 18px}
.profile-home-editor .design-layout{
  display:grid;grid-template-columns:minmax(0,1fr);gap:18px
}
.profile-home-editor .design-form{display:grid;gap:18px}
.profile-home-editor .design-panel.design-accordion.he-panel{
  padding:0;border-radius:10px;box-shadow:none
}
.profile-home-editor .design-panel-heading.accordion-toggle{
  padding:20px 24px;margin:0;border-bottom:1px solid var(--line)
}
.profile-home-editor .design-panel-heading h2{
  font:500 24px 'Playfair Display',serif
}
.profile-home-editor .design-panel-heading p{
  font-size:12px;color:var(--muted)
}
.profile-home-editor .design-panel.design-accordion>*:not(.design-panel-heading){
  margin-left:24px;margin-right:24px
}
.profile-home-editor .design-panel.design-accordion>*:last-child{margin-bottom:24px}
.profile-home-editor .theme-gallery{gap:14px}
.profile-home-editor .theme-card{border-radius:8px}
.profile-home-editor .color-control{min-height:58px;border-radius:6px}
.profile-home-editor .design-panel select,
.profile-home-editor .design-panel input:not([type=range]):not([type=color]):not([type=radio]){
  border-radius:5px
}
.profile-home-editor .design-preview-wrap{
  position:static;min-width:0;padding:22px;border-radius:10px
}
.profile-home-editor .preview-sticky{position:static}
.profile-home-editor .design-preview{max-width:760px;margin:0 auto}
.profile-home-editor .design-savebar{
  position:sticky;bottom:12px;z-index:5;background:#fff;
  box-shadow:0 8px 25px #0001;border-color:var(--line);
  justify-content:center;flex-wrap:wrap
}
.profile-home-editor .design-savebar>div:first-child{text-align:center}
.profile-home-editor .design-savebar .design-actions{justify-content:center}
@media(max-width:760px){
 .profile-home-editor{padding:0 16px}
 .profile-home-editor .design-title.home-editor-head h1{font-size:34px}
 .profile-home-editor .profile-editor-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .profile-home-editor .design-panel-heading.accordion-toggle{padding:17px}
 .profile-home-editor .design-panel.design-accordion>*:not(.design-panel-heading){margin-left:17px;margin-right:17px}
 .profile-home-editor .design-savebar{flex-direction:column}
}

/* ============================================================
   v1.0.7 — MEMORIAL PROFILE EDITOR REPAIR
   Match the Homepage Editor's centered, card-based workspace.
   ============================================================ */
.profile-home-editor{max-width:1120px!important;margin:34px auto 90px!important;padding:0 22px!important}
.profile-home-editor>.back-link{display:inline-block;margin:0 0 18px!important}
.profile-home-editor .design-title.home-editor-head{display:block!important;text-align:center!important;margin:18px 0 30px!important}
.profile-home-editor .design-title.home-editor-head h1{font:500 42px/1.2 'Playfair Display',Georgia,serif!important;margin:0 0 9px!important}
.profile-home-editor .design-title.home-editor-head .muted{max-width:690px;margin:0 auto!important}
.profile-home-editor .design-status{display:inline-flex;margin-top:13px}
.profile-home-editor .profile-editor-dashboard{margin-bottom:20px;border-radius:10px;box-shadow:none}
.profile-home-editor .profile-editor-welcome{padding:22px 25px;background:linear-gradient(120deg,#f5f7f3,#fff 70%)}
.profile-home-editor .profile-editor-shortcuts button{min-width:0;padding:16px 18px}
.profile-home-editor .design-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
.profile-home-editor .design-form{display:grid!important;gap:18px!important;min-width:0}
.profile-home-editor .design-panel.design-accordion.he-panel{padding:0!important;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 5px 22px #26392b08}
.profile-home-editor .design-panel-heading.accordion-toggle{display:flex;align-items:center;margin:0;padding:21px 25px;border-bottom:1px solid var(--line);background:#fff;cursor:pointer}
.profile-home-editor .design-panel-heading h2{font:500 24px/1.25 'Playfair Display',Georgia,serif;margin:0 0 4px}
.profile-home-editor .design-panel-heading p{font-size:12px;color:var(--muted);margin:0}
.profile-home-editor .design-panel.design-accordion>*:not(.design-panel-heading){margin-left:25px!important;margin-right:25px!important}
.profile-home-editor .design-panel.design-accordion>*:last-child{margin-bottom:25px!important}
.profile-home-editor .design-panel.design-accordion.is-collapsed>*:not(.design-panel-heading){display:none!important}
.profile-home-editor .theme-gallery{grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin:18px 25px 12px!important}
.profile-home-editor .theme-card{height:100%;padding:7px;border:1px solid var(--line);border-radius:8px;background:#fff;text-align:left;white-space:normal;font:inherit;color:var(--ink)}
.profile-home-editor .theme-card.is-selected{border:2px solid var(--green);padding:6px;box-shadow:0 0 0 3px #536d5f18}
.profile-home-editor .theme-art{height:125px}
.profile-home-editor .color-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.profile-home-editor .color-control{min-width:0;min-height:62px;padding:11px;display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:6px 10px;font-size:12px}
.profile-home-editor .color-control span{font-weight:600;align-self:end}
.profile-home-editor .color-control input{grid-column:2;grid-row:1/3;width:42px;height:36px}
.profile-home-editor .color-control code{grid-column:1;grid-row:2;margin:0;font-size:11px}
.profile-home-editor .choice-row{margin-top:15px}
.profile-home-editor .range-grid{gap:22px}
.profile-home-editor .design-panel label{font-size:12px;font-weight:600;color:var(--ink)}
.profile-home-editor .design-panel select{width:100%;max-width:100%;padding:12px 13px;border:1px solid #dfe3dc;border-radius:6px;background:#fff;color:var(--ink);font:13px 'DM Sans',sans-serif}
.profile-home-editor .design-panel input[type=range]{width:100%;accent-color:var(--green)}
.profile-home-editor .design-preview-wrap{position:static;min-width:0;margin:0!important;padding:24px!important;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 5px 22px #26392b08}
.profile-home-editor .preview-sticky{position:static}
.profile-home-editor .design-preview{max-width:760px;margin:12px auto 0}
.profile-home-editor .design-savebar{position:sticky;bottom:12px;z-index:10;display:flex;justify-content:center;flex-wrap:wrap;gap:18px;margin-top:0;padding:17px 22px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 8px 25px #00000012}
.profile-home-editor .design-savebar>div:first-child{text-align:center}
.profile-home-editor .design-savebar .design-actions{justify-content:center}
.profile-home-editor .field-help{font-size:12px;line-height:1.55;color:var(--muted)}
.profile-home-editor .design-panel input:not([type=range]):not([type=color]):not([type=radio]),.profile-home-editor .design-panel select{box-sizing:border-box}
@media(max-width:850px){.profile-home-editor .theme-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-home-editor .color-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.profile-home-editor{padding:0 14px!important}.profile-home-editor .design-title.home-editor-head h1{font-size:34px!important}.profile-home-editor .profile-editor-welcome{padding:19px}.profile-home-editor .profile-editor-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-home-editor .theme-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-left:16px!important;margin-right:16px!important}.profile-home-editor .theme-art{height:112px}.profile-home-editor .color-grid{grid-template-columns:1fr}.profile-home-editor .design-panel-heading.accordion-toggle{padding:17px}.profile-home-editor .design-panel.design-accordion>*:not(.design-panel-heading){margin-left:16px!important;margin-right:16px!important}.profile-home-editor .design-savebar{flex-direction:column;align-items:stretch}.profile-home-editor .design-savebar .design-actions{display:grid;grid-template-columns:1fr}.profile-home-editor .design-savebar .design-actions .button{width:100%}}


/* v1.0.8 — Christian memorial artwork and theme illustrations */
.theme-art{background-size:cover!important;background-position:center!important;position:relative}
.theme-art:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(12,24,20,.05),rgba(12,24,20,.24));pointer-events:none}
.theme-art-frame{position:relative;z-index:1;backdrop-filter:blur(1px);background:rgba(255,255,255,.78)!important;border-color:rgba(255,255,255,.8)!important;color:#33443b!important}
.theme-art-garden{background-image:url("memorial-themes/garden.svg")!important}
.theme-art-ivory{background-image:url("memorial-themes/ivory.svg")!important}
.theme-art-midnight{background-image:url("memorial-themes/midnight.svg")!important}
.theme-art-midnight .theme-art-frame{background:rgba(20,31,38,.76)!important;color:#f5e8c8!important;border-color:#d5b779!important}
.theme-art-rose{background-image:url("memorial-themes/rose.svg")!important}
.theme-art-ocean{background-image:url("memorial-themes/ocean.svg")!important}
.memorial-profile{position:relative;overflow:hidden}
.memorial-profile:before{content:"";position:absolute;z-index:0;inset:0 0 auto;height:270px;background-position:center top;background-repeat:no-repeat;background-size:cover;opacity:.98;pointer-events:none}
.memorial-profile>*{position:relative;z-index:1}
.memorial-profile .profile-photo{margin-top:118px;border:5px solid var(--profile-card-bg);box-shadow:0 5px 24px #17251f24}
.memorial-theme-garden:before{background-image:linear-gradient(180deg,rgba(247,246,241,.04),var(--profile-card-bg) 98%),url("assets/memorial-themes/garden.svg")}
.memorial-theme-ivory:before{background-image:linear-gradient(180deg,rgba(245,240,231,.02),var(--profile-card-bg) 98%),url("assets/memorial-themes/ivory.svg")}
.memorial-theme-midnight:before{background-image:linear-gradient(180deg,rgba(24,35,31,.04),var(--profile-card-bg) 98%),url("assets/memorial-themes/midnight.svg")}
.memorial-theme-rose:before{background-image:linear-gradient(180deg,rgba(248,240,239,.02),var(--profile-card-bg) 98%),url("assets/memorial-themes/rose.svg")}
.memorial-theme-ocean:before{background-image:linear-gradient(180deg,rgba(238,245,245,.02),var(--profile-card-bg) 98%),url("assets/memorial-themes/ocean.svg")}
.design-preview{position:relative;overflow:hidden}
.design-preview:before{content:"";position:absolute;inset:0 0 auto;height:155px;background-position:center;background-size:cover;opacity:.9;pointer-events:none}
.design-preview>*{position:relative;z-index:1}
.design-preview .preview-photo{margin-top:78px;border:4px solid var(--pv-card);box-shadow:0 4px 18px #0002}
.design-preview.memorial-theme-garden:before{background-image:linear-gradient(180deg,transparent,var(--pv-card)),url("memorial-themes/garden.svg")}
.design-preview.memorial-theme-ivory:before{background-image:linear-gradient(180deg,transparent,var(--pv-card)),url("memorial-themes/ivory.svg")}
.design-preview.memorial-theme-midnight:before{background-image:linear-gradient(180deg,transparent,var(--pv-card)),url("memorial-themes/midnight.svg")}
.design-preview.memorial-theme-rose:before{background-image:linear-gradient(180deg,transparent,var(--pv-card)),url("memorial-themes/rose.svg")}
.design-preview.memorial-theme-ocean:before{background-image:linear-gradient(180deg,transparent,var(--pv-card)),url("memorial-themes/ocean.svg")}
@media(max-width:600px){.memorial-profile:before{height:205px}.memorial-profile .profile-photo{margin-top:82px}.design-preview:before{height:125px}.design-preview .preview-photo{margin-top:58px}}


/* v1.0.9 — Heavenly Garden replaces Ocean Mist in Memorial Page Design Studio.
   The legacy ocean theme key is retained so existing saved profiles upgrade safely. */
.theme-art-ocean{background-image:url("memorial-themes/ocean.svg")!important;background-position:center 48%!important}
.theme-art-ocean .theme-art-frame{background:rgba(255,250,235,.72)!important;border-color:rgba(255,244,210,.9)!important;color:#294b36!important;text-shadow:0 1px 2px #fff}
.memorial-theme-ocean:before{background-image:linear-gradient(180deg,rgba(245,241,229,.02),var(--profile-card-bg) 98%),url("assets/memorial-themes/ocean.svg")}
.design-preview.memorial-theme-ocean:before{background-image:linear-gradient(180deg,transparent,var(--pv-card)),url("memorial-themes/ocean.svg")}


/* ============================================================
   v1.0.10 — ADD / EDIT MEMORIAL FORM RESTORE
   Scoped, cache-busted styling for a polished admin workflow.
   ============================================================ */
.memorial-edit-page{background:#f5f7f4;color:#27332f}
.memorial-edit-page .admin-header{position:relative;z-index:2}
.memorial-edit-page .memorial-editor{
  box-sizing:border-box;width:min(100% - 40px,1080px);max-width:1080px;
  margin:0 auto;padding:34px 0 100px
}
.memorial-edit-page .editor-back{
  display:inline-flex;align-items:center;gap:8px;margin:0 0 18px;
  color:#456653;font-size:13px;font-weight:600;text-decoration:none
}
.memorial-edit-page .editor-back:hover{text-decoration:underline}
.memorial-edit-page .editor-intro{
  max-width:760px;margin:0 auto 28px;padding:30px 34px;text-align:center;
  background:linear-gradient(135deg,#fff,#f3f6f1);
  border:1px solid #e1e7df;border-radius:14px;
  box-shadow:0 8px 26px rgba(35,55,41,.05)
}
.memorial-edit-page .editor-intro .eyebrow{
  margin:0 0 9px;color:#ad8950;font-size:10px;font-weight:700;
  letter-spacing:2px
}
.memorial-edit-page .editor-intro h1{
  margin:0 0 10px;color:#253b31;
  font:500 clamp(30px,4vw,42px)/1.15 'Playfair Display',Georgia,serif
}
.memorial-edit-page .editor-intro>p:last-child{
  max-width:620px;margin:0 auto;color:#77817b;font-size:14px;line-height:1.65
}
.memorial-edit-page .error{
  max-width:760px;margin:0 auto 18px;padding:13px 16px;
  border:1px solid #e7c6c0;border-radius:8px;background:#fff5f3;color:#8b382e
}
.memorial-edit-page .editor-form{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.memorial-edit-page .editor-section{
  min-width:0;background:#fff;border:1px solid #e0e6df;border-radius:12px;
  box-shadow:0 5px 22px rgba(35,55,41,.045);overflow:hidden
}
.memorial-edit-page .editor-section-head{
  display:flex;align-items:center;gap:15px;padding:20px 26px;
  background:linear-gradient(100deg,#f4f7f2,#fff 75%);
  border-bottom:1px solid #e8ece6
}
.memorial-edit-page .editor-step{
  flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;
  border:1px solid #d8e1d6;border-radius:12px;background:#eaf0e8;
  color:#496b55;font-size:12px;font-weight:800
}
.memorial-edit-page .editor-section-head h2{
  margin:0 0 4px;color:#293c32;
  font:500 23px/1.25 'Playfair Display',Georgia,serif
}
.memorial-edit-page .editor-section-head p{
  margin:0;color:#7b857e;font-size:12px;line-height:1.5
}
.memorial-edit-page .editor-section-body{
  box-sizing:border-box;width:100%;padding:25px 27px;
  display:grid;grid-template-columns:minmax(0,1fr);gap:20px
}
.memorial-edit-page .editor-field{
  display:flex;flex-direction:column;gap:8px;min-width:0
}
.memorial-edit-page .editor-field>label{
  color:#34483c;font-size:13px;font-weight:700
}
.memorial-edit-page .editor-field input:not([type=checkbox]),
.memorial-edit-page .editor-field textarea,
.memorial-edit-page .editor-field select{
  box-sizing:border-box;display:block;width:100%;max-width:100%;min-width:0;
  min-height:44px;padding:11px 13px;border:1px solid #d8e0d8;border-radius:7px;
  background:#fff;color:#27352e;font:14px/1.5 'DM Sans',Arial,sans-serif;
  box-shadow:inset 0 1px 2px rgba(30,50,35,.025)
}
.memorial-edit-page .editor-field input:focus,
.memorial-edit-page .editor-field textarea:focus,
.memorial-edit-page .editor-field select:focus{
  outline:2px solid rgba(79,112,87,.22);border-color:#78927c
}
.memorial-edit-page .editor-fields-two{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px
}
.memorial-edit-page .editor-media-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px
}
.memorial-edit-page .editor-media-card{
  box-sizing:border-box;min-width:0;padding:20px;border:1px solid #e2e8e0;
  border-radius:9px;background:#fbfcfa;align-content:start
}
.memorial-edit-page .editor-media-card input[type=file]{
  box-sizing:border-box;width:100%;max-width:100%;padding:10px;
  border:1px dashed #cbd7ca;border-radius:7px;background:#fff;
  color:#53645a;font:12px 'DM Sans',Arial,sans-serif
}
.memorial-edit-page .editor-current-photo,
.memorial-edit-page .editor-photo-placeholder{
  width:150px;height:150px;margin:5px auto 12px;object-fit:cover;
  border-radius:12px;border:1px solid #dce5db
}
.memorial-edit-page .editor-photo-placeholder{
  display:grid;place-items:center;background:linear-gradient(145deg,#edf3eb,#dce8dc);
  color:#63806a;font-size:42px
}
.memorial-edit-page .editor-help{
  margin:0;color:#7c877f;font-size:12px;line-height:1.55
}
.memorial-edit-page .editor-media-note{
  min-height:42px;margin:4px 0;color:#77837a;font-size:13px;line-height:1.5
}
.memorial-edit-page .current-song{
  margin:4px 0 8px;padding:12px;border-radius:7px;background:#f0f5ef;
  font-size:13px;line-height:1.5
}
.memorial-edit-page .current-song a{color:#42694f;font-weight:700}
.memorial-edit-page .editor-check{
  display:flex;align-items:center;gap:9px;color:#6e7971;font-size:12px
}
.memorial-edit-page .editor-check input,
.memorial-edit-page .editor-option input{accent-color:#496d54}
.memorial-edit-page .editor-option{
  display:flex;align-items:flex-start;gap:13px;padding:17px 18px;
  border:1px solid #dfe7de;border-radius:9px;background:#fafcf9;cursor:pointer
}
.memorial-edit-page .editor-option strong{display:block;color:#34483b;font-size:13px}
.memorial-edit-page .editor-option small{
  display:block;margin-top:4px;color:#7a857d;font-size:12px;line-height:1.5
}
.memorial-edit-page .editor-save-footer{
  position:sticky;bottom:12px;z-index:5;display:flex;align-items:center;
  justify-content:space-between;gap:20px;padding:19px 23px;
  border:1px solid #dfe6dd;border-radius:12px;background:rgba(255,255,255,.97);
  box-shadow:0 8px 28px rgba(25,43,30,.12);backdrop-filter:blur(8px)
}
.memorial-edit-page .editor-save-footer strong{
  color:#293d32;font:500 21px 'Playfair Display',Georgia,serif
}
.memorial-edit-page .editor-save-footer p{
  margin:4px 0 0;color:#7b857e;font-size:12px;line-height:1.5
}
.memorial-edit-page .editor-save-actions{
  display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap
}
.memorial-edit-page .editor-save-actions .button{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  padding:11px 19px;border-radius:7px;font-size:13px;font-weight:700;text-decoration:none
}
.memorial-edit-page .editor-save-button{
  min-width:210px;border:1px solid #385b43;background:#42694e;color:#fff;
  cursor:pointer
}
.memorial-edit-page .editor-save-button:hover{background:#34583f}
.memorial-edit-page .editor-save-actions .button-outline{
  border:1px solid #d5ded4;background:#fff;color:#52665a
}
@media(max-width:760px){
  .memorial-edit-page .memorial-editor{width:calc(100% - 28px);padding:22px 0 70px}
  .memorial-edit-page .editor-intro{padding:23px 18px;margin-bottom:20px}
  .memorial-edit-page .editor-section-head{padding:17px 17px;gap:12px}
  .memorial-edit-page .editor-section-head h2{font-size:20px}
  .memorial-edit-page .editor-section-body{padding:19px 17px;gap:17px}
  .memorial-edit-page .editor-fields-two,
  .memorial-edit-page .editor-media-grid{grid-template-columns:minmax(0,1fr)}
  .memorial-edit-page .editor-save-footer{position:static;flex-direction:column;align-items:stretch;padding:18px}
  .memorial-edit-page .editor-save-actions{display:grid;grid-template-columns:1fr}
  .memorial-edit-page .editor-save-actions .button{width:100%;box-sizing:border-box}
}

/* v1.1.3: discreet administrator access in the page footer */
.footer-admin-link{display:inline-block;margin-left:12px;color:inherit!important;opacity:.42;font-size:10px;text-decoration:none;letter-spacing:.2px;transition:opacity .2s ease}
.footer-admin-link:hover,.footer-admin-link:focus{opacity:.9;text-decoration:underline}

/* v1.1.4 memorial social sharing and QR panel */
.memorial-share-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 24px}
.share-button{display:inline-flex;align-items:center;justify-content:center;padding:10px 15px;border:1px solid #d9dfd8;border-radius:7px;background:#fff;color:#43584a;text-decoration:none;font:600 12px Arial,sans-serif;cursor:pointer}
.share-button:hover{border-color:var(--profile-accent,#c5a66a);background:#faf8f2}
.memorial-qr{display:flex;align-items:center;gap:22px;padding:18px;border:1px solid #e5e8e1;border-radius:10px;background:rgba(255,255,255,.45)}
.memorial-qr img{display:block;width:160px;height:160px;object-fit:contain;background:#fff;padding:8px;border-radius:7px}
.memorial-qr p{margin:6px 0 12px}
@media(max-width:560px){.memorial-qr{flex-direction:column;align-items:flex-start}.memorial-qr img{width:140px;height:140px}}

/* v1.1.5 — polished individual memorial sharing panel */
.memorial-share{padding:clamp(20px,3vw,32px);border:1px solid color-mix(in srgb,var(--profile-muted,#89928a) 22%,transparent);border-radius:14px}
.share-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:22px}
.share-heading-mark{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:color-mix(in srgb,var(--profile-accent,#c5a66a) 16%,var(--profile-page-bg,#f7f6f1));color:var(--profile-accent,#b89962);font:24px Georgia,serif}
.share-heading h2{margin:0 0 6px}
.share-heading .muted{margin:0;line-height:1.6}
.share-eyebrow{margin:0 0 5px;color:var(--profile-accent,#b89962);font-size:9px;letter-spacing:2px;font-weight:700}
.memorial-share-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:20px 0 24px}
.share-action{display:flex;align-items:center;gap:12px;min-width:0;padding:13px 14px;border:1px solid color-mix(in srgb,var(--profile-muted,#89928a) 24%,transparent);border-radius:10px;background:var(--profile-card-bg,#fff);color:var(--profile-text,#33443a);text-decoration:none;text-align:left;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;font:inherit}
.share-action:hover{transform:translateY(-2px);border-color:var(--profile-accent,#c5a66a);box-shadow:0 7px 18px rgba(30,45,35,.08)}
.share-action:focus-visible{outline:3px solid var(--profile-accent,#c5a66a);outline-offset:3px}
.share-icon{display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;border-radius:9px;background:color-mix(in srgb,var(--profile-accent,#c5a66a) 13%,var(--profile-page-bg,#f7f6f1));color:var(--profile-primary,#506a58)}
.share-icon svg{width:20px;height:20px;fill:currentColor}
.share-action>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.share-action strong{font-size:12px;font-weight:700}
.share-action small{font-size:10px;color:var(--profile-muted,#7a847c)}
.share-open{font-size:15px;color:var(--profile-accent,#b89962)}
.share-facebook .share-icon{background:#eaf0fb;color:#1877f2}
.share-x .share-icon{background:#eeeeee;color:#111}
.share-email .share-icon{background:#f5eee4;color:#9a7442}
.share-copy .share-icon{background:#eaf1eb;color:#496d52}
.memorial-qr{display:flex;align-items:center;gap:22px;padding:19px;border:1px solid color-mix(in srgb,var(--profile-muted,#89928a) 20%,transparent);border-radius:11px;background:color-mix(in srgb,var(--profile-page-bg,#f7f6f1) 55%,var(--profile-card-bg,#fff))}
.memorial-qr-image{flex:0 0 auto;padding:7px;background:#fff;border:1px solid #e8e8e2;border-radius:9px}
.memorial-qr img{display:block;width:142px;height:142px;object-fit:contain}
.memorial-qr-copy{min-width:0}
.memorial-qr-copy>strong{font-size:14px;color:var(--profile-text,#33443a)}
.memorial-qr-copy p{margin:7px 0 12px;line-height:1.6;font-size:12px}
.share-qr-download{display:inline-flex;gap:7px;align-items:center;color:var(--profile-primary,#506a58);font-size:12px;font-weight:700;text-decoration:none}
.share-qr-download:hover{text-decoration:underline}
@media(max-width:560px){.memorial-share-actions{grid-template-columns:1fr}.memorial-qr{align-items:flex-start;gap:14px;padding:13px}.memorial-qr img{width:112px;height:112px}.share-heading-mark{flex-basis:36px;width:36px;height:36px}}

/* v1.1.6 — compact, familiar inline share controls */
.memorial-share .share-heading{text-align:center;display:block;margin:0 0 18px}
.memorial-share .share-heading .share-eyebrow{margin-bottom:7px}
.memorial-share .share-heading h2{margin:0 0 7px}
.memorial-share .share-heading .muted{margin:0}
.memorial-share .memorial-share-actions{
 display:flex!important;flex-direction:row;align-items:center;justify-content:center;
 flex-wrap:nowrap;gap:8px;margin:20px auto 24px;padding:2px 1px;
 max-width:100%;overflow-x:auto;scrollbar-width:thin
}
.memorial-share .memorial-share-btn{
 appearance:none;-webkit-appearance:none;display:inline-flex!important;flex:0 0 auto;
 flex-direction:row;align-items:center;justify-content:center;gap:7px;
 min-height:39px;padding:8px 13px;margin:0;border:1px solid #dedfd9;border-radius:7px;
 background:#fff;color:#405347;text-decoration:none;white-space:nowrap;
 font:600 12px/1.2 Arial,sans-serif;cursor:pointer;box-shadow:none;
 transition:background .15s ease,border-color .15s ease,transform .15s ease
}
.memorial-share .memorial-share-btn:hover{transform:translateY(-1px);background:#f8f7f2;border-color:var(--profile-accent,#c5a66a);box-shadow:none}
.memorial-share .memorial-share-btn svg{display:block!important;flex:0 0 16px;width:16px!important;height:16px!important;max-width:16px;max-height:16px;min-width:16px;min-height:16px;fill:currentColor}
.memorial-share .facebook-share svg{color:#1877f2}
.memorial-share .x-share svg{color:#111}
.memorial-share .email-share svg{color:#8b7655}
.memorial-share .copy-share svg{color:#4f7659}
.memorial-share .native-share svg{color:#58715f}
.memorial-share .memorial-qr{margin-top:4px}
@media(max-width:520px){
 .memorial-share .memorial-share-actions{justify-content:flex-start;padding-bottom:7px}
 .memorial-share .memorial-share-btn{min-height:37px;padding:8px 10px;font-size:11px}
}

/* v1.1.7 — desktop-sized social buttons and centered QR presentation */
#share-memorial{width:100%;max-width:820px;margin-left:auto;margin-right:auto;box-sizing:border-box}
#share-memorial .memorial-share-actions{
 display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
 justify-content:center!important;gap:9px!important;width:100%;max-width:100%;
 margin:20px auto 24px!important;padding:0!important;overflow:visible!important
}
#share-memorial .memorial-share-btn{
 display:inline-flex!important;flex:0 1 auto!important;flex-direction:row!important;
 align-items:center!important;justify-content:center!important;gap:7px!important;
 width:auto!important;min-width:0!important;min-height:36px!important;height:36px!important;
 padding:0 13px!important;margin:0!important;border:1px solid transparent!important;
 border-radius:7px!important;box-shadow:none!important;
 font:600 12px/1 Arial,sans-serif!important;white-space:nowrap!important;
 text-decoration:none!important;letter-spacing:0!important
}
#share-memorial .memorial-share-btn>svg{
 display:block!important;position:static!important;flex:0 0 15px!important;
 width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;
 max-width:15px!important;max-height:15px!important;margin:0!important;padding:0!important;
 transform:none!important;overflow:visible!important
}
#share-memorial .native-share{background:#eef2ed!important;color:#405b49!important;border-color:#dce5dc!important}
#share-memorial .facebook-share{background:#1877f2!important;color:#fff!important}
#share-memorial .facebook-share svg{color:#fff!important;fill:currentColor!important}
#share-memorial .x-share{background:#171717!important;color:#fff!important}
#share-memorial .x-share svg{color:#fff!important;fill:currentColor!important}
#share-memorial .email-share{background:#f2eee7!important;color:#755c3d!important;border-color:#e8dfd0!important}
#share-memorial .copy-share{background:#52735b!important;color:#fff!important;border-color:#52735b!important}
#share-memorial .copy-share svg{color:#fff!important;fill:currentColor!important}
#share-memorial .memorial-qr{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;gap:10px!important;text-align:center!important;
 width:100%!important;box-sizing:border-box!important;margin:8px auto 0!important;
 padding:18px 14px!important
}
#share-memorial .memorial-qr-image{margin:0 auto!important}
#share-memorial .memorial-qr img{
 display:block!important;width:150px!important;height:150px!important;
 max-width:150px!important;max-height:150px!important;margin:0 auto!important;
 padding:6px!important;object-fit:contain!important
}
#share-memorial .memorial-qr-copy{width:100%;max-width:440px;margin:0 auto!important}
#share-memorial .memorial-qr-copy p{margin:6px auto 10px!important}
#share-memorial .share-qr-download{justify-content:center}
@media(max-width:640px){
 #share-memorial .memorial-share-actions{flex-wrap:wrap!important;gap:7px!important}
 #share-memorial .memorial-share-btn{min-height:34px!important;height:34px!important;padding:0 10px!important;font-size:11px!important}
}

/* v1.1.8 Memorial Photo Studio — responsive control layout and preview */
.photo-studio-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);gap:24px;align-items:start}
.photo-studio-controls{display:grid;gap:12px;min-width:0}
.photo-studio-controls h3{margin:17px 0 0;padding-bottom:8px;border-bottom:1px solid #e9e6de;color:#405347;font:600 15px Georgia,serif}
.photo-studio-controls h3:first-child{margin-top:0}
.photo-studio-controls select,.photo-studio-controls input[type=color]{max-width:100%}
.photo-studio-controls .inline-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.photo-studio-controls .inline-fields label{display:grid;gap:7px}
.photo-studio-controls .inline-fields input[type=color]{width:100%;height:38px}
.photo-studio-controls output{float:right;color:#8a744e;font-size:12px;font-weight:700}
.photo-studio-controls .check-setting{display:flex;align-items:center;gap:9px;font-weight:600}
.photo-studio-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px}
.photo-studio-preview{position:sticky;top:20px;border:1px solid #e8e4da;border-radius:12px;background:#faf9f6;padding:16px;min-width:0}
.photo-preview-top{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:14px;color:#405347;font-size:13px}
.photo-preview-top span{font-size:10px;color:#8b9189;text-transform:uppercase;letter-spacing:1px}
.photo-preview-stage{display:flex;justify-content:center;align-items:center;min-height:360px;padding:20px 10px;background:linear-gradient(45deg,#f0eee8 25%,transparent 25%),linear-gradient(-45deg,#f0eee8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f0eee8 75%),linear-gradient(-45deg,transparent 75%,#f0eee8 75%);background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0}
.photo-preview-frame{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;max-width:100%;background:#f3f0e8;transition:all .15s ease}
.photo-preview-image{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at 50% 30%,#f4eee0 0,#b9aa91 48%,#58695e 100%);color:#fff;font:54px Georgia,serif}
.photo-preview-image:before{content:'';position:absolute;bottom:0;width:62%;height:58%;border-radius:48% 48% 10% 10%;background:linear-gradient(#6f746c,#333e39);opacity:.75}
.photo-preview-image:after{content:'';position:absolute;top:12%;width:32%;height:35%;border-radius:50%;background:linear-gradient(135deg,#e5cdb3,#87705e);box-shadow:0 0 0 7px #ffffff22}
.photo-preview-image span{position:relative;z-index:1;text-shadow:0 2px 8px #0008}
.photo-preview-overlay{position:absolute;inset:0;pointer-events:none;z-index:2}
.photo-preview-frame.preview-vignette:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:3;background:radial-gradient(ellipse,transparent 45%,#0006 100%);border-radius:inherit}
.photo-preview-modes{display:flex;justify-content:center;gap:8px;margin-top:12px}
.photo-preview-note{font-size:11px;color:#7d867f;line-height:1.6}
.photo-studio-preview.is-mobile-preview{max-width:360px;margin:0 auto}
@media(max-width:900px){.photo-studio-grid{grid-template-columns:1fr}.photo-studio-preview{position:relative;top:auto;order:-1}}
@media(max-width:560px){.photo-studio-controls .inline-fields{grid-template-columns:1fr}.photo-preview-stage{min-height:300px}}

@media print { body{background:#fff!important}.back-link,.memorial-share,.candle-feature,.guestbook,.footer,.button{display:none!important}.memorial-profile{box-shadow:none!important;max-width:100%!important} }

/* v1.2.4 — Expanded homepage hero typography and live editor preview */
.he-subheading{font:600 16px 'DM Sans',sans-serif;margin:24px 0 12px;color:#34483c}
.he-inline-check{display:flex!important;align-items:center;gap:9px;font-weight:600!important}
.he-hero-preview-wrap{margin:22px 0 8px}
.he-hero-preview{min-height:245px;border-radius:10px;background-size:cover;background-position:center;display:flex;align-items:center;padding:28px;overflow:hidden;color:#fff}
.he-hero-preview-content{width:100%;margin:0 auto}
.he-hero-eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;margin-bottom:10px;color:#f4e3bc}
.he-hero-title{line-height:1.08;margin:0 0 12px;overflow-wrap:anywhere}
.he-hero-copy{line-height:1.55;margin:0 0 18px}
.he-hero-preview-button{display:inline-block;border-radius:4px;padding:9px 15px;background:#fff;color:#34483c;font-size:11px;font-weight:700}
.he-color span{min-width:72px}
@media(max-width:760px){.he-hero-preview{min-height:210px;padding:18px}.he-hero-title{white-space:normal!important;font-size:var(--hero-mobile-size,44px)!important}.he-hero-copy{font-size:var(--hero-mobile-copy-size,16px)!important}}

/* ============================================================
   v1.2.5 — SHARED MEMORIAL GALLERY CARD SYSTEM
   Memorial Gallery is the reference design.
   Featured Memorials and Recently Viewed use the same
   .photo-album-grid wrapper and therefore inherit the exact
   same card dimensions, image crop, spacing, and breakpoints.
   ============================================================ */

.featured-album {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-items: stretch;
  gap: 22px;
}

.featured-album > .album-card {
  display: block !important;
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto !important;
}

/* All three sections share the same portrait image window. */
.photo-album-grid .album-photo {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 5 !important;
  position: relative;
  overflow: hidden;
}

.photo-album-grid .album-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

@media (max-width: 900px) {
  .featured-album {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .featured-album {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}


/* ============================================================
   v1.2.5 — HOMEPAGE PHOTO CARD DESIGN CONTROLS
   NOTE: Driven by independent Featured, Gallery, and Recently Viewed
   settings saved in data/homepage.json. Edit these rules to adjust how
   those homepage photo cards render; original memorial uploads are untouched.
   ============================================================ */

.home-photo-featured,.home-photo-gallery,.home-photo-recent .home-photo-grid{grid-template-columns:repeat(var(--hm-cols,4),minmax(0,1fr))}
.home-photo-featured .album-card,.home-photo-gallery .album-card,.home-photo-recent .album-card{border-radius:var(--hm-radius,7px);border:var(--hm-border-width,1px) var(--hm-frame,solid) var(--hm-border,#e9e6dc);background:var(--hm-card-bg,#e8e8df);box-shadow:var(--hm-shadow,0 5px 18px #293b2d0a);overflow:hidden}
.home-photo-featured .album-photo,.home-photo-gallery .album-photo,.home-photo-recent .album-photo{height:auto!important;min-height:var(--hm-height,245px)!important;aspect-ratio:var(--hm-ratio,4 / 5)!important;background:var(--hm-card-bg,#e8e8df);overflow:hidden}
.home-photo-featured .album-photo img,.home-photo-gallery .album-photo img,.home-photo-recent .album-photo img{width:100%;height:100%;object-fit:var(--hm-fit,cover);object-position:var(--hm-x,50%) var(--hm-y,35%);filter:brightness(var(--hm-brightness,100%)) contrast(var(--hm-contrast,100%)) saturate(var(--hm-saturation,100%)) sepia(var(--hm-warmth,0)) blur(var(--hm-blur,0px))}
.home-photo-featured .photo-overlay,.home-photo-gallery .photo-overlay,.home-photo-recent .photo-overlay{background:linear-gradient(var(--hm-overlay-angle,to top),color-mix(in srgb,var(--hm-overlay-color,#17251d) calc(var(--hm-overlay-opacity,.55)*100%),transparent),transparent 75%)}
.home-photo-featured .album-photo:after,.home-photo-gallery .album-photo:after,.home-photo-recent .album-photo:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 calc(36px * var(--hm-vignette,0)) rgba(0,0,0,.65)}
.home-photo-featured [data-hm-overlay='none'] .photo-overlay,.home-photo-gallery [data-hm-overlay='none'] .photo-overlay,.home-photo-recent [data-hm-overlay='none'] .photo-overlay{display:none}
.home-photo-featured .album-photo img,.home-photo-gallery .album-photo img,.home-photo-recent .album-photo img{transition:filter .2s ease}

.home-photo-featured[data-hm-overlay="grayscale"] .album-photo img,.home-photo-gallery[data-hm-overlay="grayscale"] .album-photo img,.home-photo-recent[data-hm-overlay="grayscale"] .album-photo img{filter:grayscale(1) brightness(var(--hm-brightness,100%)) contrast(var(--hm-contrast,100%))}
.home-photo-featured[data-hm-overlay="sepia"] .album-photo img,.home-photo-gallery[data-hm-overlay="sepia"] .album-photo img,.home-photo-recent[data-hm-overlay="sepia"] .album-photo img{filter:sepia(.75) brightness(var(--hm-brightness,100%))}
.home-photo-featured[data-hm-overlay="cool"] .photo-overlay,.home-photo-gallery[data-hm-overlay="cool"] .photo-overlay,.home-photo-recent[data-hm-overlay="cool"] .photo-overlay{background:linear-gradient(var(--hm-overlay-angle,to top),rgba(53,100,145,var(--hm-overlay-opacity,.55)),transparent 75%)}
.home-photo-featured[data-hm-overlay="warm"] .photo-overlay,.home-photo-gallery[data-hm-overlay="warm"] .photo-overlay,.home-photo-recent[data-hm-overlay="warm"] .photo-overlay{background:linear-gradient(var(--hm-overlay-angle,to top),rgba(157,105,45,var(--hm-overlay-opacity,.55)),transparent 75%)}
.home-photo-featured[data-hm-overlay="light"] .photo-overlay,.home-photo-gallery[data-hm-overlay="light"] .photo-overlay,.home-photo-recent[data-hm-overlay="light"] .photo-overlay{background:linear-gradient(var(--hm-overlay-angle,to top),rgba(255,255,255,var(--hm-overlay-opacity,.35)),transparent 75%)}
.home-photo-featured[data-hm-overlay="none"] .photo-overlay,.home-photo-gallery[data-hm-overlay="none"] .photo-overlay,.home-photo-recent[data-hm-overlay="none"] .photo-overlay{display:none}
@media(max-width:900px){.home-photo-featured,.home-photo-gallery,.home-photo-recent .home-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.home-photo-featured,.home-photo-gallery,.home-photo-recent .home-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.home-photo-featured .album-photo:after,
.home-photo-gallery .album-photo:after,
.home-photo-recent .album-photo:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 calc(36px * var(--hm-vignette, 0)) rgba(0, 0, 0, .65);
}

.home-photo-featured[data-hm-overlay="grayscale"] .album-photo img,
.home-photo-gallery[data-hm-overlay="grayscale"] .album-photo img,
.home-photo-recent[data-hm-overlay="grayscale"] .album-photo img {
    filter: grayscale(1) brightness(var(--hm-brightness, 100%)) contrast(var(--hm-contrast, 100%));
}

.home-photo-featured[data-hm-overlay="sepia"] .album-photo img,
.home-photo-gallery[data-hm-overlay="sepia"] .album-photo img,
.home-photo-recent[data-hm-overlay="sepia"] .album-photo img {
    filter: sepia(.75) brightness(var(--hm-brightness, 100%));
}

.home-photo-featured[data-hm-overlay="cool"] .photo-overlay,
.home-photo-gallery[data-hm-overlay="cool"] .photo-overlay,
.home-photo-recent[data-hm-overlay="cool"] .photo-overlay {
    background: linear-gradient(var(--hm-overlay-angle, to top), rgba(53, 100, 145, var(--hm-overlay-opacity, .55)), transparent 75%);
}

.home-photo-featured[data-hm-overlay="warm"] .photo-overlay,
.home-photo-gallery[data-hm-overlay="warm"] .photo-overlay,
.home-photo-recent[data-hm-overlay="warm"] .photo-overlay {
    background: linear-gradient(var(--hm-overlay-angle, to top), rgba(157, 105, 45, var(--hm-overlay-opacity, .55)), transparent 75%);
}

.home-photo-featured[data-hm-overlay="light"] .photo-overlay,
.home-photo-gallery[data-hm-overlay="light"] .photo-overlay,
.home-photo-recent[data-hm-overlay="light"] .photo-overlay {
    background: linear-gradient(var(--hm-overlay-angle, to top), rgba(255, 255, 255, var(--hm-overlay-opacity, .35)), transparent 75%);
}

.home-photo-featured[data-hm-overlay="none"] .photo-overlay,
.home-photo-gallery[data-hm-overlay="none"] .photo-overlay,
.home-photo-recent[data-hm-overlay="none"] .photo-overlay {
    display: none;
}


.home-photo-featured[data-hm-frame="ornate"] .album-card,
.home-photo-gallery[data-hm-frame="ornate"] .album-card,
.home-photo-recent[data-hm-frame="ornate"] .album-card {
    border-style: double;
    border-color: #c5a66a;
}

.home-photo-featured[data-hm-frame="double"] .album-card,
.home-photo-gallery[data-hm-frame="double"] .album-card,
.home-photo-recent[data-hm-frame="double"] .album-card {
    border-style: double;
}


/* Specificity guard: section-specific columns must override legacy generic gallery columns. */
.photo-album-grid.home-photo-gallery,
.photo-album-grid.home-photo-featured,
.home-photo-recent .photo-album-grid.home-photo-grid {
    grid-template-columns: repeat(var(--hm-cols, 4), minmax(0, 1fr)) !important;
}
@media (max-width: 900px) {
    .photo-album-grid.home-photo-gallery,
    .photo-album-grid.home-photo-featured,
    .home-photo-recent .photo-album-grid.home-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 620px) {
    .photo-album-grid.home-photo-gallery,
    .photo-album-grid.home-photo-featured,
    .home-photo-recent .photo-album-grid.home-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


/* v1.2.7 — simplified administrator dashboard primary action */
.admin-title{margin-bottom:14px}
.admin-primary-action{display:flex;justify-content:center;align-items:center;margin:8px 0 34px}
.admin-add-memorial{min-width:280px;min-height:66px;padding:18px 36px;border-radius:7px;gap:12px;font-size:18px;letter-spacing:.15px;box-shadow:0 7px 20px #293b2d18}
.admin-add-memorial span{font-size:25px;line-height:1}
.admin-add-memorial:hover{transform:translateY(-2px);box-shadow:0 11px 25px #293b2d24}
@media(max-width:600px){.admin-primary-action{margin:14px 0 25px}.admin-add-memorial{width:100%;min-width:0;min-height:62px;font-size:17px}}


/* v1.2.7 revision — place the primary Add Memorial action beside the dashboard heading */
.admin-title {display:grid;grid-template-columns:minmax(280px,.8fr) minmax(420px,1.6fr);align-items:center;gap:32px;margin-bottom:30px}
.admin-title-copy{min-width:0}
.admin-primary-action{display:flex;justify-content:center;align-items:center;margin:0}
.admin-add-memorial{width:min(100%,560px);min-width:0;min-height:132px;padding:28px 38px;border-radius:9px;gap:14px;font-size:clamp(21px,2vw,28px);letter-spacing:.2px;box-shadow:0 9px 25px #293b2d1c}
.admin-add-memorial span{font-size:34px;line-height:1}
.admin-add-memorial:hover{transform:translateY(-2px);box-shadow:0 13px 30px #293b2d26}
@media(max-width:760px){.admin-title{grid-template-columns:1fr;gap:20px}.admin-primary-action{justify-content:stretch}.admin-add-memorial{width:100%;max-width:none;min-height:84px;font-size:21px}}


/* ============================================================
   v1.2.7 — FEATURED MEMORIAL CARD LAYOUT CORRECTION
   Keep Featured card proportions consistent with Gallery and
   Recently Viewed. Prevent legacy featured-grid sizing from
   shortening the portrait image window.
   ============================================================ */

.featured-section {
    padding-bottom: 70px;
}

.photo-album-grid.home-photo-featured {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 360px)) !important;
    justify-content: start;
    align-items: start;
    gap: 22px;
    grid-auto-rows: auto;
}

.photo-album-grid.home-photo-featured > .album-card {
    display: block;
    width: 100%;
    height: auto !important;
    min-width: 0;
    min-height: 0;
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: auto !important;
}

.photo-album-grid.home-photo-featured > .album-card > .album-photo {
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: var(--hm-ratio, 4 / 5) !important;
    overflow: hidden;
    position: relative;
}

.photo-album-grid.home-photo-featured > .album-card > .album-photo > img {
    display: block;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: var(--hm-fit, cover) !important;
    object-position: var(--hm-x, 50%) var(--hm-y, 35%) !important;
}

.photo-album-grid.home-photo-featured > .album-card > .album-photo > .photo-caption {
    left: 17px;
    right: 14px;
    bottom: 15px;
}

.photo-album-grid.home-photo-featured > .album-card > .album-photo > .photo-caption strong {
    font-size: 19px;
}

.photo-album-grid.home-photo-featured > .album-card > .album-card-foot {
    display: flex;
}

@media (max-width: 620px) {
    .photo-album-grid.home-photo-featured {
        grid-template-columns: minmax(0, 1fr) !important;
        justify-content: start;
        gap: 16px;
    }

    .photo-album-grid.home-photo-featured > .album-card {
        width: 100%;
        max-width: 360px;
    }

    .photo-album-grid.home-photo-featured > .album-card > .album-photo > .photo-caption {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}


/* v1.2.8 — Dedicated public memorial gallery page */
.gallery-page-intro {
    max-width: 1260px;
    margin: 0 auto;
    padding: 74px 30px 22px;
}
.gallery-page-intro-inner {
    max-width: 850px;
}
.gallery-page-intro h1 {
    margin: 0 0 10px;
    font: 500 clamp(36px, 5vw, 54px)/1.12 'Playfair Display', serif;
    color: var(--ink);
}
.gallery-page-intro p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}
.gallery-page-intro + .gallery-section {
    padding-top: 30px;
}
@media (max-width: 620px) {
    .gallery-page-intro {
        padding: 48px 17px 12px;
    }
}

/* v1.3.0 brand identity and memorial directory navigation */
.brand-logo-image{display:block;width:auto;max-width:270px;height:auto;max-height:64px;object-fit:contain}
.site-header .brand{display:flex;align-items:center;min-width:0}
.alphabet-browser .alphabet-home{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 13px;margin-right:8px;border-radius:7px;background:var(--green,#536d5f);border:1px solid var(--green,#536d5f);color:#fff;font-weight:700}
@media(max-width:650px){.brand-logo-image{max-width:190px;max-height:52px}.alphabet-browser .alphabet-home{margin-right:0}}

.admin-header .brand-logo-image{max-width:230px;max-height:56px}
.brand-title-text{display:block;font-family:Georgia,serif;font-size:23px;color:var(--ink,#27332f);line-height:1.15}
.brand-title-text small{display:block;font-family:inherit;font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted,#78827c);margin-top:4px}

.brand-lockup{display:inline-flex;align-items:center;gap:10px;min-width:0}
.brand-symbol-image{display:block;width:auto;max-width:76px;height:54px;object-fit:contain;flex:0 0 auto}
.brand-title-text{font-size:clamp(18px,2vw,25px);white-space:normal}
.brand-title-text small{font-size:9px}
.admin-header .brand-symbol-image{max-width:58px;height:46px}
@media(max-width:650px){.brand-symbol-image{max-width:55px;height:44px}.brand-title-text{font-size:18px}}




/* =========================================================
   v1.4.1 ADMINISTRATION SIDEBAR
   Shared left navigation, current-page state and responsive layout.
   ========================================================= */
body.hm-admin-layout {
  box-sizing: border-box;
  padding-left: 274px !important;
  min-height: 100vh;
}
body.hm-admin-layout > .admin-header { display: none !important; }
.hm-admin-sidebar, .hm-admin-sidebar * { box-sizing: border-box; }
.hm-admin-sidebar {
  position: fixed; z-index: 1000; inset: 0 auto 0 0;
  width: 254px; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 18px 14px 14px;
  color: #edf3ef;
  background: linear-gradient(180deg,#1d3028 0%,#172720 100%);
  border-right: 1px solid rgba(255,255,255,.09);
  box-shadow: 8px 0 28px rgba(20,35,27,.09);
  scrollbar-width: thin;
}
.hm-admin-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 7px 8px 18px; margin-bottom: 15px;
  color: #fff !important; text-decoration: none !important;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.hm-admin-brand-mark {
  width: 39px; height: 39px; flex: 0 0 39px;
  display: grid; place-items: center; border-radius: 12px;
  color: #26372d; background: linear-gradient(145deg,#e9d5a4,#b99152);
  font-size: 22px; box-shadow: 0 3px 12px rgba(0,0,0,.18);
}
.hm-admin-brand strong { display:block; font:600 14px/1.3 system-ui,sans-serif; letter-spacing:.1px; }
.hm-admin-brand small { display:block; margin-top:4px; color:#b9c9bd; font:700 9px/1.2 system-ui,sans-serif; letter-spacing:1.6px; }
.hm-admin-current {
  display:flex; align-items:center; gap:10px; padding:11px 12px;
  margin:0 2px 15px; border:1px solid rgba(222,196,139,.24);
  border-radius:11px; background:rgba(255,255,255,.065);
}
.hm-admin-current-dot { width:9px; height:9px; flex:0 0 9px; border-radius:50%; background:#8fc79d; box-shadow:0 0 0 4px rgba(143,199,157,.13); }
.hm-admin-current small { display:block; color:#b6c7bb; font:700 9px/1.3 system-ui,sans-serif; letter-spacing:1.2px; }
.hm-admin-current strong { display:block; margin-top:3px; color:#fff; font:600 12px/1.35 system-ui,sans-serif; }
.hm-admin-menu { display:flex; flex-direction:column; gap:12px; }
.hm-admin-nav-group h2 {
  margin:0 8px 5px; color:#9fb2a4;
  font:700 9px/1.4 system-ui,sans-serif; letter-spacing:1.35px;
  text-transform:uppercase;
}
.hm-admin-nav-link {
  position:relative; display:flex; align-items:center; gap:10px;
  min-height:37px; margin:2px 0; padding:7px 9px;
  border:1px solid transparent; border-radius:8px;
  color:#dce7df !important; text-decoration:none !important;
  font:500 12px/1.25 system-ui,sans-serif;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.hm-admin-nav-link:hover {
  background:rgba(255,255,255,.09); border-color:rgba(255,255,255,.08);
  transform:translateX(2px);
}
.hm-admin-nav-link.is-active {
  color:#fff !important; font-weight:700;
  background:linear-gradient(100deg,rgba(205,174,111,.25),rgba(205,174,111,.10));
  border-color:rgba(222,196,139,.38);
  box-shadow:inset 3px 0 0 #d7b779;
}
.hm-admin-nav-icon { width:20px; flex:0 0 20px; text-align:center; color:#d8bd87; font-size:16px; }
/* Primary memorial-management shortcuts */
.hm-admin-nav-link.hm-admin-nav-primary {
  min-height:43px; margin:5px 0; padding:9px 11px;
  color:#fff !important; font-weight:750;
  background:linear-gradient(105deg,rgba(190,151,79,.34),rgba(190,151,79,.13));
  border:1px solid rgba(226,195,132,.55);
  box-shadow:inset 3px 0 0 #e0bd79,0 3px 10px rgba(0,0,0,.10);
}
.hm-admin-nav-link.hm-admin-nav-primary .hm-admin-nav-icon { color:#f1d79f; font-size:18px; }
.hm-admin-nav-link.hm-admin-nav-primary:hover {
  background:linear-gradient(105deg,rgba(210,174,105,.48),rgba(190,151,79,.22));
  border-color:rgba(241,215,159,.8); transform:translateX(2px);
}
.hm-admin-nav-link.hm-admin-nav-primary.is-active {
  background:linear-gradient(105deg,rgba(210,174,105,.52),rgba(190,151,79,.25));
  border-color:#e0bd79; box-shadow:inset 4px 0 0 #f0d79e,0 3px 12px rgba(0,0,0,.15);
}

.hm-admin-nav-label { min-width:0; flex:1; }
.hm-admin-nav-current {
  padding:3px 5px; border-radius:4px; color:#1e3027;
  background:#d9c18f; font:800 8px/1 system-ui,sans-serif; letter-spacing:.35px;
}
.hm-admin-sidebar-footer {
  display:flex; flex-direction:column; gap:7px;
  margin-top:auto; padding:16px 4px 3px;
  border-top:1px solid rgba(255,255,255,.12);
}
.hm-admin-sidebar-footer a {
  display:flex; align-items:center; gap:8px; padding:8px 9px;
  border-radius:7px; color:#e2ebe4 !important;
  text-decoration:none !important; font:600 11px system-ui,sans-serif;
}
.hm-admin-sidebar-footer a:hover { background:rgba(255,255,255,.08); }
.hm-admin-sidebar-footer .hm-admin-logout { color:#f1d5cb !important; }
.hm-admin-sidebar-footer small { padding:5px 9px 0; color:#91a598; font:10px system-ui,sans-serif; }
@media (max-width: 980px) {
  body.hm-admin-layout { padding-left:0 !important; }
  .hm-admin-sidebar {
    position:relative; inset:auto; width:100%; height:auto; max-height:none;
    overflow:visible; padding:12px 14px;
  }
  .hm-admin-brand { padding-bottom:12px; margin-bottom:10px; }
  .hm-admin-current { margin-bottom:10px; }
  .hm-admin-menu { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 14px; }
  .hm-admin-nav-group { min-width:0; }
  .hm-admin-nav-link { min-height:34px; font-size:11px; }
  .hm-admin-sidebar-footer { margin-top:12px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hm-admin-sidebar-footer small { grid-column:1/-1; }
}
@media (max-width: 520px) {
  .hm-admin-menu { grid-template-columns:1fr; }
  .hm-admin-current { max-width:none; }
}
/* End v1.4.1 administration sidebar */


/* v1.4.4 admin page refinements */
.design-professional-head{align-items:center;margin:10px 0 22px;padding:25px 28px;background:linear-gradient(120deg,#f4f7f2,#fff);border:1px solid #e3e9e2;border-radius:14px}
.design-professional-head h1{margin-top:4px}
.design-guidance{display:flex;align-items:flex-start;gap:13px;padding:15px 18px;margin:0 0 22px;border:1px solid #e7e4d8;border-radius:10px;background:#fbfaf6}
.design-guidance-icon{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:10px;background:#eee8d9;color:#927548;font-size:18px}
.design-guidance strong{display:block;color:#35463b;font-size:13px;margin:1px 0 3px}
.design-guidance p{margin:0;color:#748077;font-size:12px;line-height:1.55}
.design-control-overview{box-shadow:0 10px 30px rgba(36,55,42,.06)}
.design-save-button{min-width:190px;box-shadow:0 5px 14px rgba(39,68,49,.15)}
.editor-intro-enhanced{max-width:760px;padding:25px 28px;margin-bottom:26px;border:1px solid #e4e9e2;border-radius:14px;background:linear-gradient(120deg,#f5f7f2,#fff)}
.editor-intro-enhanced h1{margin-bottom:8px}
.editor-intro-meta{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:13px;color:#7b887e;font-size:10px;font-weight:700;letter-spacing:.2px}
.editor-portrait-preview{display:flex;flex-direction:column;align-items:center;gap:8px;min-height:180px;padding:14px;border:1px dashed #d7e0d6;border-radius:11px;background:linear-gradient(145deg,#f7f9f6,#fff)}
.editor-portrait-preview .editor-current-photo{width:158px;height:158px;object-fit:cover;border-radius:12px;border:4px solid #fff;box-shadow:0 6px 20px rgba(35,52,40,.14);margin:0}
.editor-portrait-preview .editor-photo-placeholder{width:158px;height:158px;margin:0;border-radius:12px}
.portrait-preview-caption{font-size:10px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:#758378}
.editor-portrait-preview [hidden]{display:none!important}
@media(max-width:700px){.design-professional-head{display:block;padding:20px}.design-professional-head .design-status{display:inline-block;margin-top:12px}.editor-intro-enhanced{padding:20px 16px}.editor-intro-meta{line-height:1.6}}


/* v1.4.4 portrait defaults and simplified preview */
.editor-portrait-preview{display:flex;flex-direction:column;align-items:center;gap:7px;min-height:0;padding:14px 14px 9px;border:1px solid #dfe7de;border-radius:11px;background:#fbfcfa}
.editor-portrait-preview .editor-current-photo{width:176px;height:176px;object-fit:cover;border-radius:13px;border:1px solid #d8e1d7;box-shadow:0 5px 16px rgba(35,52,40,.10);margin:0}
.default-profile-picker{margin-top:7px;padding:15px;border:1px solid #e2e8e1;border-radius:10px;background:#fff}
.default-profile-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#2e4035;font-size:12px;font-weight:800}
.default-profile-heading span{font-size:9px;letter-spacing:1px;color:#8b7955;background:#f6f1e6;padding:4px 7px;border-radius:20px}
.default-profile-picker>p{margin:5px 0 13px;color:#7b877e;font-size:11px;line-height:1.5}
.default-profile-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.default-profile-option{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px;border:1px solid #e0e7df;border-radius:9px;background:#fbfcfa;cursor:pointer;color:#4b5b50;font-size:11px;font-weight:700;transition:border-color .18s,background .18s}
.default-profile-option:has(input:checked){border-color:#8da28e;background:#f1f6ef;box-shadow:0 0 0 2px rgba(95,128,99,.08)}
.default-profile-option input{accent-color:#45654d}
.default-profile-option img{width:92px;height:92px;object-fit:cover;border-radius:10px;border:1px solid #d9e0d8}
.default-profile-keep{grid-column:1/-1;flex-direction:row;justify-content:center}
.default-profile-keep-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#edf2eb;color:#536c59;font-size:17px}
@media(max-width:540px){.default-profile-options{grid-template-columns:1fr 1fr}.default-profile-option img{width:82px;height:82px}}


/* v1.4.4 portrait preview behavior: one image frame, default until upload */
.editor-portrait-preview{min-height:0;padding:15px 14px 10px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px}
.editor-portrait-preview .editor-current-photo{display:block;width:176px;height:176px;max-width:100%;object-fit:cover;border-radius:13px;border:1px solid #d8e1d7;background:#f1f4ef;box-shadow:0 5px 16px rgba(35,52,40,.10);margin:0}
.editor-portrait-preview .portrait-preview-caption{display:inline-block;margin:0;padding:5px 10px;border-radius:20px;background:#edf3eb;color:#526b57;font-size:10px;font-weight:800;letter-spacing:.5px;text-transform:uppercase}


/* v1.4.4 portrait selector refinements and memorial playlist editor */
.default-profile-options{display:flex;justify-content:center;align-items:flex-start;gap:24px;flex-wrap:wrap}
.default-profile-option{width:112px;max-width:42%;padding:7px 6px;gap:5px;background:transparent;border:1px solid transparent}
.default-profile-option img{width:62px;height:62px;object-fit:contain;border:0;border-radius:0;background:transparent;box-shadow:none}
.default-profile-option:has(input:checked){background:#f4f7f2;border-color:#dce6da}
.default-profile-option input{margin:0}
.default-profile-keep{width:auto;min-width:150px;max-width:100%;padding:8px 12px}
.editor-playlist-card{padding:18px;border:1px solid #e1e8df;border-radius:12px;background:#fff}
.playlist-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.playlist-heading label{font-weight:800;color:#304236}
.playlist-heading .editor-media-note{margin:4px 0 0}
.playlist-count{flex:0 0 auto;padding:6px 10px;border-radius:20px;background:#edf3eb;color:#526d57;font-size:11px;font-weight:800}
.admin-playlist-list{list-style:none;margin:12px 0;padding:0;border:1px solid #e6ebe4;border-radius:9px;overflow:hidden}
.admin-playlist-list li{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid #edf0ec;font-size:12px}
.admin-playlist-list li:last-child{border-bottom:0}
.track-number{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#edf2eb;color:#4f6a55;font-size:10px;font-weight:800}
.track-name{flex:1;color:#394a3e;font-weight:700}
.admin-playlist-list a{color:#58745d;text-decoration:none;font-weight:700}
.track-remove{display:flex;align-items:center;gap:4px;color:#8a625b;font-size:10px}
.playlist-empty{padding:15px;border:1px dashed #d9e2d8;border-radius:8px;color:#78847b;background:#fafcf9;font-size:12px}
.playlist-upload-label{display:block;margin:14px 0 7px;color:#405345;font-size:12px;font-weight:800}
.playlist-settings{display:flex;flex-direction:column;gap:8px;margin-top:12px;padding:12px;border-radius:9px;background:#f7f9f6}
.playlist-settings .editor-check{margin:0}
.playlist-clear{color:#9a5a52}
.playlist-note{margin:12px 0 0;color:#7b877e;font-size:10px;line-height:1.5}
.memorial-playlist audio{width:100%;margin:10px 0}
.memorial-player-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}
.memorial-player-controls button{padding:8px 12px;border:1px solid #d8e1d8;border-radius:7px;background:#f7f9f6;color:#405345;font-weight:700;cursor:pointer}
.memorial-player-controls label{display:flex;align-items:center;gap:5px;font-size:12px}
.memorial-public-playlist{margin:10px 0 0;padding-left:22px}
.memorial-public-playlist li{margin:5px 0}
.memorial-public-playlist button{border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;padding:4px}
.memorial-public-playlist button.active{font-weight:800;color:#58745d}
@media(max-width:520px){.default-profile-options{gap:10px}.default-profile-option{width:96px}.admin-playlist-list li{gap:7px;padding:9px}.track-remove{font-size:9px}}


/* =========================================================
   v1.4.6 — Unified visitor navigation and page presentation
   ========================================================= */
.hm-public-header{position:sticky;top:0;z-index:1000;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px clamp(18px,4vw,58px);background:rgba(255,255,252,.96);border-bottom:1px solid #e9e7df;box-shadow:0 5px 22px rgba(35,52,42,.055);backdrop-filter:blur(14px)}
.hm-public-header .brand{display:flex;align-items:center;gap:12px;text-decoration:none;min-width:190px}
.hm-public-nav{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}
.hm-public-nav a{display:inline-flex;align-items:center;gap:7px;padding:11px 13px;border-radius:999px;text-decoration:none;color:#58675d;font-size:13px;font-weight:600;transition:background .2s,color .2s,transform .2s}
.hm-public-nav a:hover{background:#f1f2eb;color:#294332;transform:translateY(-1px)}
.hm-public-nav a.is-active{background:#e9eee7;color:#294a36;box-shadow:inset 0 0 0 1px #d9e3d8}
.hm-public-nav a.is-active:after{content:"";width:5px;height:5px;border-radius:50%;background:#b99b62;margin-left:1px}

.hm-public-nav a.hm-business-directory-link{background:linear-gradient(135deg,#f4dfaa 0%,#e4c276 52%,#c9a052 100%);color:#294638;border:1px solid #c5a052;box-shadow:0 3px 10px rgba(157,119,48,.18);font-weight:800}
.hm-public-nav a.hm-business-directory-link:hover{background:linear-gradient(135deg,#f8e9c2 0%,#ebcf8b 52%,#d7b064 100%);color:#203d2d;box-shadow:0 5px 13px rgba(157,119,48,.24)}
.hm-public-nav a.hm-business-directory-link.is-active{background:linear-gradient(135deg,#e8cc83,#caa052);color:#263d31;box-shadow:inset 0 0 0 1px rgba(125,91,35,.2),0 3px 10px rgba(157,119,48,.18)}
.hm-public-nav a.hm-business-directory-link.is-active:after{background:#315541}
.hm-public-nav .hm-admin-shortcut{background:#304b3a;color:#fff}
.hm-nav-toggle{display:none;border:1px solid #e0e4dc;background:#fff;border-radius:9px;padding:9px 12px;font-size:18px;color:#304b3a}
.hm-public-footer{margin-top:70px;padding:34px 22px 22px;text-align:center;background:linear-gradient(180deg,#f7f7f1,#eeefe7);border-top:1px solid #e4e4da}
.hm-footer-love{font:700 11px/1.4 "DM Sans",Arial,sans-serif;letter-spacing:3px;color:#a98243;margin:0 auto 22px}
.hm-sitemap{max-width:1000px;margin:0 auto;display:flex;justify-content:center;align-items:center;gap:10px 12px;flex-wrap:wrap}
.hm-sitemap a{min-width:82px;display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px 13px;border-radius:12px;text-decoration:none;color:#53675a;transition:background .2s,transform .2s}
.hm-sitemap a:hover{background:#fff;transform:translateY(-2px)}
.hm-sitemap a span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#fff;border:1px solid #e1e2d8;color:#a4864f;font-size:17px}
.hm-sitemap a small{font-size:11px;font-weight:650;letter-spacing:.2px}
.hm-footer-bottom{margin:22px auto 0;padding-top:17px;border-top:1px solid #dedfd5;max-width:1000px;color:#81877f;font-size:11px}
.hm-footer-bottom span{padding:0 7px;color:#b99b62}
.hm-page-shell{max-width:1160px;margin:0 auto;padding:35px 24px 65px}
.hm-page-hero{position:relative;overflow:hidden;text-align:center;padding:48px 24px 42px;margin:4px 0 30px;border-radius:22px;background:linear-gradient(135deg,#f5f4eb,#e9eee7 62%,#f7f2e8);border:1px solid #e5e5d9}
.hm-page-hero h1{position:relative;margin:8px auto 12px;font:500 clamp(34px,5vw,54px)/1.12 Georgia,serif;color:#2b4034}
.hm-eyebrow{position:relative;margin:0;color:#a27f45;font-size:10px;font-weight:750;letter-spacing:2.8px}
.hm-page-lead{position:relative;max-width:740px;margin:0 auto;color:#65736a;line-height:1.8;font-size:15px}
.hm-hero-art{position:absolute;inset:0;pointer-events:none;color:#c4ae7e;opacity:.2}
.hm-hero-art span{position:absolute;font-size:55px}.hm-hero-art span:nth-child(1){left:8%;top:18%}.hm-hero-art span:nth-child(2){right:11%;top:13%;font-size:70px}.hm-hero-art span:nth-child(3){right:23%;bottom:2%;font-size:45px}
.hm-page-ornament{display:flex;justify-content:center;gap:18px;color:#b69a63;font-size:20px;margin:0 auto 12px}
.hm-contact-layout{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.4fr);gap:22px;align-items:stretch}
.hm-contact-aside,.hm-form-card,.hm-story-card{border:1px solid #e5e5dc;border-radius:18px;background:#fff;box-shadow:0 14px 42px rgba(40,55,43,.06)}
.hm-contact-aside{padding:30px;background:linear-gradient(160deg,#304b3b,#496553);color:#f7f5eb}
.hm-contact-art{height:120px;display:flex;align-items:center;justify-content:center;gap:20px;color:#e0c58d;font-size:44px;opacity:.9}
.hm-contact-art span{font-size:64px}
.hm-contact-aside h2{font:26px Georgia,serif;margin:15px 0 10px}.hm-contact-aside p{line-height:1.75;color:#e2e9e0;font-size:14px}
.hm-contact-promise{padding:14px;margin:22px 0;background:#ffffff14;border:1px solid #ffffff24;border-radius:11px;color:#f3efdf;font-size:12px;line-height:1.65}
.hm-contact-detail{display:flex;gap:12px;align-items:center;padding-top:14px;border-top:1px solid #ffffff2b}.hm-contact-detail>span{font-size:24px;color:#e4c98e}.hm-contact-detail strong,.hm-contact-detail small{display:block}.hm-contact-detail small{margin-top:4px;color:#d9e2d8;font-size:11px}
.hm-form-card{padding:clamp(22px,4vw,38px)}.hm-form-heading h2{font:29px Georgia,serif;color:#2d4336;margin:8px 0}.hm-form-heading p{font-size:12px;color:#879087}.hm-form-step{font-size:10px;font-weight:750;letter-spacing:2px;color:#a4864f}
.hm-contact-form{display:grid;gap:16px;margin-top:22px}.hm-contact-form label{display:block;color:#46564b;font-size:12px;font-weight:700}.hm-contact-form input,.hm-contact-form select,.hm-contact-form textarea{display:block;width:100%;margin-top:7px;padding:13px 14px;border:1px solid #dfe3dc;border-radius:9px;background:#fcfcfa;color:#2f4035;font:inherit;font-size:14px;box-sizing:border-box;transition:border .2s,box-shadow .2s}.hm-contact-form input:focus,.hm-contact-form select:focus,.hm-contact-form textarea:focus{outline:none;border-color:#8da28f;box-shadow:0 0 0 3px #8da28f24}.hm-contact-form textarea{resize:vertical;min-height:140px}.hm-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hm-human-check{padding:13px;background:#f6f6f0;border-radius:9px}.hm-human-check input{max-width:130px}.hm-button{display:inline-flex;align-items:center;justify-content:center;gap:18px;border:0;border-radius:999px;padding:14px 24px;background:#365541;color:#fff;text-decoration:none;font-weight:700;font-size:13px;cursor:pointer;box-shadow:0 7px 18px #304b3b22;transition:transform .2s,background .2s}.hm-button:hover{background:#263f30;transform:translateY(-1px)}.hm-submit{justify-self:start}.hm-form-footnote{font-size:11px;color:#879087;line-height:1.6;margin:0}.hm-form-alert{padding:12px 14px;border-radius:9px;background:#f1f5ed;color:#395b40;border:1px solid #dce8d9;font-size:13px}
.hm-story-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:20px}.hm-story-card{padding:30px}.hm-story-card h2{font:27px Georgia,serif;color:#304638}.hm-story-card p{color:#657168;line-height:1.85;font-size:14px}.hm-story-icon{font-size:28px;color:#b69a63}.hm-story-highlight{background:#304b3b;color:#f7f3e8}.hm-story-highlight h2,.hm-story-highlight p{color:#f7f3e8}.hm-primary-link{display:inline-flex;gap:12px;color:#e6d09e;text-decoration:none;font-weight:700;font-size:13px;margin-top:12px}.hm-page-cta{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:22px;padding:25px 30px;border-radius:16px;background:#f4f3eb}.hm-page-cta h2{font:24px Georgia,serif;color:#304638;margin:0 0 7px}.hm-page-cta p{color:#6d796f;margin:0;font-size:13px}
.hm-community-page>h1,.hm-browse-page>h1,.hm-donate-page>h1{font:500 clamp(32px,4vw,46px) Georgia,serif;color:#304638;margin:8px 0 20px}
@media(max-width:820px){.hm-public-header{flex-wrap:wrap}.hm-nav-toggle{display:block}.hm-public-nav{display:none;width:100%;justify-content:flex-start;padding:8px 0 4px}.hm-public-nav.is-open{display:flex}.hm-public-nav a{padding:10px 12px}.hm-contact-layout{grid-template-columns:1fr}.hm-contact-aside{display:grid;grid-template-columns:110px 1fr;gap:0 16px}.hm-contact-art{grid-row:span 3;height:auto}.hm-contact-aside h2{align-self:end}.hm-contact-promise,.hm-contact-detail{grid-column:1/-1}.hm-story-grid{grid-template-columns:1fr}}
@media(max-width:560px){.hm-public-header{padding:10px 15px}.hm-public-nav{display:none;flex-direction:column;align-items:stretch}.hm-public-nav.is-open{display:flex}.hm-public-nav a{border-radius:9px}.hm-page-shell{padding:22px 14px 45px}.hm-page-hero{padding:38px 17px 32px;border-radius:15px}.hm-form-grid{grid-template-columns:1fr}.hm-contact-aside{display:block}.hm-contact-art{height:90px}.hm-page-cta{align-items:flex-start;flex-direction:column}.hm-sitemap{gap:5px}.hm-sitemap a{min-width:68px;padding:8px 7px}.hm-footer-bottom{line-height:1.8}}


/* v1.4.6 refinement — centered visitor pages and compact sitemap */
.hm-public-nav{gap:4px}
.hm-public-footer{overflow:hidden}
.hm-sitemap{flex-wrap:nowrap;gap:clamp(2px,.7vw,10px);max-width:1120px;white-space:nowrap}
.hm-sitemap a{min-width:0;flex:1 1 0;padding:9px 5px;white-space:nowrap}
.hm-sitemap a span{width:31px;height:31px;flex:0 0 31px}
.hm-sitemap a small{font-size:10px;white-space:nowrap}
.hm-gallery-hero,.hm-donate-hero,.hm-community-hero{max-width:1080px;margin:8px auto 30px;padding:52px 28px 40px}
.hm-gallery-hero h1,.hm-donate-hero h1,.hm-community-hero h1{font:500 clamp(36px,5vw,56px)/1.12 Georgia,serif;color:#2c4435;margin:8px auto 14px}
.hm-gallery-hero-mark,.hm-donate-emblem,.hm-community-emblem{width:64px;height:64px;margin:0 auto 16px;display:grid;place-items:center;border-radius:50%;background:#fff;border:1px solid #e5ddc9;color:#b08c4f;font-size:30px;box-shadow:0 8px 24px #344b3910}
.hm-gallery-hero-tags{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:22px}
.hm-gallery-hero-tags span{padding:8px 14px;border-radius:999px;background:#ffffffb8;border:1px solid #e7e5d9;color:#637366;font-size:11px;font-weight:650}
.hm-gallery-content{max-width:1080px;margin:0 auto}
.hm-gallery-content .section-heading{display:flex;flex-direction:column;align-items:center;text-align:center;gap:18px;margin:0 auto 24px}
.hm-gallery-content .section-heading>div:first-child{text-align:center}
.hm-gallery-content .section-heading h2{font:500 clamp(27px,3.5vw,38px) Georgia,serif;color:#304638}
.hm-gallery-content .gallery-tools{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;width:100%}
.hm-gallery-content .album-search{display:flex;justify-content:center;gap:8px;max-width:620px;width:min(100%,620px)}
.hm-gallery-content .album-search input{flex:1;min-width:0;border:1px solid #dfe3dc;border-radius:9px;padding:12px 14px;background:#fff}
.hm-gallery-content .memorial-directory-tools{padding:18px;background:#fff;border:1px solid #e6e6dc;border-radius:15px;box-shadow:0 8px 28px #26382b0a;margin-bottom:24px}
.hm-gallery-content .alphabet-browser{display:flex;justify-content:center;gap:4px;flex-wrap:wrap}
.hm-gallery-content .alphabet-browser a{border-radius:6px}
.hm-gallery-content .directory-filters{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:15px}
.hm-gallery-content .home-photo-gallery,.hm-gallery-content .photo-album-grid{justify-content:center}
.hm-donate-page{max-width:1080px}
.hm-donate-card{max-width:780px;margin:0 auto;padding:clamp(24px,4vw,42px);text-align:center}
.hm-donate-card .intro{max-width:650px;margin:0 auto 24px;line-height:1.85;color:#66746a}
.hm-donate-card-icon{font-size:28px;color:#b08c4f;margin:0 auto 8px}
.hm-donate-card-title{font:500 26px Georgia,serif;color:#304638;margin:4px 0 12px}
.hm-donate-card form{max-width:590px;margin:0 auto;text-align:left}
.hm-donate-card form>p{text-align:center;color:#4e5e52}
.hm-donate-card .donate-amounts{gap:12px;margin:20px 0}
.hm-donate-card .donate-amounts label{background:#f8f8f3;border:1px solid #e2e3d9;border-radius:12px;color:#405647;transition:border .2s,background .2s}
.hm-donate-card .donate-amounts label:has(input:checked){background:#edf2e9;border-color:#829a80;box-shadow:0 0 0 2px #829a8020}
.hm-donate-card .donate-custom{text-align:center}
.hm-donate-card .donate-custom input{display:block;margin:8px auto 0}
.hm-donate-card .paypal-submit{display:flex;margin:20px auto 0;justify-content:center;min-width:250px;border-radius:999px;background:#365541;padding:15px 25px}
.hm-donate-card .donate-note{max-width:610px;margin:22px auto 0;text-align:center;line-height:1.7}
.hm-community-page{max-width:1040px}
.hm-community-page>.hm-community-hero{max-width:100%}
.hm-community-panel{max-width:820px;margin:22px auto;padding:clamp(22px,4vw,34px);background:#fff;border:1px solid #e5e5dc;border-radius:18px;box-shadow:0 12px 36px #26382b0b}
.hm-community-panel h2{font:500 26px Georgia,serif;color:#304638;text-align:center;margin:0 0 8px}
.hm-community-panel>.muted,.hm-community-panel>p.muted{text-align:center;color:#758077;line-height:1.7}
.hm-community-form{max-width:650px;margin:22px auto 0;display:grid;gap:15px}
.community-form label{display:block;color:#46564b;font-size:13px;font-weight:700}
.community-form input:not([type=hidden]),.community-form textarea{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:13px 14px;border:1px solid #dfe3dc;border-radius:9px;background:#fcfcfa;font:inherit}
.community-form textarea{min-height:145px;resize:vertical}
.community-form input:focus,.community-form textarea:focus{outline:none;border-color:#8da28f;box-shadow:0 0 0 3px #8da28f24}
.community-form .button{justify-self:start;border:0;border-radius:999px;background:#365541;color:#fff;padding:13px 22px;font-weight:700}
.community-human-check{padding:14px;background:#f5f5ef;border-radius:10px}
.community-human-question{margin:9px 0;color:#9b7b43;font-weight:750}
.community-security-note{font-size:11px;color:#7d877f;line-height:1.6}
.community-post{max-width:680px;margin:14px auto;padding:18px 20px;border:1px solid #ecebe3;border-radius:12px;background:#fbfbf8}
.community-post h3{color:#3d5645;margin:0 0 4px}.community-post time{font-size:11px;color:#8a928a}.community-post p{color:#56645a;line-height:1.75}
.community-alert{max-width:820px;margin:0 auto 18px;padding:13px 16px;border-radius:10px;text-align:center}
@media(max-width:900px){.hm-sitemap{flex-wrap:wrap;white-space:normal}.hm-sitemap a{flex:0 1 18%;}.hm-sitemap a small{white-space:normal}}
@media(max-width:560px){.hm-gallery-hero,.hm-donate-hero,.hm-community-hero{padding:38px 17px 30px}.hm-gallery-content .album-search{flex-direction:column}.hm-gallery-content .album-search button{width:100%}.hm-donate-card .paypal-submit{width:100%;min-width:0}.hm-sitemap a{flex:0 1 28%}.hm-community-panel{padding:20px 15px}}


/* v1.4.6 sitemap width adjustment — keep all icons on one row on large screens */
@media (min-width: 1101px) {
  .hm-public-footer { width: 100%; }
  .hm-sitemap { width: calc(100% - 40px); max-width: 1480px; margin-left: auto; margin-right: auto; flex-wrap: nowrap; white-space: nowrap; gap: clamp(8px, 1vw, 18px); }
  .hm-sitemap a { min-width: 0; flex: 1 1 0; padding: 10px 8px; }
  .hm-sitemap a span { width: 36px; height: 36px; flex: 0 0 36px; }
  .hm-sitemap a small { font-size: 11px; white-space: nowrap; }
}
@media (max-width: 1100px) {
  .hm-sitemap { flex-wrap: wrap; white-space: normal; }
  .hm-sitemap a { flex: 0 1 18%; }
  .hm-sitemap a small { white-space: normal; }
}


/* v1.4.7 Contact page visual refresh */
.hm-contact-page{max-width:1180px;padding-top:34px}
.hm-contact-hero{padding:34px 24px 32px;margin-bottom:28px}
.hm-contact-art{position:relative;width:78px;height:68px;margin:0 auto 8px;display:grid;place-items:center}
.hm-contact-art-ring{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #e5e1d3;box-shadow:0 8px 22px rgba(53,68,52,.08);font-size:25px;color:#a4864f}
.hm-contact-art-leaf{position:absolute;right:2px;bottom:0;color:#82977e;font-size:27px;transform:rotate(-18deg)}
.hm-contact-intro{position:relative;max-width:650px;margin:0 auto 16px;color:#68766a;line-height:1.7}
.hm-contact-tags{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.hm-contact-tags span{padding:6px 11px;border:1px solid #e1e5d9;background:rgba(255,255,255,.68);border-radius:30px;color:#647565;font-size:11px;font-weight:650;letter-spacing:.2px}
.hm-contact-layout{display:grid;grid-template-columns:minmax(230px,.78fr) minmax(0,1.6fr);gap:22px;align-items:stretch}
.hm-contact-aside{padding:30px 26px;border-radius:19px;background:linear-gradient(155deg,#344c3e,#263c31);color:#f8f7ef;box-shadow:0 12px 30px rgba(35,55,43,.10)}
.hm-contact-aside-icon{width:48px;height:48px;border:1px solid rgba(255,255,255,.25);border-radius:50%;display:grid;place-items:center;color:#e5d2a4;font-size:23px;margin-bottom:22px}
.hm-contact-aside h2{font:500 27px/1.2 Georgia,serif;margin:0 0 12px;color:#fff}
.hm-contact-aside>p{font-size:13px;line-height:1.8;color:#dce4d9;margin:0 0 28px}
.hm-contact-note{display:flex;gap:12px;padding:15px 13px;border-radius:12px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}
.hm-contact-note-icon{font-size:20px;color:#e4cf9b}
.hm-contact-note strong,.hm-contact-note small{display:block}
.hm-contact-note strong{font-size:12px;margin-bottom:5px;color:#fff}
.hm-contact-note small{font-size:11px;line-height:1.6;color:#dce4d9}
.hm-contact-email{display:flex;gap:12px;align-items:center;margin-top:26px;padding-top:20px;border-top:1px solid rgba(255,255,255,.17);font-size:19px;color:#e4cf9b}
.hm-contact-email strong,.hm-contact-email a{display:block}
.hm-contact-email strong{font-size:11px;color:#dce4d9;margin-bottom:4px}
.hm-contact-email a{font-size:12px;color:#fff;text-decoration:none;overflow-wrap:anywhere}
.hm-contact-form-card{padding:30px;border-radius:19px;background:#fff;border:1px solid #e7e8df;box-shadow:0 10px 30px rgba(44,60,46,.06)}
.hm-contact-form-heading{margin-bottom:20px}
.hm-contact-form-kicker{font-size:10px;font-weight:750;letter-spacing:2px;color:#a4864f}
.hm-contact-form-heading h2{font:500 26px/1.25 Georgia,serif;color:#2d4436;margin:7px 0}
.hm-contact-form-heading p{font-size:12px;color:#7a847b;margin:0}
.hm-contact-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}
.hm-contact-form-grid p{margin:0 0 14px}
.hm-contact-full{grid-column:1/-1}
.hm-contact-form label{display:block;font-size:11px;font-weight:700;color:#526355}
.hm-contact-form label>span{color:#b77c55}
.hm-contact-form input:not([type=hidden]),.hm-contact-form select,.hm-contact-form textarea{display:block;width:100%;margin-top:7px;padding:11px 12px;border:1px solid #dfe4da;border-radius:9px;background:#fcfcf9;color:#35463a;font:13px Arial,sans-serif;box-sizing:border-box}
.hm-contact-form input:focus,.hm-contact-form select:focus,.hm-contact-form textarea:focus{outline:2px solid rgba(164,134,79,.2);border-color:#a4864f}
.hm-contact-form textarea{resize:vertical;min-height:130px}
.hm-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
.hm-contact-human{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;margin:2px 0 17px;background:#f5f6ef;border:1px solid #e5e8dd;border-radius:10px}
.hm-contact-human strong,.hm-contact-human small{display:block}
.hm-contact-human strong{font-size:11px;color:#425747}
.hm-contact-human small{font-size:10px;color:#7d887e;margin-top:4px}
.hm-contact-equation{display:flex!important;align-items:center;gap:7px;white-space:nowrap;font-size:13px!important}
.hm-contact-equation input{width:72px!important;margin:0!important;text-align:center}
.hm-contact-submit{display:flex;align-items:center;justify-content:center;gap:10px;min-width:190px}
.hm-contact-privacy{text-align:center;font-size:10px;color:#8b938a;margin:13px 0 0}
.hm-contact-alert{margin-bottom:17px}
.hm-sitemap{max-width:1240px;gap:3px}
.hm-sitemap a{padding:8px 3px;gap:5px;min-width:0}
.hm-sitemap a span{width:30px;height:30px;flex:0 0 30px;font-size:15px}
.hm-sitemap a small{font-size:10px;letter-spacing:0}
@media(min-width:1101px){.hm-sitemap{gap:2px}.hm-sitemap a{padding-left:2px;padding-right:2px}}
@media(max-width:760px){.hm-contact-layout{grid-template-columns:1fr}.hm-contact-aside{padding:23px}.hm-contact-form-card{padding:22px}.hm-contact-form-grid{grid-template-columns:1fr}.hm-contact-full{grid-column:auto}.hm-contact-human{align-items:flex-start;flex-direction:column}.hm-contact-equation{align-self:flex-end}}
@media(max-width:480px){.hm-contact-hero{padding:28px 16px}.hm-contact-form-card{padding:18px}.hm-contact-tags{gap:5px}.hm-contact-tags span{font-size:10px}}

/* v1.4.7 refinement: centered contact introduction and compact navigation */
.hm-contact-aside-icon{margin-left:auto;margin-right:auto}
.hm-contact-aside h2{text-align:center}
.hm-contact-aside>p{text-align:center;max-width:310px;margin-left:auto;margin-right:auto}
.hm-public-nav{justify-content:center;gap:3px}
.hm-public-nav a{padding:9px 10px;gap:5px;font-size:12px}
.hm-sitemap{max-width:880px;gap:5px 7px}
.hm-sitemap a{min-width:68px;padding:6px 7px;gap:4px;border-radius:9px}
.hm-sitemap a span{width:27px;height:27px;font-size:14px}
.hm-sitemap a small{font-size:10px}
@media(min-width:1101px){
 .hm-public-nav{gap:2px}
 .hm-public-nav a{padding:8px 9px}
 .hm-sitemap{max-width:850px;flex-wrap:nowrap;gap:4px}
 .hm-sitemap a{min-width:0;flex:1;padding:6px 4px}
}
@media(max-width:900px){
 .hm-public-nav{gap:2px}
 .hm-public-nav a{padding:8px 9px;font-size:11px}
}

/* v1.4.7 Contact hero icon alignment correction */
.hm-contact-art{
  width:auto;
  height:58px;
  margin:0 auto 9px;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:9px;
}
.hm-contact-art-ring{
  position:static;
  width:48px;
  height:48px;
  flex:0 0 48px;
  display:grid;
  place-items:center;
  margin:0;
  line-height:1;
}
.hm-contact-art-leaf{
  position:static;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:48px;
  margin:0;
  transform:none;
  line-height:1;
  font-size:27px;
}


/* v1.4.7 About page refresh — coordinated with Contact page */
.hm-about-page{max-width:1160px;padding:34px 22px 58px}
.hm-about-hero{text-align:center;padding:36px 28px 30px;border:1px solid #e8e9df;border-radius:20px;background:linear-gradient(180deg,#fafbf7,#f4f6ef);box-shadow:0 9px 28px rgba(43,61,46,.045)}
.hm-about-emblem{position:relative;width:66px;height:66px;margin:0 auto 13px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #e5e2d4;box-shadow:0 7px 20px rgba(47,65,50,.08);color:#a4864f;font-size:27px}
.hm-about-emblem i{position:absolute;font-style:normal;font-size:14px;right:7px;bottom:5px;color:#82977e}
.hm-about-eyebrow,.hm-about-kicker{font-size:10px;font-weight:750;letter-spacing:2px;color:#a4864f;margin:0 0 10px}
.hm-about-hero h1{max-width:720px;margin:0 auto 13px;color:#2c4436;font:500 clamp(30px,4vw,43px)/1.15 Georgia,serif}
.hm-about-lead{max-width:730px;margin:0 auto;color:#6f7c70;font-size:14px;line-height:1.85}
.hm-about-ornament{display:flex;align-items:center;justify-content:center;gap:12px;color:#a4864f;margin-top:17px}
.hm-about-ornament span{width:48px;height:1px;background:#d9d7c7}
.hm-about-story{display:grid;grid-template-columns:minmax(250px,.85fr) minmax(0,1.4fr);gap:38px;align-items:center;padding:48px 5.5%}
.hm-about-story-art{min-height:255px;border-radius:18px;background:linear-gradient(145deg,#304a3b,#20382d);display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden;color:#e5d2a4}
.hm-about-story-art:before,.hm-about-story-art:after{content:"";position:absolute;border:1px solid rgba(230,215,174,.25);border-radius:50%;width:260px;height:260px}
.hm-about-story-art:after{width:205px;height:205px}
.hm-about-art-circle{z-index:1;width:82px;height:82px;border-radius:50%;border:1px solid rgba(255,255,255,.4);display:grid;place-items:center;font-size:36px}
.hm-about-art-caption{z-index:1;margin-top:16px;text-align:center;font:12px/1.6 Georgia,serif;letter-spacing:3px;color:#f4ead0}
.hm-about-story-copy h2,.hm-about-section-heading h2,.hm-about-cta h2{font:500 clamp(25px,3vw,34px)/1.2 Georgia,serif;color:#2d4436;margin:0 0 15px}
.hm-about-story-copy>p:not(.hm-about-kicker){font-size:13px;line-height:1.9;color:#6c796e;margin:0 0 13px}
.hm-about-values{padding:38px 24px 43px;background:#f7f8f3;border:1px solid #e9ebe2;border-radius:19px}
.hm-about-section-heading{text-align:center;margin-bottom:25px}
.hm-about-section-heading>p:last-child{font-size:12px;color:#7b867c;margin:0}
.hm-about-value-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.hm-about-value{padding:23px 20px;background:#fff;border:1px solid #e7e9df;border-radius:14px;text-align:center}
.hm-about-value>span{width:42px;height:42px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#f5f5ed;color:#a4864f;font-size:21px}
.hm-about-value h3{font:500 19px Georgia,serif;color:#344b3b;margin:0 0 9px}
.hm-about-value p{font-size:11px;line-height:1.75;color:#788278;margin:0}
.hm-about-cta{margin-top:28px;padding:36px 24px;text-align:center;background:#263f32;border-radius:19px;color:#f8f6ed}
.hm-about-cta .hm-about-kicker{color:#e2cc98}
.hm-about-cta h2{color:#fff;margin-bottom:10px}
.hm-about-cta>p:not(.hm-about-kicker){font-size:12px;color:#dce4da;margin:0 auto 19px;line-height:1.7}
.hm-about-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.hm-about-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 17px;border-radius:8px;text-decoration:none;font-size:12px;font-weight:700}
.hm-about-button-light{background:#fff;color:#2d4637}
.hm-about-button-gold{background:#dfc995;color:#293f32}
@media(max-width:760px){.hm-about-page{padding:22px 14px 38px}.hm-about-hero{padding:28px 18px}.hm-about-story{grid-template-columns:1fr;gap:23px;padding:28px 4%}.hm-about-story-art{min-height:205px}.hm-about-value-grid{grid-template-columns:1fr}.hm-about-values{padding:28px 15px}.hm-about-cta{padding:29px 18px}}


/* v1.4.7 final Contact hero decoration spacing */
.hm-contact-art{
  width:100%;
  height:58px;
  margin:0 auto 9px;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:30px;
}
.hm-contact-art-ring{
  position:static;
  flex:0 0 48px;
  width:48px;
  height:48px;
  margin:0;
  display:grid;
  place-items:center;
  line-height:1;
}
.hm-contact-art-leaf{
  position:static;
  flex:0 0 34px;
  width:34px;
  height:48px;
  margin:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transform:none;
  line-height:1;
}


/* v1.4.7 Contact hero: single centered email emblem */
.hm-contact-art{
  width:100%;
  height:58px;
  margin:0 auto 9px;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:0;
}
.hm-contact-art-ring{
  position:static;
  flex:0 0 54px;
  width:54px;
  height:54px;
  margin:0;
  display:grid;
  place-items:center;
  line-height:1;
  font-size:27px;
}
.hm-contact-art-leaf{display:none!important}


/* v1.4.7 About page refresh — coordinated with Contact page */
.hm-about-page{max-width:1160px;padding:34px 22px 58px}
.hm-about-hero{text-align:center;padding:36px 28px 30px;border:1px solid #e8e9df;border-radius:20px;background:linear-gradient(180deg,#fafbf7,#f4f6ef);box-shadow:0 9px 28px rgba(43,61,46,.045)}
.hm-about-emblem{position:relative;width:66px;height:66px;margin:0 auto 13px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #e5e2d4;box-shadow:0 7px 20px rgba(47,65,50,.08);color:#a4864f;font-size:27px}
.hm-about-emblem i{position:absolute;font-style:normal;font-size:14px;right:7px;bottom:5px;color:#82977e}
.hm-about-eyebrow,.hm-about-kicker{font-size:10px;font-weight:750;letter-spacing:2px;color:#a4864f;margin:0 0 10px}
.hm-about-hero h1{max-width:720px;margin:0 auto 13px;color:#2c4436;font:500 clamp(30px,4vw,43px)/1.15 Georgia,serif}
.hm-about-lead{max-width:730px;margin:0 auto;color:#6f7c70;font-size:14px;line-height:1.85}
.hm-about-ornament{display:flex;align-items:center;justify-content:center;gap:12px;color:#a4864f;margin-top:17px}
.hm-about-ornament span{width:48px;height:1px;background:#d9d7c7}
.hm-about-story{display:grid;grid-template-columns:minmax(250px,.85fr) minmax(0,1.4fr);gap:38px;align-items:center;padding:48px 5.5%}
.hm-about-story-art{min-height:255px;border-radius:18px;background:linear-gradient(145deg,#304a3b,#20382d);display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden;color:#e5d2a4}
.hm-about-story-art:before,.hm-about-story-art:after{content:"";position:absolute;border:1px solid rgba(230,215,174,.25);border-radius:50%;width:260px;height:260px}
.hm-about-story-art:after{width:205px;height:205px}
.hm-about-art-circle{z-index:1;width:82px;height:82px;border-radius:50%;border:1px solid rgba(255,255,255,.4);display:grid;place-items:center;font-size:36px}
.hm-about-art-caption{z-index:1;margin-top:16px;text-align:center;font:12px/1.6 Georgia,serif;letter-spacing:3px;color:#f4ead0}
.hm-about-story-copy h2,.hm-about-section-heading h2,.hm-about-cta h2{font:500 clamp(25px,3vw,34px)/1.2 Georgia,serif;color:#2d4436;margin:0 0 15px}
.hm-about-story-copy>p:not(.hm-about-kicker){font-size:13px;line-height:1.9;color:#6c796e;margin:0 0 13px}
.hm-about-values{padding:38px 24px 43px;background:#f7f8f3;border:1px solid #e9ebe2;border-radius:19px}
.hm-about-section-heading{text-align:center;margin-bottom:25px}
.hm-about-section-heading>p:last-child{font-size:12px;color:#7b867c;margin:0}
.hm-about-value-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.hm-about-value{padding:23px 20px;background:#fff;border:1px solid #e7e9df;border-radius:14px;text-align:center}
.hm-about-value>span{width:42px;height:42px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#f5f5ed;color:#a4864f;font-size:21px}
.hm-about-value h3{font:500 19px Georgia,serif;color:#344b3b;margin:0 0 9px}
.hm-about-value p{font-size:11px;line-height:1.75;color:#788278;margin:0}
.hm-about-cta{margin-top:28px;padding:36px 24px;text-align:center;background:#263f32;border-radius:19px;color:#f8f6ed}
.hm-about-cta .hm-about-kicker{color:#e2cc98}
.hm-about-cta h2{color:#fff;margin-bottom:10px}
.hm-about-cta>p:not(.hm-about-kicker){font-size:12px;color:#dce4da;margin:0 auto 19px;line-height:1.7}
.hm-about-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.hm-about-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 17px;border-radius:8px;text-decoration:none;font-size:12px;font-weight:700}
.hm-about-button-light{background:#fff;color:#2d4637}
.hm-about-button-gold{background:#dfc995;color:#293f32}
@media(max-width:760px){.hm-about-page{padding:22px 14px 38px}.hm-about-hero{padding:28px 18px}.hm-about-story{grid-template-columns:1fr;gap:23px;padding:28px 4%}.hm-about-story-art{min-height:205px}.hm-about-value-grid{grid-template-columns:1fr}.hm-about-values{padding:28px 15px}.hm-about-cta{padding:29px 18px}}


/* v1.4.7 Terms, Privacy and FAQ visitor page design */
.hm-legal-page{max-width:1160px;margin:0 auto;padding:34px 22px 58px}
.hm-legal-hero{text-align:center;padding:35px 25px 31px;border:1px solid #e8e9df;border-radius:20px;background:linear-gradient(180deg,#fafbf7,#f4f6ef);box-shadow:0 9px 28px rgba(43,61,46,.045)}
.hm-legal-emblem{width:62px;height:62px;margin:0 auto 13px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #e5e2d4;box-shadow:0 7px 20px rgba(47,65,50,.08);color:#a4864f;font-size:27px}
.hm-legal-kicker{font-size:10px;font-weight:750;letter-spacing:2px;color:#a4864f;margin:0 0 10px}
.hm-legal-hero h1{font:500 clamp(30px,4vw,42px)/1.15 Georgia,serif;color:#2c4436;margin:0 auto 12px}
.hm-legal-hero>p:last-child{max-width:700px;margin:0 auto;color:#6f7c70;font-size:14px;line-height:1.8}
.hm-legal-content{display:grid;grid-template-columns:minmax(220px,.62fr) minmax(0,1.65fr);gap:22px;align-items:start;margin-top:25px}
.hm-legal-side{position:sticky;top:20px;padding:25px 22px;border-radius:17px;background:linear-gradient(150deg,#304a3b,#223a2e);color:#f8f6ed}
.hm-legal-side strong{font:500 21px Georgia,serif;color:#fff}
.hm-legal-side p{font-size:12px;line-height:1.8;color:#dce4d9;margin:12px 0 18px}
.hm-legal-side a{color:#e5d2a4;text-decoration:none;font-size:11px;font-weight:700}
.hm-legal-card{padding:30px 34px;border:1px solid #e7e9df;border-radius:18px;background:#fff;box-shadow:0 9px 27px rgba(43,61,46,.045)}
.hm-legal-intro{font:17px/1.7 Georgia,serif;color:#455b49;margin:0 0 22px;padding-bottom:20px;border-bottom:1px solid #eceee6}
.hm-legal-card section{margin:0 0 21px}
.hm-legal-card h2{font:500 21px Georgia,serif;color:#304a3b;margin:0 0 8px}
.hm-legal-card section p{font-size:12px;line-height:1.9;color:#68766a;margin:0 0 9px}
.hm-legal-card a,.hm-faq-group a{color:#8b7040;text-decoration:underline;text-underline-offset:3px}
.hm-legal-note{margin:24px 0 0;padding:13px 15px;border-radius:10px;background:#f5f6ef;color:#788276;font-size:10px;line-height:1.7}
.hm-faq-layout{max-width:900px;margin:25px auto 0;display:grid;gap:15px}
.hm-faq-group{padding:23px 25px;border:1px solid #e7e9df;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(43,61,46,.035)}
.hm-faq-group>h2{font:500 22px Georgia,serif;color:#304a3b;margin:0 0 13px}
.hm-faq-group details{border-top:1px solid #edf0e8;padding:13px 2px}
.hm-faq-group details:first-of-type{border-top:0}
.hm-faq-group summary{cursor:pointer;list-style:none;position:relative;padding-right:28px;color:#405747;font-size:13px;font-weight:700}
.hm-faq-group summary::-webkit-details-marker{display:none}
.hm-faq-group summary:after{content:"+";position:absolute;right:3px;top:-4px;color:#a4864f;font-size:20px;font-weight:400}
.hm-faq-group details[open] summary:after{content:"−"}
.hm-faq-group details p{margin:10px 0 1px;color:#718074;font-size:12px;line-height:1.85}
.hm-faq-contact{padding:28px 22px;text-align:center;border-radius:17px;background:#263f32;color:#f8f6ed}
.hm-faq-contact h2{font:500 24px Georgia,serif;color:#fff;margin:0 0 8px}
.hm-faq-contact p{font-size:12px;color:#dce4d9;margin:0 0 15px}
.hm-faq-contact a{display:inline-flex;padding:10px 18px;border-radius:8px;background:#dfc995;color:#293f32;text-decoration:none;font-size:12px;font-weight:700}
@media(max-width:760px){.hm-legal-page{padding:22px 14px 38px}.hm-legal-hero{padding:28px 18px}.hm-legal-content{grid-template-columns:1fr}.hm-legal-side{position:static}.hm-legal-card{padding:22px 19px}.hm-faq-group{padding:20px 17px}}


/* v1.4.8 — visitor video suggestions and responsive thumbnail cards */
.hm-video-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:18px 0}.hm-video-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;padding:10px}.hm-video-card>a{display:block;position:relative}.hm-video-card img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px}.hm-video-card a span{display:block;text-align:center;font-weight:700;padding:8px}.hm-video-card small{color:var(--muted)}.hm-video-suggest-form{margin-top:20px}.hm-youtube-preview{max-width:360px;margin:12px 0}.hm-youtube-preview img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px}.hm-youtube-preview span{display:block;color:var(--muted);font-size:12px}

/* v1.4.8 Video Tribute feature — coordinated forest green, warm gold and ivory styling */
#video-tributes.video-tribute-section{max-width:760px;margin:44px auto 0;padding:0;overflow:hidden;text-align:left;border:1px solid #d9dfd5;border-radius:14px;background:linear-gradient(145deg,#fbfcf8,#f1f5ee);box-shadow:0 10px 28px rgba(39,59,45,.08)}
#video-tributes .video-tribute-heading{padding:26px 28px 22px;text-align:center;background:linear-gradient(120deg,#315b4d,#496e5b);color:#fff}
#video-tributes .video-tribute-icon{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 10px;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(255,255,255,.12);font-size:23px}
#video-tributes .video-tribute-heading h2{margin:0;color:#fff;font:500 30px/1.2 'Playfair Display',Georgia,serif}
#video-tributes .video-tribute-heading p{max-width:570px;margin:9px auto 0;color:#e7eee8;font-size:14px;line-height:1.65}
#video-tributes .video-tribute-content{padding:24px 28px 28px}
#video-tributes .video-info-panel{margin:0 0 22px;padding:15px 17px;border:1px solid #e2d5b8;border-left:4px solid #c5a66a;border-radius:8px;background:#fffdf7;color:#58645b}
#video-tributes .video-info-panel strong{display:block;margin-bottom:5px;color:#365847;font-size:13px}
#video-tributes .video-info-panel p{margin:0;font-size:13px;line-height:1.6}
#video-tributes .video-info-panel ul{margin:8px 0 0;padding-left:19px;font-size:12px;line-height:1.7}
#video-tributes .hm-video-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:0 0 24px}
#video-tributes .hm-video-card{overflow:hidden;border:1px solid #e0e5dc;border-radius:10px;background:#fff}
#video-tributes .hm-video-card a{position:relative;display:block;color:#fff;text-decoration:none}
#video-tributes .hm-video-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
#video-tributes .hm-video-card a span{position:absolute;left:10px;bottom:10px;padding:7px 11px;border-radius:20px;background:#315b4d;color:#fff;font-size:11px;font-weight:700}
#video-tributes .hm-video-card>p,#video-tributes .hm-video-card>small{display:block;margin:10px 12px;color:#667269}
#video-tributes .hm-video-card>p{font-size:13px}
#video-tributes .hm-video-card>small{margin-top:0;margin-bottom:12px;font-size:11px}
#video-tributes .video-form-title{margin:0 0 4px;color:#365847;font:500 21px 'Playfair Display',Georgia,serif;text-align:center}
#video-tributes .video-form-intro{margin:0 0 16px;color:#778179;font-size:12px;text-align:center}
#video-tributes .hm-video-suggest-form{max-width:590px;margin:0 auto}
#video-tributes .hm-video-suggest-form label{display:block;margin:13px 0 6px;color:#56675c;font-size:12px;font-weight:700}
#video-tributes .hm-video-suggest-form input:not([type=hidden]),#video-tributes .hm-video-suggest-form textarea{box-sizing:border-box;width:100%;padding:12px 13px;border:1px solid #d7dfd5;border-radius:6px;background:#fff;color:#34463b;font:14px 'DM Sans',Arial,sans-serif}
#video-tributes .hm-video-suggest-form input:focus,#video-tributes .hm-video-suggest-form textarea:focus{outline:2px solid rgba(197,166,106,.35);border-color:#9caa98}
#video-tributes .hm-video-suggest-form textarea{min-height:84px;resize:vertical}
#video-tributes .hm-video-suggest-form button{display:block;min-width:210px;margin:18px auto 0;padding:12px 22px;border:0;border-radius:6px;background:#426b58;color:#fff;font-weight:700;cursor:pointer}
#video-tributes .hm-video-suggest-form button:hover{background:#315b4d}
#video-tributes .hm-youtube-preview{display:flex;align-items:center;gap:12px;margin:12px 0;padding:10px;border:1px solid #e2e7df;border-radius:8px;background:#fff;color:#53645a;font-size:12px}
#video-tributes .hm-youtube-preview img{width:112px;aspect-ratio:16/9;object-fit:cover;border-radius:5px}
#video-tributes .video-privacy-note{margin:16px 0 0;color:#78837a;font-size:11px;line-height:1.55;text-align:center}
@media(max-width:600px){#video-tributes .video-tribute-heading{padding:22px 18px}#video-tributes .video-tribute-heading h2{font-size:26px}#video-tributes .video-tribute-content{padding:19px 16px 22px}}


/* v1.4.8 admin consistency layer — shared polish across administration screens */
body.hm-admin-layout{background:#f5f6f1;color:#34463a}
body.hm-admin-layout .admin-header{background:rgba(255,255,255,.96);border-bottom:1px solid #e3e8df;box-shadow:0 3px 14px rgba(36,55,40,.045)}
body.hm-admin-layout .admin-header .brand{color:#304b3b}
body.hm-admin-layout .admin-header nav a{color:#526456}
body.hm-admin-layout main.admin-wrap{max-width:1180px;margin:34px auto;padding:0 24px 70px}
body.hm-admin-layout main.admin-wrap>h1{color:#304b3b;font:500 clamp(27px,4vw,36px)/1.2 Georgia,serif;margin:0 0 9px}
body.hm-admin-layout main.admin-wrap>p{color:#718074;line-height:1.7}
body.hm-admin-layout .admin-panel{padding:22px 24px;border:1px solid #e3e9e0;border-radius:13px;background:#fff;box-shadow:0 7px 22px rgba(43,67,48,.045);margin:18px 0}
body.hm-admin-layout .admin-panel h2{color:#304b3b;font:500 22px Georgia,serif}
body.hm-admin-layout .admin-panel label{color:#526456;font-size:13px}
body.hm-admin-layout .admin-panel input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body.hm-admin-layout .admin-panel select,body.hm-admin-layout .admin-panel textarea{border:1px solid #d9e1d7;border-radius:7px;padding:10px 12px;color:#354a3b;background:#fff;max-width:100%}
body.hm-admin-layout .admin-panel input:focus,body.hm-admin-layout .admin-panel select:focus,body.hm-admin-layout .admin-panel textarea:focus{outline:2px solid rgba(197,166,106,.35);border-color:#9caa98}
body.hm-admin-layout .notice{padding:13px 16px;border:1px solid #dce8d9;border-left:4px solid #64866a;border-radius:8px;background:#f2f7f0;color:#405b45}
body.hm-admin-layout .button{border-radius:7px}
body.hm-admin-layout .button:not(.button-outline){background:#426b58}
body.hm-admin-layout .button:not(.button-outline):hover{background:#315b4d}
@media(max-width:700px){body.hm-admin-layout main.admin-wrap{padding:0 14px 45px}body.hm-admin-layout .admin-panel{padding:18px 15px}}
/* Center the YouTube preview thumbnail in the visitor suggestion form. */
#video-tributes .hm-youtube-preview{width:fit-content;max-width:100%;margin:14px auto;justify-content:center;text-align:center}
#video-tributes .hm-youtube-preview img{display:block;flex:0 1 220px;width:min(220px,100%);height:auto}


/* v1.6.0 — Responsive system-wide polish: phone, tablet and desktop */
html{scroll-behavior:smooth;max-width:100%;overflow-x:hidden}
body{max-width:100%;overflow-x:hidden}
img,video,iframe,svg{max-width:100%}
button,input,select,textarea{font:inherit}
input,select,textarea{min-width:0;max-width:100%;box-sizing:border-box}
table{max-width:100%}
@media(max-width:980px){
 body.hm-admin-layout{padding-left:0!important}
 .hm-admin-sidebar{position:relative;inset:auto;width:100%;height:auto;max-height:none;overflow:visible;padding:10px 14px 12px}
 .hm-admin-mobile-toggle{display:flex!important;align-items:center;justify-content:center;gap:10px;width:100%;min-height:43px;margin:0 0 10px;padding:10px 13px;border:1px solid rgba(225,202,151,.38);border-radius:9px;background:#294638;color:#fff;font-weight:750;font-size:13px}
 .hm-admin-brand{padding:5px 6px 11px;margin-bottom:10px}
 .hm-admin-current{margin:0 0 10px;padding:9px 11px}
 .hm-admin-menu{display:none!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
 .hm-admin-menu.is-open{display:grid!important}
 .hm-admin-nav-group h2{margin:4px 8px 6px;font-size:9px}
 .hm-admin-nav-link{min-height:42px;padding:9px 10px;font-size:12px}
 .hm-admin-sidebar-footer{margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .hm-admin-sidebar-footer small{grid-column:1/-1}
 body.hm-admin-layout main:not(.vs-main):not(.fs-main):not(.qm-main){padding-top:22px}
}
@media(max-width:640px){
 .hm-admin-menu.is-open{grid-template-columns:1fr}
 .hm-admin-nav-link{min-height:44px;font-size:13px}
 .hm-admin-brand strong{font-size:14px}
 .hm-admin-sidebar-footer a{min-height:40px}
 body.hm-admin-layout main{padding-left:14px!important;padding-right:14px!important}
 body.hm-admin-layout main:not(.vs-main):not(.fs-main):not(.qm-main){padding-top:18px;padding-bottom:40px}
 body.hm-admin-layout .hm-box,body.hm-admin-layout .admin-panel{padding:14px}
 body.hm-admin-layout .hm-form{grid-template-columns:1fr!important}
 body.hm-admin-layout .hm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.hm-admin-layout table{display:block;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}
 .hm-public-header{position:sticky;top:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:9px 14px}
 .hm-public-header .brand{min-width:0;max-width:100%;gap:8px}
 .hm-public-header .brand img{max-height:42px;width:auto}
 .hm-nav-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:43px;min-height:42px}
 .hm-public-nav{display:none;grid-column:1/-1;width:100%;padding:7px;border:1px solid #e5e9e2;border-radius:12px;background:#fff;box-shadow:0 8px 22px #20382a12}
 .hm-public-nav.is-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 .hm-public-nav a{justify-content:flex-start;min-height:42px;padding:10px 11px;border-radius:8px;font-size:12px}
 .hm-public-footer{margin-top:38px;padding:25px 14px 18px}
 .hm-sitemap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .hm-sitemap a{min-width:0;padding:9px 5px}
 .hm-sitemap a small{font-size:10px}
 .hm-page-shell{padding:22px 14px 42px}
 .hm-page-hero{padding:32px 15px 28px;border-radius:15px}
 .hm-page-hero h1{font-size:clamp(29px,8vw,40px)}
 .hm-page-lead{font-size:14px;line-height:1.65}
 .hm-contact-layout{grid-template-columns:1fr!important}
}
@media(max-width:380px){
 .hm-public-nav.is-open{grid-template-columns:1fr}
 body.hm-admin-layout .hm-grid{grid-template-columns:1fr}
 .hm-sitemap{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* v1.6.0 responsive safeguards for legacy page modules */
*{min-width:0}
@media(max-width:760px){
 .admin-content,.admin-main,.dashboard-main,.page-content,.content-wrap{max-width:100%;box-sizing:border-box;padding-left:16px;padding-right:16px}
 .form-grid,.admin-grid,.dashboard-grid,.settings-grid,.editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-toolbar,.page-toolbar,.section-toolbar{align-items:stretch;flex-wrap:wrap;gap:10px}
 .admin-toolbar>* ,.page-toolbar>*{max-width:100%}
 .modal,.dialog,.admin-modal{width:min(96vw,620px);max-width:96vw}
}
@media(max-width:520px){
 .form-grid,.admin-grid,.dashboard-grid,.settings-grid,.editor-grid{grid-template-columns:1fr}
 .admin-actions,.toolbar-actions,.button-row{display:flex;flex-wrap:wrap;gap:8px}
 .admin-actions a,.admin-actions button,.toolbar-actions a,.toolbar-actions button,.button-row a,.button-row button{min-height:40px}
 .card,.panel,.admin-card{max-width:100%;box-sizing:border-box}
 input[type=file]{width:100%;max-width:100%}
}

/* v1.7.3 — Public visitor statistics strip */
.hm-public-stats{max-width:1160px;margin:24px auto 12px;padding:16px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;background:linear-gradient(115deg,#edf3ec,#f8f5eb);border:1px solid #e0e8dc;border-radius:13px;color:#355342}
.hm-public-stats div{text-align:center;padding:7px}.hm-public-stats strong{display:block;font:600 24px Georgia,serif;color:#294638}.hm-public-stats span{font-size:10px;letter-spacing:.7px;text-transform:uppercase;color:#738075}
@media(max-width:620px){.hm-public-stats{margin:18px 12px 10px;grid-template-columns:repeat(2,minmax(0,1fr))}.hm-public-stats strong{font-size:20px}}

/* v1.7.4: featured memorials with integrated recently viewed sidebar */
.featured-content-layout{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:22px;align-items:start}
.featured-main-column{min-width:0}
.featured-main-column .home-photo-featured{width:100%}
.recently-viewed{position:relative;z-index:1;width:auto;max-height:560px;overflow:auto;margin:0;padding:13px 11px 15px;border:1px solid #dfe8dc;border-radius:14px;background:linear-gradient(160deg,#edf4ed,#f8f4e9);box-shadow:0 10px 28px #263d2d18}
.recently-viewed[hidden]{display:none}
.recently-viewed .section-heading{margin:0 0 10px}
.recently-viewed .section-heading h2{font-size:17px}
.recently-viewed .eyebrow{font-size:9px}
.recently-viewed .home-photo-grid{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
.recently-viewed .album-card{display:grid;grid-template-columns:68px 1fr;gap:8px;min-height:76px;padding:6px;border:1px solid #e5e9df;border-radius:9px;background:#fff}
.recently-viewed .album-photo{width:68px;height:76px;min-height:76px;border-radius:6px}
.recently-viewed .photo-caption{display:none}
.recently-viewed .album-card-foot{display:flex;flex-direction:column;justify-content:center;gap:4px;border:0;padding:2px;font-size:9px}
.hm-live-visitors{display:inline-flex;align-items:center;gap:7px;margin-left:12px;padding:7px 10px;border:1px solid #dfe8dc;border-radius:999px;background:#f6faf5;color:#476653;font-size:12px;white-space:nowrap}
.hm-live-visitors strong{font-variant-numeric:tabular-nums;color:#244c38}
.hm-live-dot{width:7px;height:7px;border-radius:50%;background:#4c9b69;box-shadow:0 0 0 3px #4c9b6920}
@media(max-width:1100px){.featured-content-layout{grid-template-columns:minmax(0,1fr) 175px;gap:14px}}
@media(max-width:760px){.featured-content-layout{grid-template-columns:1fr}.recently-viewed{max-height:none;order:2}.recently-viewed .home-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.recently-viewed .album-card{grid-template-columns:58px 1fr}.recently-viewed .album-photo{width:58px;height:64px;min-height:64px}.hm-live-visitors{margin:8px 0 0}}
\n\n/* v1.7.5: featured memorial six-card rotation and correctly proportioned recent views */
.featured-content-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 238px!important;gap:24px!important;align-items:start!important}
.featured-main-column{min-width:0!important}
.photo-album-grid.home-photo-featured{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important;align-items:stretch!important}
.photo-album-grid.home-photo-featured>.album-card[hidden]{display:none!important}
.photo-album-grid.home-photo-featured>.album-card{min-width:0!important}
.recently-viewed{width:100%!important;max-height:none!important;overflow:visible!important;padding:16px!important;border:1px solid #dfe7dc!important;border-radius:14px!important;background:linear-gradient(155deg,#eef4ed 0%,#f7f4e9 100%)!important;box-shadow:0 8px 24px rgba(38,61,45,.09)!important}
.recently-viewed .section-heading{margin:0 0 14px!important}
.recently-viewed .section-heading h2{font-family:var(--home-font,Georgia,serif)!important;font-size:18px!important;line-height:1.25!important;color:#263a30!important}
.recently-viewed .home-photo-grid{display:flex!important;flex-direction:column!important;gap:12px!important;width:100%!important}
.recently-viewed .recent-view-card{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;width:100%!important;min-width:0!important;min-height:112px!important;padding:7px!important;border:1px solid #e1e7dc!important;border-radius:10px!important;background:#fff!important;overflow:hidden!important;text-decoration:none!important;box-shadow:0 3px 10px rgba(36,50,40,.05)!important}
.recently-viewed .recent-view-photo{position:relative!important;display:block!important;width:92px!important;height:112px!important;min-width:92px!important;min-height:112px!important;max-height:112px!important;aspect-ratio:23/28!important;overflow:hidden!important;border-radius:7px!important;background:#e7e8df!important}
.recently-viewed .recent-view-photo img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center 35%!important}
.recently-viewed .recent-view-details{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:5px!important;min-width:0!important;padding:4px!important;border:0!important;font-size:11px!important;color:#68756c!important}
.recently-viewed .recent-view-details strong{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;font-family:var(--home-font,Georgia,serif)!important;font-size:14px!important;line-height:1.25!important;color:#263a30!important}
.recently-viewed .recent-view-details small{font-size:10px!important;line-height:1.3!important;color:#78827c!important}
.recently-viewed .recent-view-details span{font-size:10px!important;color:#927342!important}
@media(max-width:1100px){.featured-content-layout{grid-template-columns:minmax(0,1fr) 215px!important;gap:16px!important}.photo-album-grid.home-photo-featured{gap:14px!important}}
@media(max-width:760px){.featured-content-layout{grid-template-columns:1fr!important}.photo-album-grid.home-photo-featured{grid-template-columns:repeat(2,minmax(0,1fr))!important}.recently-viewed{order:2!important}.recently-viewed .home-photo-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.recently-viewed .recent-view-card{grid-template-columns:76px minmax(0,1fr)!important;min-height:96px!important}.recently-viewed .recent-view-photo{width:76px!important;min-width:76px!important;height:96px!important;min-height:96px!important}}
@media(max-width:480px){.photo-album-grid.home-photo-featured{grid-template-columns:1fr!important}.recently-viewed .home-photo-grid{grid-template-columns:1fr!important}}


/* v1.7.6: fix recent-view portrait sizing against legacy album-photo rules */
.home-photo-recent .home-photo-grid{display:flex!important;flex-direction:column!important;gap:12px!important;min-width:0!important}
.home-photo-recent .recent-view-card{display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;align-items:center!important;width:100%!important;min-width:0!important;min-height:108px!important;box-sizing:border-box!important}
.home-photo-recent .recent-view-photo,
.home-photo-recent .album-photo.recent-view-photo{position:relative!important;display:block!important;flex:none!important;width:88px!important;min-width:88px!important;max-width:88px!important;height:108px!important;min-height:108px!important;max-height:108px!important;aspect-ratio:22/27!important;box-sizing:border-box!important;overflow:hidden!important}
.home-photo-recent .recent-view-photo img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center 35%!important}
.home-photo-recent .recent-view-details{min-width:0!important;width:auto!important;overflow:hidden!important}
.home-photo-recent .section-heading{margin:0 0 12px!important}
.home-photo-recent .section-heading .eyebrow{margin:0!important;font-size:10px!important;letter-spacing:1.5px!important;color:#927342!important}
@media(max-width:760px){
 .home-photo-recent .recent-view-card{grid-template-columns:76px minmax(0,1fr)!important;min-height:96px!important}
 .home-photo-recent .recent-view-photo,.home-photo-recent .album-photo.recent-view-photo{width:76px!important;min-width:76px!important;max-width:76px!important;height:96px!important;min-height:96px!important;max-height:96px!important}
}

/* v1.7.7: isolate Recently Viewed cards from legacy gallery card classes.
   The legacy album-card/album-photo/album-card-foot classes imposed
   gallery sizing rules that collapsed the portrait thumbnail. */
.home-photo-recent .recent-view-card{display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;width:100%!important;min-width:0!important;min-height:112px!important;padding:7px!important;box-sizing:border-box!important;border:1px solid #e1e7dc!important;border-radius:10px!important;background:#fff!important;overflow:hidden!important;text-decoration:none!important}
.home-photo-recent .recent-view-photo{position:relative!important;display:block!important;grid-column:auto!important;grid-row:auto!important;float:none!important;flex:none!important;width:88px!important;min-width:88px!important;max-width:88px!important;height:108px!important;min-height:108px!important;max-height:108px!important;margin:0!important;padding:0!important;aspect-ratio:22/27!important;box-sizing:border-box!important;overflow:hidden!important;border-radius:7px!important;background:#e7e8df!important}
.home-photo-recent .recent-view-photo img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;object-fit:cover!important;object-position:center 35%!important}
.home-photo-recent .recent-view-details{display:flex!important;position:relative!important;grid-column:auto!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:5px!important;min-width:0!important;width:auto!important;margin:0!important;padding:4px!important;box-sizing:border-box!important;overflow:hidden!important;border:0!important;background:transparent!important}
@media(max-width:760px){.home-photo-recent .recent-view-card{grid-template-columns:76px minmax(0,1fr)!important;min-height:100px!important}.home-photo-recent .recent-view-photo{width:76px!important;min-width:76px!important;max-width:76px!important;height:92px!important;min-height:92px!important;max-height:92px!important}}


/* v1.7.8 — independent Recently Viewed layout.
   Do not inherit --hm-cols / gallery card settings: the sidebar is
   deliberately a single-column list with a fixed portrait thumbnail. */
.home-photo-recent {
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.home-photo-recent .recent-view-list {
  display:flex!important;
  flex-direction:column!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
}
.home-photo-recent .recent-view-card {
  display:grid!important;
  grid-template-columns:88px minmax(0,1fr)!important;
  grid-template-rows:minmax(108px,auto)!important;
  align-items:center!important;
  gap:10px!important;
  flex:0 0 auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:122px!important;
  margin:0!important;
  padding:7px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  border:1px solid #e1e7dc!important;
  border-radius:10px!important;
  background:#fff!important;
  text-decoration:none!important;
}
.home-photo-recent .recent-view-photo {
  display:block!important;
  position:relative!important;
  grid-column:1!important;
  grid-row:1!important;
  float:none!important;
  flex:0 0 88px!important;
  width:88px!important;
  min-width:88px!important;
  max-width:88px!important;
  height:108px!important;
  min-height:108px!important;
  max-height:108px!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  border-radius:7px!important;
  background:#e7e8df!important;
}
.home-photo-recent .recent-view-photo img {
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  min-width:100%!important;
  max-width:none!important;
  height:100%!important;
  min-height:100%!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  object-position:center 35%!important;
}
.home-photo-recent .recent-view-details {
  display:flex!important;
  position:relative!important;
  grid-column:2!important;
  grid-row:1!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:5px!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:4px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  border:0!important;
  background:transparent!important;
}
.home-photo-recent .recent-view-details strong {
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  font-family:var(--home-font,Georgia,serif)!important;
  font-size:14px!important;
  line-height:1.25!important;
  color:#263a30!important;
}
.home-photo-recent .recent-view-details small {
  font-size:10px!important;
  line-height:1.35!important;
  color:#78827c!important;
}
.home-photo-recent .recent-view-details span {
  font-size:10px!important;
  color:#927342!important;
}
@media(max-width:760px) {
  .home-photo-recent {display:none!important}
}


/* v1.7.9 — vertical recent memorial portraits and four-item history */
.home-photo-recent {
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  padding:14px!important;
  box-sizing:border-box!important;
}
.home-photo-recent > .section-heading {
  display:block!important;
  width:100%!important;
  margin:0 0 12px!important;
  padding:0 0 10px!important;
}
.home-photo-recent > .section-heading .eyebrow {
  display:block!important;
  white-space:nowrap!important;
  overflow:visible!important;
  font-size:7px!important;
  line-height:1.2!important;
  letter-spacing:1px!important;
  margin:0!important;
}
.home-photo-recent .recent-view-list {
  display:flex!important;
  flex-direction:column!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
}
.home-photo-recent .recent-view-card {
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  text-decoration:none!important;
  box-sizing:border-box!important;
}
.home-photo-recent .recent-view-photo {
  display:block!important;
  position:relative!important;
  width:96px!important;
  min-width:96px!important;
  max-width:96px!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:3 / 5!important;
  flex:none!important;
  margin:0 auto!important;
  padding:0!important;
  overflow:hidden!important;
  border:3px solid #fff!important;
  border-radius:8px!important;
  background:#e9e9e1!important;
  box-shadow:0 2px 8px rgba(32,48,39,.10)!important;
  box-sizing:border-box!important;
}
.home-photo-recent .recent-view-photo img {
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  object-position:center 35%!important;
}
.home-photo-recent .recent-view-details {
  display:block!important;
  position:static!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0 2px!important;
  overflow:visible!important;
  text-align:center!important;
  background:transparent!important;
  border:0!important;
  box-sizing:border-box!important;
}
.home-photo-recent .recent-view-details strong {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
  font-family:inherit!important;
  font-size:9px!important;
  font-weight:600!important;
  line-height:1.25!important;
  letter-spacing:.15px!important;
  color:#a17a3e!important;
  text-align:center!important;
}
.home-photo-recent .recent-view-details small,
.home-photo-recent .recent-view-details span {display:none!important}
@media(max-width:760px) {
  .home-photo-recent {display:none!important}
}


/* v1.8.0 — Recently Viewed heading treatment */
.home-photo-recent > .section-heading {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:42px!important;
  margin:0 0 12px!important;
  padding:10px 8px!important;
  box-sizing:border-box!important;
  text-align:center!important;
  background:#e5e9df!important;
  border:1px solid #d5ddcf!important;
  border-radius:8px!important;
}
.home-photo-recent > .section-heading > div {
  width:100%!important;
  min-width:0!important;
  text-align:center!important;
}
.home-photo-recent > .section-heading .eyebrow {
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  color:#8a6a36!important;
  font-size:9px!important;
  font-weight:700!important;
  letter-spacing:.13em!important;
  line-height:1.35!important;
  text-align:center!important;
  white-space:nowrap!important;
}


/* v1.8.1 — contained Recently Viewed header (isolated from global section-heading rules) */
#recentlyViewed {
  position:relative!important;
  overflow:hidden!important;
  padding:12px!important;
}
#recentlyViewed > .recent-view-heading {
  display:flex!important;
  position:static!important;
  inset:auto!important;
  float:none!important;
  transform:none!important;
  clear:both!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:42px!important;
  margin:0 0 12px!important;
  padding:9px 6px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  background:#dfe6d9!important;
  border:1px solid #cbd6c7!important;
  border-radius:8px!important;
  text-align:center!important;
}
#recentlyViewed > .recent-view-heading > p {
  display:block!important;
  position:static!important;
  float:none!important;
  transform:none!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  color:#826333!important;
  font-family:inherit!important;
  font-size:8px!important;
  font-weight:700!important;
  letter-spacing:.12em!important;
  line-height:1.35!important;
  text-align:center!important;
  white-space:nowrap!important;
}


/* v1.8.2 — compact public visitor statistics panel */
.hm-public-stats {
  width:min(920px,calc(100% - 28px))!important;
  max-width:920px!important;
  margin:18px auto 10px!important;
  padding:9px 12px!important;
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(112px,1fr))!important;
  gap:5px!important;
  background:linear-gradient(115deg,#f0f4ed,#f8f5ec)!important;
  border:1px solid #e0e7dc!important;
  border-radius:11px!important;
  box-shadow:0 5px 16px rgba(43,67,48,.045)!important;
}
.hm-public-stats .hm-public-stat {
  min-width:0!important;padding:5px 7px!important;text-align:center!important;
  border-right:1px solid #e1e7dc!important;
}
.hm-public-stats .hm-public-stat:last-child {border-right:0!important}
.hm-public-stats .hm-public-stat strong {
  display:block!important;margin:0 0 3px!important;color:#294638!important;
  font:600 19px/1.15 Georgia,serif!important;font-variant-numeric:tabular-nums!important;
}
.hm-public-stats .hm-public-stat span {
  display:block!important;color:#7c806e!important;font-size:8px!important;
  line-height:1.3!important;letter-spacing:.55px!important;text-transform:uppercase!important;
}
@media(max-width:620px) {
 .hm-public-stats{width:calc(100% - 24px)!important;margin:14px 12px 8px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:7px!important}
 .hm-public-stats .hm-public-stat{border-right:0!important;border-bottom:1px solid #e1e7dc!important}
 .hm-public-stats .hm-public-stat:nth-last-child(-n+2){border-bottom:0!important}
 .hm-public-stats .hm-public-stat strong{font-size:17px!important}
}



/* v1.9.0 — admin-configurable floating visitor counter */
.hm-visitor-counter{position:fixed;right:16px;bottom:16px;z-index:40;width:min(var(--hm-counter-size,100px),calc(100vw - 20px));height:min(var(--hm-counter-size,100px),calc(100vw - 20px));box-sizing:border-box;padding:clamp(7px,calc(var(--hm-counter-size,100px)*.07),18px) clamp(5px,calc(var(--hm-counter-size,100px)*.05),12px);display:flex;flex-direction:column;justify-content:center;gap:clamp(5px,calc(var(--hm-counter-size,100px)*.05),12px);border:1px solid #cbd8cb;border-radius:clamp(12px,calc(var(--hm-counter-size,100px)*.12),20px);background:linear-gradient(155deg,#eef4ed 0%,#e3eadf 100%);box-shadow:0 7px 20px rgba(25,43,31,.2);color:#263a30;text-align:center}
.hm-visitor-counter__heading{display:flex;align-items:center;justify-content:center;gap:4px;color:#64766a;font-size:clamp(6px,calc(var(--hm-counter-size,100px)*.06),12px);font-weight:800;letter-spacing:.06em;white-space:nowrap}
.hm-visitor-counter__pulse{width:clamp(5px,calc(var(--hm-counter-size,100px)*.05),8px);height:clamp(5px,calc(var(--hm-counter-size,100px)*.05),8px);flex:0 0 auto;border-radius:50%;background:#4c9b69;box-shadow:0 0 0 2px rgba(76,155,105,.14)}
.hm-visitor-counter__metric{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.hm-visitor-counter__metric strong{font:600 clamp(19px,calc(var(--hm-counter-size,100px)*.19),38px)/1 Georgia,serif;color:#294638;font-variant-numeric:tabular-nums}
.hm-visitor-counter__metric span{font-size:clamp(6.5px,calc(var(--hm-counter-size,100px)*.065),13px);line-height:1.15;font-weight:700;letter-spacing:.1px;color:#6e7d72;text-transform:uppercase}
.hm-visitor-counter__divider{height:1px;width:68%;margin:0 auto;background:#cbd8cb}
.featured-section:not(.homepage-gallery-section){padding:26px 24px 44px;margin:28px auto 42px;border:1px solid #d7e0d5;border-radius:16px;background:linear-gradient(155deg,#e8eee6 0%,#dfe8dd 100%);box-shadow:0 8px 24px rgba(38,61,45,.08)}
.featured-section:not(.homepage-gallery-section)>.section-heading{padding:0 2px}
.featured-section:not(.homepage-gallery-section) .section-heading h2{color:#263a30}
.featured-section:not(.homepage-gallery-section) .section-heading .muted{color:#68776c}
@media(max-width:760px){.hm-visitor-counter{right:10px;bottom:10px}.featured-section:not(.homepage-gallery-section){margin:18px 12px 30px;padding:20px 14px 30px}}
@media(max-width:380px){.hm-visitor-counter{right:8px;bottom:8px}}


/* v1.9.2 — visitor-controlled hide and restore controls */
.hm-visitor-counter[hidden],.hm-visitor-counter__restore[hidden]{display:none!important}
.hm-visitor-counter{padding-top:clamp(16px,calc(var(--hm-counter-size,100px)*.13),25px)}
.hm-visitor-counter__close{position:absolute;top:3px;right:5px;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.72);color:#607166;font:600 17px/18px Arial,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center}
.hm-visitor-counter__close:hover{background:#fff;color:#263a30}
.hm-visitor-counter__restore{position:fixed;right:16px;bottom:16px;z-index:40;padding:8px 12px;border:1px solid #cbd8cb;border-radius:18px;background:linear-gradient(155deg,#eef4ed 0%,#e3eadf 100%);box-shadow:0 5px 15px rgba(25,43,31,.18);color:#294638;font-size:11px;font-weight:800;letter-spacing:.04em;cursor:pointer}
.hm-visitor-counter__restore:hover{background:#fff}
@media(max-width:760px){.hm-visitor-counter__restore{right:10px;bottom:10px}}
@media(max-width:380px){.hm-visitor-counter__restore{right:8px;bottom:8px}}

/* v1.10.3 shared responsive visitor navigation */
.hm-footer-navigation{max-width:880px;margin:0 auto 14px;padding:0 12px}
.hm-footer-navigation__title{text-align:center;font-size:10px;font-weight:800;letter-spacing:2px;color:#9a8358;margin:0 0 12px}
.hm-footer-main-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.hm-footer-main-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-width:0;padding:10px 5px;border:1px solid #e3e8e0;border-radius:12px;color:#3b5949;background:#fff;text-decoration:none;text-align:center}
.hm-footer-main-nav a span{font-size:18px;color:#9b7a3d}.hm-footer-main-nav a small{font-size:11px;line-height:1.35;font-weight:650}
@media(max-width:760px){
 body:not(.hm-admin-layout) .hm-public-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;padding:12px 14px!important;min-width:0!important}
 body:not(.hm-admin-layout) .hm-public-header .brand{grid-column:1!important;grid-row:1!important;min-width:0!important;max-width:100%!important}
 body:not(.hm-admin-layout) .hm-public-header .brand img{max-width:100%!important;height:auto!important;object-fit:contain!important}
 body:not(.hm-admin-layout) .hm-nav-toggle{grid-column:2!important;grid-row:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-width:90px!important;min-height:42px!important;padding:8px!important;border-radius:9px!important;font-size:12px!important;white-space:nowrap!important}
 body:not(.hm-admin-layout) .hm-public-nav{grid-column:1/-1!important;grid-row:3!important;width:100%!important;min-width:0!important;margin:0!important;box-sizing:border-box!important}
 body:not(.hm-admin-layout) .hm-public-nav.is-open{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body:not(.hm-admin-layout) .hm-public-nav:not(.is-open){display:none!important}
 body:not(.hm-admin-layout) .hm-public-nav a{display:flex!important;justify-content:center!important;align-items:center!important;min-width:0!important;min-height:48px!important;text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:12px!important;padding:9px 6px!important}
 body:not(.hm-admin-layout) .hm-home-share{grid-column:1/-1!important;grid-row:2!important;justify-self:center!important;flex-wrap:wrap!important;max-width:100%!important;min-width:0!important;margin:2px auto!important}
 .hm-footer-main-nav,.hm-sitemap{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
 .hm-footer-main-nav a,.hm-sitemap a{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow-wrap:anywhere!important}
 body:not(.hm-admin-layout) main,body:not(.hm-admin-layout) .container{max-width:100%;min-width:0}
 body:not(.hm-admin-layout) img{max-width:100%;height:auto}
}
@media(max-width:380px){body:not(.hm-admin-layout) .hm-public-nav.is-open{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hm-sitemap,.hm-footer-main-nav{grid-template-columns:repeat(3,minmax(0,1fr))!important}.hm-footer-main-nav a small{font-size:10px}}


/* v1.10.4 mobile navigation visibility and unified footer navigation fix */
@media(max-width:760px){
 body:not(.hm-admin-layout) #hmPublicNav[hidden]{display:none!important}
 body:not(.hm-admin-layout) #hmPublicNav:not([hidden]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body:not(.hm-admin-layout) #hmPublicNav:not([hidden]) a{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;min-height:48px!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
 body:not(.hm-admin-layout) .hm-footer-navigation{display:none!important}
 body:not(.hm-admin-layout) .hm-sitemap{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;width:100%!important;box-sizing:border-box!important}
 body:not(.hm-admin-layout) .hm-sitemap a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:62px!important;padding:9px 5px!important;box-sizing:border-box!important;text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important}
 body:not(.hm-admin-layout) .hm-sitemap a span{display:block!important}
 body:not(.hm-admin-layout) .hm-sitemap a small{display:block!important;font-size:11px!important;line-height:1.3!important}
}


/* v1.10.7 — restore pre-mobile desktop footer navigation; leave mobile layout unchanged */
@media (min-width:761px){
 body:not(.hm-admin-layout) .hm-public-footer .hm-sitemap{
  display:flex!important; flex-direction:row!important; flex-wrap:wrap!important;
  justify-content:center!important; align-items:center!important;
  gap:10px 14px!important; max-width:1120px!important; width:100%!important;
  margin:0 auto!important; white-space:normal!important;
 }
 body:not(.hm-admin-layout) .hm-public-footer .hm-sitemap a{
  display:flex!important; flex:0 1 auto!important; min-width:76px!important;
  max-width:none!important; padding:9px 10px!important; white-space:normal!important;
 }
 body:not(.hm-admin-layout) .hm-public-footer .hm-sitemap a small{
  display:block!important; white-space:normal!important; font-size:11px!important;
 }
}


/* v1.10.8 — remove duplicate primary links from desktop footer only; mobile footer remains unchanged */
@media (min-width:761px){
 body:not(.hm-admin-layout) .hm-public-footer .hm-sitemap a[href="index.php"],
 body:not(.hm-admin-layout) .hm-public-footer .hm-sitemap a[href="gallery.php"],
 body:not(.hm-admin-layout) .hm-public-footer .hm-sitemap a[href="request_memorial.php"],
 body:not(.hm-admin-layout) .hm-public-footer .hm-sitemap a[href="community_wall.php"],
 body:not(.hm-admin-layout) .hm-public-footer .hm-sitemap a[href="donate.php"]{display:none!important}
}

/* v1.13.1 — Add Memorial portrait preview matches visitor 3:5 portrait crop */
.memorial-edit-page .editor-portrait-preview .editor-current-photo{width:180px!important;height:300px!important;aspect-ratio:3/5!important;object-fit:cover!important;border-radius:8px!important}
.memorial-edit-page .default-profile-option img{width:100px!important;height:200px!important;max-width:100%;aspect-ratio:1/2;object-fit:contain!important;border-radius:7px!important}
.memorial-edit-page .default-profile-option input[type=radio]{width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;transform:none!important;scale:1!important;margin:0 0 4px!important}
.memorial-edit-page .default-profile-option{width:130px!important;max-width:46%!important;padding:8px!important;gap:6px!important}
.memorial-edit-page .default-profile-options{gap:14px!important}
@media(max-width:520px){.memorial-edit-page .editor-portrait-preview .editor-current-photo{width:150px!important;height:250px!important}.memorial-edit-page .default-profile-option img{width:88px!important;height:176px!important}}


/* v1.13.7 — replace large Video Tribute information panel with compact visitor info control */
#video-tributes .video-form-title-row{position:relative;display:flex;align-items:center;justify-content:center;min-height:34px;margin:0 0 4px}
#video-tributes .video-form-title-row .video-form-title{margin:0;text-align:center}
#video-tributes .video-info-popover{position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:5}
#video-tributes .video-info-popover>summary{display:grid;place-items:center;width:27px;height:27px;box-sizing:border-box;border:1px solid #c5a66a;border-radius:50%;background:#fffdf7;color:#8b6b32;font:700 15px/1 Arial,sans-serif;cursor:pointer;list-style:none;user-select:none}
#video-tributes .video-info-popover>summary::-webkit-details-marker{display:none}
#video-tributes .video-info-popover>summary:hover,#video-tributes .video-info-popover[open]>summary{background:#f2e7ce;color:#654b20}
#video-tributes .video-info-popover-panel{position:absolute;right:0;top:calc(100% + 9px);width:min(310px,calc(100vw - 64px));padding:14px 16px;border:1px solid #e2d5b8;border-left:4px solid #c5a66a;border-radius:9px;background:#fffdf7;color:#58645b;box-shadow:0 12px 30px rgba(35,48,39,.16);text-align:left}
#video-tributes .video-info-popover-panel strong{display:block;margin-bottom:5px;color:#365847;font-size:13px}
#video-tributes .video-info-popover-panel p{margin:0;font-size:13px;line-height:1.6}
#video-tributes .video-info-popover-panel ul{margin:8px 0 0;padding-left:19px;font-size:12px;line-height:1.7}
@media(max-width:600px){#video-tributes .video-form-title-row{padding:0 34px}#video-tributes .video-info-popover{right:0}#video-tributes .video-info-popover-panel{right:-2px;width:min(290px,calc(100vw - 54px))}}


/* v1.15.7 — mobile memorial directory layout and Add/Edit portrait parity */
@media (max-width: 480px) {
  .hm-browse-page .photo-album-grid.home-photo-gallery {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    justify-items:stretch !important;
    align-items:stretch !important;
    width:100% !important;
    margin-inline:auto !important;
  }
  .hm-browse-page .photo-album-grid.home-photo-gallery > .album-card {
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }
  .hm-browse-page .photo-album-grid.home-photo-gallery > .album-card > .album-photo {
    display:block !important;
    position:relative !important;
    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    aspect-ratio: var(--hm-ratio, 4 / 5) !important;
    overflow:hidden !important;
    margin:0 auto !important;
  }
  .hm-browse-page .photo-album-grid.home-photo-gallery > .album-card > .album-photo > img {
    display:block !important;
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    object-fit:var(--hm-fit, cover) !important;
    object-position:var(--hm-x, 50%) var(--hm-y, 35%) !important;
  }
  .hm-browse-page .photo-album-grid.home-photo-gallery > .album-card > .album-card-foot {
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:3px 6px !important;
    min-width:0 !important;
    padding:7px 8px !important;
    box-sizing:border-box !important;
    line-height:1.25 !important;
    overflow-wrap:anywhere !important;
  }
  .hm-browse-page .photo-album-grid.home-photo-gallery .featured-honor-label,
  .hm-browse-page .photo-album-grid.home-photo-gallery .featured-view-story {
    min-width:0 !important;
    max-width:100% !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
  }
}

/* The editor preview now uses the same configured dimensions, ratio, fit and
   focal point as the published .profile-photo output. */
.memorial-edit-page .editor-portrait-preview .editor-current-photo {
  display:block !important;
  width:min(var(--editor-photo-width, 220px),100%) !important;
  height:var(--editor-photo-height, 0px) !important;
  aspect-ratio:var(--editor-photo-ratio, 3 / 5) !important;
  max-width:100% !important;
  object-fit:inherit !important;
  border-radius:8px !important;
  box-sizing:border-box !important;
}

/* v1.16.2: larger default silhouette choices in Add/Edit Memorial */
.default-profile-options{align-items:stretch;gap:12px}
.default-profile-option{min-height:205px;justify-content:flex-start;padding:12px 10px}
.default-profile-option img{width:136px;height:158px;max-width:100%;object-fit:contain;border-radius:12px;background:#f2f3ef;border:1px solid #d9e0d8}
@media(max-width:540px){
 .default-profile-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .default-profile-option{min-height:190px;padding:10px 6px}
 .default-profile-option img{width:min(100%,132px);height:148px;object-fit:contain}
}


/* v1.16.3 — Refined memorial photo editor layout */
.editor-media-card .hm-crop-preview,
.editor-media-card .editor-portrait-preview{
    margin-left:auto !important;
    margin-right:auto !important;
}
.editor-media-card .hm-crop-preview{
    display:flex;
    align-items:center;
    justify-content:center;
}
.default-profile-picker{
    text-align:center;
}
.default-profile-heading,
.default-profile-picker>p{
    text-align:left;
}
.default-profile-options{
    display:flex !important;
    justify-content:center !important;
    align-items:flex-start !important;
    gap:20px !important;
    flex-wrap:wrap;
}
.default-profile-option{
    width:150px !important;
    max-width:calc(50% - 12px) !important;
    min-width:120px;
    padding:8px 6px !important;
    gap:7px !important;
    text-align:center;
}
.default-profile-option img{
    width:136px !important;
    height:190px !important;
    max-width:100%;
    object-fit:contain !important;
    object-position:center;
    display:block;
    margin:0 auto;
    border:0 !important;
    border-radius:8px !important;
    background:#f5f7f3;
}
.default-profile-keep{
    order:-1;
    width:auto !important;
    min-width:0 !important;
    max-width:190px !important;
    padding:5px 11px !important;
    margin:0 auto 5px !important;
    flex-direction:row !important;
    justify-content:center !important;
    align-items:center !important;
    gap:7px !important;
    font-size:11px;
}
.default-profile-keep .default-profile-keep-icon{
    width:24px;
    height:24px;
    flex:0 0 24px;
    font-size:14px;
}
.default-profile-keep span:last-child{
    line-height:1.2;
}
@media(max-width:540px){
    .default-profile-options{gap:12px !important}
    .default-profile-option{
        width:calc(50% - 8px) !important;
        min-width:0;
        max-width:calc(50% - 6px) !important;
    }
    .default-profile-option img{
        width:100% !important;
        height:180px !important;
    }
    .default-profile-keep{
        width:auto !important;
        max-width:170px !important;
    }
}


/* v1.16.4 — Three aligned photo choices with current photo preview */
.default-profile-options{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    align-items:stretch !important;
    gap:12px !important;
}
.default-profile-option{
    position:relative;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:210px;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    padding:10px 8px !important;
    text-align:center !important;
}
.default-profile-option input[type="radio"]{
    order:0;
    position:static !important;
    display:block !important;
    margin:0 auto 2px !important;
    width:16px;
    height:16px;
}
.default-profile-option img{
    order:1;
    width:100% !important;
    max-width:150px !important;
    height:165px !important;
    object-fit:contain !important;
    object-position:center !important;
    display:block !important;
    margin:0 auto !important;
    border:0 !important;
    border-radius:9px !important;
    background:#f2f4ef !important;
}
.default-profile-option>span:not(.default-profile-keep-icon){
    order:2;
    display:block;
    margin-top:2px;
    line-height:1.25;
    text-align:center;
}
.default-profile-keep{
    order:0 !important;
    margin:0 !important;
    max-width:none !important;
    flex-direction:column !important;
    justify-content:flex-start !important;
    align-items:center !important;
}
.default-profile-keep .default-profile-keep-icon{display:none !important}
@media(max-width:540px){
    .default-profile-options{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
        gap:8px !important;
    }
    .default-profile-option{
        min-height:190px;
        padding:8px 5px !important;
    }
    .default-profile-option img{
        width:100% !important;
        height:145px !important;
        max-width:100% !important;
    }
}
@media(max-width:360px){
    .default-profile-options{gap:5px !important}
    .default-profile-option{padding:6px 3px !important;font-size:10px}
    .default-profile-option img{height:125px !important}
}


/* v1.16.5 — Keep-current preview aligned with default portraits */
.default-profile-options{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    align-items:stretch !important;
    gap:12px !important;
}
.default-profile-options > .default-profile-option.default-profile-keep{
    grid-column:1;
    grid-row:1;
}
.default-profile-options > .default-profile-option:not(.default-profile-keep):nth-child(1){
    grid-column:2;
    grid-row:1;
}
.default-profile-options > .default-profile-option:not(.default-profile-keep):nth-child(2){
    grid-column:3;
    grid-row:1;
}
.default-profile-options > .default-profile-option{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    min-height:210px;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    padding:10px 7px !important;
    gap:8px !important;
    text-align:center !important;
}
.default-profile-options > .default-profile-option input[type="radio"]{
    order:0 !important;
    position:static !important;
    display:block !important;
    margin:0 auto 2px !important;
}
.default-profile-options > .default-profile-option img{
    order:1 !important;
    width:100% !important;
    max-width:150px !important;
    height:165px !important;
    object-fit:contain !important;
    object-position:center !important;
    margin:0 auto !important;
}
.default-profile-options > .default-profile-option > span:not(.default-profile-keep-icon){
    order:2 !important;
    display:block !important;
    text-align:center !important;
    line-height:1.25;
}
.default-profile-options > .default-profile-keep img{
    object-fit:contain !important;
    background:#f2f4ef !important;
    border-radius:8px !important;
}
@media(max-width:540px){
    .default-profile-options{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
        gap:7px !important;
    }
    .default-profile-options > .default-profile-option{
        min-height:185px;
        padding:7px 4px !important;
        font-size:11px;
    }
    .default-profile-options > .default-profile-option img{
        height:140px !important;
        max-width:100% !important;
    }
}
@media(max-width:360px){
    .default-profile-options{gap:4px !important}
    .default-profile-options > .default-profile-option{padding:6px 2px !important;font-size:10px}
    .default-profile-options > .default-profile-option img{height:120px !important}
}


/* v1.16.12 — deterministic Add/Edit memorial photo preview */
.memorial-edit-page #portraitPreviewWrap.hm-crop-preview{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  position:relative !important;
  width:min(360px,100%) !important;
  height:auto !important;
  min-height:0 !important;
  aspect-ratio:3 / 4 !important;
  overflow:hidden !important;
  background:#f3f5f1 !important;
  border:1px solid #d7e2d7 !important;
  border-radius:10px !important;
  margin:12px auto !important;
}
/* r67.43: the crop engine owns image size and position. Do not use !important
   on image geometry here; it would override the editor's live crop calculations. */
.memorial-edit-page #portraitPreviewWrap.hm-crop-preview .editor-current-photo{
  display:block;
  position:absolute;
  inset:auto;
  left:0;
  top:0;
  width:auto;
  height:auto;
  min-width:0;
  min-height:0;
  max-width:none;
  max-height:none;
  object-fit:fill;
  object-position:0 0;
  padding:0;
  box-sizing:border-box;
  transform:none;
  transform-origin:top left;
  pointer-events:none;
  -webkit-user-drag:none;
}
.memorial-edit-page #portraitPreviewWrap.hm-crop-preview.is-default-photo .editor-current-photo,
.memorial-edit-page #portraitPreviewWrap.hm-crop-preview:not(.is-default-photo) .editor-current-photo{
  object-fit:fill;
  object-position:0 0;
  padding:0;
}
.memorial-edit-page #portraitPreviewWrap .portrait-preview-caption{
  position:absolute !important;
  left:8px !important;
  right:8px !important;
  bottom:8px !important;
  z-index:2 !important;
  text-align:center !important;
  pointer-events:none !important;
}
.memorial-edit-page .default-profile-option img{
  display:block !important;
  object-fit:contain !important;
  object-position:center !important;
}
@media(max-width:600px){
  .memorial-edit-page #portraitPreviewWrap.hm-crop-preview{
    width:min(300px,100%) !important;
  }
}


/* v1.16.14: keep the main portrait preview centered; show a compact live thumbnail beside defaults on Add. */
.default-profile-live-preview{cursor:default;pointer-events:none}
.default-profile-live-preview img{object-fit:cover}
.default-profile-options .default-profile-live-preview{border-style:dashed}


/* v1.16.15 — Match Add Memorial portrait choices to the compact Edit Memorial row. */
.memorial-edit-page .default-profile-picker .default-profile-options{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  grid-template-rows:auto !important;
  grid-auto-flow:row !important;
  align-items:stretch !important;
  justify-content:stretch !important;
  gap:10px !important;
  width:100% !important;
}
.memorial-edit-page .default-profile-picker .default-profile-options > .default-profile-option{
  grid-row:1 !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:0 !important;
  height:auto !important;
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:6px !important;
  padding:8px 6px !important;
  margin:0 !important;
  border:1px solid #e0e7df !important;
  border-radius:9px !important;
  background:#fbfcfa !important;
  text-align:center !important;
  font-size:11px !important;
  line-height:1.25 !important;
}
.memorial-edit-page .default-profile-picker .default-profile-options > .default-profile-live-preview{grid-column:1 !important;grid-row:1 !important;}
.memorial-edit-page .default-profile-picker .default-profile-options > .default-profile-keep{grid-column:1 !important;grid-row:1 !important;}
.memorial-edit-page .default-profile-picker .default-profile-options > .default-profile-male-option{grid-column:2 !important;grid-row:1 !important;}
.memorial-edit-page .default-profile-picker .default-profile-options > .default-profile-female-option{grid-column:3 !important;grid-row:1 !important;}
.memorial-edit-page .default-profile-picker .default-profile-options > .default-profile-option input[type="radio"]{
  order:0 !important;
  position:static !important;
  display:block !important;
  flex:0 0 auto !important;
  width:14px !important;
  height:14px !important;
  margin:0 auto 2px !important;
}
.memorial-edit-page .default-profile-picker .default-profile-options > .default-profile-option img{
  order:1 !important;
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:76px !important;
  min-height:76px !important;
  max-height:76px !important;
  object-fit:contain !important;
  object-position:center !important;
  margin:0 auto !important;
  padding:3px !important;
  box-sizing:border-box !important;
  border:0 !important;
  border-radius:7px !important;
  background:#f1f3ef !important;
}
.memorial-edit-page .default-profile-picker .default-profile-options > .default-profile-option > span:not(.default-profile-keep-icon){
  order:2 !important;
  display:block !important;
  width:100% !important;
  min-height:2.5em !important;
  margin:0 !important;
  text-align:center !important;
  line-height:1.25 !important;
  overflow-wrap:anywhere !important;
}
.memorial-edit-page .default-profile-picker .default-profile-options > .default-profile-option:has(input:checked){
  border-color:#8da28e !important;
  background:#f1f6ef !important;
  box-shadow:0 0 0 2px rgba(95,128,99,.08) !important;
}
.memorial-edit-page .default-profile-picker .default-profile-live-preview{cursor:default !important;pointer-events:none !important;border-style:dashed !important;}
.memorial-edit-page .default-profile-picker .default-profile-live-preview img{object-fit:contain !important;}
@media(max-width:540px){
  .memorial-edit-page .default-profile-picker .default-profile-options{gap:6px !important;}
  .memorial-edit-page .default-profile-picker .default-profile-options > .default-profile-option{padding:7px 4px !important;font-size:10px !important;}
  .memorial-edit-page .default-profile-picker .default-profile-options > .default-profile-option img{height:68px !important;min-height:68px !important;max-height:68px !important;}
}


/* v1.16.19 — Add Memorial selected-preview card now uses the same real radio-card structure as Edit. */
.memorial-edit-page .default-profile-picker .default-profile-options > .default-profile-live-preview{
  cursor:pointer !important;
  pointer-events:auto !important;
  border-style:solid !important;
  grid-column:1 !important;
  grid-row:1 !important;
}
.memorial-edit-page .default-profile-picker .default-profile-options > .default-profile-live-preview input[type="radio"]{
  order:0 !important;
  display:block !important;
  position:static !important;
  width:14px !important;
  height:14px !important;
  margin:0 auto 2px !important;
  flex:0 0 auto !important;
}
.memorial-edit-page .default-profile-picker .default-profile-options > .default-profile-live-preview img{
  order:1 !important;
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:76px !important;
  min-height:76px !important;
  max-height:76px !important;
  object-fit:contain !important;
  object-position:center !important;
  margin:0 auto !important;
  padding:3px !important;
  box-sizing:border-box !important;
  border:0 !important;
  border-radius:7px !important;
  background:#f1f3ef !important;
}
.memorial-edit-page .default-profile-picker .default-profile-options > .default-profile-live-preview > span{
  order:2 !important;
  display:block !important;
  width:100% !important;
  min-height:2.5em !important;
  margin:0 !important;
  text-align:center !important;
  line-height:1.25 !important;
}
.memorial-edit-page .default-profile-picker .default-profile-options > .default-profile-live-preview:has(input:checked){
  border-color:#8da28e !important;
  background:#f1f6ef !important;
  box-shadow:0 0 0 2px rgba(95,128,99,.08) !important;
}
@media(max-width:540px){
  .memorial-edit-page .default-profile-picker .default-profile-options > .default-profile-live-preview img{height:68px !important;min-height:68px !important;max-height:68px !important;}
}


/* v1.16.21 — unified Garden of Memories visitor tribute panel */
.garden-memories{background:radial-gradient(ellipse at center,#fffdf8 0%,#f4f7ef 72%,#edf3e9 100%)!important;text-align:center!important;overflow:hidden}
.garden-tribute-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:760px;margin:26px auto 22px}
.garden-tribute-stat{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:16px 10px;background:rgba(255,255,255,.82);border:1px solid #e5e8dc;border-radius:12px;box-shadow:0 5px 18px rgba(49,67,46,.05)}
.garden-stat-icon{font-size:25px;line-height:1.2}
.garden-tribute-stat strong{font:600 clamp(24px,3vw,34px)/1.15 'Playfair Display',Georgia,serif;color:#405b48;font-variant-numeric:tabular-nums}
.garden-tribute-stat>span:last-child{font-size:11px;color:#718074;line-height:1.35}
.garden-total-stat{background:#f6f8f1;border-color:#d7e0d1}
.garden-tribute-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin:12px auto 10px}
.garden-action-heading{flex:0 0 100%;margin:0 0 2px;font:500 18px 'Playfair Display',Georgia,serif;color:#405247}
.garden-tribute-form{margin:0}
.garden-tribute-form .button{min-width:190px;min-height:44px}
.garden-memories .garden-flower-bottom{margin-top:22px}
@media(max-width:560px){.garden-tribute-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:20px auto 16px}.garden-total-stat{grid-column:1/-1}.garden-tribute-stat{padding:13px 7px}.garden-tribute-stat strong{font-size:27px}.garden-tribute-actions{flex-direction:column;gap:9px}.garden-tribute-form,.garden-tribute-form .button{width:100%;max-width:280px}}


/* v1.16.22 — animated Garden of Memories polish */
.garden-total-heart{filter:drop-shadow(0 2px 3px rgba(190,35,65,.18))}
.garden-flower-row{display:flex;align-items:center;justify-content:space-evenly;gap:clamp(8px,2vw,22px);flex-wrap:wrap}
.garden-flower-row>span{display:inline-block;transform-origin:50% 75%}
.garden-flower-row .garden-butterfly{font-size:clamp(22px,3vw,34px);filter:drop-shadow(0 4px 5px rgba(58,45,85,.2));animation:gardenButterflyFloat 4.8s ease-in-out infinite}
.garden-butterfly-one{animation-delay:-.7s!important}.garden-butterfly-two{animation-delay:-2.1s!important}.garden-butterfly-three{animation-delay:-3.2s!important}.garden-butterfly-four{animation-delay:-1.5s!important}.garden-butterfly-five{animation-delay:-2.7s!important}
@keyframes gardenButterflyFloat{0%,100%{transform:translate3d(0,3px,0) rotate(-7deg) scale(.94)}50%{transform:translate3d(0,-10px,0) rotate(8deg) scale(1.08)}}
.garden-celebration{position:fixed;inset:0;z-index:99999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px;background:rgba(20,30,24,.38);backdrop-filter:blur(4px);opacity:0;pointer-events:none;transition:opacity .35s ease}
.garden-celebration.is-visible{opacity:1}
.garden-celebration-art{font-size:clamp(120px,28vw,260px);line-height:1;filter:drop-shadow(0 14px 22px rgba(0,0,0,.18));transform:scale(.18) rotate(-18deg);animation:gardenTributeBloom 2.7s cubic-bezier(.18,.8,.25,1) forwards}
.garden-celebration[data-garden-celebration="butterfly"] .garden-celebration-art{animation:gardenTributeFly 3.2s cubic-bezier(.2,.7,.25,1) forwards}
.garden-celebration p{max-width:90%;margin:0;padding:12px 20px;border-radius:999px;background:rgba(255,255,255,.94);color:#405247;text-align:center;font:500 16px/1.4 Georgia,serif;box-shadow:0 8px 28px rgba(0,0,0,.12)}
.garden-celebration.is-leaving{opacity:0}
@keyframes gardenTributeBloom{0%{transform:scale(.12) rotate(-22deg);opacity:0}35%{transform:scale(1.18) rotate(8deg);opacity:1}65%{transform:scale(1) rotate(-4deg)}100%{transform:scale(1.08) rotate(0);opacity:1}}
@keyframes gardenTributeFly{0%{transform:translate(-30vw,18vh) scale(.2) rotate(-25deg);opacity:0}25%{transform:translate(-8vw,-2vh) scale(1.1) rotate(8deg);opacity:1}65%{transform:translate(8vw,-10vh) scale(1.25) rotate(-8deg);opacity:1}100%{transform:translate(38vw,-32vh) scale(.55) rotate(18deg);opacity:0}}
@media(prefers-reduced-motion:reduce){.garden-flower-row .garden-butterfly,.garden-celebration-art{animation:none!important}.garden-celebration{transition:none}.garden-celebration-art{transform:none!important}}


/* v1.16.23 — discreet administrator-only Garden animation test controls */
.garden-admin-test{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;margin:16px auto 4px;padding:11px 13px;border:1px dashed rgba(86,117,88,.38);border-radius:12px;background:rgba(255,255,255,.48)}
.garden-admin-test>span{width:100%;text-align:center;color:#657568;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.garden-admin-test .button{min-height:36px;padding:8px 13px;font-size:12px}
@media(max-width:560px){.garden-admin-test{flex-direction:column}.garden-admin-test .button{width:100%;max-width:260px}}


/* v1.16.24 — make administrator Garden test controls readable above theme overrides */
.garden-admin-test button.button[data-garden-test]{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:40px!important;
  width:auto!important;
  max-width:100%!important;
  padding:9px 16px!important;
  border:1px solid #426b56!important;
  border-radius:7px!important;
  background:#426b56!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  font-family:'DM Sans',sans-serif!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.35!important;
  letter-spacing:normal!important;
  text-indent:0!important;
  text-transform:none!important;
  opacity:1!important;
  visibility:visible!important;
  overflow:visible!important;
  white-space:normal!important;
}
.garden-admin-test button.button[data-garden-test]:hover,
.garden-admin-test button.button[data-garden-test]:focus-visible{
  background:#345744!important;
  border-color:#345744!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
.garden-admin-test button.button[data-garden-test]:focus-visible{
  outline:3px solid rgba(66,107,86,.28)!important;
  outline-offset:2px!important;
}


/* v1.16.25 — remove the secondary decorative row from Garden of Memories */
.garden-memories .garden-flower-bottom{display:none!important}

/* v1.16.25 — candle tribute celebration and admin-only animation previews */
.candle-admin-test{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;margin:18px auto 2px;padding:12px;border:1px dashed rgba(173,137,75,.42);border-radius:12px;background:rgba(255,255,255,.52)}
.candle-admin-test>span{flex:0 0 100%;text-align:center;color:#796b53;font-size:11px;letter-spacing:.09em;text-transform:uppercase}
.candle-admin-test button.button{display:inline-flex!important;align-items:center;justify-content:center;min-height:40px;padding:9px 15px;background:#806c4d!important;border:1px solid #806c4d!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:12px;font-weight:700}
.candle-admin-test button.button:hover{background:#6d5b40!important}
.candle-celebration{position:fixed;inset:0;z-index:100000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:24px;background:radial-gradient(ellipse at center,rgba(255,224,157,.34),rgba(20,24,27,.78));backdrop-filter:blur(5px);opacity:0;pointer-events:none;transition:opacity .4s ease}
.candle-celebration.is-visible{opacity:1}
.candle-celebration-art{position:relative;width:clamp(110px,24vw,190px);height:clamp(220px,42vw,330px);display:flex;align-items:flex-end;justify-content:center;filter:drop-shadow(0 12px 25px rgba(0,0,0,.28));animation:candleRise .9s cubic-bezier(.2,.8,.2,1) both}
.candle-celebration-wax{position:relative;display:block;width:34%;height:70%;border-radius:12px 12px 9px 9px;background:linear-gradient(90deg,#d9c5a1,#fff8e7 28%,#f6e8ca 72%,#c8ae83);box-shadow:inset 0 8px 12px rgba(255,255,255,.8),inset 0 -8px 14px rgba(120,87,45,.14)}
.candle-celebration-wax:before{content:"";position:absolute;top:-5px;left:0;right:0;height:13px;border-radius:50%;background:#fff4df;box-shadow:inset 0 -3px 4px rgba(120,87,45,.12)}
.candle-celebration-wax:after{content:"";position:absolute;left:50%;top:-16px;width:3px;height:17px;background:#544333;transform:translateX(-50%)}
.candle-celebration-flame{position:absolute;z-index:2;left:50%;bottom:70%;width:26%;height:25%;border-radius:55% 45% 55% 45%;background:radial-gradient(ellipse at 50% 68%,#fffbd2 0 18%,#ffd35f 42%,#ff8b32 72%,rgba(255,104,24,0) 100%);transform:translateX(-50%) rotate(2deg);transform-origin:50% 90%;filter:drop-shadow(0 0 14px rgba(255,183,70,.95));animation:candleFlameDance 1.15s ease-in-out infinite alternate}
.candle-celebration-art:before{content:"";position:absolute;z-index:-1;left:50%;bottom:30%;width:180%;height:110%;transform:translateX(-50%);border-radius:50%;background:radial-gradient(ellipse,rgba(255,194,91,.52),rgba(255,181,73,.15) 42%,transparent 72%);animation:candleGlowPulse 2.2s ease-in-out infinite}
.candle-celebration p{margin:0;padding:13px 22px;border-radius:999px;background:rgba(255,250,237,.96);color:#695338;text-align:center;font:italic 17px/1.4 Georgia,serif;box-shadow:0 8px 30px rgba(0,0,0,.18)}
.candle-celebration.is-leaving{opacity:0}
@keyframes candleRise{0%{transform:translateY(35px) scale(.65);opacity:0}100%{transform:translateY(0) scale(1);opacity:1}}
@keyframes candleFlameDance{0%{transform:translateX(-50%) rotate(-5deg) scale(.94,.98)}100%{transform:translateX(-50%) rotate(5deg) scale(1.04,1.08)}}
@keyframes candleGlowPulse{0%,100%{opacity:.65;transform:translateX(-50%) scale(.88)}50%{opacity:1;transform:translateX(-50%) scale(1.08)}}
@media(max-width:560px){.candle-admin-test{flex-direction:column}.candle-admin-test button.button{width:100%;max-width:280px}}
@media(prefers-reduced-motion:reduce){.candle-celebration-art,.candle-celebration-flame,.candle-celebration-art:before{animation:none!important}.candle-celebration{transition:none}}


/* v1.16.30 — Garden of Memories responsive mobile refinement */
.garden-memories .garden-flower-bottom{display:none!important}
.garden-memories .garden-flower-row{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:space-evenly!important;
  gap:clamp(2px,1.5vw,12px)!important;
  width:100%!important;
  max-width:760px!important;
  margin:0 auto 14px!important;
  overflow:hidden!important;
}
.garden-memories .garden-flower-row>span{
  flex:0 1 auto!important;
  min-width:0!important;
  font-size:clamp(19px,5vw,34px)!important;
  line-height:1.2!important;
}
.garden-memories .garden-tribute-summary{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:clamp(6px,1.8vw,12px)!important;
  width:100%!important;
  max-width:760px!important;
  margin:22px auto 18px!important;
}
.garden-memories .garden-tribute-stat{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  min-width:0!important;
  padding:clamp(9px,2.5vw,16px) 5px!important;
  text-align:center!important;
}
.garden-memories .garden-tribute-stat .garden-stat-icon{
  display:block!important;
  margin:0!important;
  font-size:clamp(18px,4.5vw,25px)!important;
  line-height:1.1!important;
}
.garden-memories .garden-tribute-stat strong{
  display:block!important;
  margin:0!important;
  font-size:clamp(22px,5vw,32px)!important;
  line-height:1.1!important;
}
.garden-memories .garden-tribute-stat>span:last-child{
  display:block!important;
  max-width:100%!important;
  font-size:clamp(9px,2.5vw,11px)!important;
  line-height:1.25!important;
  overflow-wrap:anywhere!important;
}
.garden-memories .garden-tribute-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;
  justify-content:center!important;
  gap:8px!important;
  width:100%!important;
  max-width:560px!important;
  margin:12px auto 8px!important;
}
.garden-memories .garden-action-heading{
  grid-column:1/-1!important;
  margin:0 0 3px!important;
  text-align:center!important;
}
.garden-memories .garden-tribute-form{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
}
.garden-memories .garden-tribute-form .button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:48px!important;
  height:100%!important;
  padding:9px 5px!important;
  white-space:normal!important;
  text-align:center!important;
  font-size:clamp(10px,2.8vw,14px)!important;
  line-height:1.25!important;
}
@media(max-width:380px){
  .garden-memories .garden-flower-row{gap:1px!important;margin-bottom:10px!important}
  .garden-memories .garden-flower-row>span{font-size:clamp(17px,5.2vw,21px)!important}
  .garden-memories .garden-tribute-summary{gap:5px!important;margin:17px auto 14px!important}
  .garden-memories .garden-tribute-stat{padding:8px 3px!important}
  .garden-memories .garden-tribute-stat>span:last-child{font-size:9px!important}
  .garden-memories .garden-tribute-actions{gap:6px!important}
  .garden-memories .garden-tribute-form .button{font-size:10px!important;padding:8px 3px!important}
}
@media(prefers-reduced-motion:reduce){
  .garden-memories .garden-flower-row .garden-butterfly{animation:none!important}
}


/* v1.16.31 — keep the desktop Garden layout on mobile, scaled cleanly */
@media (max-width:560px) {
  .garden-tribute-summary {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    margin:18px auto 16px;
    width:100%;
  }
  .garden-tribute-stat {
    min-width:0;
    padding:12px 4px;
    gap:5px;
    border-radius:12px;
  }
  .garden-stat-icon {font-size:clamp(19px,5vw,24px)}
  .garden-tribute-stat strong {font-size:clamp(22px,6vw,27px)}
  .garden-tribute-stat>span:last-child {
    font-size:clamp(9px,2.7vw,11px);
    line-height:1.25;
    text-align:center;
    overflow-wrap:anywhere;
  }
  .garden-total-stat {grid-column:auto}
  .garden-tribute-actions {
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:stretch;
    justify-content:center;
    gap:8px;
    width:100%;
    margin:12px auto 10px;
  }
  .garden-action-heading {flex:0 0 100%;text-align:center}
  .garden-tribute-form {
    display:flex;
    flex:1 1 0;
    min-width:0;
    max-width:none;
    margin:0;
  }
  .garden-tribute-form .button {
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-width:0;
    max-width:none;
    min-height:48px;
    padding:10px 6px;
    font-size:clamp(10px,2.9vw,13px);
    line-height:1.2;
    text-align:center;
    white-space:normal;
  }
}
@media (max-width:360px) {
  .garden-tribute-summary {gap:4px}
  .garden-tribute-stat {padding:10px 3px}
  .garden-tribute-stat>span:last-child {font-size:9px}
  .garden-tribute-actions {gap:6px}
  .garden-tribute-form .button {font-size:10px;padding:9px 4px}
}


/* Heavenly Memorials r14.3.6 — candle ignition refinement */
.candle-celebration{
  background:radial-gradient(ellipse at 50% 56%,rgba(12,14,17,.18) 0%,rgba(7,9,12,.94) 72%);
  transition:opacity .55s ease,background 1.9s ease;
}
.candle-celebration.is-visible{
  background:radial-gradient(ellipse at 50% 56%,rgba(255,205,119,.34) 0%,rgba(58,43,28,.78) 54%,rgba(12,14,17,.88) 100%);
}
.candle-celebration-art:before{
  opacity:.08;
  transform:translateX(-50%) scale(.55);
  transition:opacity 1.5s ease .65s,transform 1.8s ease .55s;
}
.candle-celebration.is-visible .candle-celebration-art:before{
  opacity:1;
  transform:translateX(-50%) scale(1);
}
.candle-celebration-flame{
  opacity:0;
  transform:translateX(-50%) scale(.08,.12);
  animation:none;
  transition:opacity .35s ease .55s,transform .65s cubic-bezier(.2,.8,.2,1) .55s;
}
.candle-celebration.is-visible .candle-celebration-flame{
  opacity:1;
  transform:translateX(-50%) scale(1,1);
  animation:candleFlameDance 1.25s ease-in-out .95s infinite alternate;
}
.candle-celebration p{
  opacity:0;
  transform:translateY(10px);
  transition:opacity .7s ease 1.15s,transform .7s ease 1.15s;
}
.candle-celebration.is-visible p{
  opacity:1;
  transform:translateY(0);
}
@media(prefers-reduced-motion:reduce){
  .candle-celebration,.candle-celebration-art:before,.candle-celebration-flame,.candle-celebration p{
    transition:none!important;animation:none!important;
  }
  .candle-celebration.is-visible .candle-celebration-flame{opacity:1}
  .candle-celebration.is-visible .candle-celebration-art:before{opacity:1}
  .candle-celebration.is-visible p{opacity:1;transform:none}
}

/* r41 — admin-controlled public header branding layout */
.hm-public-header>.brand{box-sizing:border-box;width:clamp(220px,28vw,360px);flex:0 1 clamp(220px,28vw,360px);min-width:0}
.hm-public-header>.brand.hm-brand-align-left{justify-content:flex-start}
.hm-public-header>.brand.hm-brand-align-center{justify-content:center}
.hm-public-header>.brand.hm-brand-align-right{justify-content:flex-end}
.hm-public-header .brand-title-text{line-height:1.12;white-space:normal}
.hm-public-header .brand-title-text small{display:block;line-height:1.25;letter-spacing:.08em;text-transform:none;margin-top:4px}
@media(max-width:1100px){.hm-public-header>.brand{width:clamp(190px,24vw,280px);flex-basis:clamp(190px,24vw,280px)}}
@media(max-width:820px){.hm-public-header>.brand{width:auto;flex:0 1 auto}}
@media(max-width:560px){.hm-public-header>.brand{width:100%;flex:1 1 100%;justify-content:flex-start}.hm-public-header .brand-symbol-image{max-width:none}}


/* r43 — mobile brand lockup: keep the website name on one clean line */
@media (max-width: 560px) {
  .hm-public-header > .brand {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .hm-public-header .brand-lockup {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .hm-public-header .brand-symbol-image {
    width: auto !important;
    max-width: 48px !important;
    height: 44px !important;
    flex: 0 0 48px;
    object-fit: contain;
  }
  .hm-public-header .brand-title-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    font-size: min(var(--hm-brand-mobile-title-size,17px), calc((100vw - 112px) / var(--hm-brand-mobile-title-chars,18))) !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: clip;
  }
  .hm-public-header .brand-title-text small {
    display: block;
    margin-top: 3px !important;
    font-size: min(var(--hm-brand-mobile-tag-size,8px), calc((100vw - 112px) / var(--hm-brand-mobile-tag-chars,24))) !important;
    line-height: 1.15 !important;
    letter-spacing: .08em !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: clip;
  }
}
@media (max-width: 360px) {
  .hm-public-header .brand-lockup { gap: 6px; }
  .hm-public-header .brand-symbol-image {
    max-width: 42px !important;
    height: 40px !important;
    flex-basis: 42px;
  }
  .hm-public-header .brand-title-text {
    font-size: min(var(--hm-brand-mobile-title-size,17px), calc((100vw - 100px) / var(--hm-brand-mobile-title-chars,18))) !important;
  }
  .hm-public-header .brand-title-text small {
    font-size: min(var(--hm-brand-mobile-tag-size,8px), 6px) !important;
  }
}


/* HM-R67.19 visitor palette and Business Directory navigation */
:where(body:not(.hm-admin-layout) h1){color:#294638}
:where(body:not(.hm-admin-layout) h2, body:not(.hm-admin-layout) h3){color:#496b55}
body:not(.hm-admin-layout) .hm-public-nav a.hm-business-directory-link{background:linear-gradient(135deg,#f4dfaa 0%,#e4c276 52%,#c9a052 100%)!important;color:#294638!important;border:1px solid #c5a052!important;border-radius:999px!important;box-shadow:0 3px 10px rgba(157,119,48,.2)!important;font-weight:800!important}
body:not(.hm-admin-layout) .hm-public-nav a.hm-business-directory-link:hover,body:not(.hm-admin-layout) .hm-public-nav a.hm-business-directory-link:focus-visible{background:linear-gradient(135deg,#f8e9c2 0%,#ebcf8b 52%,#d7b064 100%)!important;color:#203d2d!important;box-shadow:0 5px 14px rgba(157,119,48,.27)!important;transform:translateY(-1px)}
body:not(.hm-admin-layout) .hm-public-nav a.hm-business-directory-link.is-active{background:linear-gradient(135deg,#e8cc83,#caa052)!important;color:#263d31!important;border-color:#c5a052!important}
body:not(.hm-admin-layout) .hm-public-nav a.hm-business-directory-link:focus-visible{outline:3px solid rgba(197,166,106,.45);outline-offset:3px}

/* r67.72: the shared memorial crop engine owns gallery image geometry; disable hover transforms on cropped portraits. */
.photo-album-grid .album-photo img.hm-photo-crop-image,.photo-album-grid .album-card:hover .album-photo img.hm-photo-crop-image{transition:none!important;transform:none!important}

/* r67.73.3: avoid a visible uncropped flash while saved crop geometry initializes. */
.album-photo[data-hm-photo-crop="display"] img.hm-photo-crop-image{visibility:hidden!important}

/* r67.73.4: prevent uncropped flash on featured cards and individual memorial portraits. */
.album-photo[data-hm-photo-crop="display"] img.hm-photo-crop-image,
.profile-photo[data-hm-photo-crop="viewer"] img.hm-photo-crop-image{visibility:hidden!important}
