/* ---------- Base containers ---------- */
.love-letter-container1 {
  width: 100%;
  display: block;
  min-height: 100vh;
}

.love-letter-container2 { display: none; }
.love-letter-container3 { display: contents; }

.love-letter-photo-gallery { display: block; }

.love-letter-gallery-cta {
  border: 2px dashed rgba(120, 120, 120, 0.4);
}

.love-letter-container5 { display: none; }
.love-letter-container6 { display: contents; }
.love-letter-container7 { display: none; }
.love-letter-container8 { display: contents; }

.love-letter-container9 {
  right: 50px;
  border: 1px solid #ffffff5c;
  bottom: 30px;
  display: flex;
  z-index: 22;
  position: fixed;
  box-shadow: 5px 5px 10px 0px rgba(31, 31, 31, 0.4);
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  background-color: rgba(41, 41, 41, 0.41);
}

.love-letter-icon5 { width: 24px; margin-right: 4px; }

.love-letter-text20 {
  color: white;
  font-size: 13px;
  font-weight: 500;
  line-height: 24px;
}


/* ---------- Gallery grid ---------- */
.love-letter-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .love-letter-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .love-letter-gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- Polaroid cards ---------- */
.polaroid {
  display: flex;
  flex-direction: column;
}

/* Make every photo area a perfect, equal square */
.polaroid-frame {
  width: 100%;
  aspect-ratio: 1 / 1; /* true square; height derived from width */
  overflow: hidden;
  border-radius: 12px;
}

/* Fill the square consistently */
.polaroid-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Caption behaviors */
.polaroid-caption {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.polaroid-story {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;           /* adjust if you want more lines */
  -webkit-box-orient: vertical;
}

/* Neutralize rotate classes so size/layout stays uniform */
.polaroid-rotate-left,
.polaroid-rotate-right {
  transform: none !important;
  margin: 0 !important;
}

/* ---------- Mobile decor adjustments ---------- */
@media (max-width: 768px) {
  .decor-left,
  .decor-right {
    position: static !important;
    display: block !important;
    width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .decor-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px auto;
    display: inline-block;
  }

  .decor-left { order: -1; margin-bottom: 24px; }
  .decor-right { margin-top: 24px; }

  /* Prevent horizontal scroll gap */
  html, body { overflow-x: hidden; }
}

/* Letter width only, nothing fancy */
.love-letter-card {
  width: 50%;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .love-letter-card {
    width: 100%;
  }
}
.love-letter-wrapper .pompom { display: none !important; }

