/* Client-facing photo gallery (dark, photo-first). */
body.ps-public { background: #0b0d10; color: #e9ecef; min-height: 100vh; display: flex; flex-direction: column; }
body.ps-public main { flex: 1; }
.ps-header { background: var(--ps-brand, #111827); color: #fff; position: sticky; top: 0; z-index: 20; }
.ps-logo { height: 36px; width: 36px; object-fit: cover; border-radius: 50%; background: #fff; }
.ps-preview-bar { background: #f59f00; color: #000; }

.ps-hero { min-height: 32vh; display: flex; align-items: flex-end; background: linear-gradient(160deg, var(--ps-brand, #1f2937), #0b0d10);
    background-size: cover; background-position: center; position: relative; }
.ps-hero.has-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgba(0,0,0,.75)); }
.ps-hero-inner { position: relative; padding: 4rem 1rem 2rem; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.ps-message { background: rgba(255,255,255,.06); border-radius: .75rem; padding: 1rem 1.25rem; }

/* masonry by CSS columns: no JS layout, works with lazy images */
.ps-masonry { columns: 2 160px; column-gap: 8px; }
@media (min-width: 768px) { .ps-masonry { columns: 3 220px; } }
@media (min-width: 1200px) { .ps-masonry { columns: 4 260px; } }
.ps-item { display: block; position: relative; margin-bottom: 8px; break-inside: avoid; border-radius: 6px; overflow: hidden;
    background: #1a1d21; width: 100%; }
.ps-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ps-item:hover img { transform: scale(1.02); }
.ps-heart { position: absolute; bottom: 6px; inset-inline-end: 6px; border: 0; border-radius: 50%; width: 38px; height: 38px;
    background: rgba(0,0,0,.45); color: #fff; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.ps-item.is-picked { outline: 3px solid #e03131; outline-offset: -3px; }
.ps-item.is-picked .ps-heart { color: #ff6b6b; background: rgba(255,255,255,.9); }

.ps-lightbox { position: fixed; inset: 0; z-index: 1050; background: rgba(0,0,0,.96); display: flex; align-items: center; justify-content: center; }
.ps-lb-img { max-width: 100vw; max-height: calc(100vh - 64px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.ps-lb-btn { position: absolute; border: 0; background: rgba(255,255,255,.08); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; }
.ps-lb-close { top: 12px; inset-inline-end: 12px; }
.ps-lb-prev { inset-inline-start: 12px; top: 50%; transform: translateY(-50%); }
.ps-lb-next { inset-inline-end: 12px; top: 50%; transform: translateY(-50%); }
[dir="rtl"] :is(.ps-lb-prev, .ps-lb-next) i::before { display: inline-block; transform: scaleX(-1); }  /* glyph only, see core/css/l10n.css */
.ps-lb-bar { position: absolute; bottom: 0; inset-inline: 0; padding: 10px 16px; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
@media (max-width: 576px) { .ps-lb-prev, .ps-lb-next { display: none; } }

.ps-gate { max-width: 440px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; color: #fff; }
.ps-gate .form-control { background: rgba(255,255,255,.95); }
