/* =========================================== */
/* BACKGROUND & HERO SECTION - background-hero.css */
/* =========================================== */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #fff;
  overflow-x: hidden;
}

/* BACKGROUND SLIDESHOW */
#slideshow-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
}

.slideshow-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1.5s ease-in-out;
  opacity: 0;
}

.slideshow-image.active {
  opacity: 1;
}

/* Gradient overlay */
#bg-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45));
  z-index: -1;
}

/* MAIN HERO SECTION (CENTER CONTENT) */
main.hero {
  height: calc(100vh - 160px);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.hero-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  pointer-events: none;
}

.wedding-date {
  font-family: "Playfair Display", serif;
  font-size: 82px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.911);
  text-transform: uppercase;
  text-shadow: 0 8px 26px rgba(0,0,0,0.35);
}

.wedding-location {
  margin-top: 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.705);
  text-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* ============================== */
/* RESPONSIVE STYLES FOR HERO SECTION */
/* ============================== */

/* Large tablets (1024px to 1200px) */
@media (min-width: 1024px) and (max-width: 1200px) {
  .wedding-date {
    font-size: 72px;
  }
  
  .wedding-location {
    font-size: 24px;
  }
}

/* Standard tablets (900px to 1024px) */
@media (min-width: 900px) and (max-width: 1024px) {
  .wedding-date {
    font-size: 68px;
  }
  
  .wedding-location {
    font-size: 22px;
  }
}

/* Small tablets (768px to 900px) */
@media (min-width: 768px) and (max-width: 900px) {
  /* Adjust hero content */
  .hero-center {
    padding: 0 30px;
  }
  
  .wedding-date {
    font-size: 58px;
  }
  
  .wedding-location {
    font-size: 20px;
    margin-top: 18px;
  }
  
  /* Ensure no overflow */
  body {
    overflow-x: hidden;
  }
  
  /* Reduce main hero height to prevent cutting off */
  main.hero {
    height: calc(100vh - 140px);
  }
}

/* Very small tablets (700px to 768px) */
@media (min-width: 700px) and (max-width: 768px) {
  .wedding-date {
    font-size: 52px;
  }
  
  .wedding-location {
    font-size: 19px;
  }
}

/* MOBILE BREAKPOINT (768px and below) */
@media (max-width: 768px) {
  .hero-center {
    padding: 0 20px;
  }
  
  .wedding-date {
    font-size: 50px;
    line-height: 1.1;
  }
  
  .wedding-location {
    font-size: 18px;
    margin-top: 15px;
    line-height: 1.4;
  }
  
  main.hero {
    height: calc(100vh - 120px);
  }
}

/* LAPTOP MODE */
@media (min-width: 1025px) and (max-width: 1300px) {
  .wedding-date {
    font-size: 70px;
  }
  
  .wedding-location {
    font-size: 22px;
  }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
  .wedding-date {
    font-size: 42px;
  }
  
  .wedding-location {
    font-size: 16px;
    margin-top: 12px;
  }
}

/* Very small mobile devices */
@media (max-width: 360px) {
  .wedding-date {
    font-size: 36px;
  }
  
  .wedding-location {
    font-size: 15px;
  }
}

/* Very large screens */
@media (min-width: 1600px) {
  .wedding-date {
    font-size: 90px;
  }
  
  .wedding-location {
    font-size: 28px;
  }
}