/* --- CUSTOM VANILLA LIGHTBOX STYLES --- */
.cc-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cc-lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cc-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cc-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.cc-lightbox-caption {
    color: #fff;
    margin-top: 15px;
    text-align: center;
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
    line-height: 1.4;
}

/* Buttons */
.cc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 100000;
    transition: color 0.2s;
    padding: 10px;
}

.cc-lightbox-close:hover {
    color: #ccc;
}

.cc-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 100000;
}

.cc-lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.6);
}

.cc-lightbox-prev {
    left: 30px;
}

.cc-lightbox-next {
    right: 30px;
}

/* Hide arrows if single image */
.cc-lightbox-overlay.single-slide .cc-lightbox-nav {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cc-lightbox-prev {
        left: 10px;
    }

    .cc-lightbox-next {
        right: 10px;
    }

    .cc-lightbox-caption {
        font-size: 0.9rem;
    }
}