/* Section de la galerie */
.galery-section{
    background-image: url('../../../images/backgrounds/bg-soins-section.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    padding: 2rem 20rem;
    margin: 0;
    height: 100%;
}

.galery-section .container-images{
    width: 98vw;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6rem;
    padding: 2rem 15rem;
    margin: 0;
}

.galery-section h2{
    color: var(--primary-color);
    margin: 0;
}

.galery-section hr{
    width: 25%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Items de la galerie */
.galery-section .galery-item{
    width: max-content;
    height: max-content;
    transition: all 0.3s ease-in-out;
}
.galery-section .galery-item:hover{
    filter: brightness(1.1);
    transform: scale(1.02);
}

.galery-section .galery-item img{
    height: 300px;
    width: 360px;
    object-fit: cover;
    object-position: center;
}

/* Conteneur de l'overlay full */
.overlay-full {
    display: none; /* Masqué par défaut */
    position: fixed; /* Fixé au viewport pour apparaître par-dessus tout */
    top: 0;
    left: 0;
    opacity: 1;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 5, 10, 0.8); /* Noir très foncé avec une légère teinte */
    backdrop-filter: blur(10px); /* Flou d'arrière-plan */
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Ordre de superposition très élevé */
    border-radius: 0;
}

/* Image affichée dans l'overlay full */
.overlay-full img {
    max-width: 90%;
    max-height: 90%;
    border: none;
}

/* Bouton pour fermer l'overlay full */
.close-overlay-full {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10001; /* Plus élevé que le contenu de la galerie */
}

/* Aide pour lecteurs d'écran */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media screen and (max-width: 768px) {
    .galery-section{
        width: 100vw;
        padding: 2rem 0;
        background-attachment: scroll;
    }
 
    .galery-section .container-images{
        width: 100vw;
        padding: 0;
        gap: 1rem;
    }
    .galery-section h2{
        font-size: 20px;
    }
    .galery-section hr{
        width: 20%;
    }
    .galery-section .galery-item img{
        height: auto;
        width: 100%;
        margin: auto;
    }
    .galery-section .galery-item{
        width: 90vw;
        height: auto;
    }
}
