:root{
  --bg:#0b0f14;
  --card:#111827;
  --muted:#94a3b8;
  --text:#e5e7eb;
  --accent:#eab308;
  --alt:#0f172a;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}
.container{max-width:980px; margin:0 auto; padding:0 18px;}
.hero{
  padding:70px 0 55px;
  background: radial-gradient(1200px 500px at 20% 10%, #1f2937 0%, transparent 60%),
              radial-gradient(900px 400px at 80% 0%, #0f172a 0%, transparent 55%),
              var(--bg);
  border-bottom:1px solid rgba(148,163,184,.15);
}
.kicker{letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin:0}
h1{margin:.35rem 0; font-size:clamp(30px, 4vw, 46px);}
.dates{margin:0; color:var(--accent); font-weight:600}
.subtitle{margin:.75rem 0 0; color:var(--muted); max-width:60ch}

.section{padding:40px 0}
.section.alt{background:var(--alt); border-top:1px solid rgba(148,163,184,.12); border-bottom:1px solid rgba(148,163,184,.12);}
h2{margin:0 0 14px; font-size:22px}
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}
@media (max-width: 800px){
  .grid{grid-template-columns:1fr}
}
.card{
  background:var(--card);
  border:1px solid rgba(148,163,184,.12);
  border-radius:16px;
  padding:16px;
}
.card h3{margin:0 0 6px; font-size:16px}
.muted{color:var(--muted)}
.small{font-size:13px}

.actions{margin:10px 0 14px}
.btn{
  display:inline-block;
  padding:10px 14px;
  background:var(--accent);
  color:#111827;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  border:0;
  cursor:pointer;
}
.btn:hover{filter:brightness(.95)}
.map{
  height:360px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.2);
  overflow:hidden;
}

.form{
  max-width:620px;
  background:var(--card);
  border:1px solid rgba(148,163,184,.12);
  border-radius:16px;
  padding:16px;
}
label{display:block; margin:12px 0 0; font-weight:600}
input, textarea{
  width:100%;
  margin-top:6px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.18);
  background:#0b1220;
  color:var(--text);
}
textarea{resize:vertical}

.footer{padding:24px 0; border-top:1px solid rgba(148,163,184,.12);}


.hero-image{
  margin-top:24px;
  display:flex;
  justify-content:center;
}
.hero-image img{
  width:180px;
  height:180px;
  object-fit:cover;
  border-radius:50%;
  border:4px solid rgba(234,179,8,.6);
}



.gallery{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:12px;
}
.gallery img{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.2);
  cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease;
}
.gallery img:hover{
  transform:scale(1.03);
  box-shadow:0 10px 25px rgba(0,0,0,.35);
}



.lightbox{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,.82);
  z-index:9999;
}
.lightbox.open{ display:flex; }

.lightbox-img{
  max-width:min(980px, 92vw);
  max-height:80vh;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.25);
  background:#000;
}

.lightbox-caption{
  margin:12px 0 0;
  color:rgba(229,231,235,.9);
  text-align:center;
  max-width:min(980px, 92vw);
  font-size:14px;
}

.lightbox-close{
  position:fixed;
  top:14px;
  right:18px;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.25);
  background:rgba(17,24,39,.8);
  color:#e5e7eb;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.lightbox-close:hover{ filter:brightness(1.06); }



.hidden { display:none; }



.obituary{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.obituary img{
  max-width: 100%;
  width: 720px;           /* looks like a printed poster */
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.25);
  box-shadow: 0 15px 35px rgba(0,0,0,.35);
}




.tribute{
  max-width: 85ch;          /* comfortable reading width */
  margin-top: 12px;
}

.tribute p{
  margin: 0 0 12px;
  color: var(--text);
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.75;
}


.subtitle{
  max-width: 70ch;
}


.tribute p{
  margin-bottom: 1.1em;
}



.tribute{
  max-width: 85ch;
}


.footer-title{
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text);
}

.contacts{
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacts li{
  margin-bottom: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.contacts strong{
  color: var(--text);
  font-weight: 600;
}


.gallery img{
  width:100%;
  aspect-ratio: 4 / 3;     /* better than fixed height */
  height: auto;
  object-fit: cover;
  object-position: center top;  /* keeps face/upper body */
  border-radius:14px;
  border:1px solid rgba(148,163,184,.2);
  cursor:pointer;
}


.hero-image{
  margin-top:24px;
  display:flex;
  justify-content:center;
}

.hero-image img{
  width:220px;
  height:280px;                 /* taller than wide = oval */
  max-width:90vw;
  object-fit: cover;            /* fills oval nicely */
  object-position: center top;  /* keeps face visible */
  border-radius:50% / 65%;      /* THIS creates the oval */
  border:4px solid rgba(234,179,8,.6);
  box-shadow:0 18px 40px rgba(0,0,0,.45);
  background:#0b1220;
}



.invitation{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.invitation img{
  max-width: 100%;
  width: 720px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.25);
  box-shadow: 0 15px 35px rgba(0,0,0,.35);
}


.obituary{
  margin-top:18px;
  display:flex;
  justify-content:center;
}

.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}

.actions .btn:nth-child(2){
  background:#25D366;   /* WhatsApp green */
  color:#0b0f14;
}
