@font-face {
  font-family: "GangwonEdu";
  src: url("https://cdn.jsdelivr.net/npm/@noonnu/gangwon-edu-otf-bold-a@0.1.0/fonts/gangwoneduotfbolda-normal.woff")
    format("woff");
  font-weight: 400;
  font-style: normal;
}

:root {
  --bg: #e9ded2;
  --paper: #fffdf9;
  --card: #faf4ee;
  --card-light: #fff8f1;
  --text: #3f352f;
  --title: #4b392f;
  --subtext: #645b55;
  --muted: #a18a79;
  --accent: #806650;
  --accent-light: #efe2d6;
  --line: #eadccc;
  --heart: #b36b66;
  --shadow: 0 14px 30px rgba(80, 60, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "GangwonEdu", "Apple SD Gothic Neo", "Noto Sans KR", serif;
  line-height: 1.75;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

.container {
  position: relative;
  z-index: 5;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 0 36px rgba(80, 60, 40, 0.16);
}

section {
  padding: 56px 28px;
  text-align: center;
}

.divider {
  width: 1px;
  height: 48px;
  margin: 0 auto;
  background: #ddc8b8;
}

.hero {
  padding: 78px 28px 46px;
  background: linear-gradient(180deg, #f5ede4 0%, var(--paper) 100%);
}

.date {
  margin-bottom: 22px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #9a7b63;
}

h1 {
  margin: 0;
  font-size: 2.05rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--title);
}

.subtitle {
  margin-top: 18px;
  font-size: 1rem;
  color: #806d60;
}

.main-photo {
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.title {
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #b08a6c;
  text-transform: uppercase;
}

.section-title-ko {
  margin-bottom: 26px;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--title);
}

.message {
  font-size: 1rem;
  line-height: 2;
  letter-spacing: -0.01em;
  color: #5f5550;
  white-space: pre-line;
}

.names {
  margin-top: 42px;
  padding: 24px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  font-size: 0.95rem;
  color: var(--subtext);
}

.names p {
  margin: 12px 0;
}

.names strong {
  margin-left: 6px;
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--text);
}

.call-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.74rem;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.call-link:active {
  transform: scale(0.94);
}

.info-box {
  padding: 30px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(80, 60, 40, 0.08);
}

.info-box p {
  margin: 8px 0;
  font-size: 0.95rem;
  color: #5f5550;
}

.info-box strong {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--title);
}

.calendar-wrap {
  padding: 26px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 12px 28px rgba(80, 60, 40, 0.1);
}

.calendar-month {
  margin: 0 0 18px;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  color: var(--title);
}

.calendar-weekdays,
.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-weekdays span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #b08a6c;
}

.day {
  position: relative;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  color: #5f5550;
}

.day.is-empty {
  visibility: hidden;
}

.day.is-wedding {
  z-index: 1;
  flex-direction: column;
  font-weight: 600;
  color: #fff;
}

.day.is-wedding::before {
  content: "♥";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  font-size: 52px;
  line-height: 1;
  color: var(--heart);
}

.day-time {
  margin-top: -3px;
  font-size: 0.56rem;
}

.gallery-area {
  position: relative;
  margin: 30px -28px 0;
}

.slides {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0 28px 12px;
}

.slides::-webkit-scrollbar {
  height: 6px;
}

.slides::-webkit-scrollbar-thumb {
  background: #d8c4b4;
  border-radius: 999px;
}

.slide {
  flex: 0 0 86%;
  overflow: hidden;
  scroll-snap-align: center;
  border-radius: 26px;
  background: #f8f1ea;
  box-shadow: var(--shadow);
}

.slide img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.92);
  color: #5d4638;
  font-size: 28px;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 8px 18px rgba(80, 60, 40, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-nav:hover {
  background: #fff;
}

.gallery-nav:active {
  transform: translateY(-50%) scale(0.94);
}

.gallery-nav.prev {
  left: 18px;
}

.gallery-nav.next {
  right: 18px;
}

.swipe-guide {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.map-card {
  margin-top: 26px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  text-align: left;
  box-shadow: 0 12px 28px rgba(80, 60, 40, 0.1);
}

.kakao-map,
#map {
  width: 100%;
  height: 240px;
}

.map-info {
  padding: 24px 20px;
}

.place {
  margin-bottom: 6px;
  font-size: 1.15rem;
  color: var(--title);
}

.address-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.address {
  flex: 1;
  font-size: 0.9rem;
  color: #75685f;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--accent-light);
  color: #5d4638;
  cursor: pointer;
}

.map-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.button {
  display: block;
  width: 100%;
  padding: 14px 12px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.button:hover {
  opacity: 0.92;
}

.button:active {
  transform: scale(0.98);
}

.button.light {
  background: var(--accent-light);
  color: #5d4638;
}

.transit-info {
  margin-top: 30px;
  padding: 4px 20px;
  background: var(--card-light);
  border: 1px solid var(--accent-light);
  border-radius: 24px;
  text-align: left;
}

.transit-item {
  display: flex;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid #eee3d9;
}

.transit-item:last-child {
  border-bottom: none;
}

.transit-icon {
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
}

.transit-kind {
  margin: 0 0 6px;
  color: var(--title);
}

.transit-text p {
  margin: 2px 0;
  font-size: 0.88rem;
  color: var(--subtext);
}

.account-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  text-align: left;
}

details.account-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.account-summary {
  padding: 18px 20px;
  color: var(--title);
  cursor: pointer;
}

.account-body {
  padding: 0 20px 20px;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.account-number {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  color: #5f5550;
}

.copy-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  cursor: pointer;
}

.contact-buttons {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

footer {
  padding: 48px 20px;
  background: var(--card-light);
  color: #a5958a;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-align: center;
}

.share-link-btn {
  margin-top: 18px;
  padding: 13px 22px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

.music-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.music-button:hover {
  transform: translateY(-2px);
}

.music-button.is-playing {
  box-shadow:
    0 0 0 4px rgba(179, 107, 102, 0.1),
    0 10px 26px rgba(0, 0, 0, 0.14);
}

.lp-disc {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #f8efe7 0 11%, #6b5647 12% 17%, transparent 18%),
    radial-gradient(circle at 68% 28%, rgba(255, 255, 255, 0.7) 0 5%, transparent 6%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%),
    repeating-radial-gradient(circle, #4e3d33 0 2px, #2e2724 3px 5px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 12px rgba(0, 0, 0, 0.22),
    0 3px 6px rgba(0, 0, 0, 0.16);
}

.lp-disc::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 25px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8b7a2;
}

.lp-disc::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 8px;
  width: 22px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(-28deg);
  transform-origin: left center;
}

.lp-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #f8f5f1;
}

.music-button.is-playing .lp-disc {
  animation: lpRotate 1.6s linear infinite;
}

@keyframes lpRotate {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.015);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

@media (max-width: 380px) {
  section {
    padding: 60px 22px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .slide {
    flex-basis: 88%;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  border-radius: 16px;
  background: var(--card);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(80, 60, 40, 0.1);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-thumb:active img {
  transform: scale(1.04);
}

.gallery-guide {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 52px 18px;
  background: rgba(0, 0, 0, 0.82);
}

.gallery-lightbox.is-show {
  display: flex;
}

.gallery-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #3f352f;
  font-size: 1.1rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #3f352f;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 14px;
}

.lightbox-next {
  right: 14px;
}

body.is-lightbox-open {
  overflow: hidden;
}

@media (max-width: 380px) {
  .gallery-grid {
    gap: 8px;
  }

  .gallery-thumb {
    border-radius: 14px;
  }
}

.verse-box {
  margin: 38px 24px 12px;
  text-align: center;
}

.verse-line {
  width: 48px;
  height: 1px;
  margin: 0 auto;
  background: #d7c5b7;
}

.verse-text {
  margin: 18px 0 8px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--title);
  letter-spacing: 0.02em;
}

.verse-source {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.wedding-summary {
  padding: 56px 28px;
  text-align: center;
}

.summary-divider {
  width: 60px;
  height: 1px;
  margin: 0 auto 30px;
  background: #d8c4b4;
}

.summary-date {
  font-size: 1.15rem;
  color: var(--title);
  line-height: 1.8;
}

.summary-place {
  margin-top: 12px;
  font-size: 1.2rem;
  color: var(--title);
}

.summary-names {
  margin-top: 26px;
}

.summary-names p {
  margin: 10px 0;
  color: var(--subtext);
}

.summary-names strong {
  color: var(--title);
  font-size: 1.08rem;
}

.section-rule {
  width: 72px;
  height: 1px;
  margin: 0 auto;
  background: #d8c4b4;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.gallery-lightbox {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-lightbox.is-show {
  opacity: 1;
}

.gallery-thumb img {
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.04);
}

.notice-box {
  margin-top: 50px;
  padding: 18px;
  background: #faf7f3;
  border: 1px solid #eadccc;
  border-radius: 16px;
  text-align: left;
}

.notice-title {
  margin-bottom: 10px;
  color: var(--title);
  font-size: 0.95rem;
}

.notice-text {
  margin: 0;
  color: var(--subtext);
  font-size: 0.88rem;
  line-height: 1.8;
}

.notice-divider {
  width: 60px;
  height: 1px;
  margin: 42px auto;
  background: #d8c4b4;
}