.galeries {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    height: 460px;
    margin: auto;
    padding-bottom: 20px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.galerie {
    position: relative;
    overflow: hidden;
    margin: 10px;
    background: var(--optionBackground, #E6E9ED);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: flex-grow 0.9s ease, transform 0.5s ease, background-size 0.5s ease opacity 0.5s ease;
    flex-grow: 1;
    border-radius: 30px;
}

.galerie.active {
    flex-grow: 10;
    max-width: 100%;
    border-radius: 40px;
    background-size: cover;
    transition: .4s;
    z-index: 10;
}

.galerie .galerie-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    display: block;
    text-decoration: none;
}

.galerie:not(.active) .galerie-link {
    pointer-events: none;
}

.galerie .shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    box-shadow: inset 0 -120px 120px -120px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.5s ease;
}

.galerie .label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: flex-start;
    color: white;
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
    opacity: 0; 
    transition: opacity 0.3s ease;
}

.galerie.active .label {
    opacity: 1; 
    transition: opacity 0.3s ease;
}

.label .info {
    color: var(--blanc);
}

.info .main {
    font-size: 1.2rem;
    font-weight: bold;
}

.info .sub {
    font-size: 0.9rem;
}

.scroll-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-in-out;
}

.scroll-in-visible {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (min-width: 769px) {
    .galerie {
        height: 100%;
        width: 60px;
    }

    .galerie.active {
        height: 100%;
        width: 700px;
    }
}
  
@media screen and (max-width: 768px) {
    .galeries {
        flex-direction: column;
        height: auto;
        width: 100%;
        max-width: 100%;
    }

    .galerie {
        margin: 10px 0;
        height: 80px;
        max-width: 100%;
        width: 100%;
    }

    .galerie.active {
        width: 100%;
        height: 300px;
    }
}