/* Guest limit messages: the "free gallery limit" viewer and the chat Join popup (colours from the site's variables only). */
.gl-view { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 320px; overflow: hidden; border-radius: 6px; }
.gl-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) brightness(.7); transform: scale(1.1); }
.gl-card { position: relative; z-index: 1; display: grid; gap: 18px; justify-items: center; padding: 24px; max-width: min(92%, 560px); text-align: center; color: var(--msg-white); }
.gl-card h2 { margin: 0; font-size: clamp(22px, 3.4vw, 32px); font-weight: 600; }
.gl-row { display: flex; align-items: center; gap: 14px; text-align: left; }
.gl-av { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--msg-accent); color: var(--msg-on-accent); font-weight: 800; font-size: 22px; border: 2px solid color-mix(in srgb, var(--msg-white) 55%, transparent); }
.gl-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-say { margin: 0; padding: 14px 18px; border-radius: 14px; background: color-mix(in srgb, var(--msg-black) 55%, transparent); line-height: 1.4; }
.gl-join { min-height: 48px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--msg-accent); color: var(--msg-on-accent); font: inherit; font-weight: 800; cursor: pointer; }
.gl-later { min-height: 44px; padding: 0 18px; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; opacity: .85; }
/* the chat's sign-up card: over the bottom of the chat only, the messages above stay readable */
.lv-chat:has(.gl-gate) { position: relative; }
.gl-gate { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; border-radius: 14px; background: var(--msg-surface); border: 1px solid var(--msg-border); color: var(--msg-text); box-shadow: 0 10px 30px color-mix(in srgb, var(--msg-black) 45%, transparent); animation: gl-up .25s ease-out; }
.gl-gate[hidden] { display: none; }
.gl-gate { padding-right: 40px; }
.gl-x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; border-radius: var(--btn-rc, 50%); background: transparent; color: var(--msg-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.gl-gavatar { flex: none; display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--msg-accent); }
.gl-gtext { flex: 1 1 160px; margin: 0; font-size: 14px; line-height: 1.4; }
.gl-gbtns { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.gl-gate .gl-join { min-height: var(--btn-h, 36px); padding: 0 18px; border-radius: var(--btn-r, 999px); font-weight: 700; }
.gl-gate .gl-later { min-height: var(--btn-h, 36px); padding: 0 10px; text-decoration: none; }
@keyframes gl-up { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gl-gate { animation: none; } }
@media (max-width: 899px) { body:has(.lv-join-bar) .gl-gate { bottom: 72px; } } /* on a phone the room's Join bar is fixed over the bottom of the chat: the card sits above it */
