html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
}

.main-nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header.main-nav nav {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

header.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  left: 0;
  right: 0;
}

.hero-image-section {
  width: 100vw;
  min-height: 480px;
  background-image: url("/images/LJHoldingHandsWithTempRing.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-left: 50%;
  transform: translateX(-50%);
  padding-bottom: 2rem;
}
.hero-image-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.hero-content h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.hero-overlay {
  background: rgba(0, 0, 0, 0.35);
  padding: 3rem 2rem;
  border-radius: 1rem;
  color: #fff;
  text-align: center;
}
.hero-overlay h2 {
  font-size: 2.5rem;
  margin: 0;
  letter-spacing: 1px;
}
.hero-card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}
.couple-card {
  width: 320px;
  text-align: center;
}
.couple-photo {
  width: 100%;
  border-radius: 8px;
}
.couple-names {
  margin-top: 1rem;
}
.action-buttons {
  display: flex;
  gap: 1.5rem;
}
.our-story-section {
  padding: 4rem 0 3rem 0;
  background: #f8f9fa;
  position: relative;
}
.our-story-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: #b5838d;
  letter-spacing: 1px;
}
.our-story-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.our-story-photos {
  flex-direction: row !important;
  overflow-x: auto;
  gap: 0.7rem;
  padding-bottom: 0.5rem;
  max-width: 100vw;
  width: 100vw;
  justify-content: flex-start;
  align-items: center;
  scrollbar-width: none; /* Firefox */
  z-index: 1;
}
.our-story-photos::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}
.our-story-photos .timeline-photo {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(186, 104, 200, 0.1);
  cursor: pointer;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.our-story-photos .timeline-photo:hover {
  box-shadow: 0 8px 32px rgba(186, 104, 200, 0.18);
  transform: scale(1.04);
}
.timeline {
  flex: 1 1 0;
  min-width: 0;
  max-width: 680px;
  margin-left: auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 60%;
  top: 200px;
  bottom: 0;
  width: 4px;
  background: #ffb4a2;
  transform: translateX(-50%);
  border-radius: 2px;
}
.timeline-flex {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.timeline-item {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  position: relative;
  width: 100%;
  z-index: 1;
}
.timeline-item.left {
  flex-direction: row;
}
.timeline-item.right {
  flex-direction: row-reverse;
}
.timeline-item.left .timeline-flex {
  flex-direction: row;
}
.timeline-item.right .timeline-flex {
  flex-direction: row-reverse;
}
.timeline-card {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 1.5rem 1.2rem;
  min-width: 320px;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.timeline-photo {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  z-index: 1;
}
.timeline-content h3 {
  margin: 0 0 0.5rem 0;
  color: #6d6875;
  font-size: 1.2rem;
}
.timeline-content p {
  margin: 0;
  color: #333;
  font-size: 1rem;
}
@media (max-width: 700px) {
  .timeline {
    padding: 0;
  }
  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    flex-direction: column !important;
    align-items: center;
  }
  .timeline-card {
    min-width: 0;
    width: 100%;
    max-width: 95vw;
    flex-direction: column;
    gap: 0.8rem;
  }
  .timeline::before {
    left: 20px;
    width: 2px;
    transform: none;
  }
  .timeline-flex {
    flex-direction: column !important;
    align-items: center;
    gap: 0.8rem;
  }
  .timeline-photo {
    width: 100px;
    height: 70px;
  }
  header.main-nav nav {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: unset;
  }
  .nav-brand {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 0 0.7rem 0;
    font-size: 1.5rem;
    z-index: 10;
    clear: both;
    position: static !important;
    left: unset !important;
    top: unset !important;
    transform: none !important;
    padding: 0.7rem 0 0.7rem 0;
    background: #fff;
    box-sizing: border-box;
  }
  header.main-nav ul {
    margin: 0 auto;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.5rem;
    position: static;
    width: 100%;
    box-sizing: border-box;
  }
}
.custom-link {
  text-decoration: none;
  color: #b0b0b0;
  transition: color 0.2s;
}
.custom-link:hover {
  color: #444;
}
.popout-image {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;
  cursor: pointer;
}
.popout-image:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

/* Modal styles for image popout */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s;
}
.image-modal.active {
  display: flex;
}
.image-modal-content {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  background: #fff;
  padding: 1rem;
  position: relative;
  animation: popin 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes popin {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.image-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #fff;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}
.image-modal-close:hover {
  background: #eee;
}

/* Countdown Section Styles */
.countdown-section {
  background: #fff0f3;
  padding: 2.5rem 0 1.5rem 0;
  text-align: center;
}
.countdown-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.countdown-title {
  color: #b5838d;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  display: inline-block;
  position: relative;
}
#countdown-title {
  display: inline-block;
  min-width: 9ch; /* Adjust based on the longest word */
  text-align: center;
  transition: min-width 0.2s;
}
.countdown-days {
  font-size: 2.8rem;
  color: #ffb4a2;
  font-weight: bold;
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.2rem 2.5rem;
  box-shadow: 0 2px 12px rgba(255, 180, 162, 0.12);
  display: inline-block;
  margin-top: 0.5rem;
}
#daysCountdown {
  font-size: 3.2rem;
  color: #6d6875;
  font-weight: 900;
  margin-right: 0.3rem;
}
.fade-in {
  animation: fadeInWord 0.4s forwards;
}
.fade-out {
  animation: fadeOutWord 0.4s forwards;
}
@keyframes fadeInWord {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOutWord {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.small-text {
  font-size: 1.2rem;
  color: #aaaaaa;
}

/* Wedding/Flower-Themed Photo Gallery Styles */
.gallery-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  background: linear-gradient(135deg, #fff0f3 60%, #ffe5ec 100%);
  border-radius: 2rem;
  box-shadow: 0 4px 32px rgba(255, 180, 162, 0.12);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  margin: 2rem auto 3rem auto;
  max-width: 600px;
  border: 6px double #b5838d;
  position: relative;
  overflow: hidden;
}
.gallery-card {
  width: 400px;
  height: 400px;
  min-width: 400px;
  min-height: 400px;
  max-width: 100%;
  max-height: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #fffafc;
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px rgba(186, 104, 200, 0.08);
  padding: 1.5rem 1rem;
  border: 3px solid #ffb4a2;
  overflow: hidden;
}
.gallery-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px rgba(255, 180, 162, 0.18);
  border: 4px solid #ffe5ec;
  background: #fff0f3;
  transition: box-shadow 0.2s, transform 0.2s;
  pointer-events: none;
}
.gallery-image:hover {
  box-shadow: 0 8px 32px rgba(186, 104, 200, 0.18);
  transform: scale(1.03);
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-10%);
  z-index: 2;
  pointer-events: auto;
  --sl-color-primary-600: #b5838d;
  --sl-color-primary-500: #ffb4a2;
  font-size: 2.5rem;
  color: #b5838d;
  background: #fff0f3;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(255, 180, 162, 0.1);
  margin: 0 0.5rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.gallery-arrow:hover {
  background: #ffb4a2;
  color: #fff;
  transform: scale(1.12);
}
.gallery-arrow.left {
  left: 0.5rem;
}
.gallery-arrow.right {
  right: 0.5rem;
}
.gallery-caption {
  margin-top: 1.2rem;
  font-size: 1.2rem;
  color: #b5838d;
  font-family: "Segoe Script", "Brush Script MT", cursive, Arial, sans-serif;
  text-align: center;
  background: #fffafc;
  border-radius: 1rem;
  padding: 0.7rem 1.2rem;
  box-shadow: 0 1px 8px rgba(255, 180, 162, 0.1);
  border: 2px dashed #ffb4a2;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* Optional: Add a subtle flower/leaf SVG as a background accent */
.gallery-container::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -40px;
  width: 120px;
  height: 120px;
  background: url("https://www.svgrepo.com/show/309485/flower-rose.svg")
    no-repeat center center/contain;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}
.gallery-container::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: url("https://www.svgrepo.com/show/309485/flower-rose.svg")
    no-repeat center center/contain;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
  transform: scaleX(-1);
}

@keyframes gallery-fade-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes gallery-fade-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.03);
  }
}
.gallery-image.fade-in {
  animation: gallery-fade-in 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-image.fade-out {
  animation: gallery-fade-out 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 500px) {
  .gallery-card {
    width: 95vw;
    height: 340px;
    min-height: 340px;
    min-width: 0;
    padding: 0.5rem;
  }
  .gallery-image {
    border-radius: 0.8rem;
    border-width: 2px;
  }
}

.centered-title {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: #b5838d;
  font-family: "Segoe Script", "Brush Script MT", cursive, Arial, sans-serif;
  font-size: 2.5rem;
  letter-spacing: 1px;
}

.nav-brand {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 2rem;
  margin-right: 0;
  font-size: 2rem;
  font-family: "Segoe Script", "Brush Script MT", cursive, Arial, sans-serif;
  color: #ffb4a2;
  font-weight: bold;
  display: flex;
  align-items: center;
  letter-spacing: 1px;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
  height: auto;
  z-index: 2;
}

.address-form-section {
  background: #f8f9fa;
  padding: 4rem 0 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.address-form-section iframe {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(186, 104, 200, 0.08);
  background: #fff;
}

@media (max-width: 900px) {
  .our-story-flex {
    flex-direction: column;
    gap: 2rem;
  }
  .our-story-photos {
    flex-direction: row;
    max-width: 100vw;
    width: 100vw;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
  }
  .our-story-photos .timeline-photo {
    width: 120px;
    height: 80px;
  }
}

.centered-paragraph {
  text-align: center;
}
