/* Guest photos: host pages (ph-), guest pages (pg-) and the slideshow (ss-). */
:root {
  --ph-ink: #1E3A34;
  --ph-ink-2: #2E5148;
  --ph-accent: #1E3A34;
  --ph-gold: #C9A465;
  --ph-cream: #FAF7F1;
  --ph-sand: #F1ECE2;
  --ph-line: #E3DDD1;
  --ph-text: #22292A;
  --ph-muted: #5E6A67;
  --ph-display: "Cormorant Garamond", Garamond, Georgia, serif;
  --ph-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ph-noscroll { overflow: hidden; }

/* ---------------------------------------------------------------- host pages */
.ph-body { background: var(--ph-cream); }
.ph-top { background: #fff; border-bottom: 1px solid var(--ph-line); position: sticky; top: 0; z-index: 20; }
.ph-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.ph-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ph-ink); }
.ph-brand span { font-family: var(--ph-display); font-weight: 600; font-size: 1.45rem; }
.ph-brand em { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8C6F35; border-left: 1px solid var(--ph-line); padding-left: 10px; }
.ph-nav { display: flex; align-items: center; gap: 18px; }
.ph-nav a:not(.btn) { color: var(--ph-text); text-decoration: none; font-size: .95rem; }
.ph-nav a:not(.btn):hover { color: var(--ph-ink); text-decoration: underline; }
.ph-main { min-height: 60vh; }
.ph-foot { border-top: 1px solid var(--ph-line); background: #fff; padding: 22px 0; margin-top: 48px; font-size: .85rem; color: var(--ph-muted); }
.ph-foot-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.ph-foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.ph-foot a { color: var(--ph-muted); }
@media (max-width: 640px) { .ph-nav a:not(.btn):not([href="/photos/login"]) { display: none; } .ph-brand em { display: none; } }

.ph-kicker { margin: 0 0 6px; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8C6F35; }
.ph-h1 { font-family: var(--ph-display); font-weight: 600; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.05; color: var(--ph-ink); margin: 0 0 10px; }
.ph-h2 { font-family: var(--ph-display); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.5rem); color: var(--ph-ink); margin: 0 0 10px; text-align: center; }
.ph-h3 { font-family: var(--ph-display); font-weight: 600; font-size: 1.5rem; color: var(--ph-ink); margin: 18px 0 8px; }
.ph-h3:first-child { margin-top: 0; }
.ph-sub { text-align: center; color: var(--ph-muted); max-width: 640px; margin: 0 auto 28px; }
.ph-center { text-align: center; }
.ph-section { padding: 56px 0; }
.ph-band { background: #fff; border-top: 1px solid var(--ph-line); border-bottom: 1px solid var(--ph-line); }
.ph-btn-line { border: 1.5px solid var(--ph-ink) !important; }
.ph-btn-light { background: var(--ph-gold); border-color: var(--ph-gold); color: var(--ph-ink); }
.ph-btn-light:hover { background: #D8B77B; color: var(--ph-ink); }

/* hero */
.ph-hero { padding: 56px 0 40px; background: linear-gradient(180deg, #fff 0%, var(--ph-cream) 100%); }
.ph-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.ph-hero h1 { font-family: var(--ph-display); font-weight: 600; font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1; color: var(--ph-ink); margin: 0 0 18px; }
.ph-lede { font-size: 1.15rem; color: #3b4644; max-width: 34em; }
.ph-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.ph-hero-art { position: relative; height: 430px; }
.ph-card-tent { position: absolute; left: 0; top: 36px; width: 230px; padding: 24px 20px 20px; background: #fff; border: 1px solid var(--ph-line); border-radius: 4px; box-shadow: 0 18px 40px rgba(30, 58, 52, .12); text-align: center; transform: rotate(-4deg); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ph-card-tent::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--ph-gold); pointer-events: none; }
.ph-card-tent-kicker { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: #8C6F35; }
.ph-card-tent-names { font-family: var(--ph-display); font-size: 1.6rem; font-weight: 600; color: var(--ph-ink); }
.ph-card-tent-url { font-size: .7rem; color: var(--ph-muted); }
.ph-qr-demo { width: 120px; height: 120px; }
.ph-qr svg { width: 100%; height: 100%; display: block; }
.ph-phone { position: absolute; right: 10px; top: 0; width: 220px; height: 430px; border-radius: 34px; background: #1b1f1e; padding: 10px; box-shadow: 0 24px 50px rgba(0, 0, 0, .22); transform: rotate(3deg); }
.ph-phone-screen { height: 100%; border-radius: 26px; background: var(--ph-cream); overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.ph-phone-cover { width: 100%; height: 120px; background: linear-gradient(135deg, #2E5148, #1E3A34 60%, #8C6F35); }
.ph-phone-title { font-family: var(--ph-display); font-weight: 600; font-size: 1.35rem; color: var(--ph-ink); margin: 12px 0 8px; }
.ph-phone-btn { background: var(--ph-ink); color: #fff; font-size: .8rem; font-weight: 700; padding: 10px 26px; border-radius: 999px; }
.ph-phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 100%; padding: 14px 10px; }
.ph-phone-grid i { aspect-ratio: 1; border-radius: 4px; background: #d9d2c4; }
.ph-phone-grid i:nth-child(2n) { background: #c9d6cf; } .ph-phone-grid i:nth-child(3n) { background: #e7d3c2; }
@media (max-width: 860px) { .ph-hero-grid { grid-template-columns: 1fr; } .ph-hero-art { height: 360px; max-width: 420px; margin: 0 auto; width: 100%; } .ph-phone { height: 360px; width: 190px; } }

.ph-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ph-steps li { background: #fff; border: 1px solid var(--ph-line); border-radius: 10px; padding: 24px; position: relative; }
.ph-steps h3 { font-family: var(--ph-display); font-size: 1.45rem; color: var(--ph-ink); margin: 8px 0 6px; }
.ph-steps p { margin: 0; color: var(--ph-muted); }
.ph-step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ph-ink); color: #fff; font-weight: 700; }
.ph-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 34px; }
.ph-feature-grid h3 { font-family: var(--ph-display); font-size: 1.35rem; color: var(--ph-ink); margin: 0 0 4px; }
.ph-feature-grid p { margin: 0; color: var(--ph-muted); }
@media (max-width: 760px) { .ph-steps, .ph-feature-grid { grid-template-columns: 1fr; } }

/* plans */
.ph-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.ph-plan { background: #fff; border: 1px solid var(--ph-line); border-radius: 12px; padding: 24px 20px; display: flex; flex-direction: column; position: relative; }
.ph-plan h3 { font-family: var(--ph-display); font-size: 1.7rem; color: var(--ph-ink); margin: 0; }
.ph-plan-price { margin: 6px 0 2px; } .ph-plan-price strong { font-size: 2rem; color: var(--ph-ink); } .ph-plan-price span { color: var(--ph-muted); font-size: .85rem; }
.ph-plan-tag { color: var(--ph-muted); font-size: .92rem; margin: 0 0 12px; min-height: 2.6em; }
.ph-plan form, .ph-plan > .btn, .ph-plan-you { margin-top: auto; }
.ph-plan-star { border: 2px solid var(--ph-ink); box-shadow: 0 16px 36px rgba(30, 58, 52, .12); }
.ph-plan-flag { position: absolute; top: -12px; left: 20px; background: var(--ph-gold); color: var(--ph-ink); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.ph-plan-monthly { background: var(--ph-ink); color: #E9EFEC; border-color: var(--ph-ink); }
.ph-plan-monthly h3, .ph-plan-monthly .ph-plan-price strong { color: #fff; }
.ph-plan-monthly .ph-plan-tag, .ph-plan-monthly .ph-plan-price span { color: #BFD0C9; }
.ph-plan-monthly .ph-ticks li::before { color: var(--ph-gold); }
.ph-plan-monthly .btn { background: var(--ph-gold); border-color: var(--ph-gold) !important; color: var(--ph-ink); }
.ph-plan-current { outline: 3px solid var(--ph-gold); }
.ph-plan-you { font-weight: 700; color: var(--ph-ink); text-align: center; padding: 10px; background: var(--ph-sand); border-radius: 6px; }
.ph-ticks { list-style: none; padding: 0; margin: 0 0 18px; font-size: .93rem; }
.ph-ticks li { padding: 5px 0 5px 24px; position: relative; }
.ph-ticks li::before { content: "✓"; position: absolute; left: 2px; top: 5px; color: #2F7A4F; font-weight: 700; }
.ph-ticks li.ph-tick-head { font-weight: 700; padding-left: 0; } .ph-ticks li.ph-tick-head::before { content: none; }
@media (max-width: 1000px) { .ph-plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ph-plans { grid-template-columns: 1fr; } }

.ph-faq { max-width: 760px; } .ph-faq .ph-h2 { text-align: left; }
.ph-faq details { background: #fff; border: 1px solid var(--ph-line); border-radius: 8px; padding: 14px 18px; margin-bottom: 10px; }
.ph-faq summary { cursor: pointer; font-weight: 600; color: var(--ph-ink); }
.ph-faq details p { margin: 10px 0 0; color: var(--ph-muted); }
.ph-final { background: var(--ph-ink); color: #fff; text-align: center; padding: 64px 0; }
.ph-final h2 { color: #fff; font-family: var(--ph-display); font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 6px; }
.ph-final p { color: #BFD0C9; margin: 0 0 20px; }

/* forms and cards */
.ph-form { background: #fff; border: 1px solid var(--ph-line); border-radius: 12px; padding: 24px; margin-top: 18px; }
.ph-form input[type=text], .ph-form input:not([type]), .ph-form input[type=email], .ph-form input[type=password], .ph-form input[type=date], .ph-form input[type=number], .ph-form select, .ph-form textarea { width: 100%; }
.ph-fieldset { border: 1px solid var(--ph-line); border-radius: 8px; padding: 14px 16px 4px; margin: 0 0 18px; }
.ph-fieldset legend { font-weight: 700; color: var(--ph-ink); padding: 0 6px; }
.ph-card { background: #fff; border: 1px solid var(--ph-line); border-radius: 12px; padding: 22px; }
.ph-other-logins { margin-top: 18px; }
.ph-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ph-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ph-empty { text-align: center; background: #fff; border: 1px dashed var(--ph-line); border-radius: 12px; padding: 44px 20px; }
.ph-empty h2 { font-family: var(--ph-display); color: var(--ph-ink); margin: 0 0 6px; }
.ph-pill { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: var(--ph-sand); color: var(--ph-text); vertical-align: middle; }
.ph-pill-keepsake { background: #E3EFE8; color: #2F6B4D; }
.ph-pill-heirloom { background: var(--ph-ink); color: var(--ph-gold); }
.ph-pill-warn { background: #F7ECD6; color: #8A5E10; }
.ph-warn { color: #8A5E10; }
.ph-note { background: #EEF4F0; border: 1px solid #CFE0D6; border-radius: 8px; padding: 12px 14px; margin: 0 0 14px; }
.ph-note-warn { background: #FBF3E3; border-color: #EBD7AE; }
.ph-lock { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--ph-sand); color: #8C6F35; padding: 2px 7px; border-radius: 999px; margin-left: 4px; }
.is-locked { opacity: .65; }

/* my galleries */
.ph-gallery-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ph-gcard { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--ph-line); border-radius: 12px; padding: 18px; text-decoration: none; color: var(--ph-text); transition: box-shadow .15s, transform .15s; }
.ph-gcard:hover { box-shadow: 0 10px 26px rgba(30, 58, 52, .1); transform: translateY(-1px); }
.ph-gcard strong { font-family: var(--ph-display); font-size: 1.45rem; color: var(--ph-ink); line-height: 1.1; }
.ph-gcard-top { display: flex; gap: 6px; }
.ph-gcard-stats { font-size: .9rem; color: var(--ph-muted); }
.ph-unlimited { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 30px 0 14px; padding: 22px; border-radius: 12px; background: var(--ph-ink); color: #E9EFEC; }
.ph-unlimited h2 { font-family: var(--ph-display); color: #fff; margin: 0 0 4px; }
.ph-unlimited .muted { color: #BFD0C9; margin: 0; }
.ph-unlimited .btn { background: var(--ph-gold); border-color: var(--ph-gold); color: var(--ph-ink); }

/* dashboard */
.ph-manage { padding: 26px 0 40px; }
.ph-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--ph-muted); margin: 4px 0 0; font-size: .95rem; }
.ph-meta b { color: var(--ph-text); }
.ph-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ph-line); margin: 10px 0 18px; overflow-x: auto; }
.ph-tabs a { padding: 10px 14px; text-decoration: none; color: var(--ph-muted); border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 600; }
.ph-tabs a[aria-current] { color: var(--ph-ink); border-bottom-color: var(--ph-gold); }
.ph-count { display: inline-block; background: #C7782D; color: #fff; font-size: .7rem; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.ph-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ph-toolbar-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ph-toolbar-right form { margin: 0; }
.ph-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ph-chip { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--ph-line); color: var(--ph-text); text-decoration: none; font-size: .88rem; }
.ph-chip.is-on { background: var(--ph-ink); border-color: var(--ph-ink); color: #fff; }
.ph-album-pick { width: auto; padding: 6px 10px; font-size: .88rem; }
.ph-bulkbar { position: sticky; top: 72px; z-index: 10; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border: 1px solid var(--ph-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, .06); }
.ph-danger { color: #A33A3A !important; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph-tile { margin: 0; background: #fff; border: 1px solid var(--ph-line); border-radius: 8px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.ph-tile > a { display: block; aspect-ratio: 1; background: var(--ph-sand); position: relative; }
.ph-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-tile figcaption { font-size: .78rem; padding: 6px 8px; color: var(--ph-muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ph-cap { flex-basis: 100%; color: var(--ph-text); }
.ph-tile.is-pending, .ph-tile.is-processing { outline: 2px dashed #D9A44A; }
.ph-tile.is-hidden > a { opacity: .45; }
.ph-tile.is-picked { outline: 3px solid var(--ph-ink); }
.ph-check { position: absolute; top: 6px; left: 6px; z-index: 2; background: rgba(255, 255, 255, .92); border-radius: 6px; width: 28px; height: 28px; display: grid; place-items: center; cursor: pointer; }
.ph-check input { width: 17px; height: 17px; margin: 0; }
.ph-fav { color: #B04A5A; }
.ph-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.6rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.ph-tile-file { aspect-ratio: 1; display: grid !important; place-items: center; color: var(--ph-muted); font-size: .85rem; text-decoration: none; }
.ph-notecard { margin: 0; aspect-ratio: 1; padding: 16px; background: #FBF6EA; font-family: var(--ph-display); font-size: 1.12rem; line-height: 1.3; color: #3a3a30; overflow: auto; display: flex; align-items: center; }
.ph-notecard p { margin: 0; }
.ph-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 18px 0; }

.ph-share { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.ph-share-qr { background: #fff; border: 1px solid var(--ph-line); border-radius: 14px; padding: 24px; text-align: center; }
.ph-qr-big { width: 240px; height: 240px; margin: 0 auto; padding: 12px; background: #fff; }
.ph-share-url { font-weight: 700; color: var(--ph-ink); word-break: break-all; margin: 10px 0; }
.ph-share-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ph-designs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0; }
.ph-design { text-decoration: none; color: var(--ph-text); font-size: .85rem; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.ph-design-art { aspect-ratio: 5 / 7; border-radius: 6px; border: 1px solid var(--ph-line); background: #fff; position: relative; }
.ph-design-art::after { content: ""; position: absolute; left: 30%; right: 30%; top: 38%; aspect-ratio: 1; background: repeating-conic-gradient(#222 0 25%, #fff 0 50%) 0 0 / 8px 8px; }
.ph-design-classic .ph-design-art { box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px var(--ph-ink); }
.ph-design-garden .ph-design-art { background: radial-gradient(circle at 15% 12%, #e4ede6 0 22%, transparent 23%), radial-gradient(circle at 88% 90%, #efe7d8 0 20%, transparent 21%), #fbfaf6; }
.ph-design-modern .ph-design-art { background: var(--ph-ink); }
.ph-design-modern .ph-design-art::after { background: repeating-conic-gradient(#222 0 25%, #fff 0 50%) 0 0 / 8px 8px; border: 3px solid #fff; border-radius: 3px; }
.ph-design-tent .ph-design-art { background: linear-gradient(180deg, #fff 49%, #ccc 49% 51%, #fff 51%); }
.ph-design-tent .ph-design-art::after { top: 60%; }
.ph-design.is-locked span:last-child { color: #8C6F35; }
.ph-ways { padding-left: 18px; color: var(--ph-muted); }
.ph-album-qrs { list-style: none; padding: 0; } .ph-album-qrs li { padding: 6px 0; border-bottom: 1px solid var(--ph-line); }
.ph-print-cta { margin: 14px 0; }
@media (max-width: 820px) { .ph-share { grid-template-columns: 1fr; } .ph-designs { grid-template-columns: repeat(2, 1fr); } }

.ph-settings { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
.ph-settings .ph-form { margin-top: 0; }
.ph-settings-side { display: flex; flex-direction: column; gap: 16px; }
.ph-toggle { display: flex; gap: 10px; align-items: center; padding: 6px 0; cursor: pointer; }
.ph-toggle input { width: 18px; height: 18px; margin: 0; flex: none; }
.ph-cover-preview { width: 100%; border-radius: 8px; margin-bottom: 10px; }
.ph-album-list { list-style: none; padding: 0; margin: 0 0 10px; }
.ph-album-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ph-line); }
.ph-album-list form { margin: 0; }
.ph-inline-form { display: flex; gap: 8px; } .ph-inline-form input { flex: 1; }
.ph-danger-zone { border-color: #E9C7C7; }
.ph-danger-btn { background: #A33A3A; border-color: #A33A3A; }
@media (max-width: 860px) { .ph-settings { grid-template-columns: 1fr; } }
.ph-plan-now { margin-bottom: 22px; }

.ph-prints { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; margin-bottom: 20px; }
.ph-print-pick { display: grid; gap: 10px; max-height: 520px; overflow: auto; margin: 10px 0 16px; }
.ph-print-item { display: flex; gap: 12px; align-items: center; border: 1px solid var(--ph-line); border-radius: 8px; padding: 8px; }
.ph-print-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.ph-print-qty { display: flex; gap: 8px; flex-wrap: wrap; }
.ph-print-qty label { display: flex; flex-direction: column; font-size: .75rem; color: var(--ph-muted); }
.ph-print-qty input { width: 64px; }
.ph-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--ph-line); border-radius: 8px; }
.ph-table th, .ph-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ph-line); font-size: .92rem; }
.ph-status { display: inline-block; font-weight: 700; color: var(--ph-ink); background: var(--ph-sand); padding: 6px 12px; border-radius: 999px; }
.ph-order-lines { list-style: none; padding: 0; margin: 0 0 10px; }
.ph-order-lines li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ph-line); }
.ph-order-lines li span:nth-child(2), .ph-order-lines li span:first-child:not(:last-child) { flex: 1; }
.ph-order-lines img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; }
.ph-order-sum { display: flex; justify-content: space-between; margin: 6px 0; }
.ph-order-total { font-weight: 700; font-size: 1.1rem; }
@media (max-width: 860px) { .ph-prints { grid-template-columns: 1fr; } }

/* lightbox (host and guest) */
.ph-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 16, 15, .94); display: flex; align-items: center; justify-content: center; }
.ph-lightbox[hidden] { display: none; }
.ph-lb-stage { max-width: 94vw; max-height: 86vh; display: flex; align-items: center; justify-content: center; }
.ph-lb-stage img, .ph-lb-stage video { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.ph-lb-close, .ph-lb-prev, .ph-lb-next { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.ph-lb-close { top: 14px; right: 14px; } .ph-lb-prev { left: 12px; top: 50%; } .ph-lb-next { right: 12px; top: 50%; }
.ph-lb-save { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); background: #fff; color: #1E3A34; padding: 9px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem; }
.ph-lb-save[hidden] { display: none; }

/* ---------------------------------------------------------------- guest pages */
.pg-body { margin: 0; background: var(--ph-cream); color: var(--ph-text); font: 16px/1.5 var(--ph-sans); -webkit-font-smoothing: antialiased; }
.pg-flash { max-width: 560px; margin: 12px auto 0; padding: 0 16px; }
.pg-flash .flash { padding: 12px 14px; border-radius: 10px; background: #EEF4F0; border: 1px solid #CFE0D6; }
.pg-flash .flash-error { background: #FBEDED; border-color: #EBC6C6; }
.pg-hero { background: var(--ph-accent); color: #fff; text-align: center; padding: 44px 20px 70px; position: relative; overflow: hidden; }
.pg-hero.has-cover { background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .55)), var(--pg-cover) center / cover no-repeat; padding-top: 120px; }
.pg-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 34px; background: var(--ph-cream); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.pg-hero-inner { max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }
.pg-kicker { margin: 0 0 6px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: #F0DDB4; }
.pg-title { font-family: var(--ph-display); font-weight: 600; font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1; margin: 0; }
.pg-welcome { margin: 12px 0 0; color: rgba(255, 255, 255, .9); }
.pg-main { max-width: 560px; margin: -36px auto 0; padding: 0 16px 24px; position: relative; z-index: 2; }
.pg-card { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 10px 30px rgba(30, 58, 52, .1); margin-bottom: 14px; }
.pg-center { text-align: center; }
.pg-card h2 { font-family: var(--ph-display); font-size: 1.8rem; color: var(--ph-ink); margin: 0 0 6px; }
.pg-label { display: block; font-weight: 600; margin: 4px 0 6px; } .pg-label span { color: var(--ph-muted); font-weight: 400; }
.pg-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--ph-line); border-radius: 12px; background: #fff; margin-bottom: 12px; color: var(--ph-text); }
.pg-input:focus, .pg-drop:focus-within { outline: 3px solid rgba(201, 164, 101, .5); outline-offset: 1px; }
.pg-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 16px; border-radius: 16px; background: var(--ph-accent); color: #fff; cursor: pointer; text-align: center; position: relative; }
.pg-drop[hidden] { display: none; }
.pg-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pg-drop-icon { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-size: 2rem; line-height: 1; }
.pg-drop-main { font-size: 1.25rem; font-weight: 700; }
.pg-drop-sub { font-size: .9rem; opacity: .8; }
.pg-progress { margin-top: 14px; }
.pg-bar { height: 10px; border-radius: 999px; background: var(--ph-sand); overflow: hidden; }
.pg-bar span { display: block; height: 100%; width: 0; background: var(--ph-gold); transition: width .3s; }
.pg-status { margin: 8px 0; font-weight: 600; color: var(--ph-ink); }
.pg-files { list-style: none; padding: 0; margin: 0; max-height: 220px; overflow: auto; font-size: .88rem; }
.pg-files li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--ph-sand); }
.pg-files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-files li em { font-style: normal; color: var(--ph-muted); flex: none; text-align: right; max-width: 60%; }
.pg-files li.is-ok em { color: #2F7A4F; } .pg-files li.is-err em { color: #A33A3A; } .pg-files li.is-up em::after { content: "…"; }
.pg-done { text-align: center; padding: 10px 0 0; }
.pg-done-big { font-family: var(--ph-display); font-size: 2rem; color: var(--ph-ink); margin: 0; }
.pg-btn { display: inline-block; font: inherit; font-weight: 700; background: var(--ph-accent); color: #fff; border: 2px solid var(--ph-accent); border-radius: 999px; padding: 12px 24px; text-decoration: none; cursor: pointer; }
.pg-btn-line { background: transparent; color: var(--ph-accent); }
.pg-notebox summary { cursor: pointer; font-weight: 700; color: var(--ph-ink); }
.pg-notebox form { margin-top: 12px; }
.pg-links { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 18px 0; }
.pg-link { color: var(--ph-ink); font-weight: 600; }
.pg-fine { font-size: .8rem; color: var(--ph-muted); text-align: center; }
.pg-note { color: #A33A3A; }
.pg-foot { text-align: center; padding: 20px 16px 34px; font-size: .82rem; }
.pg-foot a { color: var(--ph-muted); text-decoration: none; } .pg-foot a:hover { text-decoration: underline; }
.pg-body .field-error { color: #A33A3A; font-size: .85rem; margin: -6px 0 10px; }

.pg-bar-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: rgba(250, 247, 241, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ph-line); }
.pg-bar-title { font-family: var(--ph-display); font-size: 1.35rem; margin: 0; color: var(--ph-ink); text-align: center; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-back { color: var(--ph-ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.pg-gallery-wrap { max-width: 1100px; margin: 0 auto; padding: 14px 10px 24px; }
.pg-masonry { columns: 2 160px; column-gap: 8px; }
@media (min-width: 700px) { .pg-masonry { columns: 4 200px; } }
.pg-tile { break-inside: avoid; margin: 0 0 8px; background: #fff; border-radius: 10px; overflow: hidden; position: relative; }
.pg-tile > a { display: block; position: relative; }
.pg-tile img { width: 100%; display: block; }
.pg-tile .ph-notecard { aspect-ratio: auto; min-height: 120px; }
.pg-tile figcaption { font-size: .78rem; color: var(--ph-muted); padding: 6px 8px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.pg-remove { background: none; border: 0; color: #A33A3A; font: inherit; font-size: .78rem; cursor: pointer; padding: 0; }
.pg-processing { padding: 40px 10px; text-align: center; color: var(--ph-muted); font-size: .85rem; background: var(--ph-sand); }

/* ---------------------------------------------------------------- slideshow */
.ss-body { margin: 0; background: #0d1110; color: #fff; font-family: var(--ph-sans); overflow: hidden; }
.ss { position: fixed; inset: 0; }
.ss-stage { position: absolute; inset: 0; }
.ss-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 1.1s ease; }
.ss-slide.is-on { opacity: 1; }
.ss-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ss-by { position: absolute; left: 28px; bottom: 26px; font-size: 1.1rem; background: rgba(0, 0, 0, .45); padding: 6px 14px; border-radius: 999px; }
.ss-note { max-width: 900px; padding: 40px; text-align: center; font-family: var(--ph-display); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.2; }
.ss-note cite { display: block; margin-top: 18px; font-family: var(--ph-sans); font-style: normal; font-size: 1.1rem; color: var(--ph-gold); }
.ss-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #BFD0C9; }
.ss-empty[hidden] { display: none; }
.ss-empty-title { font-family: var(--ph-display); font-size: clamp(2.6rem, 6vw, 4.6rem); color: #fff; margin: 0 0 6px; }
.ss-corner { position: absolute; right: 22px; bottom: 22px; display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .95); color: #1E3A34; border-radius: 14px; padding: 10px 14px 10px 10px; }
.ss-corner b { display: block; font-size: 1.05rem; } .ss-corner span { font-size: .8rem; }
.ss-qr { width: 96px; height: 96px; } .ss-qr svg { width: 100%; height: 100%; display: block; }
.ss-full { position: absolute; top: 14px; right: 14px; background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; opacity: .5; }
.ss-full:hover { opacity: 1; }
:fullscreen .ss-full { display: none; }
.ph-bulkbar[hidden] { display: none; }

/* photobooth (vendor dashboard) */
.booth-new { margin-top: 16px; }
.booth-drop { margin-top: 16px; }
.booth-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-bottom: 20px; }
.booth-cols > .panel { margin: 0; }
@media (max-width: 860px) { .booth-cols { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- photobooth delivery + camera entry */
.pg-hero-booth .pg-booth-by a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pg-hero-booth .pg-dl-all { margin-top: 18px; background: #fff; color: var(--ph-accent); border-color: #fff; }
.pg-dev-note { max-width: 1100px; margin: 12px auto 0; padding: 10px 16px; background: #FFF6E6; color: #6B4A12; border-radius: 12px; font-size: .92rem; text-align: center; }
.pg-camera-cta { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; margin-bottom: 14px; background: #161616; color: #fff; }
.pg-camera-cta b { display: block; font-size: 1.05rem; }
.pg-camera-cta small { display: block; opacity: .75; margin-top: 2px; }
.pg-camera-ico { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.4rem; flex: none; }

/* ---------------------------------------------------------------- event camera */
.cam-body { margin: 0; background: #0E0E0E; color: #fff; font-family: 'Figtree', system-ui, sans-serif; min-height: 100vh; min-height: 100dvh; overscroll-behavior: none; }
.cam { max-width: 520px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.cam-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; }
.cam-title { text-align: center; line-height: 1.2; min-width: 0; }
.cam-title b { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-title span { font-size: .78rem; color: #F4D9CF; letter-spacing: .04em; }
.cam-round { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.2rem; display: grid; place-items: center; text-decoration: none; cursor: pointer; flex: none; }
.cam-stage { position: relative; margin: 0 10px; border-radius: 18px; overflow: hidden; background: #1b1b1b; }
.cam-view { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.is-on { animation: camflash .35s ease-out; }
@keyframes camflash { from { opacity: .9; } to { opacity: 0; } }
.cam-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; background: rgba(0,0,0,.72); font-size: 1rem; line-height: 1.5; }
.cam-msg[hidden], .cam-review[hidden], .cam-name[hidden], .st-end[hidden], .st-caption[hidden] { display: none; }
.cam-review { position: absolute; inset: 0; background: #0E0E0E; display: flex; flex-direction: column; }
.cam-review img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.cam-review-bar { display: flex; gap: 6px; padding: 10px; justify-content: center; }
.cam-review-bar .cam-pill { padding: 10px 14px; font-size: .9rem; white-space: nowrap; }
.cam-controls { padding: 12px 0 16px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cam-strip { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cam-strip::-webkit-scrollbar { display: none; }
.cam-chip { flex: none; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .88rem; cursor: pointer; }
.cam-chip.is-on { background: #fff; color: #111; border-color: #fff; font-weight: 600; }
.cam-shutter-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 20px; gap: 10px; }
.cam-side { display: flex; gap: 6px; justify-content: flex-start; }
.cam-side-r { justify-content: flex-end; }
.cam-shutter { width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 5px; cursor: pointer; }
.cam-shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform .1s; }
.cam-shutter:active span { transform: scale(.88); }
.cam-shutter:disabled { opacity: .35; }
.cam-small { background: none; border: 0; color: #fff; font: inherit; font-size: 1.3rem; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; text-decoration: none; width: 56px; }
.cam-small span { font-size: .7rem; opacity: .8; }
.cam-small.is-on { color: #F4D9CF; }
.cam-small[hidden] { display: none; }
.cam-status { min-height: 1.3em; text-align: center; font-size: .85rem; color: #ddd; margin: 10px 14px 0; }
.cam-pill { border: 0; background: #fff; color: #111; border-radius: 999px; padding: 11px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.cam-pill-ghost { background: rgba(255,255,255,.14); color: #fff; }
.cam-name { position: fixed; inset: 0; background: rgba(10,10,10,.94); display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 30px; max-width: 520px; margin: 0 auto; }
.cam-name label { font-size: 1.15rem; font-weight: 600; }
.cam-name label span { display: block; font-size: .85rem; font-weight: 400; opacity: .7; margin-top: 4px; }
.cam-name input { font: inherit; font-size: 1.05rem; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; }
.cam-skip { background: none; border: 0; color: #bbb; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------------------------------------------------------------- live story */
.st { position: relative; max-width: 520px; margin: 0 auto; height: 100vh; height: 100dvh; background: #000; overflow: hidden; }
.st-bars { position: absolute; top: calc(env(safe-area-inset-top) + 8px); left: 8px; right: 8px; display: flex; gap: 3px; z-index: 3; }
.st-bars span { flex: 1; height: 3px; background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; }
.st-bars i { display: block; height: 100%; width: 0; background: #fff; }
.st-top { position: absolute; top: calc(env(safe-area-inset-top) + 18px); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; z-index: 3; text-shadow: 0 1px 4px rgba(0,0,0,.5); font-size: .9rem; }
.st-top span { opacity: .85; }
.st-media { position: absolute; inset: 0; display: grid; place-items: center; }
.st-media img, .st-media video { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.st-tap { position: absolute; top: 70px; bottom: 90px; background: none; border: 0; z-index: 2; cursor: pointer; }
.st-prev { left: 0; width: 33%; }
.st-next { right: 0; width: 67%; }
.st-caption { position: absolute; left: 16px; right: 16px; bottom: 90px; z-index: 3; text-align: center; background: rgba(0,0,0,.5); padding: 8px 12px; border-radius: 12px; margin: 0; }
.st-react { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 18px); display: flex; justify-content: center; align-items: center; gap: 8px; z-index: 3; }
.st-emoji { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); font-size: 1.35rem; cursor: pointer; transition: transform .12s; }
.st-emoji.is-on { background: rgba(255,255,255,.4); transform: scale(1.08); }
.st-count { font-size: .85rem; opacity: .85; margin-left: 4px; }
.st-burst { position: absolute; bottom: 80px; font-size: 2rem; z-index: 4; pointer-events: none; animation: stburst 1.3s ease-out forwards; }
@keyframes stburst { 0% { transform: translateY(0) scale(.6); opacity: 1; } 100% { transform: translateY(-260px) scale(1.3); opacity: 0; } }
.st-end { position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px; text-align: center; }
.st-end-big { font-family: 'Bodoni Moda', Georgia, serif; font-size: 1.7rem; margin: 0; }
@media (prefers-reduced-motion: reduce) { .st-burst, .cam-flash.is-on { animation: none; } }
