/* ═══════════════════════════════════════════════════════════
   Variables & Reset
═══════════════════════════════════════════════════════════ */
:root {
  --forest:       #2A3B27;
  --forest-mid:   #3d5535;
  --sage:         #70805D;
  --sage-light:   #8a9c77;
  --blue:         #55738D;
  --blue-light:   #96A7B6;
  --cream:        #CBC8C4;
  --cream-light:  #F2F0ED;
  --bg:           #FAFAF8;
  --text:         #1e2a1c;
  --text-mid:     #4a5e47;
  --white:        #ffffff;

  --shadow-sm:  0 1px 4px rgba(42, 59, 39, 0.08);
  --shadow-md:  2px 4px 16px rgba(42, 59, 39, 0.13);
  --shadow-pol: 2px 5px 18px rgba(42, 59, 39, 0.16);
  --radius:     8px;
  --radius-sm:  4px;

  /* safe area padding for notched phones */
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 300;
  font-size: 16px; /* prevents iOS auto-zoom on inputs */
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

img  { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ═══════════════════════════════════════════════════════════
   Page Layout
═══════════════════════════════════════════════════════════ */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-header,
.site-main,
.site-footer {
  width: 100%;
  max-width: 520px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════
   Language Toggle
═══════════════════════════════════════════════════════════ */
.lang-toggle {
  background: none;
  border: 1px solid var(--cream);
  border-radius: 20px;
  padding: 0.25rem 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: border-color 0.15s;
  margin: 0.75rem auto 0;
}

.lang-toggle:hover { border-color: var(--sage); }

.lang-opt {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--cream);
  transition: color 0.15s;
}

.lang-opt.active {
  color: var(--forest);
  font-weight: 500;
}

.lang-sep {
  font-size: 0.6rem;
  color: var(--cream);
}

/* ═══════════════════════════════════════════════════════════
   Header
═══════════════════════════════════════════════════════════ */
.site-header { padding-top: 2rem; text-align: center; }

.botanical {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 0.5rem;
  display: block;
}

.botanical--flip { transform: scaleY(-1); margin-top: 0.5rem; margin-bottom: 0; }

.site-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.6rem, 9.5vw, 3.8rem);
  font-weight: 600;
  color: var(--forest);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.site-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

.header-rule {
  width: 44px;
  height: 1px;
  background: var(--cream);
  margin: 0.875rem auto 0;
}

/* ═══════════════════════════════════════════════════════════
   Tab Nav
═══════════════════════════════════════════════════════════ */
.tab-nav {
  display: flex;
  width: 100%;
  max-width: 520px;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--cream-light);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem 0.65rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
  min-height: 48px; /* mobile touch target */
}

.tab-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.tab-btn:hover { color: var(--forest); }
.tab-btn.active { color: var(--forest); border-bottom-color: var(--forest); }

/* ═══════════════════════════════════════════════════════════
   Main
═══════════════════════════════════════════════════════════ */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 1.5rem;
  padding-bottom: calc(1.5rem + var(--safe-b));
}

/* ═══════════════════════════════════════════════════════════
   Screens
═══════════════════════════════════════════════════════════ */
.screen { animation: fadeUp 0.3s ease both; }
.screen.hidden { display: none !important; }

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

.center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem 0;
}

.screen-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  font-weight: 400;
  color: var(--forest);
  letter-spacing: 0.03em;
}

.screen-text {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 300px;
}

.hint-text {
  font-size: 0.75rem;
  color: var(--cream);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.75rem;
}

/* ─── Spinner ──────────────────────────────────────────── */
.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--cream-light);
  border-top-color: var(--sage);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status-icon   { width: 48px; height: 48px; color: var(--blue-light); margin-bottom: 0.25rem; }
.leaf-deco     { width: 64px; height: 44px; margin-bottom: 0.25rem; }

/* ═══════════════════════════════════════════════════════════
   Name Entry
═══════════════════════════════════════════════════════════ */
.name-form {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 0.25rem;
}

.field-wrap { position: relative; }

.field-input {
  width: 100%;
  padding: 1rem 1rem 0.6rem;
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-sm);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; /* ≥16px prevents iOS zoom */
  font-weight: 400;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.field-input:focus { border-color: var(--blue); }

.field-label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  transition: all 0.18s ease;
}

.field-input:not(:placeholder-shown) ~ .field-label,
.field-input:focus ~ .field-label {
  top: 0.4rem;
  transform: none;
  font-size: 0.6rem;
  color: var(--blue);
}

/* ═══════════════════════════════════════════════════════════
   Upload Screen
═══════════════════════════════════════════════════════════ */
.upload-header { margin-bottom: 0.875rem; }

.welcome-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  font-weight: 400;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.welcome-name { font-style: italic; color: var(--blue); }

.change-name-btn {
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--cream);
  padding: 4px 6px;
  transition: color 0.15s;
  min-height: 36px;
  min-width: 36px;
}
.change-name-btn:hover { color: var(--sage); }

.upload-intro { font-size: 0.85rem; color: var(--text-mid); margin-top: 0.2rem; }

/* Upload submit — above the drop zone, sticky on scroll */
.upload-submit {
  margin-bottom: 0.75rem;
}

/* ─── Drop Zone ──────────────────────────────────────────── */
.drop-zone {
  border: 1.5px dashed var(--blue-light);
  border-radius: var(--radius);
  background: var(--white);
  padding: 2rem 1.25rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.drop-zone:hover,
.drop-zone.drag-over { border-color: var(--blue); background: rgba(85,115,141,0.04); }

.drop-inner { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

.upload-cloud { width: 38px; height: 38px; color: var(--blue-light); }

.drop-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
}

.drop-or    { font-size: 0.7rem; color: var(--cream); text-transform: uppercase; letter-spacing: 0.1em; }
.drop-limits { font-size: 0.7rem; color: var(--cream); margin-top: 0.1rem; }

/* Processing state while resize runs */
.drop-zone--processing { pointer-events: none; opacity: 0.6; }
.drop-zone--processing .drop-text::after { content: ' · resizing…'; color: var(--blue); }

/* ─── File Queue ─────────────────────────────────────────── */
.file-queue { margin-top: 0.875rem; display: flex; flex-direction: column; gap: 0.5rem; }

.file-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.file-card.success { border-color: var(--sage-light); }
.file-card.error   { border-color: #d9a0a0; background: #fff8f8; }

.file-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.file-thumb-video {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-light);
  color: var(--blue);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}
.file-thumb-video svg { width: 20px; height: 20px; }

.file-info  { flex: 1; min-width: 0; }

.file-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.file-size {
  display: block;
  font-size: 0.7rem;
  color: var(--text-mid);
  margin-top: 2px;
}

.file-status        { display: block; font-size: 0.7rem; margin-top: 3px; }
.file-status.uploading { color: var(--blue); }
.file-status.done      { color: var(--sage); }
.file-status.error     { color: #b84a4a; }

.progress-bar  { height: 3px; background: var(--cream-light); border-radius: 2px; overflow: hidden; margin-top: 5px; }
.progress-fill { height: 100%; background: var(--blue); width: 0%; transition: width 0.15s ease; border-radius: 2px; }
.file-card.success .progress-fill { background: var(--sage); }

.file-remove {
  background: none;
  border: none;
  font-size: 1rem;
  line-height: 1;
  color: var(--cream);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-remove:hover { color: var(--text); background: var(--cream-light); }

/* ═══════════════════════════════════════════════════════════
   Gallery — Polaroid Grid
═══════════════════════════════════════════════════════════ */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0.5rem 0 5rem; /* bottom padding for FAB clearance */
  justify-content: center;
}

/* Polaroid card */
.gallery-card {
  width: calc(50% - 7px);
  background: var(--white);
  padding: 7px 7px 0;
  box-shadow: var(--shadow-pol);
  transform: rotate(var(--r, 0deg));
  transform-origin: center 40%;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.gallery-card:hover,
.gallery-card:active {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 4px 8px 28px rgba(42, 59, 39, 0.22);
  z-index: 2;
  position: relative;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Video card */
.gallery-card.is-video .gallery-play {
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(100% - 44px); /* exclude caption strip */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 59, 39, 0.2);
}

.gallery-card { position: relative; }

.gallery-play-icon {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.88);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
}
.gallery-play-icon svg { width: 14px; height: 14px; margin-left: 2px; }

/* Video placeholder (no thumbnail) */
.gallery-video-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--cream-light);
  color: var(--blue-light);
  font-size: 0.65rem;
  text-align: center;
  padding: 8px;
}
.gallery-video-placeholder svg { width: 24px; height: 24px; }

/* Always-visible caption strip (below the image, inside polaroid padding) */
.gallery-card-info {
  padding: 5px 2px 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
}

.gallery-guest {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.75rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.gallery-time {
  font-size: 0.62rem;
  color: var(--cream);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Empty state */
.gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-mid);
  font-size: 0.88rem;
  line-height: 1.6;
}
.gallery-empty svg { width: 48px; height: 48px; color: var(--cream); }

.gallery-loading { display: flex; justify-content: center; padding: 1.5rem 0; }

.load-more { display: block; width: 100%; margin-top: 0.5rem; margin-bottom: 5rem; }

/* ═══════════════════════════════════════════════════════════
   Done Screen
═══════════════════════════════════════════════════════════ */
.done-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 600;
  color: var(--forest);
  line-height: 1.1;
}

.done-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
}
.done-subtitle em { font-style: italic; color: var(--blue); }

.done-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
  max-width: 280px;
}

/* Polaroid preview (done screen) */
.preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 1.25rem 0 0.75rem;
}

.polaroid {
  background: var(--white);
  padding: 7px 7px 24px;
  box-shadow: var(--shadow-md);
  transform: rotate(var(--r, 0deg));
  width: 110px;
  flex-shrink: 0;
}
.polaroid img { width: 100%; height: 86px; object-fit: cover; display: block; }
.polaroid-caption {
  font-size: 0.58rem;
  color: var(--text-mid);
  text-align: center;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Be Vietnam Pro', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   Buttons
═══════════════════════════════════════════════════════════ */
.btn-primary {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--forest);
  color: var(--white);
  border: 1px solid var(--forest);
  border-radius: var(--radius-sm);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.18s, color 0.18s;
  min-height: 56px;
}

.btn-primary:hover    { background: var(--forest-mid); border-color: var(--forest-mid); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-arrow { margin-left: 0.3em; }

.btn-outline {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
  border-radius: var(--radius-sm);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.18s, color 0.18s;
  min-height: 48px;
}
.btn-outline:hover { background: var(--forest); color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   Floating Upload Button (FAB)
═══════════════════════════════════════════════════════════ */
.upload-fab {
  position: fixed;
  bottom: calc(1.5rem + var(--safe-b));
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1.25rem 0 1rem;
  height: 50px;
  border-radius: 25px;
  background: var(--forest);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 18px rgba(42, 59, 39, 0.35);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.2s ease, background 0.15s, box-shadow 0.2s;
  animation: fabPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  -webkit-tap-highlight-color: transparent;
}
.upload-fab svg { width: 18px; height: 18px; flex-shrink: 0; }
.upload-fab:hover  { background: var(--forest-mid); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(42,59,39,0.45); }
.upload-fab:active { transform: translateY(0); }

@keyframes fabPop {
  from { opacity: 0; transform: scale(0.7) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   Lightbox
═══════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 16, 10, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0 1.5rem;
  animation: fadeIn 0.2s ease;
  touch-action: pan-y;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 1rem));
  right: 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 2;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* Prev / Next nav arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  z-index: 2;
  padding-bottom: 2px; /* optical centering of › ‹ */
}
.lightbox-prev { left: 0.875rem; }
.lightbox-next { right: 0.875rem; }
.lightbox-nav:hover     { background: rgba(255,255,255,0.22); }
.lightbox-nav:disabled  { opacity: 0.2; cursor: default; pointer-events: none; }

.lightbox-media {
  max-width: min(90vw, 600px);
  max-height: calc(100dvh - 9rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: calc(100dvh - 9rem);
  object-fit: contain;
  border-radius: var(--radius-sm);
  user-select: none;
  -webkit-user-drag: none;
}

#lightbox-video {
  max-width: 100%;
  max-height: calc(100dvh - 9rem);
  border-radius: var(--radius-sm);
  outline: none;
}

.lightbox-caption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.lightbox-guest { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-style: italic; color: rgba(255,255,255,0.85); }
.lightbox-time  { font-size: 0.7rem; color: rgba(255,255,255,0.4); letter-spacing: 0.04em; }

/* ═══════════════════════════════════════════════════════════
   Gallery card — delete button
═══════════════════════════════════════════════════════════ */
.gallery-delete-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  transform: translate(50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transition: opacity 0.18s ease, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.gallery-delete-btn svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; }
.gallery-card:hover .gallery-delete-btn,
.gallery-card:focus-within .gallery-delete-btn { opacity: 1; }
.gallery-delete-btn:hover { background: #f0f0f0; }
.gallery-delete-btn:disabled { opacity: 0.35 !important; cursor: default; pointer-events: none; }
/* Always visible on touch-primary devices */
@media (hover: none) { .gallery-delete-btn { opacity: 0.9; } }

/* Pending removal badge */
.gallery-pending-badge {
  position: absolute;
  bottom: 36px; /* above caption strip */
  left: 0;
  right: 0;
  background: rgba(155, 100, 20, 0.82);
  color: #fff;
  font-size: 0.58rem;
  font-family: 'Be Vietnam Pro', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 3px 6px;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   Delete confirmation modal
═══════════════════════════════════════════════════════════ */
.delete-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 16, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.18s ease;
}

.delete-modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 8px 40px rgba(42, 59, 39, 0.28);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.delete-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--forest);
  text-align: center;
}

.delete-modal-meta {
  font-size: 0.82rem;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.delete-modal-filename {
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
}

.delete-modal-guest {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--blue);
}

.delete-modal-hint {
  font-size: 0.78rem;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.5;
  padding: 0.25rem 0.5rem;
  background: var(--cream-light);
  border-radius: var(--radius-sm);
}

.delete-modal-actions {
  display: flex;
  gap: 0.625rem;
}

.delete-modal-actions .btn-outline {
  flex: 1;
  padding: 0.7rem 0.5rem;
  font-size: 0.78rem;
}

.btn-danger {
  flex: 1;
  display: block;
  padding: 0.7rem 0.5rem;
  background: #9b2020;
  color: var(--white);
  border: 1px solid #9b2020;
  border-radius: var(--radius-sm);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 44px;
}
.btn-danger:hover    { background: #7d1a1a; border-color: #7d1a1a; }
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════
   Footer
═══════════════════════════════════════════════════════════ */
.site-footer { padding-bottom: calc(1.5rem + var(--safe-b)); text-align: center; }
.footer-rule { width: 44px; height: 1px; background: var(--cream); margin: 0 auto 0.5rem; }
.footer-text { font-family: 'Dancing Script', cursive; font-size: 1.05rem; color: var(--cream); margin-top: 0.25rem; }

/* ═══════════════════════════════════════════════════════════
   Utility
═══════════════════════════════════════════════════════════ */
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   Responsive
═══════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .site-header, .site-main, .site-footer { padding-left: 0.875rem; padding-right: 0.875rem; }
  .gallery-card { width: calc(50% - 7px); }
  .polaroid { width: 96px; }
  .polaroid img { height: 76px; }
}

@media (min-width: 480px) {
  .gallery-grid { gap: 16px; }
  .gallery-card { width: calc(33.333% - 11px); }
}
