/* =========================================
   Lightbox Styles — Minimalist Art Gallery Style
   ========================================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    /* Pure white background */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #111;
    /* Black text */
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-main);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity var(--transition-fast);
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 0.6;
}

.lightbox-close svg {
    display: none;
    /* Text only instead of icon */
}

.lightbox-close::after {
    content: 'Fermer';
}

/* Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #111;
    cursor: pointer;
    padding: 20px;
    font-size: 1.5rem;
    transition: opacity var(--transition-fast);
    z-index: 10;
    outline: none;
}

.lightbox-nav:hover {
    opacity: 0.5;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Replace icons with thin arrows */
.lightbox-prev svg,
.lightbox-next svg {
    stroke-width: 1;
    /* Very thin elegant arrows */
}

/* Content Area */
.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.99);
    /* Very subtle scale */
    transition: all 0.6s ease;
}

.lightbox.active .lightbox-content {
    opacity: 1;
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    /* No border radius, no box shadow */
}

.lightbox-content video {
    max-width: 100%;
    max-height: 75vh;
    outline: none;
}

/* Info Bar */
.lightbox-info {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 800px;
    z-index: 10;
}

.lightbox-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    color: #111;
    margin-bottom: 4px;
    font-style: italic;
    /* Classic fine art style */
}

.lightbox-description {
    font-family: var(--font-main);
    font-size: 0.75rem;
    color: #555;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Counter */
.lightbox-counter {
    position: absolute;
    top: 30px;
    left: 40px;
    font-family: var(--font-main);
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 0.1em;
    z-index: 10;
}

/* Hide thumbnails for a cleaner, gallery-like look */
.lightbox-thumbnails {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .lightbox-nav {
        display: none;
        /* Rely on swipe on mobile */
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 70vh;
        margin: 0;
    }

    .lightbox-info {
        bottom: 30px;
        max-width: 90vw;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
    }

    .lightbox-counter {
        top: 20px;
        left: 20px;
    }
}