:root {
  --navy: #0f1e3a;
  --gold: #c8a96b;
  --white: #ffffff;
  --paper: #f7f4ee;
  --ink: #172542;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  overflow: hidden;
  background: var(--paper);
}

img {
  max-width: 100%;
}

.scroll-progress {
  position: fixed;

  top: 0;
  left: 0;

  z-index: 1000000;

  width: 100%;

  height: 3px;

  background: rgba(255, 255, 255, 0.16);
}

.scroll-progress span {
  display: block;

  width: 0%;

  height: 100%;

  background: linear-gradient(90deg, #f4dfaa, var(--gold));

  transition: width 0.15s ease;
}

.music-toggle {
  position: fixed;

  right: 22px;
  bottom: 22px;

  z-index: 999997;

  width: 48px;
  height: 48px;

  display: none;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(200, 169, 107, 0.72);

  border-radius: 50%;

  background: rgba(15, 30, 58, 0.72);

  color: white;

  cursor: pointer;

  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);

  backdrop-filter: blur(12px);

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.music-toggle span {
  position: relative;

  display: block;

  font-size: 1.35rem;

  line-height: 1;
}

.music-toggle span::before {
  content: "♪";
}

.music-toggle span::after {
  content: "";

  position: absolute;

  left: -5px;
  top: 50%;

  width: 28px;
  height: 1px;

  background: currentColor;

  opacity: 0;

  transform: rotate(-35deg);
}

.music-toggle.is-visible {
  display: inline-flex;
}

.music-toggle.is-muted span::after {
  opacity: 1;
}

.music-toggle:hover {
  transform: translateY(-3px);

  background: var(--gold);

  color: var(--navy);

  box-shadow: 0 20px 48px rgba(15, 30, 58, 0.24);
}

/* ==========================
   LOADER
========================== */

#loader {
  position: fixed;
  inset: 0;

  background: var(--navy);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 999999;

  transition: 1s ease;
}

.loader-content {
  text-align: center;

  animation: loaderFade 1.2s ease;
}

.loader-logo img {
  width: 220px;

  display: block;

  margin: auto auto 30px;

  filter: drop-shadow(0 0 15px rgba(200, 169, 107, 0.15));
}

.loader-content h1 {
  font-family: "Cormorant Garamond", serif;

  font-size: 4rem;

  color: white;

  margin-bottom: 10px;
}

.loader-content p {
  color: rgba(255, 255, 255, 0.75);

  letter-spacing: 4px;

  margin-bottom: 30px;
}

.loader-bar {
  width: 260px;

  height: 4px;

  background: rgba(255, 255, 255, 0.15);

  border-radius: 50px;

  overflow: hidden;

  margin: auto;
}

.loader-progress {
  width: 0;

  height: 100%;

  background: var(--gold);

  animation: loadingBar 1.8s linear forwards;
}

@keyframes loadingBar {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

@keyframes loaderFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================
   OPENING COVER
========================== */

#openingCover {
  position: fixed;

  inset: 0;

  opacity: 0;

  visibility: hidden;

  overflow: hidden;

  z-index: 999998;

  transition: 1s ease;
}

.cover-bg {
  width: 100%;

  height: 100%;

  object-fit: cover;

  animation: coverZoom 18s ease-in-out infinite alternate;
}

.cover-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(rgba(15, 30, 58, 0.2), rgba(15, 30, 58, 0.45));
}

.opening-content {
  position: absolute;

  top: 28%;

  left: 50%;

  transform: translateX(-50%);

  text-align: center;

  z-index: 10;

  width: 100%;
}

.opening-logo {
  width: 170px;

  margin-bottom: 25px;
}

.opening-line {
  width: 120px;

  height: 2px;

  background: var(--gold);

  margin: 0 auto 25px;
}

.opening-content h1 {
  font-family: "Cormorant Garamond", serif;

  font-size: 5.5rem;

  color: white;

  margin-bottom: 10px;
}

.opening-content h2 {
  color: var(--gold);

  font-weight: 400;

  letter-spacing: 4px;

  margin-bottom: 20px;
}

.opening-content p {
  color: rgba(255, 255, 255, 0.85);

  letter-spacing: 3px;

  margin-bottom: 40px;
}

#enterWebsite {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  min-width: 210px;

  padding: 17px 34px;

  overflow: hidden;

  border: 1px solid rgba(200, 169, 107, 0.9);

  border-radius: 50px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0.02)
    ),
    rgba(15, 30, 58, 0.26);

  color: white;

  cursor: pointer;

  font-family: "Montserrat", sans-serif;

  font-size: 0.82rem;

  font-weight: 500;

  letter-spacing: 3px;

  text-transform: uppercase;

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.24),
    0 0 0 7px rgba(200, 169, 107, 0.08),
    inset 0 0 24px rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(10px);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease;
}

#enterWebsite::before {
  content: "";

  position: absolute;

  inset: 3px;

  border: 1px solid rgba(255, 255, 255, 0.18);

  border-radius: inherit;

  pointer-events: none;
}

#enterWebsite::after {
  content: "";

  width: 9px;

  height: 9px;

  border-top: 1px solid currentColor;

  border-right: 1px solid currentColor;

  transform: rotate(45deg);

  transition: transform 0.35s ease;
}

#enterWebsite span {
  position: relative;

  z-index: 1;
}

#enterWebsite:hover {
  transform: translateY(-3px);

  border-color: #f1d79a;

  background: linear-gradient(135deg, #e6ca84, var(--gold)), var(--gold);

  color: var(--navy);

  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.28),
    0 0 0 10px rgba(200, 169, 107, 0.12),
    0 0 34px rgba(200, 169, 107, 0.28);
}

#enterWebsite:hover::after {
  transform: translateX(4px) rotate(45deg);
}

#enterWebsite:focus-visible {
  outline: 2px solid #f1d79a;

  outline-offset: 5px;
}

#enterWebsite:active {
  transform: translateY(-1px) scale(0.98);
}

@keyframes coverZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

/* ==========================
   HERO COVER
========================== */

.hero-cover {
  position: relative;

  min-height: 100vh;

  overflow: hidden;

  background: var(--navy);
}

.hero-cover img {
  width: 100%;

  height: 100vh;

  display: block;

  object-fit: cover;

  transform: scale(1.02);

  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-cover::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(rgba(15, 30, 58, 0.12), rgba(15, 30, 58, 0.68));
}

.hero-cover-content {
  position: absolute;

  left: 50%;

  bottom: 10%;

  z-index: 2;

  width: min(860px, calc(100% - 48px));

  transform: translateX(-50%);

  text-align: center;

  color: white;

  animation: coverTextRise 1.1s ease both;
}

.hero-cover-content p,
.hero-cover-content span {
  color: rgba(255, 255, 255, 0.84);

  font-size: 0.82rem;

  letter-spacing: 5px;

  text-transform: uppercase;
}

.hero-cover-content h2 {
  margin: 14px 0 18px;

  font-family: "Cormorant Garamond", serif;

  font-size: clamp(4rem, 11vw, 8.8rem);

  font-weight: 600;

  line-height: 0.88;
}

.scroll-cue {
  position: absolute;

  left: 50%;
  bottom: 28px;

  z-index: 3;

  width: 1px;
  height: 54px;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.24);
}

.scroll-cue span {
  display: block;

  width: 100%;
  height: 22px;

  background: var(--gold);

  animation: scrollCue 1.6s ease-in-out infinite;
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translateY(0);
  }

  to {
    transform: scale(1.08) translateY(-18px);
  }
}

@keyframes coverTextRise {
  from {
    opacity: 0;
    transform: translate(-50%, 22px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes scrollCue {
  from {
    transform: translateY(-24px);
  }

  to {
    transform: translateY(58px);
  }
}

/* ==========================
   QUOTE SECTION
========================== */

.quote-section {
  position: relative;

  z-index: 1;

  width: 100%;

  opacity: 1;

  pointer-events: auto;

  padding: 90px 24px;

  overflow: visible;

  background: var(--paper);
}

.quote-section::before {
  content: "";

  position: absolute;

  inset: 18px;

  border: 1px solid rgba(200, 169, 107, 0.42);

  pointer-events: none;
}

.quote-inner {
  position: relative;

  z-index: 2;

  width: min(850px, 100%);

  margin: 0 auto;

  text-align: center;
}

.quote-logo {
  width: 90px;

  margin-bottom: 28px;

  filter: drop-shadow(0 10px 22px rgba(15, 30, 58, 0.12));
}

.quote-label {
  margin-bottom: 12px;

  color: rgba(15, 30, 58, 0.66);

  font-size: 0.7rem;

  letter-spacing: 5px;

  text-transform: uppercase;
}

.quote-inner h2 {
  font-family: "Cormorant Garamond", serif;

  font-size: clamp(2.2rem, 5.5vw, 4rem);

  font-weight: 600;

  color: var(--navy);

  line-height: 0.95;
}

.quote-divider {
  width: 132px;

  height: 1px;

  margin: 34px auto;

  background: var(--gold);
}

.quote-inner blockquote {
  margin: 0 auto;

  max-width: 760px;

  font-family: "Cormorant Garamond", serif;

  font-size: clamp(1.1rem, 2.5vw, 1.8rem);

  font-weight: 500;

  line-height: 1.28;

  color: #1d2d4a;
}

.quote-source {
  margin-top: 28px;

  color: var(--gold);

  font-size: 0.75rem;

  font-weight: 500;

  letter-spacing: 4px;

  text-transform: uppercase;
}

.quote-flower {
  position: absolute;

  z-index: 1;

  width: min(35vw, 340px);

  opacity: 0.72;

  pointer-events: none;
}

.quote-flower-left {
  left: -70px;

  bottom: -80px;
}

.quote-flower-right {
  top: -80px;

  right: -72px;
}

/* ==========================
   ALBUM SECTIONS
========================== */

.album-section {
  position: relative;

  padding: 120px 6vw;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(200, 169, 107, 0.1),
      transparent 28%
    ),
    var(--paper);

  color: var(--navy);
}

.album-section:nth-of-type(even) {
  background:
    radial-gradient(circle at 92% 18%, rgba(15, 30, 58, 0.07), transparent 30%),
    #fbfaf7;
}

.section-number {
  position: absolute;

  top: 44px;
  left: 6vw;

  color: rgba(200, 169, 107, 0.36);

  font-family: "Cormorant Garamond", serif;

  font-size: clamp(3.6rem, 9vw, 8rem);

  line-height: 0.8;

  pointer-events: none;
}

.section-heading {
  width: min(920px, 100%);

  margin: 0 auto 52px;

  text-align: center;
}

.section-heading p {
  margin-bottom: 12px;

  color: var(--gold);

  font-size: 0.78rem;

  font-weight: 500;

  letter-spacing: 5px;

  text-transform: uppercase;
}

.section-heading h2 {
  font-family: "Cormorant Garamond", serif;

  font-size: clamp(2.8rem, 7vw, 5.8rem);

  font-weight: 600;

  line-height: 0.98;
}

.section-heading::after {
  content: "";

  display: block;

  width: 76px;
  height: 1px;

  margin: 26px auto 0;

  background: var(--gold);
}

.wedding-day-layout {
  width: min(1040px, 100%);

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;

  margin: 0 auto;
}

.wedding-day-layout img {
  width: 100%;

  aspect-ratio: 4 / 5;

  object-fit: cover;

  box-shadow: 0 28px 70px rgba(15, 30, 58, 0.14);
}

.wedding-day-copy {
  padding: 28px 0;

  border-top: 1px solid rgba(200, 169, 107, 0.55);

  border-bottom: 1px solid rgba(200, 169, 107, 0.55);
}

.wedding-day-copy span {
  display: block;

  margin-bottom: 24px;

  font-family: "Cormorant Garamond", serif;

  font-size: clamp(2.6rem, 6vw, 5rem);

  line-height: 0.95;
}

.wedding-day-copy p {
  max-width: 480px;

  color: rgba(15, 30, 58, 0.74);

  font-size: 1rem;

  line-height: 1.9;
}

.gallery-grid {
  width: min(1120px, 100%);

  display: grid;
  gap: 10px;
  grid-auto-rows: minmax(200px, auto);
  grid-auto-flow: dense;

  margin: 0 auto;
}

.gallery-grid img,
.reception-layout img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  filter: saturate(0.92) contrast(1.02);

  transition:
    transform 0.7s ease,
    filter 0.7s ease,
    box-shadow 0.7s ease;
}

.gallery-grid img:hover,
.reception-layout img:hover {
  transform: translateY(-8px) scale(1.015);

  filter: saturate(1.04) contrast(1.04);

  box-shadow: 0 28px 64px rgba(15, 30, 58, 0.18);
}

.hero-cover,
.hero-cover img,
.wedding-day-layout img,
.gallery-grid img,
.reception-layout img {
  cursor: zoom-in;
}

.moments-grid {
  grid-template-columns: 1.35fr 0.95fr;
  grid-template-rows: repeat(2, minmax(260px, 1fr));
}

.moments-grid img:first-child {
  grid-row: span 2;
  aspect-ratio: 2 / 3;
}

.moments-grid img:not(:first-child) {
  aspect-ratio: 16 / 9;
  height: 100%;
}

.three-photo-grid {
  grid-template-columns: 1.45fr 0.95fr;
  grid-template-rows: repeat(2, minmax(240px, 1fr));
}

.three-photo-grid img:first-child {
  grid-row: span 2;
  aspect-ratio: 2 / 3;
}

.three-photo-grid img:not(:first-child) {
  aspect-ratio: 16 / 9;
  height: 100%;
}

.family-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, 1fr);
}

.family-grid img {
  aspect-ratio: 3 / 4;
  height: 100%;
}

.reception-layout {
  width: min(1120px, 100%);

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-auto-rows: minmax(320px, 1fr);
  gap: 18px;

  margin: 0 auto;
}

.reception-layout img {
  aspect-ratio: 16 / 9;
  height: 100%;
}

.film-section {
  background:
    linear-gradient(rgba(17, 27, 49, 0.92), rgba(17, 27, 49, 0.96)),
    url("images/moments/moment1.webp") center / cover;

  color: white;
}

.film-section .section-heading p {
  color: #e6ca84;
}

.film-section .section-heading h2 {
  color: #0b2248;
}

.film-section video,
.film-section iframe {
  width: min(1080px, 100%);

  display: block;

  aspect-ratio: 16 / 9;

  margin: 0 auto;

  background: #050811;

  border: 1px solid rgba(200, 169, 107, 0.38);

  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.28),
    0 0 0 12px rgba(255, 255, 255, 0.04);
}

.wedding-video-embed {
  width: min(1080px, 100%);

  display: block;

  aspect-ratio: 16 / 9;

  margin: 48px auto 0;

  background: #050811;

  border: 1px solid rgba(200, 169, 107, 0.38);

  box-shadow:
    0 24px 55px rgba(15, 30, 58, 0.14),
    0 0 0 10px rgba(200, 169, 107, 0.06);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.wedding-video-embed:hover {
  transform: translateY(-4px);

  box-shadow:
    0 28px 65px rgba(15, 30, 58, 0.18),
    0 0 0 12px rgba(200, 169, 107, 0.08);
}

.reception-layout {
  width: min(1120px, 100%);

  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;

  margin: 0 auto;
}

.reception-layout img {
  height: 640px;
}

.thank-you-section,
.share-section,
.site-footer {
  text-align: center;
}

/* Polished Thank You section */
.thank-you-section {
  position: relative;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f9f6f0;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 48px 20px;
}

.thank-you-section::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 8px;
  border: 1px solid rgba(200, 169, 107, 0.2);
  pointer-events: none;
  z-index: 2;
}

.thank-you-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/cover/cover.webp") center/cover no-repeat;
  opacity: 100;
  pointer-events: none;
  z-index: 0;
}

.thank-you-section > * {
  position: relative;
  z-index: 3;
}

.thank-you-section img {
  width: 86px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.2));
}

.thank-you-section p,
.thank-you-section h2,
.thank-you-section span {
  color: #ffffff;
}

.thank-you-section p {
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.thank-you-section h2 {
  width: min(760px, 100%);
  margin: 6px auto 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  font-weight: 600;
  line-height: 1.02;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.thank-divider {
  width: 90px;
  height: 2px;
  background: rgba(255, 255, 255, 0.55);
  margin: 12px auto;
  border-radius: 2px;
  opacity: 0.9;
}

.thank-you-section span {
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 12px;
  font-size: 0.78rem;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .thank-you-section {
    padding: 36px 16px;
    min-height: 60vh;
    background-position: center;
  }

  .thank-you-section img {
    width: 64px;
    margin-bottom: 12px;
  }

  .thank-you-section h2 {
    font-size: clamp(1.6rem, 6.5vw, 2.6rem);
    margin: 8px 0 12px;
  }

  .thank-divider {
    width: 64px;
    height: 2px;
    margin: 10px auto;
  }

  .thank-you-section p,
  .thank-you-section span {
    font-size: 0.78rem;
  }
}

.share-section {
  padding: 108px 24px;

  background:
    linear-gradient(rgba(247, 244, 238, 0.94), rgba(247, 244, 238, 0.98)),
    url("images/ornaments/flower-left.png") left bottom / 310px auto no-repeat;
}

#shareAlbumButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 210px;

  padding: 16px 34px;

  border: 1px solid var(--gold);

  border-radius: 50px;

  background: var(--navy);

  color: white;

  cursor: pointer;

  font-family: "Montserrat", sans-serif;

  font-size: 0.78rem;

  letter-spacing: 3px;

  text-transform: uppercase;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

#shareAlbumButton:hover {
  transform: translateY(-3px);

  background: var(--gold);

  color: var(--navy);

  box-shadow: 0 18px 42px rgba(15, 30, 58, 0.18);
}

/* Compact, elegant footer */
.site-footer {
  padding: 20px 20px 14px;
  background: var(--navy);
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 780px;
  margin: 0 auto 10px;
}

.footer-inner img {
  width: 56px;
  height: auto;
}

.footer-copy {
  text-align: center;
}

.footer-name {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  letter-spacing: 0.4px;
  line-height: 1.18;
}

.footer-tagline,
.footer-note {
  margin: 4px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-note {
  color: rgba(255, 255, 255, 0.56);
  opacity: 0.95;
}

@media (max-width: 768px) {
  .footer-inner {
    gap: 6px;
    padding: 0 12px;
    flex-direction: column;
    align-items: center;
  }

  .footer-copy {
    text-align: center;
  }

  .footer-inner img {
    width: 38px;
  }

  .footer-name {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .footer-tagline,
  .footer-note {
    font-size: 0.58rem;
    white-space: normal;
    word-break: break-word;
  }

  .footer-tagline {
    max-width: 100%;
  }

  .footer-note {
    max-width: 100%;
    margin-top: 6px;
  }
}

.reveal {
  opacity: 0;

  transform: translateY(34px);

  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.reveal.is-visible {
  opacity: 1;

  transform: translateY(0);
}

.hero-cover-content.reveal {
  transform: translate(-50%, 34px);
}

.hero-cover-content.reveal.is-visible {
  transform: translate(-50%, 0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;

    transform: none;
  }
}

.site-footer img {
  width: 34px;
  margin-bottom: 12px;
}

.site-footer p {
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
}

.site-footer p.footer-name {
  font-size: 0.95rem;
}

.site-footer p.footer-tagline,
.site-footer p.footer-note {
  font-size: 0.76rem;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .site-footer img {
    width: 28px;
    margin-bottom: 10px;
  }

  .site-footer p.footer-name {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .site-footer p.footer-tagline,
  .site-footer p.footer-note {
    font-size: 0.52rem;
    line-height: 1.3;
  }

  .site-footer span {
    font-size: 0.6rem;
  }
}

/* ==========================
   PHOTO LIGHTBOX
========================== */

.photo-lightbox {
  position: fixed;

  inset: 0;

  z-index: 1000001;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 34px;

  background: rgba(5, 8, 17, 0.92);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  backdrop-filter: blur(14px);

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.photo-lightbox.is-open {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;
}

.photo-lightbox figure {
  width: min(1120px, 100%);

  margin: 0;

  text-align: center;

  transform: translateY(18px) scale(0.98);

  transition: transform 0.35s ease;
}

.photo-lightbox.is-open figure {
  transform: translateY(0) scale(1);
}

.photo-lightbox img {
  max-width: 100%;

  max-height: 82vh;

  display: block;

  margin: 0 auto;

  object-fit: contain;

  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(200, 169, 107, 0.26);
}

.photo-lightbox figcaption {
  min-height: 20px;

  margin-top: 18px;

  color: rgba(255, 255, 255, 0.78);

  font-size: 0.78rem;

  letter-spacing: 3px;

  text-transform: uppercase;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(200, 169, 107, 0.58);

  border-radius: 50%;

  background: rgba(15, 30, 58, 0.58);

  color: white;

  cursor: pointer;

  font-family: "Montserrat", sans-serif;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.lightbox-download {
  position: absolute;

  top: 24px;
  right: 80px;

  width: 46px;
  height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(200, 169, 107, 0.58);

  border-radius: 50%;

  background: rgba(15, 30, 58, 0.58);

  color: white;

  text-decoration: none;

  font-family: "Montserrat", sans-serif;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.lightbox-download:hover {
  background: var(--gold);

  color: var(--navy);

  transform: scale(1.06);

  text-decoration: none;
}

.lightbox-close {
  top: 24px;
  right: 24px;

  width: 46px;
  height: 46px;

  font-size: 0.86rem;
}

.lightbox-nav {
  top: 50%;

  width: 54px;
  height: 54px;

  transform: translateY(-50%);

  font-size: 1.5rem;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--gold);

  color: var(--navy);
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-close:hover {
  transform: scale(1.06);
}

@media (max-width: 768px) {
  .opening-logo {
    width: 110px;
  }

  .opening-content {
    top: 22%;
  }

  .opening-content h1 {
    font-size: 3rem;
  }

  #enterWebsite {
    min-width: 190px;

    padding: 15px 28px;

    font-size: 0.76rem;

    letter-spacing: 2px;
  }

  .hero-cover-content {
    bottom: 9%;
  }

  .hero-cover-content p,
  .hero-cover-content span {
    letter-spacing: 3px;
  }

  .quote-section {
    padding: 90px 24px;
  }

  .quote-section::before {
    inset: 12px;
  }

  .quote-logo {
    width: 72px;

    margin-bottom: 22px;
  }

  .quote-label,
  .quote-source {
    letter-spacing: 3px;
  }

  .quote-divider {
    margin: 26px auto;
  }

  .quote-flower {
    width: 180px;

    opacity: 0.5;
  }

  .quote-flower-left {
    left: -36px;

    bottom: -36px;

    transform: rotate(-8deg);
  }

  .quote-flower-right {
    right: -36px;

    top: -36px;

    transform: rotate(8deg);
  }

  .album-section {
    padding: 60px 18px;
  }

  .section-number {
    top: 24px;
    left: 18px;

    font-size: 3.4rem;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading p {
    letter-spacing: 3px;
  }

  .wedding-day-layout,
  .moments-grid,
  .three-photo-grid,
  .family-grid,
  .reception-layout {
    grid-template-columns: 1fr;
  }

  .wedding-day-layout {
    gap: 20px;
  }

  .gallery-grid,
  .reception-layout {
    gap: 10px;
  }

  .family-grid {
    grid-auto-rows: minmax(180px, 1fr);
  }

  .three-photo-grid,
  .moments-grid {
    grid-template-rows: repeat(2, minmax(180px, 1fr));
  }

  .wedding-day-layout img,
  .moments-grid img:first-child,
  .moments-grid img:not(:first-child),
  .three-photo-grid img,
  .family-grid img,
  .reception-layout img {
    height: auto;

    aspect-ratio: 4 / 5;
    max-height: 300px;
  }

  .thank-you-section {
    min-height: 70vh;
  }

  .music-toggle {
    right: 16px;
    bottom: 16px;

    width: 44px;
    height: 44px;
  }

  .photo-lightbox {
    padding: 18px;
  }

  .photo-lightbox img {
    max-height: 76vh;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;

    width: 42px;
    height: 42px;
  }

  .lightbox-download {
    top: 16px;
    right: 64px;

    width: 42px;
    height: 42px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;

    width: 46px;
    height: 46px;

    transform: none;
  }

  .lightbox-prev {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }

  .lightbox-nav:hover {
    transform: scale(1.04);
  }
}

/* Mobile override: show galleries as a single row with 3 photos */
@media (max-width: 480px) {
  .gallery-grid,
  .three-photo-grid,
  .family-grid,
  .moments-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-auto-rows: minmax(0, auto) !important;
    gap: 6px !important;
    width: 100%;
    margin: 0 auto;
  }

  .moments-grid img:first-child,
  .three-photo-grid img:first-child {
    grid-row: auto !important;
  }

  .gallery-grid img,
  .three-photo-grid img,
  .family-grid img,
  .moments-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
  }

  .gallery-grid {
    padding: 0 8px;
  }
}
