/**
 * Guest Photos shared guest-facing styles — the photo grid + lightbox blocks
 * extracted VERBATIM from public/css/guest-gallery.css so the upload page
 * (/f/, "album home") can render the same inline gallery the /g/ page does.
 * Both pages load this file BEFORE their page-specific stylesheet
 * (guest-gallery.css / guest-upload.css). The --gg-* token block is repeated
 * here (identical values) so this file is self-sufficient; guest-gallery.css
 * keeps its own copy, which is a no-op duplicate by design.
 * New files under public/ are auto-revved by the gulp glob — no build change.
 */:root{--gg-bg:#fdfbf7;--gg-fg:#23273a;--gg-muted:#7b7f90;--gg-card:#ffffff;--gg-border:#ece7e0;--gg-primary:#f4813f;--gg-accent-soft:#fdeee2;--gg-gradient-primary:linear-gradient(100deg, #f4813f, #fba05c);--gg-gradient-warm:radial-gradient(120% 90% at 100% 0%, rgba(250, 178, 122, 0.55) 0%, rgba(253, 251, 247, 0) 60%);--gg-shadow-soft:0 18px 40px -22px rgba(35, 39, 58, 0.3);--gg-display:'Cormorant Garamond',Georgia,serif;--gg-sans:'DM Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}/* ── Demo banner (marketing demo albums only) ────────────────────────────── *//* Rendered by BOTH guest pages: static (in-flow) on /g/, fixed on /f/ (the
   --fixed modifier; .gu-demo hero padding in guest-upload.css budgets for
   it). Formerly inline styles in the two controllers — moved here verbatim
   once this shared sheet existed. */.gp-demo-banner{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;padding:9px 16px;background:#1E1E2F;color:#fff;font-family:var(--gg-sans);font-size:13px;line-height:1.4;text-align:center}.gp-demo-banner--fixed{position:fixed;top:0;left:0;right:0;z-index:10}.gp-demo-banner-cta{color:#FFB88A;font-weight:600;text-decoration:underline;white-space:nowrap}/* Phones: compact bar (the 13px flex layout stacked message + CTA into ~3
   lines over the hero). display:block lets the CTA flow inline with the
   message text instead of dropping to its own flex line. */@media (max-width: 480px){.gp-demo-banner{display:block;padding:6px 10px;font-size:12px;line-height:1.3}.gp-demo-banner-cta{margin-left:6px}}/* ── Photo grid (CSS-columns masonry) ────────────────────────────────────── */.gg-grid{margin-top:2.5rem;columns:1;column-gap:1.25rem}@media (min-width: 640px){.gg-grid{columns:2}}@media (min-width: 1024px){.gg-grid{columns:3}}.gg-photo{break-inside:avoid;margin:0 0 1.25rem;overflow:hidden;/* New stacking context so WebKit clips the scaled image to the rounded
       corners during the hover transform. */isolation:isolate;border-radius:1.5rem;background:var(--gg-card);box-shadow:var(--gg-shadow-soft);cursor:pointer}.gg-photo img{width:100%;height:auto;display:block;transition:transform 0.7s ease}.gg-photo:hover img{transform:scale(1.04)}/* Failed thumb transform: keep a neutral clickable tile (natural-ratio images
   collapse to 0 height when broken, so give the tile some body). */.gg-photo-broken{min-height:8rem;background:var(--gg-accent-soft)}.gg-photo-broken img{visibility:hidden}/* Video tiles: play badge (centred) + duration chip (bottom-right) over the
   Stream poster. Only READY videos ever reach the guest grid. */.gg-photo-video{position:relative}.gg-play-badge{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:3rem;height:3rem;border-radius:999px;background:rgba(35, 39, 58, 0.5);color:#fff;display:grid;place-items:center;pointer-events:none}.gg-video-time{position:absolute;right:0.75rem;bottom:0.75rem;font-size:0.72rem;font-variant-numeric:tabular-nums;background:rgba(35, 39, 58, 0.7);color:#fff;padding:0.15rem 0.45rem;border-radius:0.45rem;pointer-events:none}.gg-empty{text-align:center;padding:4rem 1rem;font-family:var(--gg-display);font-size:1.4rem;color:var(--gg-muted)}/* ── Load more ───────────────────────────────────────────────────────────── */.gg-load-more-wrap{text-align:center;margin-top:1.5rem}.gg-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0.85rem 1.75rem;border-radius:999px;background:var(--gg-card);color:var(--gg-primary);border:1px solid rgba(244, 129, 63, 0.5);font-family:inherit;font-size:0.9rem;font-weight:500;cursor:pointer;transition:background-color 0.2s ease,border-color 0.2s ease,transform 0.1s ease}.gg-btn:hover{background:var(--gg-accent-soft);border-color:var(--gg-primary)}.gg-btn:active{transform:scale(0.98)}/* display:inline-flex would override the [hidden] attribute's UA display:none
   (same guard as .gg-lightbox[hidden] below) — without it the hidden
   load-more button always renders. */.gg-btn[hidden]{display:none}/* ── Lightbox (visuals only; logic is the shared GpLightbox module) ──────── *//* display:flex would override the [hidden] attribute's UA display:none —
   without this rule the closed lightbox invisibly covers the whole page and
   swallows every click. */.gg-lightbox[hidden]{display:none}.gg-lightbox{position:fixed;inset:0;z-index:10000;background:#fff;display:flex;align-items:center;justify-content:center;padding:56px 16px 32px;padding-bottom:max(32px, env(safe-area-inset-bottom))}body.gg-lightbox-open{overflow:hidden}.gg-lightbox-img{max-width:100%;max-height:100%;border-radius:1rem;object-fit:contain;/* Separate the photo from the pure-white canvas. */box-shadow:var(--gg-shadow-soft)}/* Circular chrome buttons on the white canvas: subtle border + soft shadow so
   they read as buttons rather than floating icons — shared by close /
   download / prev / next. */.gg-lightbox-close,.gg-lightbox-download,.gg-lightbox-nav{display:flex;align-items:center;justify-content:center;border-radius:50%;background:#fff;border:1px solid #ddd6cc;box-shadow:0 2px 8px rgba(35, 39, 58, 0.1);color:var(--gg-fg);cursor:pointer;transition:background-color 0.2s ease,border-color 0.2s ease,opacity 0.15s ease}.gg-lightbox-close:hover,.gg-lightbox-download:hover:not(:disabled),.gg-lightbox-nav:hover:not(:disabled){background:var(--gg-accent-soft);border-color:rgba(244, 129, 63, 0.35)}/* Dark outline — --gg-primary on white fails the 3:1 non-text contrast ratio. */.gg-lightbox-close:focus-visible,.gg-lightbox-download:focus-visible,.gg-lightbox-nav:focus-visible{outline:2px solid var(--gg-fg);outline-offset:2px}.gg-lightbox-close{position:absolute;top:max(14px, env(safe-area-inset-top));right:max(14px, env(safe-area-inset-right));width:40px;height:40px}/* Download sits to the left of close, same top row. */.gg-lightbox-download{position:absolute;top:max(14px, env(safe-area-inset-top));right:calc(max(14px, env(safe-area-inset-right)) + 48px);width:40px;height:40px}.gg-lightbox-download:disabled{opacity:0.5;cursor:default}/* Tooltip: dark bubble below the icon (attr() recipe as color-filter.css,
   arrow flipped from .som-rail-tooltip--above). ::after = bubble, ::before =
   triangle pointing up at the icon. */.gg-lightbox-download::after{content:attr(data-tooltip);position:absolute;top:calc(100% + 9px);left:50%;transform:translateX(-50%);background:rgba(40, 44, 52, 0.95);color:#fff;font-family:var(--gg-sans);font-size:12px;font-weight:500;line-height:1;padding:6px 9px;border-radius:6px;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity 0.15s ease}.gg-lightbox-download::before{content:"";position:absolute;top:calc(100% - 3px);left:50%;transform:translateX(-50%);border:6px solid transparent;border-bottom-color:rgba(40, 44, 52, 0.95);pointer-events:none;opacity:0;transition:opacity 0.15s ease}/* Hover only on devices that really hover (skip touch); focus shows always. */@media (hover: hover){.gg-lightbox-download:hover::after,.gg-lightbox-download:hover::before{opacity:1}}.gg-lightbox-download:focus-visible::after,.gg-lightbox-download:focus-visible::before{opacity:1}/* Transient download-error pill (guest-gallery.js creates it on demand):
   same dark-bubble language as the tooltip, centered near the bottom of the
   lightbox, fades in/out. */.gg-lightbox-error{position:absolute;bottom:calc(max(32px, env(safe-area-inset-bottom)) + 12px);left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);background:rgba(40, 44, 52, 0.95);color:#fff;font-size:13px;font-weight:500;line-height:1.4;padding:10px 18px;border-radius:999px;text-align:center;pointer-events:none;opacity:0;transition:opacity 0.25s ease}.gg-lightbox-error-show{opacity:1}/* Prev/next carousel arrows (guest-photos-lightbox.js). 44px hit area;
   disabled at the ends (no wrap-around). */.gg-lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px}.gg-lightbox-prev{left:14px}.gg-lightbox-next{right:14px}.gg-lightbox-nav:disabled{opacity:0.3;cursor:default}@media (min-width: 768px){.gg-lightbox-prev{left:2rem}.gg-lightbox-next{right:2rem}}/* ── Mobile ──────────────────────────────────────────────────────────────── *//* On phones swipe is the primary gesture — keep the arrows visible but subtle
   (translucent white, still bordered for contrast over the photo) and hug the
   edges so they steal less of the photo. */@media (max-width: 560px){.gg-lightbox-nav{background:rgba(255, 255, 255, 0.75)}.gg-lightbox-prev{left:4px}.gg-lightbox-next{right:4px}}@media (max-width: 640px){.gg-grid{margin-top:2rem}}@media (prefers-reduced-motion: reduce){.gg-photo img{transition:none}.gg-photo:hover img{transform:none}}