/* =========================================================
   Lightbox for .ve-gallery — click a photo to view it full
   size and browse the rest of the gallery.
   Scoped to .ve-lightbox only.
========================================================= */

.ve-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 70px 90px;
}

.ve-lightbox.is-open {
    display: flex;
}

.ve-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 13, 31, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    animation: veLbFadeIn 0.3s ease forwards;
}

@keyframes veLbFadeIn {
    to { opacity: 1; }
}

.ve-lightbox-inner {
    position: relative;
    width: min(1000px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    opacity: 0;
    transform: scale(0.94) translateY(10px);
    animation: veLbPopIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

@keyframes veLbPopIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ve-lightbox-stage {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
}

.ve-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 62vh;
    border-radius: 14px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    background: #060d1f;
}

.ve-lightbox-caption {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-top: 16px;
    text-align: center;
    min-height: 1.2em;
}

.ve-lightbox-counter {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 4px;
}

.ve-lightbox-close,
.ve-lightbox-nav {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.25s ease, transform 0.25s ease;
}

.ve-lightbox-close:hover,
.ve-lightbox-nav:hover {
    background: #2f6fed;
}

.ve-lightbox-close {
    position: absolute;
    top: -54px;
    right: 0;
    width: 42px;
    height: 42px;
    font-size: 16px;
}

.ve-lightbox-close:hover {
    transform: rotate(90deg);
}

.ve-lightbox-nav {
    position: absolute;
    top: 31vh;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 18px;
    z-index: 2;
}

.ve-lightbox-nav:hover {
    transform: translateY(-50%) scale(1.08);
}

.ve-lightbox-prev { left: -66px; }
.ve-lightbox-next { right: -66px; }

.ve-lightbox-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.ve-lightbox-thumb {
    width: 64px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    opacity: 0.55;
    background: none;
    transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    flex: 0 0 auto;
}

.ve-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ve-lightbox-thumb:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.ve-lightbox-thumb.is-active {
    opacity: 1;
    border-color: #2f6fed;
}

body.ve-lightbox-lock {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .ve-lightbox-backdrop,
    .ve-lightbox-inner {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 991px) {
    .ve-lightbox { padding: 60px 60px; }
    .ve-lightbox-prev { left: -8px; }
    .ve-lightbox-next { right: -8px; }
}

@media (max-width: 600px) {
    .ve-lightbox { padding: 16px; }
    .ve-lightbox-close {
        top: 0;
        right: 0;
        width: 38px;
        height: 38px;
    }
    .ve-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 15px;
        top: auto;
        bottom: -56px;
        transform: none;
    }
    .ve-lightbox-nav:hover { transform: scale(1.08); }
    .ve-lightbox-prev { left: calc(50% - 52px); }
    .ve-lightbox-next { right: calc(50% - 52px); }
    .ve-lightbox-img { max-height: 50vh; }
    .ve-lightbox-thumb { width: 48px; height: 36px; }
}
