/* ================= LIGHTBOX ================= */
.gallery_lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.gallery_lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* SLIDER */
.lightbox_slider {
    width: 90%;
    max-width: 1100px;
    height: 75vh;
    overflow: hidden;
    position: relative;
}

.lightbox_track {
    display: flex;
    height: 100%;
    transition: transform 0.45s ease;
}

.lightbox_slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox_slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* UI */
.lightbox_caption {
    position: absolute;
    bottom: 35px;
    color: #fff;
    font-size: 15px;
    text-align: center;
    width: 100%;
}

.lightbox_counter {
    position: absolute;
    top: 20px;
    left: 25px;
    color: #fff;
    font-size: 13px;
}

.lightbox_close {
    position: absolute;
    top: 18px;
    right: 25px;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
}

/* NAV */
.lightbox_prev,
.lightbox_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.25s;
}

.lightbox_prev { left: 25px; }
.lightbox_next { right: 25px; }

.lightbox_prev:hover,
.lightbox_next:hover {
    background: rgba(255,255,255,0.2);
}

/* ================= FULL GALLERY ================= */
.full_gallery_overlay {
    position: fixed;
    inset: 0;
    background: #0b0f1a;
    z-index: 999999;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.full_gallery_overlay.active {
    opacity: 1;
    visibility: visible;
}

.full_gallery_header {
    position: sticky;
    top: 0;
    background: rgba(11,15,26,0.9);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.full_gallery_header h4{
    margin: 0;
    color: #fff;
}

.full_gallery_header .full_gallery_close{
    cursor: pointer;
    width: 24px;
    height: 24px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.full_gallery_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px;
}

.full_gallery_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}