/* --- Style du Mur Vidéo --- */
.avw-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.avw-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.avw-item:hover {
    transform: scale(1.03);
}

.avw-item img {
    width: 100%;
    height: auto;
    display: block;
}

.avw-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none; /* Pour que le clic traverse vers .avw-item */
}

.avw-item:hover .avw-item-title {
    opacity: 1;
}

/* --- Style de la Lightbox --- */
#avw-lightbox-wrapper {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99990;
    justify-content: center;
    align-items: center;
}

#avw-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1120px;
    /* Ratio 16:9 */
    padding-bottom: 50.625%; /* (9 / 16 * 90%) -- ajusté pour la largeur de 90% */
    height: 0;
    z-index: 99999;
}

#avw-lightbox-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#avw-lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 100000;
}