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

body {
  margin: 0;
  background: linear-gradient(180deg, #041c3a, #0b2a52);
  color: #f8f5f0;
  font-family: Arial, sans-serif;
}

.hero {
  height: 100vh;
  background: url('images/hero.JPEG') center/cover;
}

.overlay {
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  display: flex;
  align-items: center;
  padding-left: 8%;
}

.hero-box {
  max-width: 500px;
  padding: 0;
  background: none;
  border: none;
  backdrop-filter: none;
  text-align: left;
  margin-left: 0;
}

.script {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: #d4af37;
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5.5rem;
  margin: 10px 0;
  line-height: 0.95;
}
.date {
  color: #d4af37;
  margin-top: 30px;
  font-size: 1.4rem;
}

.date::before {
  content: '';
  display: block;
  width: 180px;
  height: 2px;
  background: #d4af37;
  margin-bottom: 25px;
}

.memory-intro {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 100px 8%;
  align-items: center;
}

.polaroid {
  background: white;
  padding: 12px 12px 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  width: 75%;
  margin: auto;
}

.polaroid:before {
  content: '';
  position: absolute;
  width: 80px;
  height: 20px;
  background: #e9d8a6;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
}

.polaroid img {
  width: 100%;
  display: block;
}

.polaroid div {
  color: black;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  margin-top: 10px;
}

.left {
  transform: rotate(-5deg);
}
.right {
  transform: rotate(6deg);
}

.center-text h2,
.gallery-title,
.letter h2 {
  font-family: 'Cormorant Garamond', serif;
  color: #d4af37;
  font-size: 3rem;
  text-align: center;
}

.filters {
  text-align: center;
  margin-bottom: 30px;
}
.filters button {
  background: transparent;
  border: 1px solid #d4af37;
  color: #d4af37;
  padding: 10px 20px;
  border-radius: 30px;
  margin: 5px;
  cursor: pointer;
}

.gallery {
  columns: 4 250px;
  column-gap: 18px;
  padding: 0 8% 80px;
}

.gallery img {
  width: 100%;
  margin-bottom: 18px;
  border-radius: 10px;
  break-inside: avoid;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
}

.gallery img:hover {
  transform: translateY(-4px);
}

.letter-wrap {
  padding: 80px 8%;
}

.letter {
  background: #faf6ee;
  color: #222;
  max-width: 850px;
  margin: auto;
  padding: 50px;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.signature {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
}
#close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 50px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .memory-intro {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 3rem;
  }
}

.memory-intro {
  position: relative;
  overflow: hidden;
}

.letter-wrap {
  position: relative;
  overflow: hidden;
}

body {
  margin: 0;
  color: #f8f5f0;
  font-family: Arial, sans-serif;
  background: #041c3a;
}

#leaves-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.leaf {
  position: absolute;
  width: 30px;
  height: 45px;
  background: linear-gradient(135deg, #d4af37, #f4d03f, #d4af37);
  border-radius: 0 50% 50% 50%;
  opacity: 0.35;
}
.leaf-rev {
  border-radius: 50% 0 50% 50%;
}
.leaf-sm {
  width: 18px;
  height: 28px;
}
.leaf-lg {
  width: 44px;
  height: 64px;
}
