/* ============================================================
 * 모바일 청첩장 스타일
 * 컨셉: 미니멀 & 따뜻한 톤 (아이보리/베이지 + 포인트 1색)
 * ============================================================ */

/* 게임 감성 픽셀 폰트 (둥근모꼴) — CHAPTER 라벨, Lv 뱃지 등 포인트에만 사용 */
@font-face {
  font-family: "DungGeunMo";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/DungGeunMo.woff") format("woff");
  font-weight: normal;
  font-display: swap;
}

:root {
  --bg-page: #efe9e1;        /* PC 양옆 배경 */
  --bg-card: #fdfbf7;        /* 본문 배경 (아이보리) */
  --bg-tint: #f6f0e8;        /* 섹션 교차 배경 (베이지) */
  --ink: #3f3a34;            /* 본문 글자 */
  --ink-soft: #8a8177;       /* 보조 글자 */
  --point: #b0745e;          /* 포인트 컬러 (테라코타 로즈) */
  --point-soft: #e8d5cc;
  --line: #e5ddd2;
  --serif: "Noto Serif KR", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg-page);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

.wrap {
  max-width: 430px;
  margin: 0 auto;
  background: var(--bg-card);
  box-shadow: 0 0 40px rgba(63, 58, 52, 0.08);
  overflow-x: hidden;
}

/* ---------- 공통 섹션 ---------- */
.section {
  padding: 72px 28px;
  text-align: center;
}
.section-tinted { background: var(--bg-tint); }

.section-label {
  font-family: "DungGeunMo", var(--serif), serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--point);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 28px;
}
.section-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

/* ---------- 스크롤 fade-in ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.on {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 1. 커버 ---------- */
.cover {
  padding: 64px 28px 72px;
  text-align: center;
}
.cover-eyebrow {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.45em;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.cover-photo {
  margin: 0 auto 36px;
  border-radius: 999px 999px 8px 8px;  /* 아치형 프레임 */
  overflow: hidden;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  background: var(--bg-tint);
}
.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-names {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}
.cover-name {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.lv-badge {
  font-family: "DungGeunMo", monospace;
  font-style: normal;
  font-size: 12px;
  color: var(--point);
  letter-spacing: 0.08em;
}
.cover-and {
  font-size: 13px;
  color: var(--point);
  font-weight: 400;
}
.cover-date {
  font-size: 15px;
  color: var(--ink);
}
.cover-venue {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- 2. 인사말 ---------- */
.greeting-message {
  font-size: 15px;
  line-height: 2.1;
  white-space: pre-line;
}
.ornament {
  color: var(--point);
  font-size: 14px;
  margin: 36px 0;
  opacity: 0.7;
}
.parents { font-size: 15px; }
.parents-line { margin: 8px 0; }
.parents-relation {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 10px 0 6px;
}
.parents-relation b { font-weight: 500; color: var(--ink); }
.parents-name { font-weight: 600; }

/* ---------- 3. 캘린더 & D-day ---------- */
.calendar-time {
  font-size: 14px;
  color: var(--ink-soft);
  margin: -16px 0 32px;
}
.calendar-box {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px 16px;
  margin-bottom: 36px;
  border: 1px solid var(--line);
}
.calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.calendar-table caption {
  font-family: var(--serif);
  font-size: 17px;
  margin-bottom: 14px;
  color: var(--point);
}
.calendar-table th {
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 6px 0;
}
.calendar-table th.sun, .calendar-table td.sun { color: #c77b6a; }
.calendar-table td {
  padding: 0;
  height: 40px;
}
.calendar-table td span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.calendar-table td.wedding-day span {
  background: var(--point);
  color: #fff;
  font-weight: 600;
}
.dday {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.dday-unit {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 64px;
  padding: 12px 6px;
}
.dday-unit b {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--point);
}
.dday-unit span {
  font-size: 11px;
  color: var(--ink-soft);
}
.dday-caption {
  font-size: 14px;
  color: var(--ink-soft);
}
.dday-caption b { color: var(--point); font-weight: 600; }

/* ---------- 4. 갤러리 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery-grid button {
  border: 0;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-tint);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-grid button:active img { transform: scale(1.06); }

/* ---------- 5. 오시는 길 ---------- */
.venue-info { margin-bottom: 24px; }
.venue-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}
.venue-address {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 6px;
}
.venue-tel a {
  font-size: 13px;
  color: var(--point);
  text-decoration: none;
}
.map-area {
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.map-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}
.map-placeholder-sub {
  font-size: 12px;
  line-height: 1.6;
}
.transport {
  text-align: left;
  font-size: 14px;
}
.transport-item {
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.transport-item:last-child { border-bottom: 0; }
.transport-label {
  font-size: 12px;
  color: var(--point);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.transport-item p:not(.transport-label) {
  color: var(--ink);
  white-space: pre-line;
}

/* ---------- 6. 마음 전하실 곳 (아코디언) ---------- */
.accordion {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--bg-card);
  text-align: left;
}
.accordion-head {
  width: 100%;
  border: 0;
  background: none;
  font-family: var(--serif);
  font-size: 15px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
}
.accordion-head::after {
  content: "⌄";
  color: var(--point);
  transition: transform 0.3s ease;
}
.accordion.open .accordion-head::after { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion.open .accordion-body { max-height: 400px; }
.account-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}
.account-info { font-size: 13px; }
.account-info b { display: block; font-size: 14px; font-weight: 600; }
.account-info span { color: var(--ink-soft); }
.copy-btn {
  flex-shrink: 0;
  border: 1px solid var(--point-soft);
  background: var(--bg-card);
  color: var(--point);
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
}
.copy-btn:active { background: var(--point-soft); }

/* ---------- 7. 연락하기 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 14px;
}
.contact-role {
  font-size: 12px;
  color: var(--point);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}
.contact-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 14px;
}
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  border: 1px solid var(--line);
}
.contact-actions a:active { background: var(--point-soft); }

/* ---------- 버튼 공통 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  border-radius: 999px;
  border: 0;
  font-size: 15px;
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.btn:active { opacity: 0.85; }
.btn-primary { background: var(--point); color: #fff; }
.btn-outline {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-kakao { background: #fee500; color: #191919; }
.btn-icon { font-size: 16px; }

/* ---------- 8. 방명록 ---------- */
.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  font-family: var(--sans);
  background: var(--bg-card);
  color: var(--ink);
  resize: none;
}
.guestbook-form input:focus,
.guestbook-form textarea:focus {
  outline: none;
  border-color: var(--point);
}
.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.guestbook-item {
  background: var(--bg-tint);
  border-radius: 14px;
  padding: 16px 18px;
}
.guestbook-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.guestbook-item-head b { font-size: 14px; font-weight: 600; }
.guestbook-item-head time { font-size: 11px; color: var(--ink-soft); }
.guestbook-item p { font-size: 14px; white-space: pre-line; }
.guestbook-empty {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 20px 0;
}

/* ---------- 10. 공유 ---------- */
.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- 11. 푸터 ---------- */
.footer {
  background: #3f3a34;
  color: #cfc8bf;
  padding: 56px 28px;
  text-align: center;
}
.footer-message {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 2;
  white-space: pre-line;
  margin-bottom: 24px;
}
.footer-next {
  font-family: "DungGeunMo", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--point-soft);
  margin-bottom: 20px;
}
.footer-bgm {
  font-size: 10px;
  letter-spacing: 0.05em;
  opacity: 0.45;
  margin-bottom: 18px;
}
.footer-copy {
  font-size: 11px;
  letter-spacing: 0.15em;
  opacity: 0.6;
}

/* ---------- 모험 오프닝 장면 ---------- */
.adventure {
  position: fixed;
  inset: 0;
  z-index: 250;
  overflow: hidden;
  cursor: pointer;
  /* 맑은 하늘 → 지평선 근처 따뜻한 빛 */
  background: linear-gradient(#93cbe6 0%, #c8e6f2 38%, #fdf2cc 58%, #fdf2cc 100%);
  transition: opacity 0.7s ease;
}
.adventure[hidden] { display: none; }
.adventure.fade { opacity: 0; pointer-events: none; }

/* 통합 장면 (언덕·길·성·햇살이 같은 좌표계)
 * 가로 화면에서도 성이 잘리지 않도록 세로(400:720) 스테이지를 중앙에 고정 */
.adv-world {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, calc(100vh * 0.5556));
  height: 100%;
}

/* 햇살: 성 뒤에서 방사되며 아주 천천히 회전 */
.adv-rays-g {
  opacity: 0;
  transition: opacity 1s ease 0.35s;
}
.adventure.play .adv-rays-g { opacity: 0.8; }
.adv-rays-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: ray-spin 60s linear infinite;
}
@keyframes ray-spin { to { transform: rotate(360deg); } }

/* 구름 (오른쪽은 하트 구름) */
.adv-cloud {
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease 0.8s, transform 1.4s ease 0.8s;
}
.adv-cloud-1 {
  top: 9%;
  left: 5%;
  width: 120px;
  transform: translateX(-16px);
}
.adv-cloud-2 {
  top: 6%;
  right: 8%;
  width: 60px;
  transform: translateX(16px);
}
.adventure.play .adv-cloud {
  opacity: 0.95;
  transform: translateX(0);
}

/* 구불길: 발밑에서 성문까지 펼쳐짐 */
.adv-road {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s ease 0.5s;
}
.adventure.play .adv-road { clip-path: inset(0 0 0 0); }

/* 동화 성: 언덕 위에서 통통 튀며 등장 */
.adv-castle-g {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scale(0.65);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s, opacity 0.4s ease 0.75s;
}
.adventure.play .adv-castle-g {
  transform: scale(1);
  opacity: 1;
}

/* 반짝이 */
.adv-sparkle {
  position: absolute;
  width: 16px;
  opacity: 0;
}
.adv-sparkle-1 { top: 22%; left: 20%; }
.adv-sparkle-2 { top: 13%; right: 26%; width: 12px; }
.adv-sparkle-3 { top: 37%; right: 13%; }
.adventure.play .adv-sparkle { animation: twinkle 1.3s ease-in-out infinite; }
.adventure.play .adv-sparkle-2 { animation-delay: 0.4s; }
.adventure.play .adv-sparkle-3 { animation-delay: 0.8s; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1); }
}

/* 좌우 덤불 커튼: 화면을 덮고 있다가 양옆으로 싹 걷힘 */
.adv-grass {
  position: absolute;
  top: -2%;
  height: 104%;
  width: 58%;
  transition: transform 1.15s cubic-bezier(0.55, 0.06, 0.35, 1) 0.15s;
}
.adv-grass-left { left: -4%; }
.adv-grass-right { right: -4%; }
.adventure.play .adv-grass-left {
  transform: translateX(-118%) rotate(-3deg);
}
.adventure.play .adv-grass-right {
  transform: translateX(118%) rotate(3deg);
}

/* ---------- 인트로 ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  cursor: pointer;
  padding: 0 32px;
  transition: opacity 0.8s ease;
}
.intro.hide {
  opacity: 0;
  pointer-events: none;
}
.intro-eyebrow {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--point);
}
.intro-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.9;
  white-space: pre-line;
}
/* 게임 타이틀 메뉴 (NEW GAME / CONTINUE) — 왼쪽 줄 맞춤 */
.intro-menu {
  margin-top: 34px;
  font-family: "DungGeunMo", monospace;
  font-size: 14px;
  letter-spacing: 0.06em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
  color: var(--ink);
}
.menu-cursor.ghost {
  visibility: hidden;
  animation: none;
}
.intro-menu-item.dim {
  color: var(--ink-soft);
  opacity: 0.75;
}
.menu-cursor {
  color: var(--point);
  animation: cursor-blink 1.1s step-end infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }
.intro-press {
  margin-top: 38px;
  font-family: "DungGeunMo", monospace;
  font-size: 15px;
  letter-spacing: 0.25em;
  color: var(--point);
  animation: intro-pulse 1.6s ease-in-out infinite;
}
.intro-hint {
  font-size: 11px;
  color: var(--ink-soft);
}
.intro-copy {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  left: 0;
  right: 0;
  font-family: "DungGeunMo", monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ink-soft);
  opacity: 0.6;
}
@keyframes intro-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-press, .menu-cursor { animation: none; }
}

/* ---------- 여정 진행바 ---------- */
.journey-progress {
  position: fixed;
  /* 걷는 두 사람이 잘리지 않도록 화면 상단에서 띄움 (노치 있는 폰은 safe-area만큼 추가) */
  top: calc(env(safe-area-inset-top, 0px) + 22px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 3px;
  z-index: 45;
  pointer-events: none;
}
#journey-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--point);
  opacity: 0.65;
  border-radius: 0 2px 2px 0;
}
/* 챕터 위치 눈금 */
.journey-tick {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 7px;
  transform: translateX(-50%);
  background: var(--point);
  opacity: 0.25;
  border-radius: 1px;
  transition: opacity 0.4s ease;
}
.journey-tick.passed { opacity: 0.75; }
.journey-walker {
  position: absolute;
  bottom: 1px;
  left: 0;
  transform: translateX(-50%);
  font-size: 21px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(63, 58, 52, 0.25));
}
/* 여정 끝에 도달하면 하트로 변신 */
.journey-walker.heart { animation: walker-pop 0.6s ease; }
@keyframes walker-pop {
  0% { transform: translateX(-50%) scale(0.4); }
  60% { transform: translateX(-50%) scale(1.25); }
  100% { transform: translateX(-50%) scale(1); }
}
.journey-walker.walking { animation: walker-bob 0.45s ease-in-out infinite; }
@keyframes walker-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-2.5px); }
}
@media (prefers-reduced-motion: reduce) {
  .journey-walker.walking { animation: none; }
}

/* ---------- 이야기 알림 (특정 지점 도달 시 떠오르는 문구) ---------- */
/* 반투명 카드 (배경이 은은히 비침) */
.story-toast {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 38px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 70;
  background: rgba(253, 251, 247, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(229, 221, 210, 0.5);
  border-radius: 16px;
  padding: 10px 22px;
  text-align: center;
  max-width: 250px;
  box-shadow: 0 4px 12px rgba(63, 58, 52, 0.07);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.story-toast.show {
  opacity: 0.82;
  transform: translateX(-50%) translateY(0);
}
.story-toast-badge {
  font-family: "DungGeunMo", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--point);
  margin-bottom: 3px;
}
.story-toast-date {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--point);
}
.story-toast-text {
  font-family: var(--serif);
  font-size: 14px;
  margin-top: 2px;
  word-break: keep-all;
}

/* ---------- BGM 토글 ---------- */
.bgm-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(4px);
  color: var(--ink-soft);
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(63, 58, 52, 0.12);
}
.bgm-toggle.playing {
  color: var(--point);
  border-color: var(--point-soft);
}
/* 재생 중 은은한 회전 */
.bgm-toggle.playing { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .bgm-toggle.playing { animation: none; }
}

/* PC에서는 콘텐츠 영역 오른쪽에 붙임 */
@media (min-width: 431px) {
  .bgm-toggle {
    right: calc(50% - 215px + 16px);
  }
}

/* ---------- 라이트박스 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 17, 14, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-body {
  width: 100%;
  max-width: 720px;
  padding: 0 16px;
  touch-action: pan-y;
}
.lightbox-body img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* ---------- 토스트 ---------- */
.toast {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(63, 58, 52, 0.92);
  color: #fff;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
