/* Elegant wedding theme: soft neutrals, generous white space, subtle typography */
:root{
  --bg: #fff;
  --ink: #333;
  --muted: #6b7280;
  --accent: #9a7b6f; /* warm taupe */
  --accent-2: #d9cfc9;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container{
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero{
  position: relative;
  min-height: 80vh;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.25)), url('../../images/engagement/hero.jpg') top/cover no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
}
.hero .hero-inner{position:relative; z-index:2;}
.hero .eyebrow{letter-spacing:.25em; text-transform:uppercase; font-size:.85rem; opacity:.9; margin:.5rem 0;}
.hero .names{
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 400;
  margin: .25rem 0 0;
}
.hero .names span{font-family: cursive; color: var(--accent-2);}
.hero .date,.hero .location{opacity:.95; margin: .35rem 0;}
.hero-nav{margin-top:1.25rem; display:flex; gap:.75rem; justify-content:center; flex-wrap:wrap;}
.btn{
  display:inline-block; padding:.7rem 1.1rem; border-radius:999px;
  background: var(--accent); color:#fff; text-decoration:none; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{transform: translateY(-1px)}
.btn.outline{background: transparent; color:#fff; border:1px solid rgba(255,255,255,.7)}
.section{padding: 3rem 0}
.section h2{font-weight: 400; font-size: 2rem; margin: 0 0 1rem; color: var(--accent)}

.cards{display:grid; gap:1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));}
.card{
  background: var(--card); border-radius: 16px; padding: 1.2rem 1.2rem;
  box-shadow: var(--shadow); border: 1px solid #eee;
}

.timeline{list-style:none; padding:0; margin:0; border-left:2px solid var(--accent-2)}
.timeline li{display:grid; grid-template-columns: 110px 1fr; gap:1rem; padding: .5rem 0 .5rem 1rem; position:relative}
.timeline li::before{
  content:""; position:absolute; left:-7px; top: 1.1rem; width:10px; height:10px; background: var(--accent);
  border-radius:50%;
}
.time{font-weight:600; color: var(--accent)}
.event{color: var(--ink)}

.registry{text-align:center}
.footer{padding:2rem 0; background:#faf9f8; border-top: 1px solid #eee; margin-top:3rem}
.footer-inner{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.75rem}
.footer a{color: var(--muted); text-decoration:none}
.footer a:hover{color: var(--accent)}

/* Sub page */
.sub-hero{padding:3rem 0 1.5rem; background:#faf9f8; border-bottom:1px solid #eee}
.sub-hero h1{margin:0; color:var(--accent); font-weight:400}
.back-link{color:var(--muted); text-decoration:none}
.back-link:hover{color:var(--accent)}

.gallery-body{background:#fff}
.gallery-grid{
  display:grid; gap:10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  padding: 20px 0 40px;
}
.gallery-item{display:block; overflow:hidden; border-radius:14px; border:1px solid #eee}
.gallery-item img{display:block; width:100%; height:220px; object-fit:cover; object-position:top; transition: transform .25s ease}
.gallery-item:hover img{transform: scale(1.03)}

/* Lightbox */
.lightbox{
  position: fixed; inset:0; background: rgba(0,0,0,.9);
  display:none; align-items:center; justify-content:center; z-index: 50;
}
.lightbox.show{display:flex}
.lightbox img{max-width: min(94vw, 1400px); max-height: 84vh; border-radius: 10px}
.lightbox-close,.lightbox-prev,.lightbox-next{
  position:absolute; border:0; background: rgba(255,255,255,.08);
  color:#fff; font-size: 2rem; width:44px; height:44px; border-radius:999px; cursor:pointer;
  display:grid; place-items:center;
}
.lightbox-close{top:20px; right:20px}
.lightbox-prev{left:20px}
.lightbox-next{right:20px}
.lightbox-close:hover,.lightbox-prev:hover,.lightbox-next:hover{background: rgba(255,255,255,.18)}
.invitation {
  /* margin: auto !important; */
  max-width: 1000px !important;
  width: 100% !important;
  display: block; /* Images are inline by default, make it block-level */
  margin-left: auto;
  margin-right: auto;
}
