@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Cormorant+Garamond:wght@300;400;500;600&display=swap');

:root {
  --serif-font: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script-font: "Great Vibes", cursive;

  --ivory: #fbfaf5;
  --paper: #f7f3ea;
  --brown: #4b2f12;
  --brown-soft: #6d4a25;
  --gold: #8a5b1e;
  --gold-soft: rgba(138, 91, 30, 0.38);
  --line: rgba(75, 47, 18, 0.45);
  --white: #ffffff;
}

/* =========================
   Global
========================= */

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

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--ivory);
}

body {
  font-family: var(--serif-font);
  color: var(--brown);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

section {
  margin: 0;
  padding: 0;
}

img,
video {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.hidden {
  display: none !important;
}

body.lock-scroll {
  overflow: hidden;
  height: 100svh;
}

body.ready-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

/* =========================
   Video Sections
========================= */

.screen {
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background: var(--ivory);
}

.full-media {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--ivory);
}

.cover-media {
  object-fit: cover;
  object-position: center center;
}

#firstVideo,
#mainVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

#mainVideoScreen {
  transform: translateY(100%);
  opacity: 0;
  overflow: hidden;
}

#mainVideoScreen.slide-up {
  animation: slideUpFade 0.75s ease-out forwards;
}

/* =========================
   Click + Scroll Text
========================= */

.click-text,
.scroll-text {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 5;

  color: var(--white);
  font-family: var(--serif-font);
  font-weight: 300;
  letter-spacing: 3px;
  line-height: 1.8;
  text-transform: uppercase;

  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  animation: softPulse 2.2s ease-in-out infinite;
}

.click-text {
  bottom: calc(72px + env(safe-area-inset-bottom));
  font-size: clamp(13px, 3.5vw, 16px);
}

.scroll-text {
  bottom: calc(24px + env(safe-area-inset-bottom));
  font-size: clamp(11px, 3.2vw, 14px);
}

.click-text p,
.scroll-text p,
.scroll-text span {
  color: var(--white);
}

.scroll-text span {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  line-height: 1;
}

.click-text.fade-out {
  animation: textFadeOut 0.55s ease forwards;
}

#introScreen.fade-out-intro {
  animation: introFadeOut 1.4s ease forwards;
}

/* =========================
   Section Animation
========================= */

.section-animate {
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
}

.section-animate .luxury-rsvp-card,
.section-animate .countdown-box,
.section-animate .location-link {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.section-visible .luxury-rsvp-card,
.section-visible .countdown-box,
.section-visible .location-link {
  opacity: 1;
  transform: translateY(0);
}

.section-visible .countdown-box:nth-child(1),
.section-visible .ceremony-link {
  transition-delay: 0.08s;
}

.section-visible .countdown-box:nth-child(2),
.section-visible .reception-link {
  transition-delay: 0.16s;
}

.section-visible .countdown-box:nth-child(3) {
  transition-delay: 0.24s;
}

.section-visible .countdown-box:nth-child(4) {
  transition-delay: 0.32s;
}

/* =========================
   Full Image Card Section
========================= */

.image-full-section {
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  overflow: hidden;
  background: var(--ivory);
}

.image-full-section img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
  background: var(--ivory);
}

/* =========================
   Countdown Section
========================= */

.countdown-section {
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background: var(--ivory);
}

.countdown-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}

.countdown-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.countdown-box {
  position: absolute;
  width: 26%;
  text-align: center;
  color: var(--brown);
}

.countdown-box span {
  display: block;
  font-family: var(--serif-font);
  color: var(--brown);
  font-size: clamp(38px, 9vw, 58px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 3px;
}

.countdown-box small {
  display: block;
  margin-top: 12px;
  font-family: var(--serif-font);
  color: var(--brown-soft);
  font-size: clamp(13px, 3.3vw, 17px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 6px;
  text-transform: lowercase;
}

/* Positions based on your countdown design */
.countdown-days {
  left: 9%;
  top: 32%;
}

.countdown-hours {
  right: 9%;
  top: 32%;
}

.countdown-minutes {
  left: 9%;
  top: 72%;
}

.countdown-seconds {
  right: 9%;
  top: 72%;
}

/* =========================
   Locations Image Section
========================= */

.locations-image-section {
  width: 100%;
  height: auto;
  min-height: 0;
  position: relative;
  display: block;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  background: var(--ivory);
}

.locations-bg {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
  background: var(--ivory);
}

.location-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;

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

  min-width: 205px;
  height: 34px;
  padding: 0 18px;

  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);

  color: var(--brown);
  text-decoration: none;

  font-family: var(--serif-font);
  font-size: clamp(10px, 2.8vw, 13px);
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;

  box-shadow: 0 10px 24px rgba(75, 47, 18, 0.10);
  backdrop-filter: blur(4px);
}

.location-link:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--gold);
}

/* Button positions under each location block */
.ceremony-link {
  top: 49.7%;
}

.reception-link {
  top: 91.2%;
}

/* =========================
   RSVP Section
========================= */

.rsvp-section {
  width: 100%;
  min-height: 100svh;
  background:
    radial-gradient(circle at top, rgba(255, 252, 244, 0.96), rgba(247, 243, 234, 0.98)),
    linear-gradient(180deg, #fbfaf5 0%, #f3eadf 100%);
  padding: calc(68px + env(safe-area-inset-top)) 22px calc(64px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
}

.rsvp-content {
  width: 100%;
  max-width: 460px;
  text-align: center;
}

.luxury-rsvp-card {
  position: relative;
  width: 100%;
  padding: 48px 26px 44px;
  text-align: center;

  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(75, 47, 18, 0.28);
  border-radius: 30px;

  box-shadow:
    0 24px 65px rgba(75, 47, 18, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);

  backdrop-filter: blur(8px);
}

.luxury-rsvp-card::before,
.luxury-rsvp-card::after {
  content: "";
  position: absolute;
  width: 82px;
  height: 82px;
  border-color: rgba(75, 47, 18, 0.45);
  border-style: solid;
  pointer-events: none;
}

.luxury-rsvp-card::before {
  top: 18px;
  right: 18px;
  border-width: 1px 1px 0 0;
  border-radius: 0 18px 0 0;
}

.luxury-rsvp-card::after {
  bottom: 18px;
  left: 18px;
  border-width: 0 0 1px 1px;
  border-radius: 0 0 0 18px;
}

.luxury-rsvp-card h2 {
  margin: 0;
  color: var(--brown);
  font-family: var(--serif-font);
  font-size: clamp(36px, 10vw, 54px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 7px;
  text-transform: uppercase;
}

.rsvp-subtitle {
  max-width: 320px;
  margin: 18px auto 30px;
  color: var(--brown-soft);
  font-family: var(--serif-font);
  font-size: clamp(14px, 3.7vw, 17px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.5px;
}

.rsvp-choice {
  display: flex;
  flex-direction: column;
  gap: 13px;
  justify-content: center;
  align-items: center;
}

.rsvp-choice-btn {
  width: 100%;
  min-height: 48px;
  padding: 13px 22px;

  border: 1px solid var(--brown);
  border-radius: 999px;

  background: transparent;
  color: var(--brown);

  font-family: var(--serif-font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.2px;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.rsvp-choice-btn.active,
.rsvp-choice-btn:hover {
  background: var(--brown);
  color: var(--white);
  border-color: var(--brown);
  transform: translateY(-2px);
}

.rsvp-choice-btn.secondary {
  background: rgba(255, 255, 255, 0.55);
  color: var(--brown);
}

.rsvp-choice-btn.secondary.active,
.rsvp-choice-btn.secondary:hover {
  background: var(--brown);
  color: var(--white);
}

.luxury-rsvp-form {
  width: 100%;
  margin-top: 30px;
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.45s ease,
    max-height 0.55s ease,
    transform 0.45s ease;
}

.luxury-rsvp-form.hidden {
  display: none;
}

.luxury-rsvp-form.show-form {
  display: block;
  opacity: 1;
  max-height: 900px;
  transform: translateY(0);
}

.form-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 22px;
}

.form-divider span {
  width: 150px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(75, 47, 18, 0.65),
    transparent
  );
}

.rsvp-form-title {
  margin: 0 0 18px;
  color: var(--brown-soft);
  font-family: var(--serif-font);
  font-size: 14px;
  line-height: 1.7;
}

.form-group {
  width: 100%;
  margin-bottom: 14px;
}

.luxury-rsvp-form input,
.luxury-rsvp-form textarea,
.luxury-rsvp-form select {
  width: 100%;
  padding: 14px 17px;

  border: 1px solid rgba(75, 47, 18, 0.42);
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.74);
  color: var(--brown);

  font-family: var(--serif-font);
  font-size: 15px;
  text-align: left;
  direction: ltr;

  outline: none;

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

.luxury-rsvp-form input::placeholder,
.luxury-rsvp-form textarea::placeholder {
  color: rgba(75, 47, 18, 0.48);
}

.luxury-rsvp-form input:focus,
.luxury-rsvp-form textarea:focus,
.luxury-rsvp-form select:focus {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--brown);
  box-shadow: 0 0 0 4px rgba(75, 47, 18, 0.08);
}

.luxury-rsvp-form textarea {
  min-height: 95px;
  resize: vertical;
}

.luxury-rsvp-form select,
#guestsCount {
  height: 50px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255, 255, 255, 0.74);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brown) 50%),
    linear-gradient(135deg, var(--brown) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 13px) 50%;
  background-size:
    7px 7px,
    7px 7px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.submit-rsvp {
  width: 100%;
  margin-top: 6px;
  padding: 15px 24px;

  border: 1px solid var(--brown);
  border-radius: 999px;

  background: var(--brown);
  color: var(--white);

  font-family: var(--serif-font);
  font-size: 16px;
  letter-spacing: 1.2px;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.submit-rsvp:hover {
  transform: translateY(-2px);
  background: var(--gold);
  border-color: var(--gold);
}

.submit-rsvp:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.rsvp-status {
  margin-top: 16px;
  color: var(--brown);
  font-family: var(--serif-font);
  font-size: 14px;
  line-height: 1.7;
}

.rsvp-status.error {
  color: #9b4d4d;
}

.rsvp-status.success {
  color: var(--brown);
}

.rsvp-submitted-message {
  margin-top: 22px;
  padding: 18px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--brown);
  font-family: var(--serif-font);
  line-height: 1.7;
}

.submitted-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 1px solid rgba(75, 47, 18, 0.42);
  color: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 18px;
}

/* =========================
   Mobile
========================= */

@media (max-width: 430px) {
  .countdown-days {
    left: 7%;
    top: 32%;
  }

  .countdown-hours {
    right: 7%;
    top: 32%;
  }

  .countdown-minutes {
    left: 7%;
    top: 72%;
  }

  .countdown-seconds {
    right: 7%;
    top: 72%;
  }

  .countdown-box span {
    font-size: clamp(34px, 11vw, 52px);
  }

  .countdown-box small {
    font-size: clamp(12px, 3.8vw, 15px);
    letter-spacing: 5px;
  }

  .location-link {
    min-width: 178px;
    height: 31px;
    padding: 0 14px;
    font-size: 10px;
    letter-spacing: 1.6px;
  }

  .ceremony-link {
    top: 50%;
  }

  .reception-link {
    top: 91%;
  }

  .luxury-rsvp-card {
    padding: 42px 20px 38px;
    border-radius: 26px;
  }
}

/* =========================
   Mobile Only Website
========================= */

@media (min-width: 1024px) {
  body > * {
    display: none !important;
  }

  body::before {
    content: "Please open this invitation on a mobile phone.";
    display: flex;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 20px;
    color: var(--brown);
    background: var(--ivory);
  }
}

/* =========================
   Reduce Motion
========================= */

@media (prefers-reduced-motion: reduce) {
  .section-animate,
  .section-animate .luxury-rsvp-card,
  .section-animate .countdown-box,
  .section-animate .location-link,
  .image-full-section.section-animate img {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* =========================
   Animations
========================= */

@keyframes slideUpFade {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

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

@keyframes textFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes introFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes softPulse {
  0% {
    opacity: 0.48;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-6px);
  }

  100% {
    opacity: 0.48;
    transform: translateY(0);
  }
}

/* =========================
   FINAL Countdown Layout Like Reference
========================= */

.countdown-section {
  width: 100vw !important;
  height: 100svh !important;
  min-height: 100svh !important;
  position: relative !important;
  overflow: hidden !important;
  background: #fbfaf5 !important;
}

.countdown-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  z-index: 1 !important;
}

.countdown-content {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  pointer-events: none !important;
}

.countdown-heading {
  position: absolute !important;
  top: 5.5% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  text-align: center !important;
}

.countdown-heading h2 {
  margin: 0 !important;
  font-family: "Great Vibes", cursive !important;
  color: #5d5047 !important;
  font-size: clamp(52px, 15vw, 82px) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.countdown-heading p {
  margin: 14px 0 0 !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  color: rgba(93, 80, 71, 0.72) !important;
  font-size: clamp(15px, 4vw, 22px) !important;
  font-weight: 300 !important;
  letter-spacing: 7px !important;
  line-height: 1 !important;
}

.countdown-logo-center {
  position: absolute !important;
  top: 37.5% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 30% !important;
  max-width: 185px !important;
  min-width: 130px !important;
  z-index: 4 !important;
}

.countdown-logo-center img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  opacity: 0.9 !important;
}

.countdown-box {
  position: absolute !important;
  width: 26% !important;
  text-align: center !important;
  color: #4b2f12 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  pointer-events: none !important;
}

.countdown-box span {
  display: block !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  color: #4b2f12 !important;
  font-size: clamp(38px, 10vw, 60px) !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  letter-spacing: 3px !important;
}

.countdown-box small {
  display: block !important;
  margin-top: 12px !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  color: #4b2f12 !important;
  font-size: clamp(12px, 3.2vw, 17px) !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  letter-spacing: 6px !important;
  text-transform: lowercase !important;
}

/* Exact positions like the reference */
.countdown-days {
  left: 8% !important;
  top: 31.5% !important;
}

.countdown-hours {
  right: 8% !important;
  top: 31.5% !important;
}

.countdown-minutes {
  left: 8% !important;
  top: 69.5% !important;
}

.countdown-seconds {
  right: 8% !important;
  top: 69.5% !important;
}

/* =========================
   Location Links as Text, Not Buttons
========================= */

.locations-image-section {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  line-height: 0 !important;
  font-size: 0 !important;
  background: #fbfaf5 !important;
}

.locations-bg {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Elegant clickable text */
.location-link {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 5 !important;

  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 0 5px !important;

  display: inline-block !important;

  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;

  color: #6d4a25 !important;
  text-decoration: none !important;

  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(11px, 2.8vw, 14px) !important;
  font-weight: 500 !important;
  letter-spacing: 3px !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;

  pointer-events: auto !important;
}

.location-link::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;

  width: 70% !important;
  height: 1px !important;

  background: rgba(109, 74, 37, 0.55) !important;
}

.location-link:hover {
  color: #4b2f12 !important;
}

.location-link:hover::after {
  width: 100% !important;
  background: rgba(75, 47, 18, 0.85) !important;
}

/* Put each link under its own location text without covering it */
.ceremony-link {
  top: 49.5% !important;
}

.reception-link {
  top: 89.8% !important;
}

/* Mobile fine tune */
@media (max-width: 430px) {
  .countdown-heading {
    top: 5% !important;
  }

  .countdown-heading h2 {
    font-size: clamp(50px, 16vw, 72px) !important;
  }

  .countdown-heading p {
    font-size: clamp(13px, 3.8vw, 18px) !important;
    letter-spacing: 5px !important;
  }

  .countdown-logo-center {
    top: 38% !important;
    width: 32% !important;
  }

  .countdown-days {
    left: 7% !important;
    top: 31.5% !important;
  }

  .countdown-hours {
    right: 7% !important;
    top: 31.5% !important;
  }

  .countdown-minutes {
    left: 7% !important;
    top: 69.5% !important;
  }

  .countdown-seconds {
    right: 7% !important;
    top: 69.5% !important;
  }

  .location-link {
    font-size: 11px !important;
    letter-spacing: 2.2px !important;
  }

  .ceremony-link {
    top: 49.8% !important;
  }

  .reception-link {
    top: 89.6% !important;
  }
}

.countdown-section {
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background: #fbfaf5;
}

.countdown-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}

.countdown-content {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.countdown-heading {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
}

.countdown-heading h2 {
  margin: 0;
  font-family: "Great Vibes", cursive;
  color: #5d5047;
  font-size: clamp(52px, 15vw, 82px);
  font-weight: 400;
  line-height: 1;
}

.countdown-heading p {
  margin: 14px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: rgba(93, 80, 71, 0.72);
  font-size: clamp(15px, 4vw, 22px);
  font-weight: 300;
  letter-spacing: 7px;
  line-height: 1;
}

.countdown-logo-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28%;
  max-width: 190px;
  min-width: 130px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-logo-center img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.countdown-box {
  position: absolute;
  width: 26%;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.countdown-box span {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #4b2f12;
  font-size: clamp(38px, 10vw, 60px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 3px;
}

.countdown-box small {
  display: block;
  margin-top: 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #4b2f12;
  font-size: clamp(12px, 3.2vw, 17px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 6px;
  text-transform: lowercase;
}

/* boxes around centered logo */
.countdown-days {
  left: 8%;
  top: 34%;
}

.countdown-hours {
  right: 8%;
  top: 34%;
}

.countdown-minutes {
  left: 8%;
  top: 74%;
}

.countdown-seconds {
  right: 8%;
  top: 74%;
}

/* =========================
   FINAL FIX: Countdown Logo Center + Location Text Links
========================= */

/* Make countdown logo exactly in the center of the section */
.countdown-logo-center {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  width: 30% !important;
  max-width: 190px !important;
  min-width: 130px !important;

  z-index: 10 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.countdown-logo-center img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}

/* Adjust countdown numbers around the centered logo */
.countdown-days {
  left: 8% !important;
  top: 35% !important;
}

.countdown-hours {
  right: 8% !important;
  top: 35% !important;
}

.countdown-minutes {
  left: 8% !important;
  top: 73% !important;
}

.countdown-seconds {
  right: 8% !important;
  top: 73% !important;
}

/* Force the logo center also on mobile */
@media (max-width: 430px) {
  .countdown-logo-center {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;

    width: 31% !important;
    max-width: 170px !important;
    min-width: 125px !important;
  }

  .countdown-days {
    left: 7% !important;
    top: 35% !important;
  }

  .countdown-hours {
    right: 7% !important;
    top: 35% !important;
  }

  .countdown-minutes {
    left: 7% !important;
    top: 73% !important;
  }

  .countdown-seconds {
    right: 7% !important;
    top: 73% !important;
  }
}

/* =========================
   Location Links: Centered Text, Not Button
========================= */

.location-link,
.section-animate .location-link,
.section-visible .location-link {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;

  z-index: 20 !important;

  width: auto !important;
  min-width: 0 !important;
  height: auto !important;

  display: inline-block !important;

  padding: 0 0 5px !important;
  margin: 0 !important;

  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;

  color: #6d4a25 !important;
  text-decoration: none !important;

  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(11px, 2.8vw, 14px) !important;
  font-weight: 500 !important;
  letter-spacing: 3px !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;

  opacity: 1 !important;
  pointer-events: auto !important;
}

/* underline to show it is clickable */
.location-link::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;

  width: 72% !important;
  height: 1px !important;

  background: rgba(109, 74, 37, 0.55) !important;
}

.location-link:hover {
  color: #4b2f12 !important;
}

.location-link:hover::after {
  width: 100% !important;
}

/* First link: lower so it does not overlap the address */
.ceremony-link {
  top: 51.8% !important;
}

/* Second link: a little lower */
.reception-link {
  top: 92.3% !important;
}

/* Mobile fine tuning */
@media (max-width: 430px) {
  .location-link,
  .section-animate .location-link,
  .section-visible .location-link {
    font-size: 11px !important;
    letter-spacing: 2.2px !important;
    transform: translateX(-50%) !important;
  }

  .ceremony-link {
    top: 52.2% !important;
  }

  .reception-link {
    top: 92.5% !important;
  }
}

/* =========================
   Move Minutes + Seconds Closer To Logo
========================= */

.countdown-minutes {
  top: 66% !important;
}

.countdown-seconds {
  top: 66% !important;
}

@media (max-width: 430px) {
  .countdown-minutes {
    top: 66% !important;
  }

  .countdown-seconds {
    top: 66% !important;
  }
}

.countdown-minutes {
  top: 64% !important;
}

.countdown-seconds {
  top: 64% !important;
}

@media (max-width: 430px) {
  .countdown-minutes {
    top: 64% !important;
  }

  .countdown-seconds {
    top: 64% !important;
  }
}