/**
 * Event slider + full-size image viewer
 * Shared by the home page (landing.css) and the login/register showcase (auth.css).
 */

.lp-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--vg-radius);
    border: 1px solid var(--vg-border);
    background: var(--vg-surface);
    aspect-ratio: 16 / 9;
}

.lp-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

.lp-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    display: block;
}

.lp-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp-slide-caption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
    padding: 6px 12px;
    border-radius: var(--vg-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: rgba(11, 13, 16, 0.75);
    border: 1px solid var(--vg-border);
}

.lp-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    background: rgba(11, 13, 16, 0.6);
    border: 1px solid var(--vg-border-strong);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background-color 0.12s ease;
}

.lp-slider:hover .lp-slider-nav { opacity: 1; }
.lp-slider-nav:hover { background: rgba(11, 13, 16, 0.85); }
.lp-slider-nav.prev { left: 12px; }
.lp-slider-nav.next { right: 12px; }

.lp-dots {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 6px;
}

.lp-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.lp-dot.active {
    width: 22px;
    background: var(--vg-accent);
}

/* Slides without a link open full size */
.lp-zoomable { cursor: zoom-in; }
.lp-zoomable:focus-visible { outline: 2px solid var(--vg-accent); outline-offset: -2px; }

/* ========== Lightbox ========== */

.lp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 72px;
    background: rgba(5, 6, 8, 0.92);
}

.lp-lightbox[hidden],
.lp-lb-btn[hidden],
.lp-lb-figure figcaption[hidden] { display: none; }

.lp-lb-figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lp-lb-figure img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: var(--vg-radius);
    border: 1px solid var(--vg-border);
}

.lp-lb-figure figcaption {
    font-size: 14px;
    color: var(--vg-text);
    text-align: center;
}

.lp-lb-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    background: var(--vg-surface-2);
    border: 1px solid var(--vg-border-strong);
    cursor: pointer;
}

.lp-lb-btn:hover { background: var(--vg-surface-3); }

.lp-lb-close {
    position: absolute;
    top: 16px;
    right: 16px;
}

.lp-lb-prev { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
.lp-lb-next { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }


@media (max-width: 768px) {
    .lp-slider-nav { display: none; }
    .lp-lightbox { padding: 64px 12px; }
    .lp-lb-prev, .lp-lb-next { top: auto; bottom: 16px; transform: none; }
    .lp-lb-prev { left: calc(50% - 56px); }
    .lp-lb-next { right: calc(50% - 56px); }
    .lp-slide-caption { left: 10px; bottom: 10px; font-size: 12.5px; padding: 4px 8px; }
    .lp-dots { right: 10px; bottom: 12px; }
}
