#carrousel_container {
    position: relative;
    display: flex;
    height: 78vh;
    /*width: 100%;*/
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.carrousel {
    flex:0 0 100%;
    width: 100%;
    scroll-snap-align: center;
    overflow: hidden;
}

.title_carrousel {
    position: relative;
    padding: 2vh;
    font-size: 4vh;
    font-weight: bold;
    color: white;
    z-index: 9;
}

.get_frame_container {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 100%;
    bottom: 8vh;
    gap: 1vh;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
}

.get_frame_btn{
    font-size: 2.2vh;
    padding: 1.5vh 4vh;
    border-radius: 6vw;
    color: white;
    background-color: rgba(25,25,25,.9);
}

.get_frame_btn:hover{
    background-color: rgba(45,45,45,.9);
}

.get_other_frame {
    color: white;
    font-size: 1.5vh;
    text-decoration: underline;
}

.img_background {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 0;
}

.img_background img {
    display: block;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.color_overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    top:0;
    background-color: #525252;
    filter: brightness(20%);
    opacity: .8;
    z-index: 1;
}

.picture_container {
    position: relative;
    display: flex;
    /*height: 43vh;*/
    gap: 2vh;
    margin: 2vh;
    align-items: center;
    z-index: 3;
    overflow: hidden;
    opacity: 0;
    transition: .1s;
}

.paysage {
    flex-direction: column;
}
.portrait {
    flex-direction: row;
}

.portrait .frames_panel{
    position: absolute;
    flex-direction: column;
    right: 0;
}

.picture {
    position: relative;
    height: fit-content;
    margin: 0;
    padding: 2vh;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px, inset 0 .5vh 2vh rgba(0, 0, 0, 0.35);
    border: 2vh #373737 outset;
    overflow: hidden;
    transition: .3s;
}

.paysage .picture {
    max-width: 500px;
}

.portrait .picture {
    max-width: 23vh;
}

.picture_img{
    display: block;
}

.picture_img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frames_panel {
    display: flex;
    justify-content: space-between;
    border-radius: 1vh;
    padding: 1vh;
    gap: 1vh;
    background-color: rgba(25,25,25,.8);
    cursor: pointer;
}

.frame {
    width: 5vh;
    aspect-ratio: 1/1;
    border-radius: 1vh;
    box-shadow: 0 0 0 .3vh #1A1A1A;
    overflow: hidden;
}

.frame:active {
    box-shadow: 0 0 0 .3vh white;
}

.frame_selected {
    box-shadow: 0 0 0 .3vh white;
}

.frame img {
    object-fit: cover;
}

#category_selection {
    position: relative;
    display: block;
    width: 100%;
    margin: 5vh 0;
    background-color: #e7ebec;
}

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

#subtitle_category {
    position: relative;
    padding: 1vh 2vh;
    font-size: 1.7vh;
    color: #1A1A1A;
    z-index: 9;
}

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

.category{
    display: block;
    position: relative;
    border-radius: .5vh;
    overflow: hidden;
    cursor: pointer;
}

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

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

.category img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.category .title_category {
    display: flex;
    position: absolute;
    align-items: center;
    gap: 1vh;
    bottom: 1vh;
    left: 1vh;
    font-weight: bold;
    color: white;
    z-index: 10;
}

.title_category svg {
    width: 1.5vh;
    height: 1.5vh;
    aspect-ratio: 1/1;
}

.category .mask{
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent,transparent,rgba(0,0,0,0.6));
}

.category .image_count {
    display: flex;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-weight: bold;
    color: white;
    background-color: rgba(0,0,0,.9);
    z-index: 15;
    transition: .2s;
}

.category:hover  .image_count{
    opacity: 1;
}

.big .image_count {
    font-size: 4.5vh;
}

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

.big .image_count:after {
    font-size: 2vh;
}

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

.category .image_count:after {
    content: 'photos';
}


.switch_carrousel {
    position: absolute;
    display: flex;
    width: 100%;
    justify-content: center;
    bottom: 2.5vh;
    gap: 2vw;
    font-size: 3vw;
    color: rgba(255,255,255,0.5);
    z-index: 15;
}

.switch_carrousel .active {
    color: white;
    z-index: 1500;
}

.switch_carrousel a {
    content: '●';
}


.switch_carrousel div {
    cursor: pointer;
}

#promotion {
    display: flex;
    position: relative;
    width: 100%;
    padding: 1vh;
    gap: .5vh;
    font-size: 1.5vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    background-color: #e74c3c;
    z-index: 2000;
}


@media screen and (min-aspect-ratio: 8/9) {
    #photo_container {
        grid-template-rows: repeat(2,1fr);
        grid-template-columns: auto;
        grid-auto-flow: column;
        width: 80%;
        margin: auto;
        grid-gap: 2vh;
    }

    #subtitle_category {
        margin-bottom: 2vh;
    }

    .switch_carrousel div:hover {
        transform: scale(1.2);
        color: rgba(255,255,255,1);
    }

    #carrousel_container{
        overflow-x: hidden;
    }

    .title_carrousel {
        padding: 5vw;
        font-size: 7vh;
    }

    .carrousel {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        grid-auto-flow: row dense;
    }

    .carrousel .get_frame_container {
        position: relative;
    }

    .paysage .frames_panel{
        position: relative;
        flex-direction: column;
    }

    .portrait .frames_panel{
        position: relative;
    }

    .frames_panel {
        height: fit-content;
    }

    .portrait .picture {
        max-width: 42vh;
    }

    .paysage .picture {
        max-width: 70vh;
    }

    .picture_container {
        grid-row-end: span 2;
        align-items: center;
        flex-direction: row;
        justify-content: center;
        gap: 2vh;
    }

    .portrait{
        align-items: center;
    }

    #category_selection {
        margin: 2vh 0 5vh;
    }

    .big .image_count {
        font-size: 7vh;
    }

    .small .image_count {
        font-size: 5vh;
    }
    .switch_carrousel {
        bottom: 1vh;
        font-size: 4vh;
    }
    #promotion {
        font-size: 2vh;
    }

    .category .title_category {
        gap: .5vw
    }
}


@media screen and (min-aspect-ratio: 6/10) and (max-aspect-ratio: 12/10)  {
    .title_carrousel {
        font-size: 6vh;
    }

    .picture {
        max-width: 36vh;
    }

}