/* ==========================================================================
   Full-screen photo viewer + private client gallery pages
   ========================================================================== */
.lb {
  --lb-bg: #0B0B0A; --lb-ink: #F3F1EC; --lb-ink-2: #A8A39A; --lb-line: #26241F;
  position: fixed; inset: 0; z-index: 900;
  display: grid; grid-template-rows: 64px minmax(0, 1fr) 96px;
  background: var(--lb-bg); color: var(--lb-ink);
  visibility: hidden; opacity: 0;
  transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
}
.lb.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.lb .t-label { color: var(--lb-ink-2); }
.lb__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-inline: 1.25rem 0.75rem; }
.lb__top-l { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.lb__count { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.lb__cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb__tools { display: flex; gap: 0.25rem; }
.lb .icon-btn { color: var(--lb-ink-2); }
.lb .icon-btn:hover { color: var(--lb-ink); opacity: 1; }
.lb__stage { position: relative; overflow: hidden; display: grid; place-items: center; padding: 0 clamp(1rem, 4vw, 4rem); touch-action: none; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out); }
.lb__img.is-swap { opacity: 0; }
.lb__spin { position: absolute; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); border-top-color: #fff; animation: spin 0.8s linear infinite; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.lb.is-loading .lb__spin { opacity: 1; transition-delay: 0.25s; }
.lb__zone { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; background: none; border: 0; cursor: none; }
.lb__zone--prev { left: 0; }
.lb__zone--next { right: 0; }
.lb__zone:focus-visible { outline: 1px solid var(--lb-ink); outline-offset: -10px; }
.lb__cursor { position: fixed; left: 0; top: 0; z-index: 950; pointer-events: none; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.8); display: grid; place-items: center; color: #fff; opacity: 0; scale: 0.8; transition: opacity 0.2s, scale 0.25s var(--ease-out); }
.lb__cursor.is-on { opacity: 1; scale: 1; }
.lb__cursor svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.lb__cursor[data-dir="prev"] svg { transform: rotate(180deg); }
.lb__thumbs { display: flex; gap: 6px; align-items: center; justify-content: safe center; padding: 0 1.25rem; overflow-x: auto; scrollbar-width: none; }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumbs button { flex: none; width: 58px; height: 58px; opacity: 0.38; transition: opacity var(--dur-1); }
.lb__thumbs button:hover { opacity: 0.8; }
.lb__thumbs button[aria-current="true"] { opacity: 1; outline: 1px solid var(--lb-ink); outline-offset: 3px; }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb.no-thumbs { grid-template-rows: 64px minmax(0, 1fr) 24px; }

/* ---------- Private client gallery ---------- */
.cg-hero { position: relative; min-height: 86svh; display: grid; place-items: end start; overflow: hidden; background: #0e0d0c; color: #fff; }
.cg-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.82; animation: hero-in 2s var(--ease-out) both; }
.cg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35), transparent 35%, transparent 50%, rgba(0,0,0,0.65)); }
.cg-hero__in { position: relative; z-index: 1; padding-bottom: clamp(2rem, 5vw, 4rem); display: grid; gap: 1rem; }
.cg-hero .t-label { color: rgba(255,255,255,0.85); }
.cg-hero__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.75rem; }
.cg-bar { position: sticky; top: 0; z-index: 300; background: var(--scrim); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.cg-bar__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 64px; }
.cg-bar .brand img { height: 34px; }
.cg-bar__r { display: flex; align-items: center; gap: 1.25rem; }
.cg-body { padding-block: clamp(2rem, 4vw, 3rem) var(--section); }
.cg-note { max-width: 40rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.jg__item .dl-btn { position: absolute; right: 0.5rem; bottom: 0.5rem; width: 38px; height: 38px; display: grid; place-items: center; background: rgba(255,255,255,0.92); color: #161513; opacity: 0; transition: opacity var(--dur-1); }
.jg__item:hover .dl-btn, .jg__item:focus-within .dl-btn { opacity: 1; }
.jg__item .dl-btn svg { width: 16px; height: 16px; }
.lock { min-height: 100svh; display: grid; grid-template-columns: 1.1fr 0.9fr; background: var(--paper); }
.lock__media { position: relative; overflow: hidden; background: #0e0d0c; }
.lock__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(0.7); transform: scale(1.1); }
.lock__panel { display: grid; place-items: center; padding: 3rem clamp(1.5rem, 5vw, 5rem); }
.lock__box { width: 100%; max-width: 380px; display: grid; gap: 1.25rem; }
.lock__box .brand img { height: 52px; }

@media (max-width: 760px) {
  .lb { grid-template-rows: 56px minmax(0, 1fr) 64px; }
  .lb__thumbs, .lb__zone, .lb__cursor { display: none !important; }
  .lb__stage { padding: 0; }
  .lb__top { padding-inline: 1rem 0.25rem; }
  .jg__item .dl-btn { opacity: 1; width: 32px; height: 32px; right: 0.3rem; bottom: 0.3rem; }
  .cg-bar__r .t-label { display: none; }
  .lock { grid-template-columns: 1fr; }
  .lock__media { height: 30svh; }
}
.cg-foot { padding-block: 2rem 3rem; border-top: 1px solid var(--line); text-align: center; }
.jg__item > a { cursor: zoom-in; }
