/* ─────────────────────────────────────────────────────────────────────────
   lux-gallery.css
   Extracted from WeddingGallery.js's LUXURY_CSS template string —
   identical rules, now served as a real stylesheet instead of being
   injected via JS after mount. See patch-optimize-v1.mjs for why.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Fraunces (hero + display) · Manrope (body) ─────────────────────────── */
/* Fonts are loaded via <link> in index.html — no @import needed here. */

/* ── DESIGN TOKENS ─────────────────────────────────────────────────────── */
:root {
  /* Palette — original, unchanged */
  --page-bg:       #fce8ef;
  --page-bg-deep:  #f9d5e2;
  --white:         #ffffff;
  --white-off:     #fdfbfc;
  --pink:          #fce8ef;
  --pink-deep:     #f9d5e2;
  --pink-mid:      #f0c2d0;
  --pink-dark:     #c4748e;
  --pink-border:   rgba(196,116,142,0.20);
  --pink-shadow:   rgba(196,116,142,0.10);
  --gold:          #b8904a;
  --gold-light:    #d4b47a;
  --gold-pale:     #efe0c2;
  --gold-border:   rgba(184,144,74,0.30);
  --gold-glow:     rgba(184,144,74,0.15);
  --ink:           #1c0f14;
  --ink-90:        rgba(28,15,20,0.90);
  --ink-80:        rgba(28,15,20,0.80);
  --ink-60:        rgba(28,15,20,0.60);
  --ink-40:        rgba(28,15,20,0.40);
  --ink-20:        rgba(28,15,20,0.20);
  --ink-08:        rgba(28,15,20,0.08);

  /* Typography — overhauled */
  --font-hero:    'Fraunces', Georgia, serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  /* Motion */
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-cinematic: cubic-bezier(0.22, 0.68, 0, 1.2);
  --ease-press:     cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
  background: var(--page-bg);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Single-pixel elegant scrollbar */
::-webkit-scrollbar { width: 1px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--pink-border); }

/* ── KEYFRAMES ─────────────────────────────────────────────────────────── */

/* Press-reveal: clip from bottom, like ink absorbed into vellum */
@keyframes pressReveal {
  from { clip-path: inset(0 0 100% 0); opacity: 0.4; }
  to   { clip-path: inset(0 0 0% 0);   opacity: 1; }
}

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

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

@keyframes lineExpand {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 1; }
}
@keyframes shimmerGradient {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes goldRipple {
  0%   { box-shadow: 0 0 0 0 rgba(184,144,74,0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(184,144,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,144,74,0); }
}

/* ── AMBIENT BACKGROUND ─────────────────────────────────────────────────── */
.lux-bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}

/* Layered radial wash — warmer toward top, deeper rose at bottom edge */
.lux-bg-canvas::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%,  rgba(249,213,226,0.60) 0%, transparent 68%),
    radial-gradient(ellipse 55% 45% at 92% 95%,  rgba(196,116,142,0.16) 0%, transparent 58%),
    radial-gradient(ellipse 45% 35% at 5%  55%,  rgba(184,144,74,0.07)  0%, transparent 52%),
    radial-gradient(ellipse 70% 30% at 50% 110%, rgba(196,116,142,0.09) 0%, transparent 50%);
}

/* Fine grain texture — linen-like, more visible than before */
.lux-bg-canvas::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.032'/%3E%3C/svg%3E");
  background-size: 512px 512px;
  mix-blend-mode: multiply;
  opacity: 0.75;
}

/* ── PAGE WRAPPER ───────────────────────────────────────────────────────── */
.lux-page {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 12px 140px;
}
@media (min-width: 640px)  { .lux-page { padding: 0 40px 140px; } }
@media (min-width: 960px)  { .lux-page { padding: 0 56px 140px; } }
@media (max-width: 479px)  { .lux-page { padding: 0 8px 72px; } }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.lux-hero {
  padding: 96px 0 72px;
  text-align: center;
}

/* Eyebrow — tiny spaced caps, flanked by hairlines that grow outward */
.lux-pretitle {
  font-family: var(--font-body);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.44em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-bottom: 36px;
  animation: fadeIn 1.4s ease 0.1s both;
}
.lux-pretitle::before, .lux-pretitle::after {
  content: ''; display: block; height: 0.5px;
  width: clamp(24px, 5vw, 48px);
  animation: lineExpand 1.6s var(--ease-out) 0.3s both;
}
.lux-pretitle::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.lux-pretitle::after  { background: linear-gradient(90deg, var(--gold), transparent); }

/* Names — weight-contrast pair: heavy display vs. delicate serif */
.lux-names { display: flex; flex-direction: column; align-items: center; overflow: visible; }

.lux-name {
  font-family: var(--font-hero);
  font-style: italic; font-weight: 400;
  font-size: clamp(72px, 18vw, 150px);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ink);
  display: block;
  animation: pressReveal 1.0s var(--ease-press) both;
}
.lux-name:first-child { animation-delay: 0.20s; }
.lux-name:last-child  {
  animation-delay: 0.52s;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(78px, 20vw, 164px);
  letter-spacing: 0.015em;
  padding-right: 0.12em; /* room for italic glyph overhang — prevents 'k' clip */
  color: var(--ink-60);
}

/* Connector row — date + location typography replacing the ampersand */
.lux-connector-row {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin: 20px 0 6px;
  animation: fadeIn 1s ease 0.9s both;
  width: 100%;
}
.lux-connector-rule {
  flex: 1; height: 0.5px; max-width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold-border));
}
.lux-connector-rule.r { background: linear-gradient(90deg, var(--gold-border), transparent); }
.lux-connector-center {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 20px; gap: 4px;
}
.lux-connector-amp {
  font-family: var(--font-display);
  font-style: italic; font-weight: 300;
  font-size: clamp(13px, 2.8vw, 18px);
  color: var(--gold); letter-spacing: 0.18em;
  line-height: 1;
}
.lux-connector-dot { width: 3px; height: 3px; background: var(--gold-border); border-radius: 50%; }

/* Date stamp */
.lux-date-row {
  margin-top: 22px;
  animation: fadeIn 1s ease 1.0s both;
}
.lux-date-txt {
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 400; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--ink-40);
}

/* ── INVITATION TEXT ────────────────────────────────────────────────────── */
.lux-invite-plain {
  margin: 52px auto;
  max-width: 560px;
  text-align: center;
  animation: fadeUp 1.1s var(--ease-cinematic) 0.1s both;
}
.lux-invite-body {
  font-family: var(--font-display);
  font-style: italic; font-weight: 300;
  font-size: clamp(15px, 3.8vw, 20px);
  line-height: 2.1; letter-spacing: 0.02em;
  color: var(--ink-60);
}

.lux-hashtag-wrap { margin-top: 28px; }
.lux-hashtag {
  font-family: var(--font-hero);
  font-style: italic; font-weight: 400;
  font-size: clamp(22px, 6vw, 44px);
  line-height: 1.1; letter-spacing: -0.01em;
  display: inline;
}
.lux-ht-gold { color: var(--gold); }
.lux-ht-ink  { color: var(--ink); }

.lux-cta-hint {
  margin-top: 28px;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 300; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-40);
}
.lux-arrow {
  display: block; margin: 16px auto 0;
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--gold-border), transparent);
}

/* ── SECTION EYEBROW — flush-left editorial label ───────────────────────── */
.lux-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 64px 0 20px;
}
.lux-eyebrow-label {
  font-family: var(--font-body);
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.38em;
  text-transform: uppercase; color: var(--pink-dark);
  white-space: nowrap;
}
.lux-eyebrow-rule {
  flex: 1; height: 0.5px;
  background: linear-gradient(90deg, rgba(196,116,142,0.35), transparent);
}

/* ── INNER SECTION LABEL — offset, reduced ──────────────────────────────── */
.lux-inner-label-row {
  display: flex; align-items: center; gap: 10px;
  margin: 32px 0 20px;
  padding: 0 4px;
}
.lux-inner-label-txt {
  font-family: var(--font-body);
  font-size: 9px; font-weight: 500; letter-spacing: 0.30em;
  text-transform: uppercase; color: var(--ink-40); white-space: nowrap;
}
.lux-inner-label-rule {
  flex: 1; height: 0.5px;
  background: linear-gradient(90deg, rgba(184,144,74,0.20), transparent);
}

/* ── VIDEO MOMENTS ──────────────────────────────────────────────────────── */
.lux-stories-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.lux-stories-title {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: clamp(18px, 4.2vw, 24px); color: var(--ink);
  letter-spacing: 0.01em;
}
.lux-stories-sub {
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 300; letter-spacing: 0.04em;
  color: var(--ink-40); margin-top: 5px;
}
/* Stories strip */
.lux-stories-strip {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 4px 2px 18px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.lux-stories-strip::-webkit-scrollbar { height: 1px; }
.lux-stories-strip::-webkit-scrollbar-thumb { background: var(--gold-border); }

/* Story tiles — now portrait-ratio with heavier border presence */
.lux-story-add {
  flex-shrink: 0; width: 96px; height: 170px;
  background: linear-gradient(160deg, var(--white-off) 0%, rgba(252,232,239,0.55) 100%);
  border: 0.5px solid var(--pink-border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; cursor: pointer; transition: all .35s var(--ease-out); scroll-snap-align: start;
  box-shadow: 0 2px 12px var(--pink-shadow), 0 1px 0 rgba(255,255,255,0.7) inset;
  position: relative;
}
.lux-story-add::after {
  content: '';
  position: absolute; inset: 4px;
  border: 0.5px solid rgba(196,116,142,0.12);
  pointer-events: none;
}
.lux-story-add:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px var(--pink-shadow), 0 1px 0 rgba(255,255,255,0.8) inset;
}
.lux-story-add-ring {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(196,116,142,0.07);
  border: 0.5px solid rgba(184,144,74,0.35);
  display: flex; align-items: center; justify-content: center; transition: all .3s;
}
.lux-story-add:hover .lux-story-add-ring { animation: goldRipple 1.3s ease-out infinite; }
.lux-story-add-label {
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 400; letter-spacing: 0.07em;
  color: var(--ink-60); text-align: center; line-height: 1.6;
}

.lux-story-ph {
  flex-shrink: 0; width: 96px; height: 170px;
  scroll-snap-align: start; overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--white-off) 0%, rgba(249,213,226,0.45) 100%);
  border: 0.5px solid var(--pink-border);
  box-shadow: 0 2px 12px var(--pink-shadow), 0 1px 0 rgba(255,255,255,0.7) inset;
}
.lux-story-ph-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.lux-story-ph-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(196,116,142,0.06);
  border: 0.5px dashed rgba(196,116,142,0.45);
  display: flex; align-items: center; justify-content: center;
}
.lux-story-ph-txt {
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 300; letter-spacing: 0.05em;
  color: var(--ink-40); text-align: center;
}
.lux-shimmer {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.14);
  animation: shimmer 1.8s ease-in-out infinite;
  pointer-events: none;
  contain: strict;
}

/* Play-icon overlay on video story thumbnails */
.lux-story-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.lux-story-play::before {
  content: '';
  position: absolute; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,0.32); border: 0.5px solid rgba(255,255,255,0.5);
}
.lux-story-play svg { position: relative; z-index: 1; margin-left: 2px; }

/* Story thumbnail — <canvas> or <img> poster shown before user taps */
.lux-story-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 10px;
  background: var(--pink-deep);
}
/* Video inside the strip is hidden by default; only revealed in the
   full-screen reels viewer, never pre-loaded in the strip itself */
.lux-story-video-hidden {
  display: none;
}

@media (min-width: 480px) {
  .lux-story-add, .lux-story-ph { width: 112px; height: 196px; }
}

/* ── UPLOAD SECTION ─────────────────────────────────────────────────────── */
.lux-upload-simple {
  display: flex; flex-direction: column; align-items: center;
  gap: 18px; padding: 4px 0;
  animation: fadeUp 1.1s var(--ease-cinematic) 0.08s both;
}

/* Primary CTA — full-width on mobile, auto on desktop */
.lux-btn-upload {
  display: inline-flex; align-items: center; gap: 13px;
  font-family: var(--font-body); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 11px 20px;
  background: var(--ink); color: var(--pink);
  border: none; cursor: pointer;
  transition: all .35s var(--ease-out);
  box-shadow: 0 8px 28px rgba(28,15,20,0.20), 0 1px 0 rgba(255,255,255,0.07) inset;
  position: relative; overflow: hidden;
}
@media (min-width: 640px) {
  .lux-btn-upload { font-size: 11px; letter-spacing: 0.26em; padding: 18px 52px; }
}
/* Gold sweep on hover — restrained */
.lux-btn-upload::after {
  content: '';
  position: absolute; top: 0; left: -120%; width: 80%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184,144,74,0.10), transparent);
  transition: left 0.55s var(--ease-out);
}
.lux-btn-upload:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(28,15,20,0.26); }
@media (hover: none) { .lux-btn-upload:hover { transform: none; } }
.lux-btn-upload:hover::after { left: 140%; }

/* Corner registration marks — photo-frame L-brackets at each corner */
.lux-upload-corner {
  position: absolute;
  width: 8px; height: 8px;
  pointer-events: none; z-index: 2;
  opacity: 0.55;
  transition: opacity 0.35s var(--ease-out);
}
.lux-btn-upload:hover .lux-upload-corner { opacity: 1; }
.lux-upload-corner::before,
.lux-upload-corner::after {
  content: '';
  position: absolute;
  background: var(--gold-light);
}
.lux-upload-corner::before { width: 1px; height: 8px; }
.lux-upload-corner::after  { width: 8px; height: 1px; }
.lux-upload-corner.tl { top: 8px; left: 8px; }
.lux-upload-corner.tl::before { top: 0; left: 0; }
.lux-upload-corner.tl::after  { top: 0; left: 0; }
.lux-upload-corner.tr { top: 8px; right: 8px; }
.lux-upload-corner.tr::before { top: 0; right: 0; }
.lux-upload-corner.tr::after  { top: 0; right: 0; }
.lux-upload-corner.bl { bottom: 8px; left: 8px; }
.lux-upload-corner.bl::before { bottom: 0; left: 0; }
.lux-upload-corner.bl::after  { bottom: 0; left: 0; }
.lux-upload-corner.br { bottom: 8px; right: 8px; }
.lux-upload-corner.br::before { bottom: 0; right: 0; }
.lux-upload-corner.br::after  { bottom: 0; right: 0; }

.lux-upload-hint {
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 300; letter-spacing: 0.07em;
  color: var(--ink-40);
}

/* ── PREVIEW SECTION ────────────────────────────────────────────────────── */
.lux-preview-sec { width: 100%; margin-top: 4px; }
.lux-preview-label {
  font-family: var(--font-body);
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.lux-preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 5px;
}
.lux-preview-item {
  aspect-ratio: 1; overflow: hidden;
  position: relative; background: var(--pink-deep);
}
.lux-preview-item img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; }
.lux-preview-remove {
  position: absolute; inset: 0; background: rgba(28,15,20,0.50);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: .2s; border: none; color: white; font-size: 12px; cursor: pointer;
  backdrop-filter: blur(2px);
}
.lux-preview-item:hover .lux-preview-remove { opacity: 1; }

/* ── SEND BAR ───────────────────────────────────────────────────────────── */
.lux-send-bar { width: 100%; padding: 18px 0 4px; text-align: center; }
.lux-btn-send {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  padding: 17px 60px;
  background: linear-gradient(135deg, var(--ink) 0%, #2a111e 100%);
  color: var(--pink); border: none; cursor: pointer; transition: all .3s;
  box-shadow: 0 6px 24px rgba(28,15,20,0.22);
  position: relative; overflow: hidden;
}
.lux-btn-send::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184,144,74,0.11), transparent);
  transition: left .55s;
}
.lux-btn-send:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(28,15,20,0.28); }
.lux-btn-send:hover::after { left: 100%; }
.lux-btn-send:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.lux-send-hint {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 300; letter-spacing: 0.05em; color: var(--ink-40);
}

/* ── GUEST NAME FIELD — required before any upload, remembered locally so
   a returning guest never has to retype it ─────────────────────────────── */
.lux-name-field { margin-bottom: 14px; text-align: left; }
.lux-name-label {
  display: block; font-family: var(--font-body); font-size: 10px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 6px;
}
.lux-name-input {
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: 14px;
  color: var(--ink); background: rgba(255,255,255,0.65);
  border: 1px solid var(--pink-border); border-radius: 4px; outline: none;
  transition: border-color .2s, background .2s;
}
.lux-name-input:focus { border-color: var(--gold); background: var(--white); }
.lux-name-field-video { margin: 10px 2px 4px; max-width: 360px; }

/* ── Premium video upload CTA ──────────────────────────────────────── */
.lux-video-upload-cta {
  margin: 10px 2px 2px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  max-width: 360px;
}
.lux-video-upload-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px;
  background: linear-gradient(135deg, #c9a86c 0%, #b8944f 50%, #a07838 100%);
  border: none; border-radius: 10px;
  color: #fff; font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(184,148,79,0.40), inset 0 1px 0 rgba(255,255,255,0.20);
  transition: transform .15s, box-shadow .15s, opacity .15s;
  overflow: hidden;
}
.lux-video-upload-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  border-radius: inherit; pointer-events: none;
}
.lux-video-upload-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184,148,79,0.50), inset 0 1px 0 rgba(255,255,255,0.22);
}
.lux-video-upload-btn:not(:disabled):active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 2px 8px rgba(184,148,79,0.35);
}
.lux-video-upload-btn:disabled {
  opacity: 0.52; cursor: not-allowed; transform: none;
}
.lux-video-upload-progress {
  font-size: 11px; color: rgba(255,255,255,0.82); font-family: var(--font-body);
  text-align: center; letter-spacing: 0.04em;
}
.lux-video-upload-bar-track {
  height: 3px; border-radius: 3px;
  background: rgba(184,148,79,0.22);
  overflow: hidden;
}
.lux-video-upload-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #c9a86c, #b8944f);
  transition: width 0.3s ease;
}
.lux-video-upload-discard {
  align-self: center;
  background: none; border: none; padding: 4px 10px;
  font-family: var(--font-body); font-size: 11px;
  color: rgba(0,0,0,0.38); cursor: pointer; letter-spacing: 0.02em;
  transition: color .15s;
}
.lux-video-upload-discard:hover { color: rgba(0,0,0,0.6); }
.lux-name-error { color: #c45; font-size: 11px; margin-top: 6px; }

/* ── GALLERY CARD ─────────────────────────────────────────────────────── */
.lux-card {
  background: var(--white);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.88) inset,
    0 -1px 0 rgba(196,116,142,0.08) inset,
    0 3px 0 rgba(196,116,142,0.05),
    0 20px 60px rgba(196,116,142,0.11),
    0 44px 88px rgba(28,15,20,0.05);
  position: relative; overflow: hidden;
  contain: content;
  animation: scaleIn 1.0s var(--ease-cinematic) 0.14s both;
}

.lux-gallery-panel { padding: 32px 24px 36px; }
@media (min-width: 480px) { .lux-gallery-panel { padding: 40px 32px 44px; } }

/* Divider between the upload block and the Photo Gallery header */
.lux-gallery-divider {
  height: 0.5px;
  background: linear-gradient(90deg, transparent, rgba(196,116,142,0.22), transparent);
  margin: 32px 0 28px;
}

/* Gallery header */
.lux-gallery-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}
.lux-gallery-title {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: clamp(19px, 4.2vw, 25px); color: var(--ink);
  letter-spacing: 0.01em;
}
.lux-gallery-sub {
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 300; letter-spacing: 0.07em;
  color: var(--ink-40); margin-top: 5px;
}
.lux-gallery-actions { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.lux-btn-action {
  font-family: var(--font-body); font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 7px 13px; background: transparent;
  border: 0.5px solid var(--pink-border); color: var(--ink-60);
  cursor: pointer; transition: all .25s;
}
.lux-btn-action:hover { border-color: var(--pink-dark); color: var(--ink); background: rgba(196,116,142,0.05); }
.lux-btn-action.active { background: var(--ink); color: var(--pink); border-color: var(--ink); }
.lux-btn-action.dl {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--white); border-color: var(--gold);
  box-shadow: 0 3px 14px var(--gold-glow);
}
.lux-btn-action.dl:hover { box-shadow: 0 6px 22px var(--gold-glow); transform: translateY(-1px); }

/* ── PHOTO GRID — editorial 5-column asymmetric ──────────────────────────
   Desktop: 5 equal columns, gap 4px
   First item: spans col 1-3, row 1-2 (large anchor)
   Items 2-3: cols 4-5 (stacked)
   Items 4-6: cols 1-2, 3, 4-5 (varied)
   Falls back to 2-col on mobile, 3-col on tablet
───────────────────────────────────────────────────────────────────────── */
.lux-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 160px;
  gap: 8px;
}

@media (min-width: 480px) {
  .lux-photo-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 152px;
  }
}

@media (min-width: 640px) {
  .lux-photo-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 120px;
  }
  /* Anchor: first photo takes the left 3 cols × 2 rows */
  .lux-photo-item.featured {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
  }
  /* Next two stack in the right 2 cols */
  .lux-photo-item:nth-child(2) { grid-column: 4 / 6; }
  .lux-photo-item:nth-child(3) { grid-column: 4 / 6; }
  /* Row 3: 2-col + 1-col + 2-col */
  .lux-photo-item:nth-child(4) { grid-column: 1 / 3; }
  .lux-photo-item:nth-child(5) { grid-column: 3 / 4; }
  .lux-photo-item:nth-child(6) { grid-column: 4 / 6; }
}

.lux-photo-item {
  cursor: pointer; overflow: hidden;
  background: var(--pink-mid);
  position: relative; border: 2px solid transparent; transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  height: 100%;
  /* layout+style+paint: isolate repaint to this tile only */
  contain: layout style paint;
  /* Skip render for off-screen tiles — biggest perf win for large galleries */
  content-visibility: auto;
  /* Hint the reserved tile height so scroll position stays stable */
  contain-intrinsic-size: 0 200px;
}
/* On mobile, featured photo is a single normal-sized tile like the rest */
@media (max-width: 639px) {
  .lux-photo-item.featured { grid-column: span 1; grid-row: span 1; }
}

.lux-photo-item.selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.lux-photo-item img {
  width: 100% !important; height: 100% !important; object-fit: cover !important; display: block;
  transition: transform .28s var(--ease-out), filter .22s;
  /* Promote to GPU only while hovered — avoids wasting layers for all images */
  will-change: auto;
}
.lux-photo-item:hover img { transform: scale(1.05); opacity: 0.96; will-change: transform; }
@media (hover: none) { .lux-photo-item:hover img { transform: none; filter: none; } }

/* Hover overlay */
.lux-photo-hover {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    transparent 25%,
    rgba(28,15,20,0.18) 65%,
    rgba(28,15,20,0.48) 100%
  );
  opacity: 0; transition: opacity .35s;
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px;
}
.lux-photo-item:hover .lux-photo-hover { opacity: 1; }
.lux-photo-view-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.28);
  border: 0.5px solid rgba(255,255,255,0.40);
  display: flex; align-items: center; justify-content: center;
}

/* Selection check */
.lux-select-check {
  position: absolute; top: 7px; left: 7px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,0.90); border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: .2s var(--ease-spring); pointer-events: none;
}
.lux-selection-mode .lux-select-check,
.lux-photo-item:hover .lux-select-check { opacity: 1; }
.lux-photo-item.selected .lux-select-check {
  opacity: 1;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-color: var(--gold);
  box-shadow: 0 2px 8px var(--gold-glow);
}

/* Empty state */
.lux-no-photos { grid-column: 1/-1; padding: 72px 0; text-align: center; }
.lux-no-photos-ring {
  width: 52px; height: 52px; border-radius: 50%;
  border: 0.5px solid var(--pink-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  background: rgba(196,116,142,0.05);
}
.lux-no-photos-txt {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(16px, 3.6vw, 20px); color: var(--ink-60);
}
.lux-no-photos-hint {
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 300; letter-spacing: 0.05em;
  color: var(--ink-40); margin-top: 8px;
}

/* View all */
.lux-view-all-wrap { text-align: center; margin-top: 24px; }
.lux-btn-view-all {
  font-family: var(--font-body); font-size: 9px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 9px 20px; background: transparent;
  border: 0.5px solid var(--gold-border); color: var(--ink-60);
  cursor: pointer; transition: .3s; position: relative; overflow: hidden;
}
@media (min-width: 640px) {
  .lux-btn-view-all { font-size: 10px; letter-spacing: 0.26em; padding: 12px 36px; }
}
.lux-btn-view-all::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(184,144,74,0.07), transparent);
  opacity: 0; transition: opacity .3s;
}
.lux-btn-view-all:hover { color: var(--gold); border-color: var(--gold); }
.lux-btn-view-all:hover::before { opacity: 1; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.lux-footer {
  text-align: center; margin-top: 100px; padding-top: 36px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  animation: fadeIn 1s ease 0.6s both;
}
.lux-footer-names {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(13px, 2.8vw, 16px); color: var(--ink-40); letter-spacing: 0.10em;
}

/* ── LIGHTBOX ────────────────────────────────────────────────────────────
   Signature feature: filmstrip scrubber replaces plain counter
─────────────────────────────────────────────────────────────────────── */
@keyframes lbSlideIn {
  from { opacity: 0; transform: scale(0.97) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.lux-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  width: 100vw; height: 100vh; height: 100dvh;
  background: #000;
  display: none;
  contain: layout style;
  /* Desktop: two-pane side-by-side like Instagram */
  flex-direction: row; align-items: stretch;
}
.lux-lightbox.open {
  display: flex;
  animation: lbSlideIn .28s var(--ease-cinematic) both;
}

/* ── LEFT PANE: image canvas ─────────────────────────────────────────── */
.lux-lb-image-pane {
  flex: 1; min-width: 0;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: #000; overflow: hidden;
  /* Tell iOS we handle horizontal gestures here — prevents pointercancel */
  touch-action: pan-y;
}

/* ── RIGHT PANE: social sidebar (desktop only) ───────────────────────── */
.lux-lb-sidebar {
  width: 340px; flex-shrink: 0;
  background: #111; border-left: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.lux-lb-sidebar-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 10px;
}
.lux-lb-sidebar-credit {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: #fff; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lux-lb-sidebar-sub {
  font-family: var(--font-body); font-size: 11px; color: rgba(255,255,255,0.45);
  margin-top: 1px;
}
.lux-lb-sidebar-body {
  flex: 1; overflow-y: auto; padding: 0;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.14) transparent;
}
.lux-lb-sidebar-body::-webkit-scrollbar { width: 3px; }
.lux-lb-sidebar-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 2px; }

/* Mobile: hide sidebar, show bottom-sheet social panel instead */
@media (max-width: 900px) {
  .lux-lb-sidebar { display: none; }
  .lux-lightbox { flex-direction: column; }
  .lux-lb-image-pane { flex: 1; }
}

/* Top bar — gradient fade like Facebook's photo-viewer header. Holds the
   uploader credit + position counter so the canvas below can be a true
   full-bleed black letterbox with zero competing chrome. */
.lux-lb-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 16px 90px 20px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 100%);
  pointer-events: none;
}
.lux-lb-credit {
  font-family: var(--font-body); font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.88); letter-spacing: 0.02em;
  line-height: 1.3;
}
.lux-lb-credit b { color: #fff; font-weight: 600; }
.lux-lb-counter {
  font-family: var(--font-body); font-size: 11px; font-weight: 400;
  color: rgba(255,255,255,0.50); letter-spacing: 0.06em; white-space: nowrap;
  margin-top: 3px;
}

.lux-lb-close {
  position: absolute; top: 14px; right: 16px; z-index: 6;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,0.4); border: none;
  color: rgba(255,255,255,0.85); cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.lux-lb-close:hover { background: rgba(0,0,0,0.65); color: #fff; }

/* Facebook-style circular nav — solid dark disc, white chevron, always
   visible on pointer devices; hidden on touch (see hover:none rule below)
   in favor of the native swipe gesture, exactly like Facebook's mobile
   photo viewer. */
.lux-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; z-index: 4; border-radius: 50%;
  background: rgba(0,0,0,0.4); border: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
.lux-lb-nav:hover { background: rgba(0,0,0,0.65); }
.lux-lb-prev { left: 20px; }
.lux-lb-next { right: 20px; }

/* ── Lightbox image strip — three slides side-by-side (prev · cur · next)
   Swiping moves the whole strip, so you always see the adjacent photo
   sliding in from the edge — exactly like Instagram / Facebook web viewer. */
.lux-lb-img-wrap {
  /* Fill the full image pane; the strip inside scrolls horizontally */
  width: 100%; height: 100%;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}
/* The strip: three 100%-wide slots laid out in a row */
.lux-lb-strip {
  display: flex;
  width: 300%;
  height: 100%;
  /* Resting position: centre slot is in view */
  transform: translateX(-33.3333%);
  will-change: transform;
  /* FB/IG timing: snappy deceleration, no bounce */
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.lux-lb-strip.dragging { transition: none; }
/* Programmatic slide: same curve, block pointer events during flight */
.lux-lb-strip.sliding  {
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}
/* Each slot is exactly 1/3 of the strip = 100vw of the image pane */
.lux-lb-slot {
  width: 33.3333%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  background: #000;
  contain: layout style paint; /* 'style' added: isolates counter/quote scope per slot */
}
.lux-lb-slot img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  user-select: none; -webkit-user-drag: none;
  display: block;
}
/* Zoom: applied to the centre slot's image only */
.lux-lb-slot.current img.zoomed { transform: scale(2.2); transition: transform .4s var(--ease-cinematic); }
/* Legacy single-image class kept for safety (no longer rendered) */
.lux-lb-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* Lightbox bottom-right icon bar — same pill style as reels bar */
.lux-lb-icon-bar {
  position: absolute;
  right: 14px;
  bottom: 28px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}
.lux-lb-icon-bar .lux-reel-icon-btn { pointer-events: all; }
/* On desktop the sidebar handles reactions/comments — hide the bar */
@media (min-width: 901px) { .lux-lb-icon-bar { display: none; } }

/* ── FLOATING PETALS ────────────────────────────────────────────── */
@keyframes petalFall {
  0%   { transform: translateY(-60px) translateX(0)              rotate(0deg); opacity: 0; }
  8%   { opacity: 0.85; }
  92%  { opacity: 0.55; }
  100% { transform: translateY(110vh) translateX(var(--petal-x)) rotate(var(--petal-r)); opacity: 0; }
}
@keyframes petalSway {
  0%, 100% { margin-left: 0; }
  50%       { margin-left: var(--petal-sway); }
}

.lux-petal {
  position: fixed;
  top: -60px;
  z-index: 0;
  pointer-events: none;
  will-change: transform, opacity;
  contain: strict;
  width:  var(--petal-size);
  height: calc(var(--petal-size) * 1.2);
  animation:
    petalFall    var(--petal-dur)      linear      var(--petal-delay) infinite,
    petalSway    var(--petal-sway-dur) ease-in-out var(--petal-delay) infinite;
}

/* ══ MOBILE RESPONSIVE ═══════════════════════════════════════════════════════

   Breakpoints used
   ─────────────────
   max-width: 479px   small phones  (iPhone SE, Pixel 4a, etc.)
   max-width: 639px   all phones    (lightbox overrides)
   hover: none        touch devices (suppress hover-only states)

══════════════════════════════════════════════════════════════════════════ */

/* ── Small phones ────────────────────────────────────────────────────────── */
@media (max-width: 479px) {

  /* Page wrapper: reduce tall bottom padding */
  .lux-page { padding-bottom: 72px; }

  /* Hero: cut vertical breathing room in half */
  .lux-hero { padding: 48px 0 32px; }
  .lux-pretitle { margin-bottom: 20px; }

  /* Section eyebrows & dividers */
  .lux-eyebrow        { margin: 36px 0 14px; }
  .lux-inner-label-row { margin: 20px 0 14px; }

  /* Invitation text block */
  .lux-invite-plain { margin: 24px auto; }
  .lux-invite-body  { line-height: 1.85; }
  .lux-cta-hint     { margin-top: 20px; }

  /* Upload CTA — compact pill, centered like desktop */
  .lux-btn-upload     { padding: 14px 32px; justify-content: center; }
  .lux-upload-hint    { text-align: center; }

  /* Send bar — stretch to full width */
  .lux-btn-send    { width: 100%; padding: 17px 20px; }
  .lux-send-bar    { padding: 14px 0 4px; }

  /* Gallery card: tighter inner padding */
  .lux-gallery-panel { padding: 16px 10px 20px; }

  /* Gallery bar: keep title and action row aligned side-by-side */
  .lux-gallery-bar    { align-items: center; gap: 10px; margin-bottom: 16px; }
  .lux-gallery-actions { flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

  /* Action buttons: 38px min-height for finger tapping */
  .lux-btn-action { padding: 9px 14px; min-height: 38px; font-size: 10px; }

  /* Stories heading */
  .lux-stories-head { margin-bottom: 10px; }

  /* View All: compact pill, centered like desktop */
  .lux-view-all-wrap { margin-top: 14px; }
  .lux-btn-view-all  { padding: 11px 28px; }

  /* Footer: reduce large top gap */
  .lux-footer { margin-top: 60px; gap: 14px; }

  /* Hashtag — bigger on phones, kept safely under the available width
     since "#ForeverMARKedforCLAUD" is one unbroken 22-character run */
  .lux-hashtag { font-size: clamp(22px, 7vw, 34px); }

  /* Hero names — bigger presence on phones (scales with viewport,
     tapers back near-original on very narrow/legacy widths) */
  .lux-name              { font-size: clamp(70px, 23vw, 150px); }
  .lux-name:last-child   { font-size: clamp(78px, 25vw, 164px); }
}

/* ── Lightbox: all phones ────────────────────────────────────────────────── */
@media (max-width: 639px) {

  /* Top bar: tighter padding, smaller type */
  .lux-lb-topbar  { padding: 12px 80px 16px 14px; }
  .lux-lb-credit  { font-size: 12px; }
  .lux-lb-counter { font-size: 10px; margin-top: 2px; }

  /* Close button: 44×44 minimum touch target */
  .lux-lb-close { width: 40px; height: 40px; top: 10px; right: 10px; }

  /* Zoom toggle: raise it slightly off the safe-area edge */
  .lux-lb-zoom { bottom: 18px; padding: 8px 16px; }
}

/* ── Touch devices: fix hover-only states ────────────────────────────────── */
@media (hover: none) {

  /* Photo hover overlay never fires on touch — hide it */
  .lux-photo-hover { opacity: 0 !important; }

  /* Selection mode: always show checkboxes so guests can tap-to-select */
  .lux-selection-mode .lux-photo-item .lux-select-check { opacity: 1; }

  /* Lightbox & Reels: desktop click-to-navigate gives way to native swipe */
  .lux-lb-nav    { display: none; }
  .lux-reels-nav { display: none; }
}

/* ── Reduced motion: kill all cosmetic animations ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lux-petal                  { animation: none !important; display: none; }
  .lux-name                   { animation: none !important; opacity: 1; clip-path: none !important; }
  .lux-pretitle               { animation: none !important; opacity: 1; }
  .lux-pretitle::before,
  .lux-pretitle::after        { animation: none !important; transform: scaleX(1); }
  .lux-connector-row,
  .lux-date-row,
  .lux-invite-plain,
  .lux-upload-simple,
  .lux-card                   { animation: none !important; opacity: 1; transform: none; }
  .lux-photo-item img         { transition: none; }
  .lux-lightbox.open          { animation: none; }
  .lux-reels.open             { animation: none; }
  .lux-reel-comment-sheet.animating-in { animation: none; transform: translateY(0); }
}

/* ── REELS RIGHT-SIDE ICON BAR (Facebook Reels style) ─────────────────────── */

/* Container — right edge, vertically centred, never covers mute/close */
.lux-reel-icon-bar {
  position: absolute;
  right: 14px;
  bottom: 60px;           /* above seek bar — 5 emojis + comment icon */
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  pointer-events: none;   /* bar itself is transparent to touches … */
}
.lux-reel-icon-btn {
  pointer-events: all;    /* … but each button is individually tappable */
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.lux-reel-icon-circle {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 1.5px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1;
  color: #fff;
  transition: background .18s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.lux-reel-icon-btn:active .lux-reel-icon-circle {
  transform: scale(0.88);
  background: rgba(255,255,255,0.16);
}
.lux-reel-icon-btn.reacted .lux-reel-icon-circle {
  background: rgba(255,80,120,0.35);
  border-color: rgba(255,100,140,0.50);
  animation: reelReactPop .3s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes reelReactPop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.38); }
  70%  { transform: scale(0.90); }
  100% { transform: scale(1.12); }
}
.lux-reel-icon-label {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  white-space: nowrap;
}

/* Long-press reaction picker — appears above the heart icon */
.lux-reel-rxn-picker {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  display: flex; gap: 7px; align-items: center;
  background: rgba(20,20,20,0.90);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 8px 12px;
  pointer-events: all;
  animation: pickerPop .2s cubic-bezier(0.34,1.56,0.64,1) both;
  white-space: nowrap;
}
@keyframes pickerPop {
  from { opacity: 0; transform: scale(0.7) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.lux-reel-rxn-picker-btn {
  background: none; border: none; cursor: pointer; padding: 2px;
  font-size: 26px; line-height: 1;
  transition: transform .15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.lux-reel-rxn-picker-btn:active { transform: scale(1.35); }

/* Comment bottom sheet for reels/lightbox — slides up from bottom */
.lux-reel-comment-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 20;
  /* Fully solid — nothing bleeds through */
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px 18px 0 0;
  padding: 16px 16px 36px;
  max-height: 70vh;
  overflow-y: auto;
  /* Swipe-down to close: the JS adds .closing which triggers slide-down */
  transition: transform .28s cubic-bezier(0.4,0,0.6,1);
}
.lux-reel-comment-sheet.animating-in  {
  animation: sheetUp .28s cubic-bezier(0.22,1,0.36,1) both;
}
.lux-reel-comment-sheet.closing {
  transform: translateY(100%);
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.lux-reel-comment-sheet-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.28);
  margin: 0 auto 16px;
  cursor: grab;
  touch-action: none; /* we handle the drag ourselves */
}
.lux-reel-sheet-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: rgba(255,255,255,0.55);
  font-size: 20px; cursor: pointer; line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

/* ── REELS — full-screen vertical video viewer (TikTok/Reels style) ───────── */
.lux-reels {
  position: fixed; inset: 0; z-index: 1100;
  background: #000;
  display: none;
  contain: layout style;
}
.lux-reels.open { display: block; animation: fadeIn .25s ease both; }

.lux-reels-scroll {
  height: 100vh; height: 100dvh;
  overflow-y: auto; scroll-snap-type: y mandatory;
  will-change: scroll-position;
  /* -webkit-overflow-scrolling: touch — REMOVED.
     That property caused iOS to create a native UIScrollView that
     intercepted ALL touch events across the full viewport, making the
     mute button (a positioned sibling with z-index 200) untappable on
     iPhone and iPad.  The property is deprecated since iOS 13 and the
     default momentum behaviour is identical without it. */
  scrollbar-width: none;
  /* Prevent the page behind from scrolling when the viewer is open */
  overscroll-behavior: contain;
  overscroll-behavior-y: contain; /* long-hand for engines that need it */
  /* Native-feel vertical swipe, no browser interference */
  touch-action: pan-y;
}
.lux-reels-scroll::-webkit-scrollbar { display: none; }

.lux-reel-slide {
  height: 100vh; height: 100dvh;
  /* "normal" (not "always") is what lets a fast flick sail past the next
     snap point instantly, while a slow/partial drag still settles on
     whichever video is more dominant — true Reels/TikTok physics, free. */
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  /* Promote GPU layer only on active/adjacent slides via JS */
  will-change: auto;
  /* Prevent layout bleed from icon bar / seek bar repaints */
  contain: layout style;
  /* iOS: eliminate rubber-band behind the slide */
  overscroll-behavior: contain;
}
/* GPU promotion: only the active slide and its neighbours */
.lux-reel-slide.reel-active,
.lux-reel-slide.reel-adjacent {
  will-change: transform;
}
/* Skip paint/layout for slides far from the viewport.
   The browser will skip them completely until they near the scroll position. */
.lux-reel-slide:not(.reel-active):not(.reel-adjacent) {
  content-visibility: auto;
  contain-intrinsic-size: 0 100vh;
}
.lux-reel-video {
  width: 100%; height: 100%;
  /* contain (not cover) → the whole video is always visible, best-fit
     inside the frame; any leftover space is letterboxed by the slide's
     own black background instead of cropping the footage. */
  object-fit: contain; cursor: pointer;
  background: #000;
  /* Force a dedicated GPU compositing layer for the video surface.
     Without this, scrolling between reels triggers a full layer
     re-upload on every snap which is what causes the visible stutter. */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* Prevent subpixel AA bleed on rounded edges during compositing */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Mute + close live as DIRECT children of .lux-reels (position:fixed,
   z-index:1100). Using position:absolute here means they are positioned
   relative to .lux-reels itself — they are NEVER inside a reel-slide
   stacking context, so the comment sheet can never cover them. */
.lux-reels-close, .lux-reels-mute {
  position: absolute; z-index: 200;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.56); border: 1.5px solid rgba(255,255,255,0.18);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .18s, transform .15s, opacity .2s;
  pointer-events: all;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.lux-reels-close    { top: 18px; left: 16px; }
.lux-reels-mute     { top: 18px; right: 16px; }
.lux-reels-download {
  position: absolute; z-index: 200;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.56); border: 1.5px solid rgba(255,255,255,0.18);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .18s, transform .15s, opacity .2s;
  pointer-events: all;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  top: 18px; right: 68px;   /* just to the left of the mute button */
}
.lux-reels-download:hover { background: rgba(0,0,0,0.76); transform: scale(1.06); }
.lux-reels-download:active { transform: scale(0.94); }
@media (max-width: 639px) {
  .lux-reels-download { top: 12px; right: 60px; width: 40px; height: 40px; }
}   /* moved to top-right, mirrors close btn */
/* Mute button now lives at top-right so it never overlaps the bottom sheet;
   keep it visible and tappable even while the sheet is open. */
/* .lux-reels.sheet-open .lux-reels-mute { opacity: 0; pointer-events: none; } */
.lux-reels-close:hover, .lux-reels-mute:hover {
  background: rgba(0,0,0,0.76);
  transform: scale(1.06);
}
.lux-reels-mute:active { transform: scale(0.94); }

/* Desktop-only Prev/Next — LEFT side, hidden on touch (rule above) */
.lux-reels-nav {
  position: absolute; left: 18px; z-index: 200;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.4); border: none;
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
.lux-reels-nav:hover    { background: rgba(0,0,0,0.65); }
.lux-reels-nav:disabled { opacity: 0.22; cursor: default; pointer-events: none; }
.lux-reels-prev { top: calc(50% - 56px); }
.lux-reels-next { top: calc(50% + 14px); }

/* Uploader credit caption — TOP of slide, prominent header position */
.lux-reel-caption {
  position: absolute; left: 72px; right: 72px; top: 18px; z-index: 7;
  font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 8px rgba(0,0,0,0.7); pointer-events: none;
  text-align: center; letter-spacing: 0.01em;
}
.lux-reel-caption b { color: #fff; font-weight: 600; }

/* Per-video seek/scrub bar — tap or drag to fast-forward or replay */
.lux-reel-seek {
  position: absolute; left: 14px; right: 14px; bottom: 18px; z-index: 6;
  padding: 11px 0; cursor: pointer; touch-action: none;
}
.lux-reel-seek-track {
  position: relative; height: 2.5px; border-radius: 2px;
  background: rgba(255,255,255,0.28);
}
.lux-reel-seek-fill {
  position: absolute; top: 0; left: 0; height: 100%; border-radius: 2px;
  background: var(--gold-light);
}
.lux-reel-seek-handle {
  position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold-light); box-shadow: 0 0 0 3px rgba(0,0,0,0.22);
  transform: translate(-50%, -50%);
}

@media (max-width: 639px) {
  .lux-reels-close { top: 12px; left: 12px; width: 40px; height: 40px; }
  .lux-reels-mute  { top: 12px; right: 12px; width: 40px; height: 40px; }   /* moved to top-right */
  .lux-reel-seek   { left: 12px; right: 12px; bottom: 16px; }
  .lux-reel-caption { left: 60px; right: 60px; top: 12px; bottom: auto; font-size: 12px; }
}

/* ── REACTIONS & COMMENTS PANEL ─────────────────────────────────────────── */
.lux-social-panel {
  background: rgba(255,255,255,0.04);
  border-top: 0.5px solid rgba(255,255,255,0.10);
  padding: 12px 16px 16px;
}

/* Reaction bar — wedding emojis with pop animation */
.lux-reaction-bar {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.lux-reaction-btn {
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.14);
  border-radius: 999px; padding: 5px 11px;
  font-size: 16px; cursor: pointer; transition: background .18s, transform .18s;
  display: inline-flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,0.82);
  font-family: var(--font-body); line-height: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}
.lux-rxn-emoji { font-size: 16px; line-height: 1; display: inline-block; }
.lux-reaction-btn span.cnt {
  font-size: 11px; font-weight: 600; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.90);
}
.lux-reaction-btn:hover  { background: rgba(255,255,255,0.16); transform: scale(1.08); }
.lux-reaction-btn.popped { animation: reactionPop .30s var(--ease-spring) both; }

@keyframes reactionPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.36); }
  70%  { transform: scale(0.92); }
  100% { transform: scale(1.10); }
}

/* ── Comments toggle link (Facebook-style) ───────────────────────────── */
.lux-comments-toggle {
  background: none; border: none; padding: 2px 0 8px;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.52); cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s;
}
.lux-comments-toggle:hover { color: rgba(255,255,255,0.80); }
.lux-comments-toggle-icon {
  transition: transform .22s var(--ease-out);
  flex-shrink: 0;
}
.lux-comments-toggle-icon.open { transform: rotate(180deg); }

/* ── Comment thread — collapse/expand transition ─────────────────────── */
.lux-comments-wrap {
  max-height: 0; overflow: hidden;
  transition: max-height .32s var(--ease-out), opacity .25s;
  opacity: 0;
  margin-bottom: 0;
}
.lux-comments-wrap.expanded {
  max-height: 260px; overflow-y: auto;
  opacity: 1;
  margin-bottom: 10px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.14) transparent;
}
.lux-comments-wrap::-webkit-scrollbar { width: 3px; }
.lux-comments-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 2px; }

/* Individual comment — avatar initial + stacked name/body */
.lux-comment {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 7px 0; border-bottom: 0.5px solid rgba(255,255,255,0.06);
  animation: fadeIn .2s ease both;
}
.lux-comment:last-child { border-bottom: none; }

.lux-comment-avatar {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--gold) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  color: #fff; letter-spacing: 0.03em;
  margin-top: 1px;
}

.lux-comment-content {
  flex: 1; min-width: 0;
}
.lux-comment-author {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600;
  color: rgba(255,255,255,0.90); letter-spacing: 0.01em;
  margin-right: 6px;
}
.lux-comment-body {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 300;
  color: rgba(255,255,255,0.72); line-height: 1.5;
  word-break: break-word; display: inline;
}

/* ── Name tag — "Posting as X · Change" ─────────────────────────────── */
.lux-comment-name-tag {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 7px;
}
.lux-comment-posting-as {
  font-family: var(--font-body); font-size: 11px; font-weight: 300;
  color: rgba(255,255,255,0.45);
}
.lux-comment-posting-as b { color: rgba(255,255,255,0.70); font-weight: 500; }
.lux-comment-change-name {
  background: none; border: none; padding: 0;
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  color: var(--gold); cursor: pointer; text-decoration: underline;
  -webkit-tap-highlight-color: transparent;
}

/* ── Name input row (shown when no name set) ─────────────────────────── */
.lux-comment-name-row { margin-bottom: 7px; }
.lux-comment-name-input { width: 100%; border-radius: 8px !important; }

/* ── Comment input row ───────────────────────────────────────────────── */
.lux-comment-input-row {
  display: flex; gap: 7px; align-items: center;
}
.lux-comment-input {
  flex: 1; background: rgba(255,255,255,0.09);
  border: 0.5px solid rgba(255,255,255,0.16);
  border-radius: 999px; padding: 8px 14px;
  font-family: var(--font-body); font-size: 13px; font-weight: 300;
  color: #fff; outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}
.lux-comment-input::placeholder { color: rgba(255,255,255,0.30); }
.lux-comment-input:focus { border-color: var(--gold); background: rgba(255,255,255,0.13); }
.lux-comment-input:disabled { opacity: 0.5; }

.lux-comment-send-btn {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .18s, transform .15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.lux-comment-send-btn:hover  { background: var(--gold-light); transform: scale(1.07); }
.lux-comment-send-btn:active { transform: scale(0.92); }
.lux-comment-send-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }

/* ── Lightbox mobile bottom-sheet social panel ───────────────────────── */
.lux-lb-social {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
  background: linear-gradient(0deg, rgba(0,0,0,0.80) 0%, transparent 100%);
  padding: 48px 20px 24px;
}
@media (max-width: 639px) {
  .lux-lb-social { padding: 40px 14px 20px; }
}

/* Sidebar social panel — different background, fills the sidebar area */
.lux-lb-sidebar .lux-social-panel {
  background: transparent;
  border-top: none;
  padding: 14px 16px 16px;
  height: 100%; display: flex; flex-direction: column;
}
.lux-lb-sidebar .lux-comments-wrap.expanded {
  max-height: none; flex: 1;
}

/* Loading shimmer for counts */
.lux-social-loading {
  display: inline-block; width: 40px; height: 11px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.22), rgba(255,255,255,0.08));
  background-size: 200%;
  animation: shimmerGradient 1.8s ease-in-out infinite;
}

