/* Tap a face in the viewer (album-people.js): host and collaborators only */
.people-btn[hidden] { display: none !important; }
.people-btn.is-on { background: rgba(255, 255, 255, 0.28) !important; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }

.people-layer { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.people-layer[hidden] { display: none; }
.people-face {
    position: fixed;
    pointer-events: auto;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 4px 18px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}
.people-face:hover { background: rgba(255, 255, 255, 0.14); }
.people-face:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.people-face.is-picked { border-color: #fff; background: rgba(255, 255, 255, 0.18); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 4px 18px rgba(0, 0, 0, 0.4); }

.people-panel {
    position: fixed;
    z-index: 6;
    left: 50%;
    bottom: 104px;
    transform: translateX(-50%);
    width: min(440px, calc(100vw - 32px));
    padding: 16px 16px 14px;
    border-radius: 22px;
    background: rgba(24, 24, 28, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    color: #fff;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}
.people-panel[hidden] { display: none; }
.people-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.people-panel__title { margin: 0; font-size: 16px; font-weight: 600; }
.people-panel__close {
    width: 32px; height: 32px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, 0.1); color: #fff;
    display: grid; place-items: center; cursor: pointer; flex: none;
}
.people-panel__strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.people-panel__strip::-webkit-scrollbar { display: none; }
.people-panel__strip img, .people-panel__strip span, .people-panel__more {
    flex: none; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: rgba(255, 255, 255, 0.08);
}
.people-panel__strip.is-loading span { animation: people-pulse 1.2s ease-in-out infinite; }
@keyframes people-pulse { 50% { opacity: 0.45; } }
.people-panel__more { display: grid; place-items: center; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.people-panel__actions { display: flex; gap: 8px; }
.people-panel__btn {
    flex: 1;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff;
    font: 600 14px Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; cursor: pointer; white-space: nowrap;
}
.people-panel__btn--primary { flex: 1.4; background: #fff; color: #000; border-color: #fff; }
.people-panel__btn:focus-visible, .people-panel__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.people-panel__note { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
@media (max-width: 600px) {
    .people-panel { bottom: 88px; }
    .people-panel__strip img, .people-panel__strip span, .people-panel__more { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .people-panel__strip.is-loading span { animation: none; } }

/* The photo counter sits where the panel opens */
.people-panel-open .lightbox-counter { visibility: hidden; }

/* One-time demo: a pulsing face on a grid photo + a callout (album-people.js) */
.people-demo-tile { z-index: 3; }
.people-demo-ring {
    position: absolute;
    z-index: 2;
    padding: 0;
    border: 2.5px solid #fff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28), 0 6px 22px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    animation: people-demo-pulse 1.6s ease-in-out infinite;
}
@keyframes people-demo-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.32), 0 6px 22px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0), 0 6px 22px rgba(0, 0, 0, 0.5); }
}
.people-demo-ring:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.people-demo-tip {
    position: absolute;
    z-index: 1000;
    width: min(320px, calc(100vw - 24px));
    padding: 16px 16px 14px;
    border-radius: 18px;
    background: #fff;
    color: #111014;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}
.people-demo-tip::before {
    content: '';
    position: absolute;
    top: -7px;
    left: calc(var(--arrow-x, 50%) - 7px);
    width: 14px;
    height: 14px;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 3px;
}
.people-demo-tip.is-above::before { top: auto; bottom: -7px; }
.people-demo-tip__kicker { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6874; }
.people-demo-tip__title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.people-demo-tip__text { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: #3a3842; }
.people-demo-tip__note { margin: 8px 0 0; font-size: 12.5px; color: #6b6874; }
.people-demo-tip__actions { display: flex; gap: 8px; margin-top: 12px; }
.people-demo-tip__btn {
    flex: 1; height: 40px; border-radius: 999px; border: 1px solid #d6d3dc; background: #fff; color: #111014;
    font: 600 14px Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; cursor: pointer;
}
.people-demo-tip__btn--primary { background: #111014; color: #fff; border-color: #111014; }
.people-demo-tip__btn:focus-visible { outline: 2px solid #111014; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .people-demo-ring { animation: none; } }
