header {
    padding: 100px 0 60px 0;
    background: var(--vert); 
    position: relative;
}

h1{
    margin-bottom: 0;
}

.btn-back{
position: absolute;
top: 50%;
left: 10%;
color: var(--bleu);
}

.btn-back:hover{
    opacity: 0.7;
}

/* lightbox */

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 105vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    cursor: pointer;
    text-align: center;
}

#overlay-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

#overlay img {
    max-width: 90vw;
    max-height: 90vh;
    z-index: 101;
    cursor: default;
    filter: brightness(0.7);
    object-fit: contain;
    display: block;
}

#overlay img:hover {
    filter: brightness(1);
}

/* Product */

.horizontalFlexContainer {
    width: 100%;
    padding : 3%;
    height: 50vw;
}

.left-div{
    width:15%;
    display: flex;
    justify-content: end;
    height: 100%;
}

.thumbnails{
    display: flex;
    height: 100%;

    flex-wrap: wrap-reverse;
    justify-content: flex-end;
    align-content: flex-start;
    flex-direction: column-reverse;
}

.thumbnail {
    width: 7vw;
    height: 7vw;
    margin-bottom: 1.8vw;
    margin-left: 1vw;
    object-fit: cover;
}



.main-img-container{
    width: 60%;
    padding: 0 30px;
    position: relative;
    height: 0;
    height: 96%;
}


.main-img { 
    width: calc(100% - 40px);  
    height: 100%;
    object-fit: cover; 
    position: absolute;
    top: 0;
    left: 20px;
    cursor: pointer;
}


.ProductSpecification {
    width: 25%;
    font-size: 1rem;
}

.ProductSpecification > * {
    margin-bottom: 20px;
}

.ProductSpecification .btn {
    display: block;
    margin : 40px auto 10px auto; 
    width: 200px;
}

.productDescription{
    padding: 0  50px 50px 50px;
    font-size: 1.5rem;

}
span{
    font-size: 2.5rem;
}

@media (min-height: 600px) and (max-width: 1000px), (max-width: 850px) {

    #overlay img {
        filter: brightness(1);
    }
    

    #product_page .horizontalFlexContainer{
        padding-top: 40px;
        flex-direction: column;
        height: unset;
    }

    #product_page .horizontalFlexContainer > div {
        width: 100%;
        /* max-width: 500px;
        margin: auto; */
    }

    .main-img-container{
        padding-top: 70%;
        margin-bottom: 20px;


    }

    .main-img{
        width: 100%;
        left: 0;
    }

    #product_page .thumbnails{
        flex-direction: row;
        justify-content: left;
    }

    .left-div{
        justify-content: left;
    }

    #product_page .thumbnail{
        width: 14vw;
        max-width: 75px;
        height: 14vw;
        max-height: 75px;
        margin: 0 1.5vw 1.5vw 0;
    } 
}


@media (max-width: 480px) {

    #overlay img {
        filter: brightness(1);
    }
    

    .pp_header h1{
        margin-bottom: 0 !important;
    }

    .pp_header i{
        font-size: 30px;
    }

    .btn-back{
        display: block;
        margin: auto;
        width: 170px;
        top: 25%;
        left: 4%;
    }
        

    .productDescription{
        font-size: 1rem;
        padding: 20px;
    }

}
