:root {
  --bg: #ffffff;
  --text: #1f1f1f;
  --text-dark: #111111;
  --text-body: #333333;
  /* 금박 포인트 — 종이 청첩장의 필기체 금박에서 가져온 톤 */
  --gold: #c39a4c;
  --gold-light: #e3c375;
  --gold-deep: #a97f2f;
  --gold-gradient: linear-gradient(100deg, #b98b3c 0%, #e3c375 38%, #b07f2e 62%, #dcb968 100%);
  /* 커버 레터링용 — 커버 사진의 신부 드레스에서 뽑은 연노랑 */
  --dress-yellow: #dacb99;
  /* 예식 달력 강조색 — 금박 포인트 */
  --ceremony-accent: var(--gold-deep);
  --ceremony-cal-text: #555555;
  --ceremony-cal-cell-h: 3rem;
  --flip-tile: #1f1f1f;
  --flip-tile-deep: #0d0d0d;
  --flip-digit: #ffffff;
  --bracket: #cccccc;
  --cover-tagline-font: clamp(1.35rem, 5.2vw, 1.95rem);
  --cover-tagline-leading: 1.2;
  --cover-tagline-line-height: calc(var(--cover-tagline-font) * var(--cover-tagline-leading));
  --site-max-width: 450px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.site-wrap {
  max-width: var(--site-max-width);
  width: 100%;
  background: var(--bg);
  min-height: 100vh;
}

/* ========== 커버: 오픈그래프 이미지 ========== */
.cover {
  padding: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.cover-hero-visual {
  position: relative;
  width: 100%;
  min-height: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  background-color: var(--bg);
}

.cover-hero-visual img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center center;
}

/* 커버 레터링: "Better" 는 세리프 먹색, "Together" 는 금박 필기체.
   왼쪽에서 오른쪽으로 써지듯 나타난다. */
.cover-lettering {
  --lettering-size: clamp(3.4rem, 21vw, 5.8rem);
  position: absolute;
  z-index: 2;
  top: 9%;
  left: 0;
  right: 0;
  /* 두 줄이 이루는 덩어리를 통째로 가운데 두어 좌우 여백을 맞춘다.
     각 줄을 따로 가운데 정렬하면 아래 줄의 들여쓰기가 무너진다. */
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 0 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}

.cover-lettering__main,
.cover-lettering__script {
  display: block;
  /* 왼쪽 끝만 열어두고 시작해, 오른쪽으로 획이 그어지듯 드러난다 */
  clip-path: inset(-20% 100% -20% 0);
  animation: lettering-write 1.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cover-lettering__main {
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-size: var(--lettering-size);
  font-weight: 400;
  line-height: 1;
  color: #111111;
  animation-delay: 0.5s;
}

.cover-lettering__script {
  /* 획 굵기가 일정한 단선 필기체 — Great Vibes 보다 훨씬 얇게 보인다 */
  font-family: "Sacramento", "Great Vibes", cursive;
  font-size: calc(var(--lettering-size) * 0.92);
  /* Sacramento 는 아래 획(g, y)이 길어 줄상자를 넉넉히 잡아야 잘리지 않는다 */
  line-height: 1.35;
  /* 세리프 아래에 살짝 겹쳐 얹고 오른쪽으로 밀어 배치 */
  margin-top: calc(var(--lettering-size) * -0.46);
  margin-left: calc(var(--lettering-size) * 0.5);
  padding: 0.08em 0.14em 0.3em;
  color: var(--dress-yellow);
  /* 연한 색이라 하늘 위에서 날아가지 않도록 옅은 그림자를 깐다 */
  text-shadow: 0 1px 5px rgba(120, 90, 30, 0.45);
  animation-duration: 2.4s;
  animation-delay: 2.0s;
}

@keyframes lettering-write {
  /* 사방을 살짝 넘겨 열어야 필기체의 끝획과 아래 획이 잘리지 않는다 */
  to { clip-path: inset(-20% -14% -20% 0); }
}

@media (prefers-reduced-motion: reduce) {
  .cover-lettering__main,
  .cover-lettering__script {
    clip-path: none;
    animation: none;
  }
}

.cover-overlay-bottom {
  flex-shrink: 0;
  padding: 1rem max(1rem, env(safe-area-inset-right, 0px)) max(1.15rem, env(safe-area-inset-bottom, 0px)) 1rem;
  text-align: right;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
  pointer-events: none;
  background: var(--bg);
}

.cover-overlay-bottom .venue {
  font-size: 0.85rem;
  font-weight: 400;
}

.cover-overlay-bottom .datetime {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ========== 초대장 본문 (두 번째 디자인) ========== */
.invitation {
  padding: 3rem 1.5rem 4rem;
  max-width: 480px;
  margin: 0 auto;
}

.invitation-title-row {
  --invitation-title-size: clamp(2.1rem, 10vw, 3.1rem);
  display: flex;
  justify-content: center;
  margin-bottom: 2.75rem;
}

.invitation-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-weight: 400;
  line-height: 1;
}

/* 큰 세리프 대문자 — 실제 청첩장의 활자 느낌 */
.invitation-title__main {
  font-family: "Cormorant Garamond", serif;
  font-size: var(--invitation-title-size);
  font-weight: 500;
  letter-spacing: 0.14em;
  /* letter-spacing 이 만드는 우측 여백을 상쇄해 시각적 중앙을 맞춘다 */
  text-indent: 0.14em;
  color: var(--text-dark);
}

/* 금박 필기체 — 위 활자에 살짝 겹쳐 얹는다 */
.invitation-title__script {
  font-family: "Great Vibes", cursive;
  font-size: calc(var(--invitation-title-size) * 0.72);
  line-height: 1.1;
  margin-top: calc(var(--invitation-title-size) * -0.3);
  padding: 0 0.15em 0.12em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .invitation-title__script {
    color: var(--gold);
  }
}

.invitation-body {
  text-align: center;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.9;
  font-weight: 300;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.invitation-body p {
  margin-bottom: 1.25rem;
}

.invite-part {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* 키워드(소망·사랑·믿음): 상승은 부모와 역보정으로 고정 + 개별 패이드인 */
.invite-part .pop-word {
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--pop-fade-delay, 0.14s);
}

.invite-part:not(.is-visible) .pop-word {
  transform: translateY(-1.5rem);
}

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

.pop-word {
  display: inline-block;
  /* 등장 효과만 담당하고 활자 크기·굵기·색은 본문을 그대로 따른다 */
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}

.pop-word--hope  { --pop-fade-delay: 0.12s; }
.pop-word--love  { --pop-fade-delay: 0.24s; }
.pop-word--faith { --pop-fade-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .invite-part .pop-word {
    opacity: inherit;
    transition: none;
    --pop-fade-delay: 0s;
  }

  .invite-part.is-visible .pop-word {
    opacity: 1;
  }

  .pop-word.is-wiggling {
    animation: none;
  }
}

.pop-word.is-wiggling {
  animation: pop-word-wiggle 1.15s ease-in-out;
}

@keyframes pop-word-wiggle {
  0%,
  100% { transform: translateY(0) translateX(0); }
  22% { transform: translateY(0) translateX(-0.7px); }
  44% { transform: translateY(0) translateX(0.55px); }
  62% { transform: translateY(0) translateX(-0.35px); }
  78% { transform: translateY(0) translateX(0.22px); }
}

.invitation-body p:last-of-type {
  margin-bottom: 2rem;
}

.names-block {
  text-align: center;
  margin: 2.5rem 0;
}

.names-line {
  display: block;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 2;
  font-weight: 400;
}

.names-line .b {
  font-weight: 700;
}

/* ========== 예식 안내 + 달력 ========== */
.ceremony-section {
  margin-top: 2.5rem;
  text-align: center;
}

.ceremony-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.ceremony-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-body);
}

.ceremony-separator {
  border: none;
  border-top: 1px dotted #bbb;
  margin: 0 0 1.25rem 0;
}

.ceremony-summary {
  color: var(--ceremony-cal-text);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-top: 1.25rem;
  text-align: center;
}

.ceremony-cal__datetime {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ceremony-cal-text);
  text-align: center;
  caption-side: top;
  padding: 1.15rem 0 1.35rem;
}

.ceremony-countdown-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.ceremony-countdown-lead {
  flex-shrink: 0;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ceremony-cal-text);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.flip-clock {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(0.45rem, 2.8vw, 0.7rem);
}

.flip-clock__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.flip-clock__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ceremony-cal-text);
  letter-spacing: 0.05em;
}

.flip-clock__card {
  --flip-h: clamp(3rem, 16vw, 3.65rem);
  --flip-digit-size: clamp(1.35rem, 7vw, 1.7rem);
  position: relative;
  width: clamp(2.65rem, 14vw, 3.15rem);
  height: var(--flip-h);
  border-radius: 0.5rem;
  perspective: 320px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 남은 일수가 세 자리가 되면 카드를 넓혀, 다른 칸과 좌우 여백을 맞춘다 */
.flip-clock__card--wide {
  width: clamp(3.5rem, 18.5vw, 4.15rem);
}

.flip-clock__upper,
.flip-clock__lower {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  z-index: 1;
}

.flip-clock__upper {
  top: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  background: var(--flip-tile);
}

.flip-clock__lower {
  bottom: 0;
  border-radius: 0 0 0.5rem 0.5rem;
  background: var(--flip-tile-deep);
}

.flip-clock__num {
  display: block;
  height: var(--flip-h);
  line-height: var(--flip-h);
  text-align: center;
  font-size: var(--flip-digit-size);
  font-weight: 700;
  color: var(--flip-digit);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.flip-clock__lower .flip-clock__num {
  transform: translateY(-50%);
}

.flip-clock__fold {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  transform-style: preserve-3d;
  z-index: 3;
  visibility: hidden;
  pointer-events: none;
}

.flip-clock__fold--upper {
  top: 0;
  transform-origin: bottom center;
}

.flip-clock__fold--lower {
  bottom: 0;
  transform-origin: top center;
}

.flip-clock__fold-front,
.flip-clock__fold-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
}

.flip-clock__fold--upper .flip-clock__fold-front,
.flip-clock__fold--upper .flip-clock__fold-back {
  background: var(--flip-tile);
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
}

.flip-clock__fold--upper .flip-clock__fold-front {
  border-radius: 0.5rem 0.5rem 0 0;
}

.flip-clock__fold--upper .flip-clock__fold-back {
  border-radius: 0.5rem 0.5rem 0 0;
  transform: rotateX(180deg);
}

.flip-clock__fold--lower .flip-clock__fold-front,
.flip-clock__fold--lower .flip-clock__fold-back {
  background: var(--flip-tile-deep);
}

.flip-clock__fold--lower .flip-clock__fold-front {
  border-radius: 0 0 0.5rem 0.5rem;
}

.flip-clock__fold--lower .flip-clock__fold-back {
  border-radius: 0 0 0.5rem 0.5rem;
  transform: rotateX(180deg);
}

.flip-clock__fold--lower .flip-clock__fold-front .flip-clock__num,
.flip-clock__fold--lower .flip-clock__fold-back .flip-clock__num {
  transform: translateY(-50%);
}

.flip-clock__card.is-flip-upper .flip-clock__fold--upper {
  visibility: visible;
  animation: flip-clock-upper 0.5s ease-in forwards;
}

.flip-clock__card.is-flip-lower .flip-clock__fold--lower {
  visibility: visible;
  transform: rotateX(-90deg);
  animation: flip-clock-lower 0.5s ease-out forwards;
}

@keyframes flip-clock-upper {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(-90deg);
  }
}

@keyframes flip-clock-lower {
  0% {
    transform: rotateX(-90deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flip-clock__card.is-flip-upper .flip-clock__fold--upper,
  .flip-clock__card.is-flip-lower .flip-clock__fold--lower {
    animation: none;
    visibility: hidden;
  }
}

.ceremony-countdown-done {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.25rem 0 0;
  opacity: 0;
  transform: translateY(0.4rem);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.ceremony-countdown-done.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ceremony-summary.is-hiding {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.ceremony-venue {
  font-weight: 400;
  margin: 0;
}

.ceremony-calendar-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ceremony-cal {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.78rem;
  color: var(--ceremony-cal-text);
  background: transparent;
  border: none;
}

.ceremony-cal thead th {
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.45rem 0.15rem 0.6rem;
  border: none;
  background: transparent;
  color: var(--ceremony-cal-text);
  text-align: center;
}

.ceremony-cal tbody td {
  border: none;
}

.ceremony-cal__cell {
  box-sizing: border-box;
  vertical-align: middle;
  text-align: center;
  height: var(--ceremony-cal-cell-h);
  padding: 0 0.18rem;
  font-weight: 400;
  line-height: 1.35;
}

.ceremony-cal__cell--muted {
  pointer-events: none;
}

.ceremony-cal__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  margin: 0 auto;
  border-radius: 50%;
  background-color: var(--ceremony-accent);
  border: none;
  box-sizing: border-box;
  color: #ffffff;
  font-weight: 600;
  font-size: inherit;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ceremony-cal__day-num {
  position: relative;
  top: 0.03em;
  font-size: 0.92em;
  color: inherit;
}

@media (min-width: 380px) {
  :root {
    --ceremony-cal-cell-h: 3.2rem;
  }

  .ceremony-cal {
    font-size: 0.84rem;
  }

  .ceremony-cal thead th {
    font-size: 0.77rem;
    padding: 0.5rem 0.22rem 0.65rem;
  }

  .ceremony-cal__cell {
    padding: 0 0.22rem;
  }

  .ceremony-cal__badge {
    width: 2.15rem;
    height: 2.15rem;
  }
}

/* ── 섹션 헤더 아이콘 (Google Material Symbols) ── */
.gallery-header,
.ceremony-header,
.location-header,
.location-subsection-header,
.atm-header,
.account-header,
.courtesy-header {
  gap: 0.55rem;
  justify-content: flex-start;
}

.section-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}

.section-icon__svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--text-body);
  display: block;
}

/* ========== 스크롤 등장 (참고: 투아게스트 류의 페이드·슬라이드업) ========== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 1.4rem, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.gallery-photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  cursor: pointer;
  opacity: 0;
  transform: translate3d(0, 0.65rem, 0) scale(0.98);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-photo-grid img.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .gallery-photo-grid img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.location-section {
  margin-top: 2.5rem;
  text-align: center;
}

.location-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.location-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-body);
}

.location-separator {
  border: none;
  border-top: 1px dotted #bbb;
  margin: 0 0 1rem 0;
}

.location-map-wrap {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

.location-map-wrap iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

/* 지도 아래 도로명주소 */
.location-road-address {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ceremony-cal-text);
  text-align: center;
  word-break: keep-all;
}

.location-road-address__label {
  margin-right: 0.35em;
  font-weight: 600;
  color: var(--text-body);
}

/* 모바일 터치: 지도 iframe이 세로 스크롤을 삼켜 아래 섹션으로 못 내려가는 문제 방지 */
@media (hover: none) and (pointer: coarse) {
  .location-map-wrap iframe {
    pointer-events: none;
  }
}

.location-nav-apps {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 0.85rem;
}

.location-nav-app {
  flex: 1;
  min-width: 0;
  max-width: 6.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 0.4rem;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.2;
  font-family: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.location-nav-app:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.location-nav-app__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.location-nav-app__icon svg,
.location-nav-app__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.location-nav-app__icon--kakao {
  border-radius: 0.42rem;
  overflow: hidden;
}

.location-nav-app__icon--kakao img {
  border-radius: 0.42rem;
}

.location-nav-app__label {
  white-space: nowrap;
}

.location-nav-apps--youtube {
  margin-top: 1.25rem;
}

.location-nav-apps--youtube .location-nav-app {
  flex: 0 1 auto;
  max-width: none;
  padding: 0.6rem 0.75rem;
}

.location-subsection {
  margin-top: 2.5rem;
  text-align: center;
}

.location-subsection-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.location-subsection-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-body);
}

.location-subsection-separator {
  border: none;
  border-top: 1px dotted #bbb;
  margin: 0 0 1rem 0;
}

.location-subsection-body {
  text-align: center;
}

.location-info__highlight {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--flip-tile-deep);
  line-height: 1.7;
  margin: 0 0 0.5rem;
}

.location-info__accent {
  display: inline-block;
  padding: 0.1em 0.45em;
  border-radius: 999px;
  background-color: var(--ceremony-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.92em;
  line-height: 1.35;
  vertical-align: baseline;
}

.location-info__text {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.75;
  margin: 0 0 0.5rem;
}

.location-info__text--note {
  margin-bottom: 0.85rem;
  color: var(--ceremony-cal-text);
}

/* 주차장 이름 -> 티맵 길찾기 */
.location-info__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--bracket);
  padding-bottom: 0.1em;
}

.location-info__link-icon {
  margin-left: 0.15em;
  color: var(--ceremony-accent);
  font-weight: 700;
}

.location-info__item {
  margin-bottom: 0.85rem;
}

.location-info__item:last-child {
  margin-bottom: 0;
}

.location-info__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 0.25rem;
}

.location-info__value {
  display: block;
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.65;
  word-break: keep-all;
}

.gallery-section {
  margin-top: 2.5rem;
  text-align: center;
}

.gallery-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.gallery-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-body);
}

.gallery-separator {
  border: none;
  border-top: 1px dotted #bbb;
  margin: 0 0 1rem 0;
}

.gallery-message {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.8;
}

.gallery-grid-wrap {
  position: relative;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: 1rem;
}

.gallery-grid-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.5rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.gallery-grid-wrap.is-expanded::after {
  opacity: 0;
}

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.gallery-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin: 0.8rem auto 0;
  padding: 0.4rem 0;
  font-size: 0.82rem;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
}

.gallery-more-btn .chevron {
  display: inline-block;
  font-size: 1.2rem;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

.gallery-more-btn.is-expanded .chevron {
  transform: rotate(-90deg);
}

.gallery-more-btn.is-hidden {
  display: none;
}

.gallery-lightbox {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: var(--site-max-width);
  width: 100%;
  z-index: 9999;
  background: #fff;
  flex-direction: column;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

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

.gallery-lightbox[hidden] {
  display: none !important;
}

html:has(body.gallery-lightbox-open) {
  overflow: hidden;
  overscroll-behavior: none;
  height: 100%;
}

body.gallery-lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.gallery-lightbox__stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 3.75rem;
  z-index: 1;
  overflow: hidden;
  box-sizing: border-box;
  pointer-events: none;
}

.gallery-lightbox__track {
  display: flex;
  width: 300%;
  height: 100%;
  will-change: transform;
  pointer-events: auto;
  touch-action: pan-y;
}

.gallery-lightbox__track.is-animating {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-lightbox__slide {
  flex: 0 0 calc(100% / 3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(2.75rem, env(safe-area-inset-top)) 1rem 0.5rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  box-sizing: border-box;
}

.gallery-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-lightbox__close {
  position: absolute;
  top: max(0.35rem, env(safe-area-inset-top));
  right: max(0.35rem, env(safe-area-inset-right));
  z-index: 3;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  background: transparent;
  color: #444;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
}

.gallery-lightbox__close:hover {
  color: #111;
}

.gallery-lightbox__close:focus,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__close:active {
  outline: none;
  box-shadow: none;
}

.gallery-lightbox__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem max(1.25rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  background: #fff;
  box-sizing: border-box;
  border-top: none;
}

.gallery-lightbox__chev {
  border: none;
  background: transparent;
  color: #888;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  padding: 0.35rem 0.5rem;
  min-width: 2rem;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.gallery-lightbox__chev:hover {
  color: #444;
}

.gallery-lightbox__chev:active {
  color: #444;
}

.gallery-lightbox__chev:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.gallery-lightbox__count {
  flex: 1;
  text-align: center;
  color: #888;
  font-size: 0.82rem;
  font-weight: 400;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

/* ========== 배경음악 (콘텐츠 컬럼 좌측 상단 고정, max-width와 동일 기준) ========== */
.bgm-toggle {
  position: fixed;
  z-index: 100;
  top: max(0.85rem, env(safe-area-inset-top, 0px));
  left: calc(50vw - min(calc(var(--site-max-width) / 2), 50vw) + max(0.85rem, env(safe-area-inset-left, 0px)));
  width: var(--cover-tagline-line-height);
  height: var(--cover-tagline-line-height);
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #242424;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  -webkit-tap-highlight-color: transparent;
}

.bgm-toggle:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.bgm-toggle svg {
  width: calc(var(--cover-tagline-font) * 0.58);
  height: calc(var(--cover-tagline-font) * 0.58);
  display: block;
  margin-left: 1px;
}

.bgm-toggle.is-playing svg {
  margin-left: 0;
}

.bgm-toggle .bgm-icon-pause {
  display: none;
}

.bgm-toggle.is-playing .bgm-icon-play {
  display: none;
}

.bgm-toggle.is-playing .bgm-icon-pause {
  display: block;
}

/* ── ATM Section ── */
.atm-section {
  margin-top: 4rem;
  text-align: center;
}

.atm-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.atm-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-body);
}

.atm-separator {
  border: none;
  border-top: 1px dotted #bbb;
  margin: 0 0 1rem 0;
}

.atm-image-wrap {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid #e8e8e8;
}

.atm-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.atm-captions {
  display: flex;
  margin-top: 0.65rem;
}

.atm-caption {
  flex: 1;
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.5;
  text-align: center;
}

/* ── Account Section ── */
.account-section {
  margin-top: 4rem;
  text-align: center;
}

.account-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.account-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-body);
}

.account-separator {
  border: none;
  border-top: 1px dotted #bbb;
  margin: 0 0 1rem 0;
}

.account-desc {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 1.2rem;
  text-align: center;
}

.account-group {
  margin-top: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.account-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.2rem;
  background: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.account-toggle:active {
  background: #f5f5f5;
}

.account-toggle-label {
  font-size: 1rem;
  font-weight: 500;
  color: #7ab8d9;
}

.account-toggle--bride .account-toggle-label {
  color: #d4827e;
}

.account-toggle-chevron {
  font-size: 1.4rem;
  color: #aaa;
  transition: transform 0.3s;
  line-height: 1;
  transform: rotate(90deg);
}

.account-toggle.is-open {
  border-bottom: 1px solid #e0e0e0;
}

.account-toggle.is-open .account-toggle-chevron {
  transform: rotate(-90deg);
}

.account-list {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
}

.account-list.is-open {
  opacity: 1;
}

.account-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.1rem 1.2rem;
  border-top: 1px solid #f0f0f0;
}

.account-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.account-role {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  width: fit-content;
  padding-bottom: 1px;
  border-bottom: 1px solid currentColor;
}

.account-role--groom {
  color: #7ab8d9;
}

.account-role--bride {
  color: #d4827e;
}

.account-number {
  font-size: 0.92rem;
  color: #444;
  letter-spacing: 0.02em;
}

.account-bank-name {
  font-size: 0.82rem;
  color: #999;
}

.account-copy-btn {
  margin-left: 1rem;
  margin-top: 0.2rem;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: #666;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.3rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  align-self: flex-start;
}

.account-copy-btn:active {
  background: #f0f0f0;
}

.account-copy-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.account-copy-toast.is-visible {
  opacity: 1;
}

/* ── 정중 안내 ── */
.courtesy-section {
  margin-top: 4rem;
  text-align: center;
}

.courtesy-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.courtesy-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-body);
}

.courtesy-separator {
  border: none;
  border-top: 1px dotted #bbb;
  margin: 0 0 1rem 0;
}

.courtesy-body {
  text-align: center;
}

.courtesy-desc {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-body);
  margin: 0;
  text-align: center;
}
