
#work_pic .pics {
    display: flex;
    justify-content: center;
}

#work_pic .pics .container {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    min-height: fit-content;
    gap: 20px;
    padding: calc(5px + 2%);
    transition: var(--transition-4);
}

#work_pic .border_picture {
    --height: 400px;
    flex: 1 1 200px;
    max-width: 400px;
    min-width: 200px;
    height: var(--height);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    
    position: relative; /* nécessaire pour le position absolute des hidden */
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

#work_pic .border_picture.hidden {
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
    position: absolute;
    pointer-events: none;
    width: 0;
    height: 0;
    overflow: hidden;
}


#work_pic .border_picture .content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    min-width: 100%;
}

#work_pic .border_picture .content img {
    min-height: var(--height);
    width: 100%;
    object-fit: cover;
    aspect-ratio: initial;
}
