
:root {
  --wedding-blue: #2F56B3;
  --wedding-red: #8B1E2D;
  --wedding-ivory: #F4EFEA;
  --wedding-white: #FCFBF8;
  --wedding-charcoal: #44464D;
  --wedding-sage: #7E8F82;
  --wedding-mist: #D8DDE3;
  --wedding-stone: #B8ACA3;
  --wedding-copper: #B76A4A;
  --shadow: 0 18px 48px rgba(68, 70, 77, 0.12);
  --radius: 22px;
  --radius-sm: 16px;
  --content: min(1180px, calc(100vw - 2rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--wedding-charcoal);
  background: linear-gradient(180deg, var(--wedding-white), var(--wedding-ivory) 75%);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { width: var(--content); margin: 0 auto; }
.section { padding: 3.2rem 0; }
.section-tight { padding: 1.8rem 0 3rem; }
.section-gallery-first { padding-top: 1rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(252, 251, 248, 0.88);
  border-bottom: 1px solid rgba(216, 221, 227, 0.9);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}
.brand-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-sub {
  color: var(--wedding-sage);
  font-size: 0.95rem;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--wedding-mist);
  background: var(--wedding-white);
  color: var(--wedding-charcoal);
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
}
.nav-links {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  padding: 0.72rem 0.92rem;
  border-radius: 999px;
  color: #555860;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--wedding-blue);
  color: white;
  transform: translateY(-1px);
}

.hero {
  padding: 2.4rem 0 3rem;
}
.hero-centered-wrap {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
}
.home-focus-card,
.gallery-panel,
.program-card,
.media-card,
.empty-state,
.share-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 221, 227, 0.82);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.home-focus-card {
  width: min(1040px, 100%);
  overflow: hidden;
  padding: 1rem;
}
.hero-image-frame-full img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
}
.hero-verse-card {
  width: min(1040px, 100%);
  text-align: center;
  padding: 1.5rem 1.75rem 1.65rem;
}
.hero-verse-text {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  line-height: 1.45;
}
.hero-verse-reference {
  margin: 0.65rem 0 0;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666a72;
}

.page-simple {
  padding: 2.3rem 0 0.2rem;
}
.home-page-title {
  padding-bottom: 0.4rem;
}
.home-page-title .page-title-wrap {
  display: grid;
  gap: 0.5rem;
  text-align: center;
}
.home-meta {
  margin: 0;
  color: #666a72;
  font-size: 1.02rem;
}
.page-title-wrap {
  text-align: center;
}
.page-title-wrap h1,
.media-section-head h2,
.program-card h2,
.share-card h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
}
.page-title-wrap h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin: 0;
}
.media-section-head { margin-bottom: 1rem; }
.media-section-head h2,
.program-card h2,
.share-card h2 {
  font-size: 2rem;
  margin: 0 0 0.8rem;
}

.masonry {
  column-width: 280px;
  column-gap: 1rem;
}
.masonry-item {
  break-inside: avoid;
  margin: 0 0 1rem;
  min-width: 0;
}
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(216, 221, 227, 0.85);
  background: white;
}
.gallery-card button {
  padding: 0;
  margin: 0;
  border: 0;
  width: 100%;
  background: transparent;
  cursor: zoom-in;
}
.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
}
.gallery-card button:hover img {
  transform: scale(1.01);
}
.gallery-card img {
  transition: transform 0.25s ease;
}

.empty-state {
  padding: 2rem;
  text-align: center;
}
.empty-state strong {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--wedding-red);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 22, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 200;
}
.lightbox.open { display: flex; }
.lightbox-dialog {
  position: relative;
  width: min(96vw, 1500px);
  height: min(96vh, 1000px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-stage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}
.lightbox-media-wrap {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lightbox-media {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.lightbox-copy {
  width: 100%;
  text-align: center;
  color: white;
  display: grid;
  gap: 0.4rem;
}
.lightbox-copy.copy-minimal {
  gap: 0.2rem;
}
.lightbox-count {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
}
.lightbox-copy h3 {
  margin: 0;
  font-size: 1.3rem;
}
.lightbox-copy p {
  margin: 0;
  color: rgba(255,255,255,0.8);
}
.lightbox-copy h3:empty,
.lightbox-copy p:empty {
  display: none;
}
.lightbox-original {
  display: inline-flex;
  align-self: center;
  justify-content: center;
  color: white;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(47, 86, 179, 0.95);
  color: white;
  min-width: 52px;
  min-height: 52px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.lightbox-close { top: 0.25rem; right: 0.25rem; }
.lightbox-prev { left: 0.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.25rem; top: 50%; transform: translateY(-50%); }

.kv-list {
  display: grid;
  gap: 0.9rem;
}
.kv {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  background: rgba(244, 239, 234, 0.7);
  border-radius: 16px;
}
.kv span {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wedding-sage);
  font-weight: 700;
}
.kv strong { font-size: 1.05rem; }

.details-grid,
.program-columns,
.media-grid {
  display: grid;
  gap: 1.2rem;
}
.details-grid,
.program-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-grid-single {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}
.program-card,
.media-card,
.share-card {
  padding: 1.5rem;
}
.program-list,
.names-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.program-list li,
.names-list li {
  padding: 0.95rem 1rem;
  background: rgba(244, 239, 234, 0.72);
  border-radius: 16px;
}
.names-list strong {
  display: block;
  margin-bottom: 0.2rem;
}
.details-verse-card,
.centered-card-wrap {
  text-align: center;
}
.details-verse-text {
  margin: 0;
  font-size: 1.08rem;
  color: #565962;
}
.details-verse-reference {
  margin: 0.8rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
}
.centered-card-wrap {
  display: flex;
  justify-content: center;
}
.centered-card-wrap > .program-card,
.centered-card-wrap > .share-card {
  width: min(760px, 100%);
}

.media-card {
  display: grid;
  gap: 0.95rem;
}
.media-card .tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(47, 86, 179, 0.1);
  color: var(--wedding-blue);
}
.media-card.coming-soon .tag {
  background: rgba(139, 30, 45, 0.12);
  color: var(--wedding-red);
}
.embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.embed-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
video, audio {
  width: 100%;
}
.media-link {
  display: inline-flex;
  width: fit-content;
  color: var(--wedding-blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.media-note {
  margin: 0.9rem auto 0;
  max-width: 860px;
  text-align: center;
  font-size: 0.92rem;
  color: #6f737c;
}

.share-card {
  display: grid;
  gap: 1rem;
}
.share-card-centered { text-align: center; }
.share-address {
  font-weight: 700;
  color: var(--wedding-blue);
  word-break: break-word;
  font-size: 1.1rem;
}
.notice {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(139, 30, 45, 0.08);
  border: 1px solid rgba(139, 30, 45, 0.14);
  color: #5f4d52;
}
.footer {
  margin-top: auto;
  padding: 2rem 0 2.3rem;
  color: #666a72;
}
.footer-credit {
  padding-top: 1rem;
  text-align: center;
  color: #727781;
  border-top: 1px solid rgba(216, 221, 227, 0.9);
}

@media (max-width: 1050px) {
  .details-grid,
  .program-columns,
  .media-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background: rgba(252, 251, 248, 0.98);
    padding: 0.7rem 0 0.2rem;
  }
  .nav-links.open { display: flex; }
  .navbar { align-items: start; flex-direction: column; padding: 1rem 0; }
  .section { padding: 2.7rem 0; }
  .page-simple { padding-top: 1.9rem; }
  .lightbox-dialog { width: 100%; height: 100%; }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
}
@media (max-width: 700px) {
  .masonry {
    column-width: 180px;
  }
}
@media (max-width: 620px) {
  .brand-mark { font-size: 1.65rem; }
  .brand-sub { font-size: 0.88rem; }
  .hero { padding-top: 1.5rem; }
  .home-focus-card, .hero-verse-card, .program-card, .media-card, .share-card, .gallery-panel { padding: 1rem; }
  .lightbox {
    padding: 0.5rem;
  }
  .lightbox-close,
  .lightbox-nav {
    min-width: 46px;
    min-height: 46px;
  }
  .lightbox-close { top: 0; right: 0; }
}
