/* ============================================================
   LIVE GALLERY  —  Onezeroart LLC
   Flat single-card slide: one screen at a time, fade on change.
   ============================================================ */

/* ---- page shell ---- */
.lg-page {
    --lg-bg:       #06010f;
    --lg-accent:   #8b5cf6;
    --lg-cyan:     #22d3ee;
    --lg-text:     rgba(255,255,255,.92);
    --lg-muted:    rgba(255,255,255,.50);
    --lg-interval: 5s;
    --card-w:      clamp(300px, 78vw, 960px);
    position: relative;
    background:
        radial-gradient(ellipse 1200px 600px at 15% -5%,  rgba(109,40,217,.22), transparent 65%),
        radial-gradient(ellipse 900px  500px at 88%  2%,  rgba(34,211,238,.12), transparent 60%),
        var(--lg-bg);
    color: var(--lg-text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow: hidden;
}

/* ambient orbs */
.lg-orbs { position:absolute; inset:0; pointer-events:none; z-index:0; overflow:hidden; }
.lg-orbs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: lg-float 16s ease-in-out infinite;
}
.lg-orbs span:nth-child(1){ top:4%;  left:6%;   width:340px; height:340px; background:rgba(139,92,246,.35); }
.lg-orbs span:nth-child(2){ top:35%; right:4%;  width:300px; height:300px; background:rgba(34,211,238,.22); animation-delay:-6s; }
.lg-orbs span:nth-child(3){ bottom:2%; left:40%; width:380px; height:380px; background:rgba(124,58,237,.18); animation-delay:-11s; }

@keyframes lg-float {
    0%,100% { transform:translate3d(0,0,0) scale(1); }
    50%     { transform:translate3d(0,-28px,0) scale(1.07); }
}

.lg-page > *:not(.lg-orbs){ position:relative; z-index:1; }

/* ================================================================
   HERO
   ================================================================ */
.lg-hero {
    text-align: center;
    padding: 148px 20px 0;
}
.lg-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .06em;
    color: #c4b5fd;
    background: rgba(139,92,246,.07);
    border: 1px solid rgba(139,92,246,.35);
    border-radius: 50px;
    margin-bottom: 20px;
}
.lg-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #34d399;
    animation: lg-pulse 1.8s ease-out infinite;
}
@keyframes lg-pulse {
    0%  { box-shadow: 0 0 0 0   rgba(52,211,153,.60); }
    70% { box-shadow: 0 0 0 9px rgba(52,211,153,0);   }
    100%{ box-shadow: 0 0 0 0   rgba(52,211,153,0);   }
}
.lg-hero h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(32px,5.5vw,56px);
    line-height: 1.07;
    margin: 0 auto 12px;
    max-width: 860px;
    background: linear-gradient(92deg, #fff 25%, #c4b5fd 60%, #67e8f9 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lg-hero p {
    color: var(--lg-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto;
}
.lg-hero p strong { color: #a78bfa; font-weight: 700; }

/* ================================================================
   FLAT SLIDE LAYOUT
   ================================================================ */
.lg-coverflow {
    position: relative;
    width: 100%;
    margin: 30px auto 0;
}

/* The stage is card-width wide, centered, and is the arrow reference */
.lg-stage {
    position: relative;
    width: var(--card-w);
    margin: 0 auto;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.lg-stage.is-grabbing { cursor: grabbing; }


.lg-track {
    position: relative;
    width: 100%;
}

/* ---- card (flat, fade only) ---- */
.lg-card {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transition: opacity .40s ease, visibility 0s linear .40s;
}
.lg-card.is-center {
    position: relative; /* pulls track height from active card */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
    transition: opacity .40s ease;
}

/* browser frame */
.lg-card-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #08020f;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow:
        0 32px 80px -24px rgba(0,0,0,.85),
        0 0  60px -30px rgba(139,92,246,.28);
}

/* browser chrome bar */
.lg-card-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    background: rgba(255,255,255,.025);
    border-bottom: 1px solid rgba(255,255,255,.055);
}
.lg-traffic { display:flex; gap:6px; flex-shrink:0; }
.lg-traffic span { width:11px; height:11px; border-radius:50%; }
.lg-traffic span:nth-child(1){ background:#ff5f57; }
.lg-traffic span:nth-child(2){ background:#febc2e; }
.lg-traffic span:nth-child(3){ background:#28c840; }

.lg-card-name {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: var(--lg-muted);
    margin-left: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.lg-live {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 10px;
    letter-spacing: .06em;
    color: var(--lg-accent);
    padding: 3px 10px;
    border-radius: 50px;
    border: 1px solid rgba(139,92,246,.45);
    background: rgba(139,92,246,.12);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.lg-live::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--lg-accent);
    box-shadow: 0 0 6px var(--lg-accent);
    animation: lg-pulse 1.6s ease-out infinite;
}

/* image area */
.lg-card-media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #08020f;
}
.lg-card-media img {
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center top;
    display: block;
}

@keyframes lg-fill { from{ width:0; } to{ width:100%; } }

/* ---- nav arrows (outside stage edges) ---- */
.lg-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 52px; height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(14,6,30,.70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    cursor: pointer;
    transition: background .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.lg-arrow:hover {
    background: rgba(139,92,246,.45);
    border-color: rgba(139,92,246,.9);
    box-shadow: 0 0 28px -4px var(--lg-accent);
}
.lg-arrow-prev { left:  -68px; }
.lg-arrow-next { right: -68px; }
.lg-arrow-prev:hover { transform: translateY(-50%) translateX(-2px) scale(1.08); }
.lg-arrow-next:hover { transform: translateY(-50%) translateX( 2px) scale(1.08); }

/* ================================================================
   CAPTION
   ================================================================ */
.lg-caption {
    text-align: center;
    margin: 24px auto 0;
    padding: 0 24px;
    min-height: 60px;
}
.lg-caption-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 2.8vw, 34px);
    margin: 0;
    background: linear-gradient(92deg,#fff,#c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.15;
}
.lg-caption-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: var(--lg-muted);
    margin: 5px 0 0;
    letter-spacing: .04em;
}
.lg-caption.is-swap .lg-caption-title {
    animation: lg-swap .45s cubic-bezier(.22,1,.36,1);
}
@keyframes lg-swap {
    from { opacity:0; transform:translateY(8px); }
    to   { opacity:1; transform:translateY(0);   }
}

/* ================================================================
   CONTROL BAR
   ================================================================ */
.lg-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 20px auto 0;
    padding: 0 24px;
}
.lg-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px 9px 11px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: var(--lg-text);
    border: 1px solid rgba(139,92,246,.30);
    background: rgba(255,255,255,.03);
    border-radius: 50px;
    cursor: pointer;
    transition: border-color .25s, background .25s;
}
.lg-play:hover { border-color:rgba(139,92,246,.65); background:rgba(139,92,246,.10); }
.lg-play-icon {
    width:26px; height:26px;
    border-radius:50%;
    display:grid; place-items:center;
    background:linear-gradient(135deg,var(--lg-accent),#6d28d9);
    color:#fff; flex-shrink:0;
}
.lg-play-icon svg { display:block; }
.lg-play .lg-i-pause{ display:block; }
.lg-play .lg-i-play { display:none;  }
.lg-page.is-paused .lg-play .lg-i-pause{ display:none;  }
.lg-page.is-paused .lg-play .lg-i-play { display:block; }
.lg-play .lg-playing{ display:inline; }
.lg-play .lg-paused { display:none;   }
.lg-page.is-paused .lg-play .lg-playing{ display:none;   }
.lg-page.is-paused .lg-play .lg-paused { display:inline; }

.lg-timeline {
    width: min(320px, 38vw);
    height: 4px;
    border-radius: 50px;
    background: rgba(255,255,255,.09);
    overflow: hidden;
}
.lg-timeline-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--lg-accent), var(--lg-cyan));
}
.lg-timeline-fill.lg-run { animation: lg-fill var(--lg-interval) linear forwards; }
.lg-page.is-paused .lg-timeline-fill { animation-play-state:paused; }

.lg-counter {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    color: var(--lg-muted);
    min-width: 64px;
    text-align: center;
}
.lg-counter b  { color:#fff; font-weight:700; font-size:18px; }
.lg-counter i  { font-style:normal; margin:0 3px; opacity:.45; }

/* ================================================================
   THUMBNAIL STRIP
   ================================================================ */
.lg-strip-wrap {
    position: relative;
    max-width: 1100px;
    margin: 28px auto 0;
    padding: 0 50px;
}
.lg-strip-wrap::before,
.lg-strip-wrap::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 54px;
    z-index: 2;
    pointer-events: none;
}
.lg-strip-wrap::before { left:  50px; background:linear-gradient(90deg, var(--lg-bg), transparent); }
.lg-strip-wrap::after  { right: 50px; background:linear-gradient(270deg,var(--lg-bg), transparent); }

.lg-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px 14px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(139,92,246,.45) transparent;
}
.lg-strip::-webkit-scrollbar      { height:5px; }
.lg-strip::-webkit-scrollbar-track{ background:transparent; }
.lg-strip::-webkit-scrollbar-thumb{ background:rgba(139,92,246,.4); border-radius:50px; }

.lg-thumb {
    flex: 0 0 150px;
    display: block;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}
.lg-thumb-img {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid rgba(255,255,255,.07);
    background: #08020f;
    transition: border-color .3s, box-shadow .3s, transform .3s cubic-bezier(.16,1,.3,1);
}
.lg-thumb-img img {
    width:100%; height:100%;
    object-fit: cover;
    object-position: top center;
    filter: brightness(.72);
    transition: filter .3s, transform .45s cubic-bezier(.16,1,.3,1);
    display: block;
}
.lg-thumb-num {
    position: absolute;
    top:5px; left:5px;
    font-family:'Syne',sans-serif;
    font-size:10px; font-weight:700;
    color:#fff;
    padding:1px 6px;
    border-radius:5px;
    background:rgba(6,1,15,.6);
    border:1px solid rgba(255,255,255,.12);
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
}
.lg-thumb-label {
    display: block;
    margin-top: 7px;
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--lg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .25s;
}
.lg-thumb:hover .lg-thumb-img { transform:translateY(-3px); border-color:rgba(139,92,246,.5); }
.lg-thumb:hover .lg-thumb-img img { filter:brightness(.95); transform:scale(1.06); }
.lg-thumb:hover .lg-thumb-label { color:var(--lg-text); }
.lg-thumb:focus-visible .lg-thumb-img { border-color:var(--lg-accent); box-shadow:0 0 0 3px rgba(139,92,246,.35); }
.lg-thumb.is-active .lg-thumb-img {
    border-color: var(--lg-accent);
    box-shadow: 0 0 0 2px var(--lg-accent), 0 10px 28px -12px var(--lg-accent);
}
.lg-thumb.is-active .lg-thumb-img img { filter:brightness(1); }
.lg-thumb.is-active .lg-thumb-label   { color:#fff; font-weight:600; }

/* expand / view full */
.lg-expand-wrap { text-align:center; padding-bottom:90px; }
.lg-expand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #fff;
    padding: 11px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.04);
    cursor: pointer;
    transition: background .25s, border-color .25s, transform .2s;
}
.lg-expand:hover {
    background: rgba(139,92,246,.20);
    border-color: var(--lg-accent);
    transform: translateY(-2px);
}
.lg-empty {
    text-align:center;
    color:rgba(255,255,255,.5);
    padding:60px 20px 120px;
}

/* ================================================================
   LIGHTBOX
   ================================================================ */
.lg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
    background: rgba(5,1,12,.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transition: opacity .35s ease;
}
.lg-lightbox.is-open { display:flex; opacity:1; }
.lg-lb-stage {
    position: relative;
    max-width: 1200px;
    width: 100%;
    text-align: center;
    transform: scale(.88) translateY(14px);
    opacity: 0;
    transition: transform .42s cubic-bezier(.16,1,.3,1), opacity .42s ease;
}
.lg-lightbox.is-open .lg-lb-stage { transform:scale(1) translateY(0); opacity:1; }
.lg-lb-frame {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 50px 140px -30px #000;
    background: #08020f;
}
.lg-lb-img { display:block; width:100%; max-height:80vh; object-fit:contain; background:#08020f; }
.lg-lb-caption {
    margin-top:14px;
    font-family:'Outfit',sans-serif;
    font-size:15px;
    color:var(--lg-text);
}
.lg-lb-caption span { color:var(--lg-muted); font-size:13px; margin-left:8px; }
.lg-lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width:50px; height:50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(18,8,36,.75);
    color: #fff;
    cursor: pointer;
    transition: background .25s, transform .25s, border-color .25s;
}
.lg-lb-btn:hover { background:rgba(139,92,246,.4); border-color:rgba(139,92,246,.85); }
.lg-lb-prev { left:-10px; }
.lg-lb-next { right:-10px; }
.lg-lb-prev:hover { transform:translateY(-50%) translateX(-3px); }
.lg-lb-next:hover { transform:translateY(-50%) translateX( 3px); }
.lg-lb-close {
    position: absolute;
    top:-54px; right:0;
    width:44px; height:44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(18,8,36,.75);
    color: #fff;
    cursor: pointer;
    transition: background .25s, transform .25s;
}
.lg-lb-close:hover { background:rgba(255,95,87,.35); transform:rotate(90deg); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .lg-arrow-prev { left: -54px; }
    .lg-arrow-next { right: -54px; }
    .lg-arrow { width:44px; height:44px; }
}
@media (max-width: 680px) {
    .lg-page { --card-w: clamp(260px, 92vw, 540px); }
    .lg-hero { padding-top: 100px; }
    /* Arrows inside the card on small screens */
    .lg-arrow-prev { left: 10px; }
    .lg-arrow-next { right: 10px; }
    .lg-arrow { width:40px; height:40px; }
    .lg-controls { gap:12px; }
    .lg-timeline { width:42vw; }
    .lg-strip-wrap { padding:0 36px; }
    .lg-thumb { flex-basis:120px; }
    .lg-lb-prev { left:2px; }
    .lg-lb-next { right:2px; }
    .lg-lb-btn { width:42px; height:42px; }
    .lg-lb-close { top:-50px; }
    /* tabs */
    .lg-tabs-wrap { padding: 0 12px; margin-top: 28px; }
    .lg-tabs { justify-content: flex-start; }
    .lg-tab { padding: 7px 12px; font-size: 12px; gap: 5px; }
    .lg-tab-icon { display: none; }
    .lg-mod-tagline { margin-top: 10px; }
    .lg-mod-value { font-size: 13px; }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    .lg-card,
    .lg-thumb-img,
    .lg-thumb-img img,
    .lg-lb-stage,
    .lg-expand,
    .lg-mod-value,
    .lg-tab { transition:none !important; }

    .lg-orbs span,
    .lg-card-progress,
    .lg-timeline-fill,
    .lg-pulse,
    .lg-live::before { animation:none !important; }

    .lg-timeline-fill { width:100%; }
    .lg-caption.is-swap .lg-caption-title { animation:none !important; }
}
