/* Public invitation page. Two page-wide fonts: Pretendard (default) and Nanum Myeongjo, chosen per invitation. */
:root,
.invite-font-pretendard {
  --invite-font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Segoe UI', sans-serif;
  --invite-serif: 'Nanum Myeongjo', 'Noto Serif KR', 'Apple Myungjo', serif;
}

.invite-font-myeongjo {
  --invite-font: 'Nanum Myeongjo', 'Noto Serif KR', 'Apple Myungjo', serif;
  --invite-serif: 'Nanum Myeongjo', 'Noto Serif KR', 'Apple Myungjo', serif;
}

:root {
  --invite-ink: #1b1b1b;
  --invite-body: #222;
  --invite-muted: #666;
  --invite-soft: #8a8a8a;
  --invite-line: #e3e3e3;
  --invite-card: #dcdcdc;
  --invite-dark: #555;
}

* { box-sizing: border-box; }

body.invite-page {
  margin: 0;
  background: #fff;
  color: var(--invite-ink);
  font-family: var(--invite-font);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.invite-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  padding-bottom: 36px;
}

.invite-hero {
  display: block;
  width: 100%;
  height: auto;
}

/* Main block: image, gallery name, title, short introduction, dates, small notes */
.invite-header {
  padding: 34px 36px 8px;
  text-align: center;
}

.invite-eyebrow {
  margin: 0 0 26px;
  line-height: 1;
}

.invite-logo {
  display: block;
  height: auto;
  margin: 0 auto;
}

.invite-logo-header { width: 164px; }
.invite-logo-card { width: 258px; max-width: 100%; margin-left: 0; }
.invite-logo-footer { width: 150px; }

.invite-header h1,
.invite-not-found h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.invite-short {
  margin: 22px 0 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--invite-body);
  white-space: pre-line;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.invite-dates {
  margin: 24px 0 0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.invite-notice,
.invite-event-note {
  max-width: 262px;
  margin: 16px auto 0;
  font-size: 10px;
  line-height: 1.7;
  color: #333;
  overflow-wrap: anywhere;
}

.invite-dates + .invite-notice {
  margin-top: 24px;
}

/* Sections */
.invite-block {
  padding: 40px 36px;
  text-align: center;
}

/* Slide-up on scroll; the script adds these classes, so the page stays fully visible without it. */
.invite-reveal-on .invite-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.invite-reveal-on .invite-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.invite-block-title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.invite-block-subtitle {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--invite-muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Event ticket */
.invite-event-title {
  margin: 0 0 20px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.invite-ticket {
  display: grid;
  grid-template-columns: 100px 1fr;
  text-align: left;
  border: 1.3px dotted #444;
  border-radius: 32px;
  background: #fff;
  overflow: hidden;
}

.invite-ticket-no-date {
  grid-template-columns: 1fr;
}

.invite-ticket-label,
.invite-ticket-date {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 8px;
  border-right: 1px solid #8c8c8c;
  font-family: var(--invite-serif);
  text-align: center;
}

.invite-ticket-label {
  font-size: 17px;
  line-height: 1.4;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.invite-ticket-date {
  flex-direction: column;
  font-size: 24px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.invite-ticket-info {
  margin: 0;
  padding: 12px 16px 4px 16px;
}

.invite-ticket-row {
  margin-bottom: 8px;
}

.invite-ticket-row dt {
  font-family: var(--invite-font);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.2em;
  color: #8a8f98;
}

.invite-ticket-row dd {
  margin: 0;
  font-family: var(--invite-serif);
  font-size: 14.5px;
  line-height: 1.25;
  color: #111;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

/* Long text (artist statement, invitation, gallery note) */
.invite-text {
  text-align: left;
}

.invite-text .invite-block-title,
.invite-text .invite-block-subtitle {
  text-align: center;
}

.invite-block-body {
  margin: 26px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--invite-body);
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.invite-credits {
  margin: 22px 0 0;
  text-align: right;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.invite-signature {
  display: block;
  margin: 8px 0 0 auto;
  max-width: 150px;
  max-height: 84px;
  height: auto;
}

/* Artist list */
.invite-artist-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.invite-artist-list li {
  padding: 4px 0;
  font-size: 17px;
  overflow-wrap: anywhere;
}

/* Opening hours */
.invite-hours-rows {
  margin-top: 30px;
  text-align: left;
}

.invite-hours-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 26px;
}

.invite-hours-days {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.invite-hours-days span {
  display: block;
  font-size: 16.5px;
  letter-spacing: 0.02em;
}

.invite-hours-days small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--invite-soft);
}

.invite-hours-time {
  flex: 0 0 auto;
  text-align: right;
}

.invite-hours-time span {
  display: block;
  font-size: 17.5px;
  font-variant-numeric: tabular-nums;
}

.invite-hours-time small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #9a9a9a;
}

/* Artwork preview */
.invite-artwork-list {
  margin: 30px 0 0;
  padding: 0 14px;
  list-style: none;
  display: grid;
  gap: 36px;
  text-align: left;
}

.invite-artwork {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.invite-artwork-image {
  flex: 0 0 118px;
  width: 118px;
  height: auto;
  display: block;
  background: #eee;
}

.invite-artwork-text {
  flex: 1;
  min-width: 0;
}

.invite-artwork-artist,
.invite-artwork-info {
  margin: 0;
  font-size: 13px;
  color: #333;
  overflow-wrap: anywhere;
}

.invite-artwork-title {
  margin: 3px 0 4px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.invite-artworks-note {
  max-width: 262px;
  margin: 40px auto 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--invite-body);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Pills (buttons) */
.invite-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.invite-pill[hidden] { display: none; }
.invite-pill:disabled { opacity: 0.5; cursor: not-allowed; }
.invite-pill-dark { background: var(--invite-dark); color: #fff; }
.invite-pill-light { background: #f6fbff; border-color: var(--invite-line); color: #111; }
.invite-pill-kakao { background: #ffd84d; border-color: #e3e3e3; color: #111; }

.invite-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--invite-muted);
}

.invite-status[data-state='warn'] { color: #a4361f; }

/* Guestbook */
.invite-guest-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  text-align: left;
}

.invite-guest-entry {
  padding: 14px 16px 16px;
  border-radius: 16px;
  background: var(--invite-card);
}

.invite-guest-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.invite-guest-meta time {
  color: #333;
  font-variant-numeric: tabular-nums;
}

.invite-guest-entry p {
  margin: 8px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.5;
}

.invite-empty {
  margin: 22px 0 0;
  color: var(--invite-muted);
  font-size: 14px;
}

.invite-empty[hidden] { display: none; }

.invite-guest-more {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 11px 0;
  border: 0;
  background: none;
  color: var(--invite-dark);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.invite-guest-more[hidden] { display: none; }

.invite-guest-write {
  margin: 24px auto 0;
  min-width: 132px;
}

.invite-guest-form {
  display: grid;
  gap: 12px;
}

.invite-guest-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--invite-muted);
}

.invite-guest-form input,
.invite-guest-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--invite-line);
  border-radius: 10px;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
  color: var(--invite-ink);
}

.invite-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.invite-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(20, 20, 20, 0.5);
  text-align: left;
}

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

.invite-modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 22px 22px 26px;
  border-radius: 18px 18px 0 0;
  background: #fff;
}

.invite-modal-sheet h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.invite-modal-sheet .invite-button-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.invite-modal-sheet .invite-pill {
  flex: 1;
  min-height: 42px;
}

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

/* Location */
.invite-location {
  padding: 0 0 34px;
  text-align: left;
}

.invite-map {
  width: 100%;
  height: 300px;
  background: var(--invite-card);
}

.invite-map[hidden] { display: none; }

.invite-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 13px;
}

.invite-location-card {
  position: relative;
  margin: 24px 20px 0;
  padding: 22px 20px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.invite-location.has-map .invite-location-card {
  margin-top: -72px;
}

.invite-location-card .invite-block-title {
  font-size: 19px;
  font-weight: 500;
}

.invite-location-card .invite-block-subtitle {
  margin-top: 1px;
  font-size: 15px;
}

.invite-location-name {
  margin: 20px 0 12px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
}

.invite-location-address {
  margin: 8px 0 0;
  font-size: 15.5px;
  color: var(--invite-body);
  overflow-wrap: anywhere;
}

.invite-location-address2 {
  margin: 2px 0 0;
  font-size: 13px;
  color: #777;
  overflow-wrap: anywhere;
}

.invite-parking {
  margin-top: 24px;
}

.invite-parking h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.invite-parking p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #777;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.invite-location-copy {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  background: var(--invite-dark);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.invite-location-copy:disabled { opacity: 0.5; cursor: not-allowed; }

.invite-location-card .invite-status {
  margin: 8px 0 0;
  text-align: center;
}

/* Contact */
.invite-contact-card {
  width: 100%;
  max-width: 300px;
  margin: 26px auto 0;
  padding: 18px 16px 18px;
  border-radius: 16px;
  background: var(--invite-card);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  text-align: left;
}

.invite-contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

.invite-contact-phone { font-size: 20px; }
.invite-contact-email { font-size: 14px; }

.invite-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.invite-contact-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.invite-contact-actions .invite-pill {
  flex: 1;
  padding: 0 10px;
  min-height: 44px;
}

/* Share */
.invite-share-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.invite-share-buttons .invite-pill {
  min-width: 104px;
  min-height: 44px;
}

.invite-footer {
  padding: 26px 22px 0;
  text-align: center;
  font-size: 15px;
  color: var(--invite-body);
}

.invite-not-found {
  padding: 80px 22px;
  text-align: center;
}

@media (min-width: 600px) {
  body.invite-page {
    padding: 24px 0;
    background: #f1f1f1;
  }

  .invite-shell {
    min-height: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  }

  .invite-modal { align-items: center; }
  .invite-modal-sheet { border-radius: 18px; }
}
