:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;
  --line: #e9e9e9;
  --card: #fafafa;
  --font-ko: "Noto Sans KR", sans-serif;
  --font-en: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #383534;
  color: var(--fg);
  font-family: var(--font-en), var(--font-ko);
  font-weight: 300;
}

body {
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
}

body.intro-lock {
  overflow: hidden;
  touch-action: none;
}

.invite {
  width: 100%;
  max-width: 460px;
  min-height: 100dvh;
  border-left: none;
  border-right: none;
  position: relative;
  z-index: 2;
  background: transparent;
}

.section {
  padding: 48px 24px;
  border-bottom: none;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100svh;
  padding: 56px 24px 72px;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.hero-bg-fixed {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  visibility: visible;
}

.hero-bg-fixed__frame {
  position: relative;
  height: 100%;
  width: min(100%, 460px);
  overflow: hidden;
  background: #2a2827;
}

.hero-bg-fixed__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.hero-bg-fixed__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.38) 0%,
    rgba(0, 0, 0, 0.12) 40%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

.hero-bg-fixed.is-past {
  opacity: 0;
  visibility: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
}

.hero-lower {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero > .eyebrow {
  position: sticky;
  top: 28px;
  align-self: center;
  z-index: 6;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  transition-delay: 0.04s;
}

.intro-cover {
  position: fixed;
  top: 0;
  left: 50%;
  width: min(100%, 460px);
  height: 100dvh;
  transform: translateX(-50%);
  padding: 0;
  border-bottom: 0;
  z-index: 30;
  opacity: 1;
  transition: transform 0.9s ease, opacity 0.9s ease;
}

.intro-cover__panel {
  min-height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 64px 24px 56px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* 첫 화면 고정 사진 위로 이후 섹션이 올라오도록 스택 정리 */
.invite > .section:not(.hero):not(.intro-cover) {
  position: relative;
  z-index: 3;
}

.countdown-wrap {
  background: #ffffff;
  padding-top: 288px;
  position: relative;
  z-index: 4;
}

.countdown-white-block {
  background: #ffffff;
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 264px;
  padding-bottom: 28px;
}

.intro-top-text {
  margin: 0;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
  color: #3a3a3a;
}

.intro-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -100%);
}

.intro-lift-target {
  will-change: transform, opacity;
}

.intro-pass .intro-lift-target {
  animation: introLiftUp 0.9s ease both;
}

@keyframes introLiftUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-center-text {
  margin: 0;
  font-family: var(--font-ko);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #111111;
}

.intro-center-line {
  display: block;
}

.intro-center-line + .intro-center-line {
  margin-top: 2px;
}

.intro-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.intro-word.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-word-final {
  font-size: 18px;
}

.intro-cover-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.intro-bottom-text {
  margin: 0;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2a2a2a;
  line-height: 1.6;
}

.intro-cover-art {
  display: flex;
  justify-content: center;
  margin: 0;
}

.intro-cover-art img {
  display: block;
  width: min(26vw, 100px);
  max-width: 100%;
  height: auto;
}

.names {
  margin: 0;
  font-family: var(--font-en);
  font-size: 50px;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #111111;
}

.hero .names {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.date,
.location {
  margin: 12px 0 0;
  font-size: 14px;
  color: #2e2e2e;
}

.hero .date,
.hero .location {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.date {
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.location {
  font-family: var(--font-ko);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero .names {
  transition-delay: 0.2s;
}

.hero .date {
  transition-delay: 0.32s;
}

.hero .location {
  transition-delay: 0.44s;
}

h2 {
  margin: 0 0 18px;
  font-family: var(--font-ko);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0;
}

.section-title-en {
  font-family: var(--font-en);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 300;
}

.invite-intro {
  text-align: center;
  margin-bottom: 28px;
}

.invite-intro-art {
  display: flex;
  justify-content: center;
  margin: 0;
}

.invite-intro-art img {
  display: block;
  width: min(26vw, 100px);
  max-width: 100%;
  height: auto;
}

.invite-greeting {
  margin: 0;
  font-family: var(--font-ko);
  font-size: 13px;
  font-weight: 300;
  line-height: 2;
  color: #141414;
  letter-spacing: -0.03em;
}

.invite-family {
  margin: 22px 0 0;
}

.invite-family__row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.4em;
  row-gap: 0.15em;
  font-family: var(--font-ko);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: #1f1f1f;
}

.invite-family__row + .invite-family__row {
  margin-top: 13px;
}

.invite-family__parents {
  font-size: 11px;
  letter-spacing: 0.01em;
}

.invite-family__suffix {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0;
}

.invite-family__name {
  font-weight: 300;
  font-size: 13px;
}

.countdown-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  width: 100%;
  max-width: min(100%, 380px);
  margin: 0 auto 16px;
}

.countdown-thumb {
  margin: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
}

.countdown-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.countdown-line {
  margin: 0 0 150px;
  text-align: center;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.45;
  color: #2a2a2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.countdown-line__date,
.countdown-line__venue {
  display: block;
}

.countdown-line__date {
  letter-spacing: 0.06em;
}

.countdown-line__venue {
  letter-spacing: 0.06em;
  font-weight: 500;
}

.wedding-cal {
  max-width: 320px;
  margin: 0 auto 328px;
  padding: 0 4px 4px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.wedding-cal__month-num {
  text-align: center;
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #111111;
  margin-top: 4px;
  margin-bottom: 13px;
}

.wedding-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  margin-bottom: 13px;
}

.wedding-cal__weekdays span {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  color: var(--muted);
}

.wedding-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.wedding-cal__cell {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 300;
  color: #222222;
  border-radius: 13px;
  border: 1px solid transparent;
}

.wedding-cal__cell--empty {
  visibility: hidden;
  pointer-events: none;
}

.wedding-cal__cell--wedding {
  border-color: transparent;
  background: transparent;
  color: #111111;
  font-weight: 400;
  border-radius: 0;
  box-shadow: inset 0 -2px 0 0 #111111;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  column-gap: 13px;
  margin-bottom: 13px;
}

.countdown > div {
  text-align: center;
  padding: 0;
}

.countdown span {
  display: block;
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: 300;
  line-height: 1.2;
}

.countdown small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown-subtitle {
  margin: 0 0 320px;
  text-align: center;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a2a2a;
}

.info ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.info li {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  line-height: 1.6;
  text-align: center;
}

.countdown-wrap .info {
  margin-bottom: 18px;
}

.countdown-wrap .countdown-thumbs {
  margin-bottom: 320px;
}

.section.gallery {
  margin-top: 160px;
  background: transparent;
}

.section.account,
.section.map {
  margin-top: 320px;
  background: transparent;
}

.section.guestbook {
  margin-top: 320px;
  background: #ffffff;
  padding-top: 306px;
  padding-bottom: 68px;
}

.section.contact {
  margin-top: 0;
  background: #ffffff;
  padding-top: 388px;
  padding-bottom: 204px;
}

/* Light text on transparent sections (dark page background) */
.section.gallery,
.section.account,
.section.map {
  color: #f2f2f2;
}

.section.account .account-help,
.section.account .account-card p,
.section.account .account-owner,
.section.account .account-number,
.section.map .map-subtitle-ko,
.section.map .directions-item,
.section.map .map-note {
  color: #ffffff;
}

.section.account .account-card {
  border-top-color: rgba(255, 255, 255, 0.85);
}

.section.account .account-item {
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

.section.map .directions-list {
  border-top-color: rgba(255, 255, 255, 0.85);
}

.section.map .directions-item {
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 360px) {
  .countdown-white-block {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

.info strong {
  font-size: 11px;
  font-weight: 300;
  color: #3a3a3a;
}

.info span {
  font-size: 12px;
  font-weight: 300;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gallery-item {
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  background: #f3f3f3;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-more {
  width: 100%;
  margin: 14px 0 0;
  border: none;
  border-top: 1px solid var(--line);
  background: transparent;
  color: #111111;
  padding: 10px 0 0;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  display: block;
}

.gallery-more-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.gallery-more[aria-expanded="true"] .gallery-more-arrow {
  transform: rotate(180deg);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal-image {
  width: min(92vw, 520px);
  max-height: 84dvh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  width: auto;
  padding: 0;
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  width: auto;
  padding: 0 8px;
}

.gallery-modal-prev {
  left: 10px;
}

.gallery-modal-next {
  right: 10px;
}

body.gallery-modal-open {
  overflow: hidden;
}

/* Override shared button style for gallery controls */
.gallery-item,
.gallery-more,
.gallery-modal-close,
.gallery-modal-nav {
  border: none;
  background: transparent;
  border-radius: 0;
  width: auto;
}

.gallery-more {
  color: #7a7a7a;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin: 14px 0 0;
  border-top: 1px solid var(--line);
  padding: 10px 0 0;
  text-align: center;
  line-height: 1;
}

.gallery-more-arrow {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  color: var(--line);
  padding-bottom: 1px;
  animation: galleryArrowFloat 1.2s ease-in-out infinite;
}

@keyframes galleryArrowFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
  100% {
    transform: translateY(0);
  }
}

.gallery-more[aria-expanded="true"] .gallery-more-arrow {
  animation: none;
  transform: rotate(180deg);
}

.gallery-modal-close,
.gallery-modal-nav {
  color: #ffffff;
}

.gallery-modal-close {
  font-size: 34px;
}

.gallery-modal-nav {
  font-size: 42px;
}

.gallery-modal-image {
  touch-action: pan-y;
}

.account-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 0;
}

.account-help,
.map-subtitle-ko,
.directions-item {
  color: #4f4f4f;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
}

.account-help {
  margin: 0 0 14px;
}

.account-card + .account-card {
  margin-top: 0;
}

.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-card p {
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.account-toggle {
  width: auto;
  min-width: 34px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.account-toggle[aria-expanded="true"] {
  font-size: 14px;
  letter-spacing: 0;
}

.account-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.account-list.is-open {
  max-height: 420px;
  opacity: 1;
}

.account-list[hidden] {
  display: grid !important;
}

.account-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0;
  background: transparent;
}

.account-item span {
  font-size: 13px;
  color: #2a2a2a;
  line-height: 1.3;
  word-break: keep-all;
  font-family: var(--font-ko);
}

.account-meta {
  display: grid;
  gap: 2px;
}

.account-owner {
  font-size: 11px;
  font-weight: 300;
  color: #9a9a9a;
  line-height: 1.2;
}

.account-number {
  font-size: 13px;
  color: #2a2a2a;
  line-height: 1.3;
  word-break: keep-all;
  font-family: var(--font-ko);
}

.account-copy {
  width: auto;
  min-width: 74px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
}

button,
.contact-links a {
  width: 100%;
  border: 1px solid #222222;
  background: #111111;
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 200;
  letter-spacing: 0.02em;
  text-align: center;
  display: inline-block;
}

.map-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.map-links::-webkit-scrollbar {
  display: none;
}

.map-links a {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  border: 1px solid #222222;
  background: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 11px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin: 34px 0;
}

.contact-links a {
  width: auto;
  justify-self: center;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 11px;
}

.contact-copy {
  margin: 0 0 14px;
  color: #4f4f4f;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
  text-align: center;
}

.guestbook-help {
  margin: 0 0 14px;
  color: #4f4f4f;
  font-size: 13px;
  line-height: 1.55;
}

.guestbook-form {
  display: grid;
  gap: 8px;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  border: 1px solid #dddddd;
  border-radius: 0;
  padding: 10px 12px;
  font-family: var(--font-ko);
  font-size: 13px;
  color: #111111;
  background: #ffffff;
}

.guestbook-form textarea {
  resize: none;
}

.guestbook-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.guestbook-pagination {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.guestbook-page-btn {
  width: auto;
  min-width: 28px;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  background: #ffffff;
  color: #666666;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
}

.guestbook-page-btn.is-active {
  border-color: #111111;
  color: #111111;
  font-weight: 500;
}

.guestbook-item {
  border: 1px solid #e6e6e6;
  padding: 10px 12px;
  border-radius: 0;
  overflow: hidden;
}

.guestbook-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.guestbook-item-name {
  font-size: 12px;
  font-weight: 300;
  color: #222222;
}

.guestbook-item-date {
  font-size: 11px;
  color: #9a9a9a;
}

.guestbook-item-message {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #444444;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-indent: 0;
}

.guestbook-actions {
  display: flex;
  justify-content: flex-end;
}

.guestbook-fab {
  width: auto;
  border: 1px solid #111111;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 12px;
}

.guestbook-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 110;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.guestbook-modal[hidden] {
  display: none;
}

.guestbook-modal-card {
  width: min(100%, 460px);
  background: #ffffff;
  border-top: 1px solid #dddddd;
  padding: 18px 16px 16px;
  position: relative;
}

.guestbook-modal-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-family: var(--font-ko);
  font-weight: 500;
}

.guestbook-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: auto;
  border: none;
  background: transparent;
  color: #111111;
  font-size: 28px;
  line-height: 1;
  padding: 0;
}

body.guestbook-modal-open,
body.guestbook-thank-open {
  overflow: hidden;
}

.guestbook-thank-modal {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
}

.guestbook-thank-modal[hidden] {
  display: none;
}

.guestbook-thank-card {
  position: relative;
  width: min(100%, 300px);
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 20px 24px;
  text-align: center;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.guestbook-thank-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: auto;
  min-width: 36px;
  min-height: 36px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #555555;
  font-size: 26px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guestbook-thank-close:hover {
  color: #111111;
  background: rgba(0, 0, 0, 0.05);
}

.guestbook-thank-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
}

.guestbook-thank-deco {
  display: block;
  width: min(30vw, 96px);
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.guestbook-thank-message {
  margin: 0;
  padding: 0;
  font-family: var(--font-ko);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: #3a3a3a;
}

.contact-copy--bottom {
  margin: 34px 0 0;
}

.contact h2 {
  font-family: var(--font-en);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-heading h2 {
  margin-bottom: 6px;
}

.map-subtitle-ko {
  margin: 0 0 20px;
}

.directions-list {
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
}

.directions-item {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.directions-item:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.map-preview {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #f8f8f8;
  aspect-ratio: 4 / 3;
  margin-bottom: 10px;
}

.map-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kakao-map {
  width: 100%;
  height: 100%;
}

.map-note {
  margin: 0 0 12px;
  text-align: right;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.45;
  color: #9a9a9a;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(10px);
  background: #111111;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 360px) {
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .names {
    font-size: 44px;
  }

  h2 {
    font-size: 27px;
  }

  .invite-greeting {
    font-size: 10px;
  }

  .invite-family__parents,
  .invite-family__suffix {
    font-size: 9px;
  }

  .invite-family__name {
    font-size: 13px;
  }

  .account-item {
    grid-template-columns: 1fr;
  }

  .account-copy {
    width: 100%;
  }
}
