/* Mobile-first: SUIT (Noonnu), inner #FDFDFF on outer #BAD0DE; PC: invite max 950px */

/* SUIT — SIL OFL, web via Noonnu CDN: https://noonnu.cc/font_page/845 */
@font-face {
  font-family: "Suit";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Light.woff2") format("woff2");
}

@font-face {
  font-family: "Suit";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Suit";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Suit";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Suit";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Bold.woff2") format("woff2");
}

:root {
  --font-suit: "Suit", system-ui, sans-serif;
  --font-cover-overlay: var(--font-suit);
  --font-sans: var(--font-suit);
  --font-serif: var(--font-suit);
  /* 섹션 제목(마음 전하실 곳 제외): Playfair Display */
  --font-section-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --color-bg-outer: #c3d6e0;
  --color-bg-inner: #fdfdff;
  /* 섹션 내부 배경 교차 (메인 커버부터 A→B→A…) */
  --color-section-strip-a: #ebf2f5;
  --color-section-strip-b: #fbfcfd;
  /* 오버레이 글씨색 변경 위치 */
  --color-cover-overlay-text: #ffffff;
  --color-surface: #ffffff;
  --color-ink: #5a5a5a;
  --color-ink-muted: rgba(90, 90, 90, 0.72);
  --color-accent: #6b99b0;
  --color-on-accent: #fdfdff;
  --color-border: rgba(90, 90, 90, 0.14);
  --color-calendar-sun: #efa6a9;
  --space-section: clamp(3rem, 8vw, 5rem);
  --max-content: 430px;
  --max-invite-width: 950px;
  --cover-width-pc: 400px;
  --radius: 0.5rem;
  --reveal-distance: 1.25rem;
  --reveal-duration: 0.85s;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bp-pc: 768px;
  /* 뷰포트가 더 좁아도 레이아웃은 최소 이 너비 유지 → 가로 스크롤 */
  --min-layout-width: 320px;
  /* inner 카드가 바깥 배경(--color-bg-outer) 위에 살짝 떠 보이게 */
  --shadow-layout: 0 4px 28px rgba(90, 90, 90, 0.07), 0 1px 3px rgba(90, 90, 90, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg-outer);
  min-width: var(--min-layout-width);
}

body {
  margin: 0;
  min-width: var(--min-layout-width);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-bg-outer);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--color-ink);
  color: var(--color-bg-inner);
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 0.5rem;
}

/* ——— Layout: inner surface, centered (480 mobile / 950 PC) ——— */
.layout {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  background-color: transparent;
}

.layout__visual {
  width: 100%;
  max-width: 100%;
  /* 이미지 여백·레터박스: 페이지 외곽 배경과 동일 */
  background-color: var(--color-bg-outer);
  /* 모바일 커버는 화면 끝까지 꽉 채움 */
  padding-inline: 0;
  box-sizing: border-box;
}

.cover-sticky {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
}

.cover-hero {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-bg-outer);
}

.cover-media {
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center;
}

.cover-text-overlay {
  --cover-overlay-pad: clamp(0.75rem, 3vw, 1.15rem);
  --cover-name-nudge: clamp(0.28rem, 1.8vw, 0.55rem);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  column-gap: 0.45rem;
  padding: var(--cover-overlay-pad);
  pointer-events: none;
}

.cover-text-overlay__name,
.cover-text-overlay__meta,
.cover-text-overlay__venue {
  font-family: var(--font-cover-overlay);
  font-weight: 700;
  font-size: clamp(0.6875rem, 2.1vw, 0.8125rem);
  line-height: 1.35;
  /* 오버레이 글씨색 변경 위치 (--color-cover-overlay-text) */
  color: var(--color-cover-overlay-text);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.cover-text-overlay__meta {
  margin: 0;
  justify-self: center;
  text-align: center;
  max-width: 46vw;
}

.cover-text-overlay__name {
  margin-block: 0;
}

.cover-text-overlay__name--groom {
  justify-self: start;
  text-align: left;
  margin-inline-start: var(--cover-name-nudge);
  margin-inline-end: 0;
}

.cover-text-overlay__name--bride {
  justify-self: end;
  text-align: right;
  margin-inline-end: var(--cover-name-nudge);
  margin-inline-start: 0;
}

.cover-text-overlay--bottom {
  top: auto;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--cover-overlay-pad);
}

.cover-text-overlay__venue {
  margin: 0;
  text-align: center;
  max-width: min(92%, 20rem);
}

.layout__copy {
  width: 100%;
  max-width: 100%;
  background-color: transparent;
}

.layout__copy-inner {
  width: 100%;
  margin-inline: auto;
  padding: 0;
}

/* 실제 섹션 배경이 깔리는 폭(main)과 그림자 폭을 일치 */
main {
  box-shadow: var(--shadow-layout);
}

/* Scroll reveal: section 배경은 고정, 본문만 페이드업 (.section-reveal) */
.section-reveal {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, var(--reveal-distance), 0);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
}

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

/* 위로 스크롤해 다시 보일 때: 전환 없이 바로 표시 */
.reveal.reveal--instant,
.reveal.reveal--instant.is-revealed {
  transition: none;
}

.media-block {
  margin: 0;
}

/* Image placeholders */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  color: var(--color-ink-muted);
  font-size: 0.8125rem;
  text-align: center;
  padding: 1rem;
}

.image-placeholder--portrait {
  aspect-ratio: 4 / 5;
  margin-top: 1.5rem;
}

.image-placeholder--map {
  aspect-ratio: 16 / 10;
  margin-top: 1.25rem;
}

.image-placeholder--small {
  aspect-ratio: 16 / 6;
  margin-top: 1.5rem;
  max-width: 16rem;
  margin-inline: auto;
}

.image-placeholder--thumb {
  aspect-ratio: 1;
  min-height: 8rem;
}

.gallery-item--wide {
  aspect-ratio: 16 / 9;
  grid-column: span 2;
}

.section {
  padding: var(--space-section) 0;
}

.section--greeting {
  background-color: var(--color-section-strip-b);
}

.section--wedding-day {
  background-color: var(--color-section-strip-a);
}

.section--about-us {
  background-color: var(--color-section-strip-b);
  /* 줄간격 조절: 숫자만 바꾸면 됨 */
  --about-us-gap-parent-to-role: 1.35rem;
  --about-us-gap-around-rule: 2rem;
  --about-us-line-height: 1.95;
  /* 자간 넓게 — 여기서 조절 */
  --about-us-letter-spacing: 0.08em;
}

.section--location {
  background-color: var(--color-section-strip-a);
  /* .about-us__rule 세로 여백과 동일 (about-us 의 --about-us-gap-around-rule 기본값 2rem) */
  --location-dir-rule-gap: 2rem;
}

.section--gallery {
  background-color: var(--color-section-strip-b);
}

.section--account {
  background-color: var(--color-section-strip-a);
}

.section-inner {
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.section h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-section-heading);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 400;
  color: var(--color-accent);
  text-align: center;
}

.section--account h2 {
  font-family: var(--font-serif);
  font-weight: 600;
}

/* WEDDING DAY · LOCATION · GALLERY — 동일 톤으로 크기만 맞춤 (왜곡 없이 기본 형태 유지) */
.section--location h2,
.section--gallery h2,
.section--wedding-day .wedding-day-heading {
  letter-spacing: 0.03em;
  font-size: clamp(1.55rem, 5vw, 1.9rem);
  font-weight: 500;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0.35rem;
}

.section-lead {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--color-ink-muted);
  text-align: center;
}

.section-lead--tight {
  margin-top: -0.85rem;
  margin-bottom: 1.5rem;
}

.gallery-guest-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.gallery-guest-link:hover {
  text-decoration-thickness: 2px;
}

.about-us {
  font-family: var(--font-suit);
  color: var(--color-ink);
  text-align: center;
  letter-spacing: var(--about-us-letter-spacing, 0.08em);
}

.about-us__line {
  margin: 0;
  /* 의·장남·신랑 등 라이트 텍스트 기준 크기 */
  font-size: 0.9375rem;
  line-height: var(--about-us-line-height, 1.95);
}

.about-us__line--role {
  margin-top: var(--about-us-gap-parent-to-role);
}

.about-us__name {
  font-weight: 500;
  /* 이름만 약 1pt 큼 (라이트 텍스트 대비) */
  font-size: calc(0.9375rem + 1pt);
}

.about-us__light {
  font-weight: 300;
  font-size: 0.9375rem;
}

.about-us__middot {
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--color-ink-muted);
}

.about-us__rule {
  display: block;
  width: min(20rem, 90%);
  margin: var(--about-us-gap-around-rule) auto;
  border: 0;
  border-top: 1px solid var(--color-border);
}

.wedding-day-line {
  margin: 0 0 0.5rem;
  text-align: center;
  line-height: 1.5;
}

.wedding-day-line--ko {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-ink);
}

.wedding-day-line__date {
  display: inline-block;
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.wedding-day-line__time {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  font-weight: 500;
  color: var(--color-ink-muted);
}

.wedding-calendar {
  width: 90%;
  max-width: 100%;
  margin: 1.9rem auto 1.6rem;
  padding: 1.35rem 0.95rem 1.45rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 25px;
  box-shadow:
    0 4px 14px rgba(90, 90, 90, 0.1),
    0 2px 6px rgba(90, 90, 90, 0.06);
}

.wedding-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  margin-bottom: 0.72rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  text-align: center;
}

.wedding-calendar__weekdays span:first-child {
  color: var(--color-calendar-sun);
  font-weight: 600;
}

.wedding-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  column-gap: 0.2rem;
  row-gap: 0.46rem;
  line-height: 1.5;
}

.wedding-calendar__cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  border-radius: calc(var(--radius) * 0.65);
}

.wedding-calendar__cell--pad {
  visibility: hidden;
  pointer-events: none;
}

.wedding-calendar__cell--sun {
  color: var(--color-calendar-sun);
  font-weight: 600;
}

.wedding-calendar__cell--wedding {
  background: transparent;
  color: var(--color-accent);
  font-weight: 600;
  isolation: isolate;
}

.wedding-calendar__cell--wedding::before {
  content: "";
  position: absolute;
  inset: 11%;
  background: var(--color-accent);
  border-radius: 50%;
  box-sizing: border-box;
  pointer-events: none;
  z-index: -1;
}

.wedding-calendar__cell--wedding {
  color: #fdfdff;
}

.wedding-countdown {
  width: 90%;
  max-width: 100%;
  margin: 0.25rem auto 0;
}

.wedding-countdown__clock {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.35rem;
  width: 100%;
}

.wedding-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.1rem;
  min-width: 0;
  padding: 0;
  text-align: center;
}

.wedding-countdown__value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}

.wedding-countdown__label {
  display: block;
  margin-top: 0;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  line-height: 1.2;
}

.wedding-countdown__sep {
  align-self: center;
  margin: 0 0.1rem 0.12rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 5vw, 1.25rem);
  font-weight: 500;
  color: rgba(90, 90, 90, 0.55);
  line-height: 1;
}

.wedding-countdown__caption {
  margin: 0.8rem 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--color-ink-muted);
  text-align: center;
}

.wedding-countdown__days {
  color: var(--color-accent);
  font-weight: 600;
}

.greeting-rings-figure {
  margin: 0 0 clamp(1.35rem, 4vw, 1.85rem);
}

.greeting-rings-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 3;
  max-height: 4.25rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.75rem;
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  color: var(--color-ink-muted);
}

.greeting-rings-placeholder__label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.35;
}

.greeting-quote {
  margin: 0 0 clamp(1.35rem, 4vw, 1.75rem);
  padding: 0;
  border: none;
  font-family: var(--font-suit);
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--color-ink);
  text-align: center;
}

.greeting-quote > p {
  margin: 0;
}

.greeting-quote__attrib {
  margin: 1.1rem 0 0;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--color-ink-muted);
}

.greeting-quote__attrib cite {
  font-style: normal;
}

.greeting-closing {
  margin: 0 0 clamp(1.25rem, 3.5vw, 1.6rem);
  font-family: var(--font-suit);
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--color-ink);
  text-align: center;
}

.greeting-signatures {
  margin: 0;
  font-family: var(--font-suit);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-ink);
  text-align: center;
}

.venue-name {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
}

.venue-address {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-ink-muted);
}

.location-address {
  margin: 0 0 1.25rem;
  font-style: normal;
  text-align: center;
}

.location-line {
  margin: 0 0 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  line-height: 1.55;
}

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

.venue-name--location {
  margin: 0;
}

.venue-address--location {
  margin: 0;
}

.location-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
}

.location-action img {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
}

a.location-action {
  text-decoration: none;
  color: inherit;
}

.location-action:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.location-map-shell {
  position: relative;
  width: 100%;
  margin-top: 0.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 9;
  min-height: 10rem;
  background: var(--color-surface);
}

/* 높이는 main.js 에서 셸 너비 기준으로 설정 (카카오맵 API 요구) */
.location-map-canvas {
  display: block;
  width: 100%;
  min-height: 200px;
  border-radius: inherit;
}

.location-directions {
  margin-top: 2.3rem;
  text-align: left;
  color: var(--color-ink);
  /* 오시는 길 들여쓰기: 이 값만 조절하면 전체 텍스트/아이콘이 함께 이동 */
  --location-dir-indent: clamp(1.6rem, 4.8vw, 2.6rem);
}

.location-dir-block {
  margin: 0;
  padding-inline-start: 0;
}

.location-dir-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  padding-inline-start: var(--location-dir-indent);
  font-family: var(--font-suit);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  text-align: left;
}

/* 오시는 길 아이콘: 권장 20×20px(1.25rem) 정사각 SVG. span → <img class="location-dir-icon" src="…" width="20" height="20" alt=""> 로 교체 */
.location-dir-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  box-sizing: border-box;
}

span.location-dir-icon {
  display: block;
  border: 1px dashed var(--color-border);
  border-radius: 2px;
  background-color: var(--color-surface);
}

img.location-dir-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.location-dir-line {
  margin: 0 0 0.4rem;
  padding-inline-start: var(--location-dir-indent);
  font-family: var(--font-suit);
  font-size: 0.875rem;
  line-height: 1.65;
}

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

.location-dir-line--light {
  font-weight: 300;
}

.location-dir-route {
  margin: 0 0 1rem;
  padding-inline-start: var(--location-dir-indent);
}

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

.location-dir-route-no {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0 0.3rem;
  font-family: var(--font-suit);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ink);
}

/* 지하철 노선 배지(line-3.svg 등): 글자 높이에 맞춰 크기 조절 */
.location-dir-line-badge {
  display: block;
  flex-shrink: 0;
  height: 1.1em;
  width: auto;
}

/* 버스 목록 아래 안내 문구 */
.location-dir-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
}

/* about-us .about-us__rule 과 동일 (가운데 정렬 유지) */
.location-dir-rule {
  display: block;
  width: min(20rem, 90%);
  margin: var(--location-dir-rule-gap, 2rem) auto;
  border: 0;
  border-top: 1px solid var(--color-accent);
}

.location-dir-nav-hint {
  margin: 0.35rem 0 1rem;
  padding-inline-start: var(--location-dir-indent);
  font-family: var(--font-suit);
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-ink-muted);
}

.location-dir-nav-disclaimer {
  margin: -0.65rem 0 1rem;
  padding-inline-start: var(--location-dir-indent);
  font-family: var(--font-suit);
  font-size: 0.6875rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-ink-muted);
  opacity: 0.92;
}

/* 자차 내비: 한 줄 중앙 정렬, 컴팩트 카드형 — 버튼 3개 동일 너비, 뷰포트에 따라 넓어짐 */
.location-dir-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.25rem, 1.3vw, 0.45rem);
  box-sizing: border-box;
  width: min(86vw, 21rem);
  margin-inline: auto;
  margin-top: 0;
  --location-nav-icon-box: 1.55rem;
  --location-nav-label-global-offset-x: 0px;
  --location-nav-icon-global-offset-x: 0px;
}

/* 버튼 내부 레이아웃:
   - grid-template-columns: [아이콘 폭] [텍스트 영역]
   - column-gap: 아이콘과 텍스트 사이 간격
   - text-align: 텍스트 줄맞춤(보통 center 유지) */
.location-dir-nav-link {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: var(--location-nav-icon-box) 1fr;
  align-items: center;
  column-gap: 0.1rem;
  min-width: 0;
  min-height: 0;
  padding: 0.34rem 0.22rem;
  font-family: var(--font-suit);
  font-size: clamp(0.68rem, 2.8vw, 0.84rem);
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow:
    0 2px 8px rgba(90, 90, 90, 0.07),
    0 1px 3px rgba(90, 90, 90, 0.04);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  /* 개별 앱 규칙에서 값 설정됨 (아래 kakao/naver/tmap 블록에서 조절) */
  --location-nav-icon-local-offset-x: 0px;
  --location-nav-label-local-offset-x: 0px;
  --location-nav-icon-scale: 0.87;
}

.location-dir-nav-link:hover {
  background: var(--color-bg-inner);
  box-shadow:
    0 3px 10px rgba(90, 90, 90, 0.09),
    0 1px 4px rgba(90, 90, 90, 0.05);
}

.location-dir-nav-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* 아이콘 박스 위치/크기:
   - width/height: 아이콘 박스 크기
   - justify-self: start|center|end 로 좌우 위치 조절 */
.location-dir-nav-link__icon {
  flex-shrink: 0;
  width: var(--location-nav-icon-box);
  height: var(--location-nav-icon-box);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  justify-self: start;
  transform: translateX(
    calc(var(--location-nav-icon-global-offset-x) + var(--location-nav-icon-local-offset-x))
  );
}

.location-dir-nav-link__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--location-nav-icon-scale));
  transform-origin: center center;
}

/* 티맵만 개별 보정:
   - scale 값을 줄이면 더 작아지고, 키우면 더 커짐 */
.location-dir-nav-link[data-location-nav="tmap"] .location-dir-nav-link__icon img {
  --location-nav-icon-scale: 0.72;
}

/* 텍스트 위치:
   - justify-self: center 로 아이콘 오른쪽 영역의 가운데 배치
   - line-height: 텍스트 세로 여유
   - translateX 로 중심에서 아주 미세하게 좌/우 이동 */
.location-dir-nav-link__label {
  flex: 0 0 auto;
  justify-self: center;
  line-height: 1.25;
  word-break: keep-all;
  transform: translateX(
    calc(var(--location-nav-label-global-offset-x) + var(--location-nav-label-local-offset-x))
  );
}

/* 앱별 미세 보정 예시:
   - 값 단위: px 권장 (예: 0.5px, -1px)
   - label: 텍스트 좌/우 미세 이동
   - icon: 아이콘 박스 좌/우 미세 이동 */
.location-dir-nav-link[data-location-nav="kakao"] {
  --location-nav-label-local-offset-x: 0px;
  --location-nav-icon-local-offset-x: 5px;
}

.location-dir-nav-link[data-location-nav="naver"] {
  --location-nav-label-local-offset-x: -2px;
  --location-nav-icon-local-offset-x: 3px;
}

.location-dir-nav-link[data-location-nav="tmap"] {
  --location-nav-label-local-offset-x: -2px;
  --location-nav-icon-local-offset-x: 4px;
}

.gallery-carousel {
  --gallery-radius: 1rem;
  --gallery-dot-size: 0.42rem;
  --gallery-dot-gap: 0.42rem;
  touch-action: none;
}

.gallery-carousel__viewport {
  position: relative;
  width: min(100%, 22.5rem);
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--gallery-radius);
  background: rgba(255, 255, 255, 0.45);
  touch-action: none;
  overscroll-behavior: contain;
}

.gallery-carousel__viewport .swiper-wrapper {
  touch-action: none;
}

.gallery-slide.swiper-slide {
  width: 100%;
}

.gallery-slide__button {
  width: 100%;
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

.gallery-slide__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--color-surface);
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}

.gallery-carousel__dots {
  margin-top: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gallery-dot-gap);
  min-height: calc(var(--gallery-dot-size) + 0.2rem);
  touch-action: pan-y;
  user-select: none;
}

.gallery-carousel__dot {
  width: var(--gallery-dot-size);
  height: var(--gallery-dot-size);
  border: 0;
  border-radius: 999px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(107, 153, 176, 0.33);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.gallery-carousel__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.1);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.22s ease;
  touch-action: none;
}

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

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

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.gallery-lightbox__panel {
  position: relative;
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1;
  transform: scale(0.965);
  opacity: 0;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}

.gallery-lightbox.is-open .gallery-lightbox__panel {
  transform: scale(1);
  opacity: 1;
}

.gallery-lightbox__swiper {
  width: 100vw;
  height: 100dvh;
  position: relative;
  z-index: 1;
}

.gallery-lightbox__slide.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox__img {
  width: 100vw;
  height: 100dvh;
  display: block;
  object-fit: contain;
  border-radius: 0;
}

/* 사진 저장 방지: 길게 누르기(iOS·Android) 저장 메뉴, 드래그, 선택 차단 */
.cover-media,
.gallery-slide__img,
.gallery-lightbox__img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

.gallery-lightbox__close {
  top: 0.7rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.5rem;
  z-index: 3;
}

.gallery-lightbox__nav {
  bottom: 1rem;
  transform: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-size: 1.7rem;
  font-weight: 300;
  z-index: 2;
}

.gallery-lightbox__nav--prev {
  left: max(0.9rem, env(safe-area-inset-left));
}

.gallery-lightbox__nav--next {
  right: max(0.9rem, env(safe-area-inset-right));
}

.gallery-lightbox__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  min-width: 4.8rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  text-align: center;
  color: #fff;
  background: transparent;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  z-index: 2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.account-card {
  margin: 0;
  padding: 1.25rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  text-align: center;
}

.account-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
}

.account-bank {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.account-number,
.account-holder {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-ink-muted);
}

.account-number {
  margin-bottom: 0.25rem;
}

.account-card .label {
  display: inline-block;
  min-width: 4em;
  margin-right: 0.25rem;
  color: var(--color-ink);
  font-weight: 500;
}

.site-footer {
  padding: 2rem 0 3rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--color-ink-muted);
  background-color: var(--color-section-strip-b);
}

.site-footer p {
  margin: 0;
}

.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--color-ink);
  color: var(--color-bg-inner);
  font-family: var(--font-suit);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, 120%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s var(--reveal-ease),
    transform 0.35s var(--reveal-ease),
    visibility 0.35s;
}

.copy-toast.copy-toast--show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.copy-toast.copy-toast--hiding {
  opacity: 0;
  transform: translate(-50%, 0.75rem);
  visibility: hidden;
}

/* ——— PC: viewport ≥ 768px ——— */
@media (min-width: 768px) {
  :root {
    /* PC에서만 본문(카드) 컬럼을 조금 더 넓게 */
    --max-content: 520px;
  }

  .layout {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    /* 커버와 본문 사이: 아주 얇은 이음새 */
    gap: clamp(0.4rem, 1vw, 0.75rem);
    max-width: var(--max-invite-width);
    width: 100%;
    padding: 0 clamp(0.75rem, 2vw, 1.5rem);
    min-height: 100dvh;
  }

  .layout__visual {
    flex: 0 0 var(--cover-width-pc);
    width: var(--cover-width-pc);
    max-width: var(--cover-width-pc);
    min-width: 0;
    padding-inline: 0;
  }

  /* layout__visual 에 overflow:hidden 두면 sticky 가 동작하지 않음 — 클립은 .cover-hero 만 */
  .cover-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
  }

  .cover-hero {
    width: 100%;
    max-width: var(--cover-width-pc);
    margin-inline: auto;
  }

  .layout__copy {
    flex: 0 1 var(--max-content);
    max-width: var(--max-content);
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .layout__copy-inner {
    width: 100%;
    /* 세로 패딩 제거: 섹션 배경이 컬럼 상·하단까지 이어지도록 (가로만 유지) */
    padding: 0 clamp(1rem, 2.5vw, 1.5rem);
  }

  .section-inner {
    padding-inline: 0;
  }

  /* PC에서는 버튼 텍스트가 과하게 커 보이지 않도록 한 단계 낮춤 */
  .location-dir-nav-link {
    font-size: 0.74rem;
  }

  .gallery-lightbox__panel {
    width: 100vw;
    padding-inline: 0;
  }

  .gallery-lightbox__nav--prev {
    left: max(1.2rem, env(safe-area-inset-left));
  }

  .gallery-lightbox__nav--next {
    right: max(1.2rem, env(safe-area-inset-right));
  }

  .account-list {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    max-width: 17rem;
    margin-inline: auto;
  }

  .account-card {
    flex: none;
    max-width: none;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .copy-toast {
    transition-duration: 0.01ms;
  }
}
