/* Reset + Page Background */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #e8e6e1;
  font-family: 'Cormorant', serif;
  color: #2e2e2e;
}

/* Top Bar */
.top-bar {
  background-color: #f0efed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
  letter-spacing: 0.1rem;
}

.nav-buttons {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  padding-right: 0rem;
}

.rsvp-button,
.menu-button {
  background: none;
  border: 1px solid #2e2e2e;
  color: #2e2e2e;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 5px;
  font-family: 'Cormorant', serif;
}

.rsvp-button:hover,
.menu-button:hover {
  background-color: #ddd;
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem 4rem 1rem;
  opacity: 0;
  transition: opacity 1.5s ease;
  background-color: #e8e6e1;
}

.text-block {
  margin-bottom: 2rem;
}

.names {
  font-size: 2.8rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.divider {
  width: 220px;
  border: 1px solid #2e2e2e;
  margin: 1.5rem auto;
}

.date {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.location {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  color: #2e2e2e;
}

/* Image Styling */
.hero-image {
  max-width: 800px;
  width: 90%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* Responsive (Mobile) */
@media (max-width: 768px) {
  .names {
    font-size: 2.2rem;
  }

  .divider {
    width: 160px;
  }

  .date {
    font-size: 1.1rem;
  }

  .location {
    font-size: 1.2rem;
  }

  .rsvp-button,
  .menu-button {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }
}

/* Intro Overlay */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #e8e6e1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1.5s ease;
}

.intro-logo {
  font-size: 3rem;
  font-family: 'Cormorant', serif;
  letter-spacing: 0.2rem;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.3s forwards, fadeOut 1s ease 1.6s forwards;
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* Animation Keyframes */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

/* Utility */
.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

/* About Page */
.about-section {
  background-color: #e8e6e1;
  padding: 0.15rem 2rem 4rem 2rem;
  text-align: center;
}

.about-container {
  max-width: 700px;
  margin: 0 auto;
}

.about-heading {
  font-size: 2.5rem;
  font-family: 'Cormorant', serif;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.about-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-family: 'Cormorant', serif;
  line-height: 1.6;
  color: #2e2e2e;
  text-align: center;
}

.about-image-wrapper {
  margin-top: 2.5rem;     /* Adds more space above */
  margin-bottom: 0rem;  /* Reduces space below */
}

/* Dropdown Menu */
.dropdown-menu {
  background-color: #f0efed;
  padding: 1rem 0;
  text-align: center;
  border-top: 1px solid #ccc;
  animation: fadeInMenu 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu ul li {
  margin: 0.75rem 0;
}

.dropdown-menu ul li a {
  text-decoration: none;
  color: #2e2e2e;
  font-size: 1.15rem;
  font-family: 'Cormorant', serif;
  transition: color 0.3s;
  padding: 0.25rem 1rem;
  display: inline-block;
}

.dropdown-menu ul li a:hover {
  color: #a37c5b; /* soft accent color on hover */
}

/* When the menu is hidden, collapse it completely so it doesn't leave a strip */
.dropdown-menu.hidden {
  padding: 0 !important;
  border-top: 0 !important;
  height: 0 !important;
  display: none; /* safe here; your overlay/hero use .hidden too but don't rely on display */
}


.info-heading {
  font-size: 2.5rem;
  font-family: 'Cormorant', serif;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

/* Unified heading + divider spacing */
.info-heading + .divider {
  width: 220px;                 /* same width you’re using */
  border: 1px solid #2e2e2e;
  margin: 1rem auto 2rem auto;  /* consistent top/bottom gap */
}


.info-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-family: 'Cormorant', serif;
  line-height: 1.6;
  color: #2e2e2e;
  text-align: center;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
  letter-spacing: 0.1rem;
  text-decoration: none;
  color: inherit;
}

/* RSVP styling */

/* Hide default radio style */
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff; /* background when unselected */
  border: 2px solid rgba(0,0,0,0.4);
  border-radius: 50%;
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
  position: relative;
}

/* Checked state */
input[type="radio"]:checked {
  background-color: #000; /* change to your theme color */
  border-color: #000;
}

/* Add a little inner dot */
input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5em;
  height: 0.5em;
  background-color: #fff; /* dot color */
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* About page image formatting (match gallery look/size) */
.about-image-wrapper img {
  width: 92%;
  max-width: 500px;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto;
}

/* Gallery grid + lightbox */
.gallery-grid {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: 92%;
  max-width: 900px;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.gallery-grid li button {
  width: 100%;
  aspect-ratio: 5 / 7;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f1ee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: grid;
  place-items: center;
  z-index: 10000;
}
.lightbox[hidden] { display: none; }

/* New: frame that anchors buttons to the image bounds */
.lb-frame {
  position: relative;
  display: inline-block; /* shrink-wrap to image */
}

/* Image */
.lb-img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  display: block;
}

/* Controls: now positioned inside/next to the image */
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 8px;
  padding: .4rem .7rem;
  cursor: pointer;
  font-family: 'Cormorant', serif;
  font-size: 1.1rem;
}

/* Close button at top-right corner of the image */
.lb-close {
  top: .5rem;
  right: .5rem;
}

/* Arrows vertically centered, just inside the image edges */
.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
}

.lb-prev { left: -2.25rem; }
.lb-next { right: -2.25rem; }

.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255,255,255,.12);
}


/* Unified caption block (location + photo credit) */
.credit {
  width: 92%;
  max-width: 900px;
  margin: 1.25rem auto 0;   /* space above the caption block */
  text-align: center;       /* consistent alignment */
  font-size: 1rem;          /* same size for both lines */
  color: #2e2e2e;           /* same color as body text */
  opacity: 0.9;             /* subtle soften; remove if you want 1:1 color */
  line-height: 1.5;
}

/* ---- Gallery (grid version) ---- */
/* Use pointer hand instead of zoom icon */
.gallery-grid li button {
  cursor: pointer;                  /* overrides any previous zoom-in */
  transition: box-shadow .2s ease, transform .2s ease, outline-color .2s ease;
}

/* Hover highlight: a touch of lift + soft outline */
.gallery-grid li button:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  outline: 2px solid rgba(0,0,0,.18);
  outline-offset: -2px;
}

/* Slight zoom + brighten the image on hover */
.gallery-grid li button img {
  transition: transform .2s ease, filter .2s ease;
}

.gallery-grid li button:hover img {
  transform: scale(1.0125);
  filter: brightness(1.04);
}

/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .gallery-grid li button,
  .gallery-grid li button img { transition: none; }
}

/* Tighter space above the caption block */
.credit { 
  margin-top: 0.6rem;   /* was ~1.25rem; tweak as you like */
}

/* Registry hero image (landscape, framed like About page) */
.registry-image-wrapper img {
  width: 92%;
  max-width: 600px;      /* same as About, but flexible */
  aspect-ratio: 4 / 3;   /* landscape ratio */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto;
}

.info-section a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.info-section a:hover {
  text-decoration: underline;
}

.page-title {
  text-align: center;
  font-size: 2rem;
  margin: 3rem 0 1rem 0;  /* uniform spacing above and below */
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
}

.page-divider {
  width: 60px;          /* consistent line length */
  height: 2px;
  background-color: #000;
  margin: 0 auto 2rem auto; /* centered, with spacing below */
}

/* Consistent page section padding */
.info-section {
  padding: 0 2rem 5rem 2rem; /* bottom = 5rem across all */
  text-align: center;
}

/* Make About page match the same bottom padding */
.about-section {
  background-color: #e8e6e1;
  padding: 0.15rem 2rem 5rem 2rem; /* was 4rem */
  text-align: center;
}

/* Home hero: framed image + headings */
.home-hero img {
  width: 100%;
  max-width: 800px;         
  aspect-ratio: 1 / 1;      
  object-fit: cover;
  border-radius: 10px;      /* match site corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 2rem auto 1.25rem auto; /* nice breathing room */
}

/* Big names in same serif font */
.home-names {
  font-family: 'Cormorant', serif;  /* same as site */
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 3.6rem); /* “maybe even bigger” */
  margin: 0.25rem 0 0.25rem 0;
  text-align: center;
}

/* Luxurious script date */
.home-date {
  font-family: 'Great Vibes', cursive;   
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #2e2e2e;
}

.top-bar { min-height: 20px; }

#dietary-row .guest-name {
  display: block;           /* forces a new line */
  margin-bottom: .6rem;     /* space above the textarea */
  text-align: center;
  margin-top: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 160px;
  font-size: 16px;
  line-height: 1.5;
  padding: .8rem 1rem;
}

#dietary-row .guest-name {
  display: block;           /* forces a new line */
  margin-bottom: .6rem;     /* space above the textarea */
  text-align: center;
}

.row { margin: 1.25rem 0; }

@media (max-width: 600px) {
  /* Better spacing after the names + button */
  #responding-row { margin-bottom: 1.1rem; }
  #party-title.info-subheading {
    margin: .35rem 0 .6rem;
    font-size: clamp(1.35rem, 6vw, 2rem);
    line-height: 1.25;
  }

  .guest { padding: 1rem 0; }
  .guest-name { margin-bottom: .35rem; text-align: center; }
  .attend-group { justify-content: center; gap: 1rem; }

  #dietary-row {
  margin-top: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  }
}

button, .btn { -webkit-appearance: none; appearance: none; }

.btn.primary {
  background: #2e2e2e;
  color: #fff;
  border: 1px solid #2e2e2e;
}
.btn.primary:hover { background: #1f1f1f; }