#lightbox-content iframe {
    aspect-ratio: 4/3;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    background: #222;
    border-radius: 8px;
    box-shadow: 0 0 20px #000;
    display: block;
    margin: 0 auto;
}
/* Styles pour la lightbox image/vidéo */
#lightbox-modal {
    position: fixed;
    flex-direction: column;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: auto;
}

#lightbox-content{
    width: 90vw;
    height: fit-content;
    max-width: 1024px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-content img,
#lightbox-content video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}
#lightbox-content video {
    background: #222;
    max-height: 90vh;
}

.lightbox-description{
    margin-top: 1rem;
    max-width: 1024px;
    padding: 0 1rem;
    word-wrap: break-word;
}

/* Position relative pour permettre le positionnement absolu du bouton */
#lightbox-content {
    position: relative;
}

/* ===== BOUTON COMPARAISON DANS LIGHTBOX ===== */
.lightbox-comparison-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: #7b98a757;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    z-index: 10001;
    font-family: inherit;
}

.lightbox-comparison-btn:hover {
    background-color: #6b95a9a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.lightbox-comparison-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Styles pour l'iframe de comparaison */
.lightbox-comparison-iframe {
    width: 90%;
    height: auto;
    min-height: 400px;
    border: none;
    border-radius: 8px;
    background: white;
    transition: height 0.3s ease;
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .lightbox-comparison-btn {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .lightbox-comparison-iframe {
        width: 95%;
        height: 60vh;
        max-height: 500px;
        min-height: 300px;
    }

    .lightbox-description {
        max-width: 375px;
    }
}

.descriptionTags {
    font-size: 0.9rem;
    color: #ccc;
    display: flex;
    flex-wrap: wrap;
}