/* Galeri Lightbox - Style Seperti Shopee */
.galeri-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    touch-action: none;
    user-select: none;
}

.galeri-lightbox.active {
    display: flex;
}

.galeri-lightbox .close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    color: white;
    font-size: 35px;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    border: none;
    color: #fff;
}

.galeri-lightbox .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.galeri-lightbox .counter {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 20px;
    z-index: 10;
    font-family: system-ui, -apple-system, sans-serif;
}

.galeri-lightbox .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.galeri-lightbox .nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.galeri-lightbox .nav-btn.prev {
    left: 20px;
}

.galeri-lightbox .nav-btn.next {
    right: 20px;
}

.galeri-lightbox .slide-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.galeri-lightbox .slide-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 85vh;
    align-items: center;
    will-change: transform;
}

.galeri-lightbox .slide {
    min-width: 100vw;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.galeri-lightbox .slide img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #1a1a1a;
}

.galeri-lightbox .slide video {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #000;
}

.galeri-lightbox .slide-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 20px;
    border-radius: 20px;
    z-index: 10;
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 80%;
    text-align: center;
    backdrop-filter: blur(5px);
}

.galeri-lightbox .slide-info .file-name {
    font-weight: 500;
}

.galeri-lightbox .slide-info .file-type {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    margin-left: 8px;
}

.galeri-lightbox .dots-container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.galeri-lightbox .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.galeri-lightbox .dot.active {
    background: #fff;
    transform: scale(1.2);
}

.galeri-lightbox .dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .galeri-lightbox .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    .galeri-lightbox .nav-btn.prev {
        left: 8px;
    }
    .galeri-lightbox .nav-btn.next {
        right: 8px;
    }
    .galeri-lightbox .close-btn {
        top: 12px;
        right: 12px;
        font-size: 28px;
        width: 40px;
        height: 40px;
    }
    .galeri-lightbox .counter {
        top: 15px;
        font-size: 12px;
        padding: 4px 12px;
    }
    .galeri-lightbox .slide {
        padding: 10px;
    }
    .galeri-lightbox .slide img,
    .galeri-lightbox .slide video {
        max-width: 95%;
    }
    .galeri-lightbox .dots-container {
        bottom: 60px;
    }
    .galeri-lightbox .slide-info {
        bottom: 20px;
        font-size: 11px;
        padding: 6px 14px;
        max-width: 90%;
    }
}