/*  Fichier CSS | Gestion galerie photo
_______________________________
_______________________________

Créé par LM SYSTEM
Michaël LEBREF
Copyright © 2026
Tous droits réservés
_______________________________
_______________________________

*/


img[src*=vignette] {
    margin-right: 20px;
    margin-bottom: 20px;
	width:350px;
	height:220px;
    cursor: pointer;
	box-shadow:12px 12px 10px 0 rgba(0,0,0,0.5);
	filter: grayscale(10%);
	}

img[src*=vignette]:hover{
	filter: grayscale(0);
	transform:scale(1.05);
}

#grande {
    transition-property: opacity;
    transition-timing-function: ease-in-out;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
	cursor: pointer;
}

#grande>img {
    max-width: 80vw;
    max-height: 80vh;
}


/* ============================= */
/* BOUTONS PRÉCÉDENT / SUIVANT */
/* ============================= */

#precedent,
#suivant {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 60px;
    height: 80px;

    border: none;
    color: white;
    background-color: rgba(0, 0, 0, 0.45);

    font-size: 40px;
    line-height: 80px;

    cursor: pointer;

    z-index: 2;

    transition: background-color 0.2s;
}

#precedent:hover,
#suivant:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#precedent {
    left: 20px;
}

#suivant {
    right: 20px;
}


