#category_section {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 3vh;
    margin: 0 0 2vh;
    background-color: #e7ebec;
}

#categorie_container {
    display: grid;
    margin: 1vh 2vw 0;
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: auto;
    grid-gap: 2vw;
}


#title_subcategory_selection {
    position: relative;
    padding: 2vh;
    font-size: 2.5vh;
    font-weight: bold;
    color: #1A1A1A;
    z-index: 9;
}

.best {
    grid-row-end: span 1;
    grid-column-end: span 2;
    width: 100%;
    aspect-ratio: 3/1;
    font-size: 1.5vh;
}

.aleatory {
    grid-row-end: span 1;
    grid-column-end: span 1;
    font-size: 1.5vh;
}

.best .image_count {
    font-size: 3vh;
}

.best .image_count:after {
    font-size: 1.5vh;
}

.aleatory .image_count {
    font-size: 3vh;
}

.aleatory .image_count:after {
    font-size: 1.5vh;
}

@media screen and (min-aspect-ratio: 8/9) {
    .best {
        aspect-ratio: 5/1;
        grid-column-end: span 4;
        font-size: 2vh;
    }

    .aleatory {
        aspect-ratio: 5/2;
        grid-column-end: span 2;
        font-size: 2vh;
    }

    .small {
        font-size: 2vh;
    }

    #categorie_container {
        width: 80%;
        margin: auto;
        grid-template-columns: repeat(6,1fr);
        grid-gap: .5vw;
    }
    #title_subcategory_selection {
        padding: 1vh 2vh;
    }

    .best .image_count {
        font-size: 5vh;
    }

    .aleatory .image_count {
        font-size: 5vh;
    }


    #portfolio_section {
        padding: 0 10% 3vh;
        width: auto;
    }
}

@media screen and (min-aspect-ratio: 6/10) and (max-aspect-ratio: 12/10)  {
    #categorie_container {
        width: 95%;
        grid-gap: 1vw;
    }

    #portfolio_section {
        padding: 0;
    }
}