/* ----------------------------------------------------------
   STRUCTURE DE BASE
---------------------------------------------------------- */

.vlc-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.vlc-track {
    display: flex;
    will-change: transform;
}

/* ----------------------------------------------------------
   SLIDES
---------------------------------------------------------- */

.vlc-slide {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 300ms ease, opacity 300ms ease;
    width: var(--vlc-slide-width, 20%);
    cursor: pointer;
}

.vlc-slide img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: auto;
    cursor: pointer;
}

/* ----------------------------------------------------------
   LIGHTBOX
---------------------------------------------------------- */

.mic-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .2s ease;
    z-index: 9999;
}

.mic-lightbox.visible {
    opacity: 1;
}

.mic-lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.mic-lightbox-close,
.mic-lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: white;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
}

.mic-lightbox-close {
    top: 20px;
    right: 20px;
    transform: none;
    font-size: 40px;
}

.mic-lightbox-arrow-left {
    left: 30px;
}

.mic-lightbox-arrow-right {
    right: 30px;
}

/* ----------------------------------------------------------
La lightbox passe au-dessus de la barre admin
---------------------------------------------------------- */

body.admin-bar .tpgb-lightbox-container,
body.admin-bar .tpgb-lightbox-overlay,
body.admin-bar .tpgb-lightbox-content {
    z-index: 999999 !important;
}

/* ----------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------- */
/* Desktop (déjà OK) */
.vlc-slide {
    width: var(--vlc-slide-width, 20%);
}

/* Tablette */
@media (max-width: 1024px) {
    .vlc-slide {
        width: 33.333%; /* 3 slides visibles */
    }
}

/* Mobile large */
@media (max-width: 768px) {
    .vlc-track {
        gap: 0 !important; /* Suppression de l'espacement sur mobile */
    }
    .vlc-slide {
        width: 100% !important; /* 1 slide visible */
    }
}

/* Mobile petit */
@media (max-width: 480px) {
    .vlc-slide {
        width: 100%; /* 1 slide visible */
    }
}
