.custom-lightbox {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.95);
        z-index: 99999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        backdrop-filter: blur(10px);
    }
    .custom-lightbox.active { opacity: 1; visibility: visible; }
    .lightbox-content {
        position: relative;
        max-width: 90vw;
        max-height: 80vh;
        transform: scale(0.9);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        user-select: none;
    }
    .custom-lightbox.active .lightbox-content { transform: scale(1); }
    .lightbox-img {
        max-width: 100%;
        max-height: 80vh;
        object-fit: contain;
        border-radius: 15px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.5);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .lightbox-detail {
        position: absolute;
        bottom: -70px;
        left: 0;
        width: 100%;
        text-align: center;
        color: white;
        font-size: 1.1rem;
        font-weight: 300;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        line-height: 1.4;
    }
    .lightbox-detail strong { font-size: 1.3rem; font-weight: 600; display: block; margin-bottom: 4px; color: white; }
    .custom-lightbox.active .lightbox-detail { opacity: 1; transform: translateY(0); }
    .lightbox-close {
        position: absolute;
        top: 25px;
        right: 30px;
        background: none; border: none;
        color: white; font-size: 2.5rem; line-height: 1;
        cursor: pointer; transition: color 0.2s ease, transform 0.2s ease;
    }
    .lightbox-close:hover { color: #2aa175; transform: scale(1.1); }
    .lightbox-nav {
        position: absolute; top: 50%; transform: translateY(-50%);
        background: rgba(255,255,255,0.1); border: none; color: white;
        width: 60px; height: 60px; border-radius: 50%;
        display: flex; justify-content: center; align-items: center;
        cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
        backdrop-filter: blur(5px); z-index: 1;
    }
    .lightbox-nav:hover { background: rgba(255,255,255,0.25); transform: translateY(-50%) scale(1.1); }
    .lightbox-prev { left: 40px; }
    .lightbox-next { right: 40px; }
    @media (max-width: 768px) {
        .lightbox-nav { width: 45px; height: 45px; background: rgba(255,255,255,0.25); }
        .lightbox-prev { left: 25px; }
        .lightbox-next { right: 25px; }
        .lightbox-detail { font-size: 0.95rem; bottom: -60px; padding: 0 10px; }
        .lightbox-close { top: 15px; right: 15px; }
    }