/* -------------------------------------
  폰트 정의: SungDongMyungjo Regular + Bold
-------------------------------------- */
@font-face {
    font-family: 'SungDongMyungjo';
    font-style: normal;
    font-weight: 400;
    src: url('https://fastly.jsdelivr.net/korean-webfonts/1/orgs/govs/sdgu/SungDongMyungjo/SungDongMyungjoR.woff2') format('woff2'),
         url('https://fastly.jsdelivr.net/korean-webfonts/1/orgs/govs/sdgu/SungDongMyungjo/SungDongMyungjoR.woff') format('woff');
  }
  @font-face {
    font-family: 'SungDongMyungjo';
    font-style: normal;
    font-weight: 700;
    src: url('https://fastly.jsdelivr.net/korean-webfonts/1/orgs/govs/sdgu/SungDongMyungjo/SungDongMyungjoB.woff2') format('woff2'),
         url('https://fastly.jsdelivr.net/korean-webfonts/1/orgs/govs/sdgu/SungDongMyungjo/SungDongMyungjoB.woff') format('woff');
  }
  /* -------------------------------------
    전체 스타일 변수 & 기본 세팅
  -------------------------------------- */
  :root {
    --color-bg: #FAF8F5;
    --color-primary: #3C5330;
    --color-accent: #F5D8D0;
    --color-text: #3A3A3A;
    --color-muted: #ACACAC;
  }
  
  body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-family: 'SungDongMyungjo';
  }
  
  .wrapper {
    margin: 0 auto;
    width: 100%;
  }

  

  section {
    margin: 0 auto 100px;
    padding: 0 30px;
    max-width: 800px; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-family: 'SungDongMyungjo', serif;
  }

  .calendar-section h2,
  .location-section h2,
  .gallery-section h2,
  .guestbook-section h2,
  .account-section h2 {
    font-size: 24px;
    font-family: 'SungDongMyungjo', serif;
    color: #3A3A3A;
    text-align: center;
  }
  
  /* 💍 Hero */
  .hero{
    position: relative;
    /* 1) JS 폴백 값 (없으면 1vh) */
    height: calc(var(--vh, 1vh) * 100);
    /* 2) 기본 */
    height: 100vh;
    /* 3) 더 정확 (주소창 높이 반영) */
    height: 100dvh;
    /* 4) 최정답: 보이는 실가시영역 */
    height: 100svh;
    padding: 0;
    display: block;    /* section 공통 flex 무력화 */
    overflow: hidden;
  }
  .hero-bg{
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    z-index: -1;
  }
  
  
  /* our wedding day 이미지 */
  .hero-title {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%; /* 필요 시 조정 */
  }
  .hero-title img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* 하단 투명 박스 위에 텍스트 */
  .hero-info-box {
    position: absolute;
    bottom: 50px; /* 원하는 여백 조정 */
    left: 50%;
    transform: translateX(-50%);
    /* 기존 스타일 유지 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 12px;
    backdrop-filter: blur(2px);
    width: max-content;
  }
  
  .hero-info-box i {
    font-size: 16px;
    color: white;
  }
  
  .hero-names {
    color: white;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    font-weight: 700;
  }
  
  


  
  
  /* 💌 Intro Message */
  .intro p {
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    font-family: 'SungDongMyungjo', serif;
    color: #3A3A3A;
    font-weight: 700;
  }
  

  
  /* 🗓️ Date Section */
  .calendar-container {
    padding: 30px;
    background: #fdfdfd;
    border-radius: 16px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    width: 100%;           /* 부모 section 폭 꽉 채우기 */
    box-sizing: border-box; /* padding 포함해서 계산 */
  }

  .calendar-detail {
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    font-family: 'SungDongMyungjo', serif;
    color: #3A3A3A;
    font-weight: 700;
  }
  
  .calendar-tip{ margin-top:12px; font-size:14px; font-family:'SungDongMyungjo'; color:#3A3A3A; background:#e9ece6; padding:3px 20px; border-radius:4px; }
.calendar-tip i{ margin-right:5px; vertical-align:middle; }

  .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* 7칸 균등 */
  gap: 12px;
  width: 100%;
  }

  
  .day {
  text-align: center;
  color: #B7B7B7;
  font-size: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;   /* 정사각형 비율 유지 */
  /* 또는 height: 60px; 같은 고정값으로 지정 */
}

  .calendar-header {
    text-align: left;
    font-size: 18px;
    color: #FF658B;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .day.empty {
    visibility: hidden;
  }
  
  .heart-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.heart-day i {
  font-size: 32px;
  color: #FF658B;
  position: absolute;
}

.heart-number {
  position: relative;
  color: white;
  font-weight: bold;
  font-size: 14px;
  z-index: 1;
}

 /* 320px 이하 - 여백 줄이고 폰트 축소 */
@media (max-width: 360px) {

  .calendar-header {
    text-align: left;
    font-size: 14px;
    color: #FF658B;
    font-weight: bold;
    margin-bottom: 20px;
  }

  .calendar-container {
    padding: 12px;
  }
  .calendar-grid {
    gap: 4px; /* 숫자간 여백 최소화 */
  }
  .day {
    font-size: 14px; /* 숫자 작게 */
  }
  .heart-day i {
    font-size: 26px; /* 하트도 축소 */
  }
  .heart-number {
    font-size: 14px;
  }
} 
  
  
  /*📍 Location Section*/

  .wedding-location {
    gap : 0;
    }

    .location-detail {
     text-align: center;
    font-size: 18px;
    line-height: 1.6;
    font-family: 'SungDongMyungjo', serif;
    color: #3A3A3A;
    margin-bottom: 20px;
    }

    .map {
      width: 100%;
      max-width: 800px;
    }

    #daumRoughmapContainer1755841552240 {
      width: 100% !important;
      height: 360px !important;
    }

  .location-info {
    background: white;
    padding: 20px;
    width: 100%;        /* 항상 부모 폭에 맞게 */
    box-sizing: border-box;
    font-family: 'SungDongMyungjo';
  }
  
  .section {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
  }
  
  .bold {
    font-weight: 700;
  }
  
  hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 16px 0;
  }
  
  .location-buttons {
    display: flex;
    width: 100%;
  }
  
  .location-buttons .btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    color: white;
    border: none;
    cursor: pointer;
    background: #3C5330;
    display: flex;               /* 아이콘 + 텍스트 가로 정렬 */
    justify-content: center;
    align-items: center;
    gap: 5px;                    /* 아이콘과 텍스트 간격 */
    font-family: 'SungDongMyungjo';
    font-weight: 700;
  }
  
  .location-buttons .btn img {
    width: 16px;                 /* 아이콘 크기 */
    height: 16px;
  }
  
  .location-buttons .btn:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.3);
  }
  
  .toast {
    position: fixed;
    top: 50%;        /* 화면 높이의 절반 */
    left: 50%;       /* 화면 너비의 절반 */
    transform: translate(-50%, -50%);
    display: inline-block;     /* ✅ 내용만큼만 가로 확장 */
    max-width: 80%;            /* ✅ 너무 긴 텍스트는 줄바꿈 */
    white-space: nowrap;       /* ✅ 줄바꿈 방지 (원하면 제거) */
    background: rgba(22, 22, 22, 0.8);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
    font-weight: 700;
  }
  .toast.show {
    opacity: 1;
  }
  
  
  
  /*📷 Gallery*/

  .gallery-section { 
    text-align: center; 
    padding: 0; 
    max-width: none; 
  }
  
  .swiper { 
    overflow-y: visible !important; 
  }
  
  .swiper-slide { 
    width: auto !important; 
    flex-shrink: 0; 
    position: relative; 
  }
  
  /* ✅ 양옆은 작게 (0.8), 가운데는 크게 (1.0) */
  .gallery-swiper { 
    width: 100%; 
    padding: 40px 0; 
    -webkit-text-size-adjust: none; 
  }
  
  .gallery-swiper .swiper-slide { 
    transform: translateZ(0) scale(0.8); 
    transform-origin: center center; 
    opacity: 0.7; 
    transition: transform 0.35s ease, opacity 0.35s ease; 
    will-change: transform; 
  }
  
  .gallery-swiper .swiper-slide-active { 
    transform: translateZ(0) scale(1); 
    opacity: 1; 
  }

  
  
  /* ✅ 딤 처리 */
  .gallery-swiper .swiper-slide::after { 
    content: ""; 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px); 
    border-radius: 20px; 
    opacity: 1; 
    transition: opacity 0.3s ease; 
    pointer-events: none; 
  }
  
  .gallery-swiper .swiper-slide-active::after { 
    opacity: 0; 
  }
  
  
  /* ✅ 이미지 */
  .gallery-swiper .swiper-slide img { 
    border-radius: 20px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); 
    width: 100%; 
    max-width: 260px; 
    height: auto; 
    object-fit: cover; 
    -webkit-user-drag: none; 
  }
  
  @media (min-width: 768px) { 
    .gallery-swiper .swiper-slide img { 
      max-width: 360px; 
    } 
  }
  
  @media (min-width: 1200px) { 
    .gallery-swiper .swiper-slide img { 
      max-width: 480px; 
    } 
  }
  
  

.gallery-tip{ margin-top:12px; font-size:14px; font-family:'SungDongMyungjo'; color:#3A3A3A; background:#e9ece6; padding:3px 20px; border-radius:4px; }
.gallery-tip i{ margin-right:5px; vertical-align:middle; }

/* ===== Vanilla Lightbox (모바일) ===== */
.lb{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:9999;
     background:rgba(0,0,0,.9); padding:20px; opacity:0; transition:opacity .18s ease; }
.lb.is-open{ display:flex; opacity:1; }
.lb-inner{ position:relative; max-width:min(1000px,95vw); max-height:85vh; display:flex; flex-direction:column; align-items:center; gap:10px; }
.lb-img{ max-width:100%; max-height:75vh; object-fit:contain; border-radius:10px; background:#111; box-shadow:0 4px 18px rgba(0,0,0,.25); }
.lb-caption{ color:#fff; font-weight:700; text-align:center; }
.lb-count{ color:#bbb; font-size:12px; }

/* 터치 영역 크게: 모바일 접근성 ↑ */
.lb-btn{ position:absolute; background:rgba(255,255,255,.12); color:#fff; border:0; cursor:pointer;
         width:48px; height:48px; border-radius:999px; display:grid; place-items:center; backdrop-filter:blur(2px); }
.lb-close{ top:16px; right:16px; font-size:24px; }
.lb-prev{ left:8px; top:50%; transform:translateY(-50%); font-size:22px; }
.lb-next{ right:8px; top:50%; transform:translateY(-50%); font-size:22px; }

 /* ===== 모달 오픈 시 스크롤 막기 ===== */
body.lb-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}   

  /*💬 Guestbook*/
.guestbook-section {
  text-align: center;
  align-items: stretch;
}

.guestbook {
  height: 360px; /* 방명록 영역 고정 높이 */
  overflow: hidden;
  position: relative;
  display: flex;           /* ✅ guestbook 자체를 flex 컨테이너로 */
  justify-content: center;
  align-items: center;
}

/* 하단 페이드 효과 */
.guestbook::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(
    to bottom,
    rgba(250,248,245,0) 0%,
    rgba(250,248,245,0.8) 60%,
    rgba(250,248,245,1) 100%
  );
  pointer-events: none;
  border-radius: inherit;
}

.guestbook-inner {
  transition: transform 0.6s ease; /* 탁! 넘어가는 효과 */
  width: 100%;
  height: 100%;    
}

.message {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-size: 14px;
  line-height: 1.4;
}

.message strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: #333;
  font-weight: 600;
}

/* 작성 폼 */
.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;         
  height: 100%;    /* ✅ 유동폭 */
  box-sizing: border-box;  /* ✅ padding 포함 계산 */
  margin-top: 16px;
  font-family: 'SungDongMyungjo';
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  font-family: 'SungDongMyungjo';
  box-sizing: border-box;   /* 📌 튀어나감 방지 */
}

.guestbook-form textarea {
  min-height: 80px;
  resize: none;
}

.guestbook-form button {
  padding: 14px;
  background: #3C5330; /* ✅ 새 짙은 초록 */
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  font-family: 'SungDongMyungjo';
  box-sizing: border-box;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: #666;
}

/* 방명록 비었을 때 안내 카드 */
.message.empty {
  height: 100%;            /* ✅ guestbook-inner 높이 꽉 채우기 */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-size: 14px;
  line-height: 1.4;
}

.message.empty .empty-card {
  text-align: center;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/*🎁 마음 전하기*/

.account-desc {
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  font-family: 'SungDongMyungjo', serif;
  color: #3A3A3A;
  font-weight: 700;
  margin-top: 0;
}

.account-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.account-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-item .label {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin: 0 ;
}

.account-item .info {
  display: flex;
  flex-direction: column;
}

.account-item .name {
  font-weight: 600;
  font-size: 16px;
  color: #222;
}

.account-item .bank {
  font-size: 16px;
  color: #555;
  word-break: break-all;
}

.copy-btn {
  background: #f5f5f5;
  border: 0;
  border-radius: 6px;
  padding: 12px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  font-family: 'SungDongMyungjo';
  border: 1px solid #eaeaea;
}


.account-tip{
  margin-top:12px;
  font-size:14px;
  font-family:'SungDongMyungjo';
  color:#3A3A3A;
  background-color: #e9ece6;
  padding:3px 20px;
  border-radius:4px; }

.account-tip i{ margin-right:5px; vertical-align:middle; }


/* 💌 Outro Message */
.ending-section p {
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  font-family: 'SungDongMyungjo', serif;
  color: #3A3A3A;
  font-weight: 700;
}


/* 👣 footer*/
.site-footer {
  margin-top: 60px;
  padding: 40px 20px;
  background-color: #f8f8f8;
  text-align: center;
  font-size: 14px;
  color: #555;
  border-top: 1px solid #eee;
}

.site-footer .made-by {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.site-footer .footer-copy {
  font-size: 12px;
  color: #999;
}

.site-footer .made-by::after {
  content: " ✨";
}

/*플로팅버튼*/
.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10000;
}

.float-btn {
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  font-size: 20px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.float-btn:hover {
  transform: scale(1.05);
}

.top-btn {
  display: none;
}
