/* ===== GLOBAL ===== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

/* AOS 사이드 슬라이드 애니메이션이 있는 섹션 — 좌우 overflow 차단 */
#gallery, #couple, #location {
  overflow-x: hidden;
}

/* ===== HERO ===== */
/* 모바일: 사진이 자연 비율 그대로 노출 (잘리지 않음) */
.hero-photo {
  display: block;
  animation: kenburns 14s ease-in-out infinite alternate;
}

/* PC에서만 사진이 컨테이너를 꽉 채우도록 */
@media (min-width: 768px) {
  .hero-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
  }
  #hero {
    position: relative;
    min-height: 100svh;
  }
  .hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }
}

@keyframes kenburns {
  0%   { transform: scale(1)    translateY(0); }
  100% { transform: scale(1.06) translateY(-2%); }
}

/* 모바일: 하단 그라데이션 / PC: 좌측 그라데이션 */
.hero-overlay {
  background: linear-gradient(to top, rgba(250,248,245,0.4) 0%, transparent 50%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-overlay {
    background: linear-gradient(to right, rgba(250,248,245,0.3) 0%, transparent 40%);
  }
}

/* ===== SPARKLES ===== */
.sparkle {
  position: absolute;
  display: block;
  width: 6px;
  height: 6px;
  animation: sparkle-float 6s ease-in-out infinite;
}

.sparkle::before {
  content: '✦';
  position: absolute;
  top: 0; left: 0;
  color: #6BAED6;
  font-size: 14px;
  line-height: 1;
}

.sparkle::after {
  content: '✦';
  position: absolute;
  top: 12px; left: 12px;
  color: #3F7CAC;
  font-size: 8px;
  opacity: 0.45;
}

@keyframes sparkle-float {
  0%   { transform: translateY(0)    scale(1);    opacity: 0.7; }
  40%  { transform: translateY(-14px) scale(1.1); opacity: 1;   }
  70%  { transform: translateY(-7px)  scale(0.95); opacity: 0.8; }
  100% { transform: translateY(0)    scale(1);    opacity: 0.7; }
}

/* ===== CALENDAR CARD ===== */
.calendar-card {
  min-width: 130px;
}

/* ===== GALLERY ===== */
@media (min-width: 768px) {
  .gallery-grid {
    flex-direction: row !important;
  }
  .gallery-item { flex: 1; }
}

/* ===== COUPLE PHOTO ===== */
.couple-photo-wrap {
  box-shadow: 0 8px 28px rgba(107,174,214,0.16);
}

/* ===== MAP BUTTON ===== */
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #6BAED6;
  color: #fff;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  font-family: 'Noto Serif KR', serif;
  transition: background 0.2s;
}
.map-btn:hover { background: #3F7CAC; }

/* ===== 축하 메세지 CTA 섹션 버튼 ===== */
.msg-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #3F7CAC;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-family: 'Noto Serif KR', serif;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  animation: msg-pulse 2.4s ease-in-out infinite;
  transition: transform 0.2s, box-shadow 0.2s;
}
.msg-btn-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(0,0,0,0.25);
  animation: none;
}

@keyframes msg-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.18); }
  50%       { box-shadow: 0 4px 30px rgba(255,255,255,0.45), 0 4px 20px rgba(0,0,0,0.18); }
}
