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

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
    sans-serif;
  background: #050507;
  color: #f5f5f5;
}

/* ---------- Layout Shell ---------- */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 1.1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.15),
    transparent
  );
  backdrop-filter: blur(12px);
}

.logo {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #fdfdfd;
}

nav a {
  color: #fdfdfd;
  text-decoration: none;
  margin-left: 1.8rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.85;
}

nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

main {
  flex: 1;
}

/* ---------- Hero / Slideshow ---------- */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  filter: grayscale(100%) contrast(1.1);
}

.hero-slideshow img.active {
  opacity: 1;
}

/* ---------- Centered Countdown Overlay ---------- */

.hero-overlay {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 2rem;
}

.hero-inner {
  text-align: center;
  max-width: 640px;
  width: 100%;
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(
      circle at top,
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.9)
    ),
    rgba(0, 0, 0, 0.45);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.8);
}

.hero-title-small {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.6rem;
}

.hero-names {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.hero-date-location {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 1.9rem;
}

/* Tagline that changes pre/post wedding */

.hero-tagline {
  font-size: 0.9rem;
  opacity: 0.85;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.hero-tagline-secondary {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 1.9rem;
}

/* Countdown layout */

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.countdown-box {
  min-width: 86px;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.countdown-value {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ---------- Photos Page ---------- */

.photos-main {
  padding-top: 6rem;
  padding-bottom: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
  padding-inline: 1.8rem;
}

.section-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.95rem;
  opacity: 0.75;
  max-width: 520px;
  margin-bottom: 2rem;
}

/* Password card */

.password-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.6rem 1.9rem 1.9rem;
  border-radius: 1.2rem;
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.04),
      transparent
    ),
    rgba(9, 9, 15, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.9);
}

.password-card label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.password-card input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #040408;
  color: #fdfdfd;
  font-size: 0.95rem;
}

.password-card input:focus {
  outline: none;
  border-color: #ffffff;
}

.password-card button {
  margin-top: 0.85rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.8rem;
  border: none;
  background: #ffffff;
  color: #000000;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  cursor: pointer;
}

.password-card button:hover {
  opacity: 0.92;
}

.password-hint {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.75;
}

.password-error {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #ff948f;
}

/* Photos gallery */

.gallery-section {
  margin-top: 2.3rem;
}

.gallery-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.gallery-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.85rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 16, 0.95);
  font-size: 0.9rem;
  color: #fdfdfd;
}

.gallery-actions a span {
  font-size: 1.25rem;
  margin-right: 0.45rem;
}

.gallery-embed-note {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 0.9rem;
}

.gallery-embed-frame {
  width: 100%;
  min-height: 380px;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ---------- Footer ---------- */

footer {
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.65;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  header {
    padding-inline: 1.4rem;
  }

  nav a {
    margin-left: 1rem;
    font-size: 0.72rem;
  }

  .hero-inner {
    padding-inline: 1.4rem;
  }

  .countdown-box {
    min-width: 72px;
  }
}

@media (max-width: 480px) {
  header {
    padding-inline: 1rem;
  }

  .logo {
    letter-spacing: 0.18em;
  }

  .hero-inner {
    padding-inline: 1.2rem;
    padding-block: 2.1rem;
  }

  .hero-names {
    font-size: 2rem;
  }

  .photos-main {
    padding-inline: 1.3rem;
  }
}

/* Photos gallery */

.gallery-section {
  margin-top: 2.3rem;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 1.6rem;
}

/* Graphical Google Photos-style button */

.google-photos-button {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  padding: 1rem 1.3rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.04),
      transparent
    ),
    rgba(10, 10, 16, 0.96);
  color: #fdfdfd;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
}

.google-photos-logo {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  background: #111119;
  flex-shrink: 0;
}

.gp-segment {
  position: absolute;
  width: 50%;
  height: 50%;
  opacity: 0.9;
}

/* Just a subtle color hint, nothing exact to any brand */
.gp-segment-1 {
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #f5c26b, #f5a623);
}
.gp-segment-2 {
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #f76c6c, #f24545);
}
.gp-segment-3 {
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, #60c2ff, #2f9cf0);
}
.gp-segment-4 {
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, #6edb8f, #32b46b);
}

.google-photos-text {
  text-align: left;
}

.google-photos-text-main {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.google-photos-text-sub {
  font-size: 0.8rem;
  opacity: 0.75;
}

.gallery-embed-note {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 0.9rem;
}

@media (max-width: 480px) {
  .google-photos-button {
    padding-inline: 1rem;
  }

  .google-photos-text-main {
    font-size: 0.9rem;
  }

  .google-photos-text-sub {
    font-size: 0.78rem;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  header {
    padding-inline: 1.4rem;
  }

  nav a {
    margin-left: 1rem;
    font-size: 0.72rem;
  }

  .hero-inner {
    padding-inline: 1.5rem;
    padding-block: 2rem;
    transform: scale(0.95);
  }

  .countdown-box {
    min-width: 72px;
    padding: 0.75rem 0.85rem;
  }

  .countdown-value {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  header {
    padding-inline: 1rem;
  }

  .logo {
    letter-spacing: 0.18em;
  }

  .hero-inner {
    padding-inline: 1.2rem;
    padding-block: 1.8rem;
    transform: scale(0.9);
  }

  .hero-names {
    font-size: 1.9rem;
  }

  .hero-date-location {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
  }

  .countdown-box {
    min-width: 68px;
    padding: 0.65rem 0.8rem;
  }

  .countdown-value {
    font-size: 1.6rem;
  }

  .photos-main {
    padding-inline: 1.3rem;
  }
}

.hero-photos .hero-inner {
  max-width: 720px;
}

.hero-photos .section-title {
  margin-bottom: 0.6rem;
}

.hero-photos .section-subtitle {
  margin-bottom: 1.8rem;
}

.hero-photos .gallery-section {
  margin-top: 2rem;
}

