/*
Theme Name: Margherita 2026
Author: LJ
Version: 1.1.0
*/

:root {
    --full-width: 100%;
    --static-width: calc(1440px - 30px);
    --calc-width: calc(100% - 100px);
    --spacing: 75px 0;
    --spacing-top: 75px;
    --spacing-bottom: 75px;
    --white: #fff;
    --grey: #808080;
    --light-grey: #b3b3b3;
    --black: #252f2c;
}

html, body {
    width: var(--full-width);
    height: auto;
    margin: 0 auto;
    background-color: var(--white);
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
}

h1, h3 {
    font-size: clamp(1.8rem, 3vw, 2.1rem);
    font-family: 'Marcellus', serif;
    font-weight: 300;
    color: var(--grey);
    margin: 0;
}

h2, .h2 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 5.7rem;
    font-family: 'Marcellus', serif;
    color: var(--grey);
    margin: 0;
}

.article_title {
    font-size: clamp(1.5rem, 2.8vw, 3rem);
    font-family: 'Raleway', sans-serif;
    color: var(--black);
    font-weight: 300;
    margin: 0;
    font-style: italic;
    display: inline-block;
    padding: 0 0 5px 0;
    position: relative;
}

.article_title:after {
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 2px;
    left: 0;
    position: absolute;
    background: var(--black);
    transition: width 0.6s ease 0s, left 0.6s ease 0s;
    width: 0;
}

.internal_article_title {
    font-size: clamp(1.5rem, 2.8vw, 3rem);
    font-family: 'Marcellus', serif;
    color: var(--black);
    font-weight: 300;
    margin: 0;
    text-transform: uppercase;
}

h5 {
    font-size: clamp(1rem, 1vw, 1rem);
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: var(--grey);
}

a {
    font-size: clamp(1rem, 1vw, 1rem);
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

.button_span, .menu_voice {
    font-size: clamp(1rem, 1.1vw, 1.2rem);
    text-decoration: none;
    font-family: 'Marcellus', serif;
    color: var(--grey);
    font-weight: 300;
}

p, span, ul li, ol li, ul li a, ul li a {
    font-size: clamp(1rem, 1vw, 1rem);
    line-height: 1.5rem;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
}

.flex {
    display: flex;
}

.container {
    width: var(--static-width);
    margin: 0 auto;
}

main {
    padding-top: 183px;
}

/*Home*/

#home.container.flex {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}

.home_left, .home_right {
    flex: 0 50%;
}

.home_left_container {
    width: 550px;
    margin-top: 30px;
    margin-right: auto;
}

.home_right {
    height: calc(100vh - 183px);
    position: sticky;
    position: -webkit-sticky;
    top: 183px;
    right: 0;
}

.home_right img.image_desktop {
    display: block;
    width: var(--full-width);
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: invert(1);
    -webkit-filter: invert(1);
}

.home_right img.image_mobile {
    display: none;
    width: var(--full-width);
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: invert(1);
    -webkit-filter: invert(1);
}

/*Blog*/

#blog.container.flex {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.blog_article.flex {
    width: var(--full-width);
    height: auto;
    padding: 20px 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--light-grey);
}

.blog_article_photo {
    flex: 0 20%;
}

.blog_article_photo img {
    width: var(--full-width);
    transition: 0.6s;
    -webkit-transition: 0.6s;
}

.blog_article_photo a:hover img {
    opacity: 0.6;
}

.blog_article_title {
    flex: 0 75%;
}

.blog_article_title .article_title {
    transition: 0.6s;
    -webkit-transition: 0.6s;
}

.blog_article_title a:hover .article_title:after {
    width: var(--full-width);
    right: var(--full-width);
}

#pagination {
    width: var(--full-width);
    padding: 25px 0;
    text-align: center;
}

#pagination ul {
    padding-left: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

#pagination ul li {
    display: inline-block;
    padding: 0 10px;
    border-right: 1px solid var(--light-grey);
}

#pagination ul li:last-of-type {
    border-right: 0;
}

#pagination ul li span {
    font-family: 'Marcellus', serif;
    font-weight: 300;
    cursor: pointer;
    transition: 0.6s;
    -webkit-transition: 0.6s;
    font-size: 1.3rem;
    color: var(--light-grey);
}

#pagination ul li span:hover {
    opacity: 0.5;
}

#pagination ul li span.active {
    color: var(--black);
}

#pagination img {
    height: 20px;
    transition: 0.3s;
    -webkit-transtion: 0.3s;
    cursor: pointer;
}

#pagination img:hover {
    opacity: 0.5;
}

#pagination img.next_icon {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
}

/*Single Blog Article*/

#single_article.container {
    width: 900px;
    margin: 0 auto;
    text-align: left;
    padding: 50px 0;
}

#single_article.container img {
    padding: 20px 0;
}

/*Project*/

.project_cont_append.container.flex {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2%;
    padding: 25px 0 0 0;
}

.project_box {
    flex: 0 32%;
    height: calc(30vw*4/3);
    position: relative;
    margin-bottom: 30px;
}

.project_photo {
    width: var(--full-width);  
    height: 100%;
    object-fit: cover; 
}

.project_photo img {
    width: var(--full-width);
}

.overlay_project {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--full-width);
    height: 100%;
    background-color: rgb(255, 255, 255, 0);
    transition: 0.6;
    -webkit-transition: 0.6s;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.overlay_project h3.article_title {
    font-size: clamp(1.1rem, 1.9vw, 1.4rem);
    font-style: normal;
    color: transparent;
    font-family: 'Marcellus', serif;
    text-transform: uppercase;
    transition: 0.6s;
    -webkit-transition: 0.6s;
}

.project_box:hover .overlay_project {
    background-color: rgb(255, 255, 255, 0.7);
}

.project_box:hover .overlay_project h3.article_title {
    color: var(--black);
}

/*Single Project*/

#single_project.container.flex {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3%;
}

.single_project_photo.flex, .single_project_text {
    flex: 0 48%;
}

.single_project_text {
    padding: 25px 0 0 0;
}

.image_project_mobile {
    display: none;
}

.single_project_text p:last-of-type {
    margin-bottom: 0;
    padding-bottom: 15px;
}

.single_project_photo.flex {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    height: calc(100vh - 150px);
    position: sticky;
    top: 150px;
}

.single_project_photo.flex .first_image_single_project {
    flex: 0 100%;
    height: 100%;
}

.single_project_photo.flex .first_image_single_project img {
    width: var(--full-width);
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image_gallery.flex {
    flex: 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5%;
}

.image_gallery_block {
    flex: 0 47%;
}

.image_gallery_block img {
    width: var(--full-width);
    object-fit: contain;
}

/*Cookie*/

#cookie.container {
    width: calc(1024px - 30px);
    margin: 0 auto;
}

#cookie.container h1 {
    margin: 30px 0;
}

#cookie_box {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 400px;
    padding: 40px 0;
    background: var(--black);
    z-index: 9999999;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

#close_cookie {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--white);
    margin: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    border: 1px solid var(--white);
    text-align: center;
    line-height: 20px;
    border-radius: 50px;
    transition: 0.6s;
    -webkit-transition: 0.6s;
}

#close_cookie:hover {
    color: var(--black);
    background-color: var(--white);
}

.cookie_box_cont {
    width: calc(100% - 30px);
    margin: 0 auto;
    color: var(--white);
    text-align: center;
}

.cookie_box_cont p a {
    text-decoration: underline;
    color: var(--white);
}

.cookie_box_cont p a.accept_button_cookie {
    display: inline-block;
    width: 180px;
    height: 30px;
    line-height: 30px;
    color: var(--black);
    background-color: var(--white);
    cursor: pointer;
    transition: 0.6s;
    -webkit-transition: 0.6s;
    font-weight: 400;
    text-decoration: none;
    margin-top: 20px;
    text-transform: uppercase;
    border: 1px solid var(--white);
}

.cookie_box_cont p a.accept_button_cookie:hover {
    background-color: transparent;
    color: var(--white);
}

@media screen and (max-width: 1440px) {

    :root {
        --static-width: calc(1280px - 30px);
    }

    /*Home*/

    .home_left_container {
        width: calc(100% - 50px);
    }

}

@media screen and (max-width: 1280px) {

    :root {
        --static-width: calc(1024px - 30px);
    }

}

@media screen and (max-width: 1024px) {

    :root {
        --spacing: 50px 0;
        --spacing-top: 50px;
        --spacing-bottom: 50px;
    }

    .container {
        width: var(--calc-width);
    }

    main {
        padding-top: 80px;
    }

    .article_title:after {
        background-color: transparent;
    }

    /*Home*/

    .home_left, .home_right {
        flex: 0 var(--full-width);
    }

    .home_left_container {
        width: var(--full-width);
    } 

    .home_right {
        display: none;
        height: calc(100vw*2/4);
    }

    .home_right img.image_desktop {
        display: none;
    }

    .home_right img.image_mobile {
        display: none;
    }

    /*Single Blog Article*/

    #single_article.container {
        width: var(--calc-width);
    }

    #single_article.container img {
        object-fit: cover;
        padding: 0;
    }

    /*Project*/

    .project_cont_append.container.flex {
        padding: 15px 0 0 0;
    }

    .project_box {
        margin-bottom: 20px;
    }

    /*Single Project*/

    .single_project_photo.flex, .single_project_text {
        flex: 0 100%;
    }

    .single_project_photo.flex {
        display: none;
    }

    .image_project_mobile, .wp-block-image {
        display: block;
        width: var(--full-width);
        height: calc(100vw*1/3);
        margin: 30px 0;
    }

    .image_project_mobile, .wp-block-image figure {
        width: var(--full-width);
        height: 100%;
        display: block !important;
    }

    .image_project_mobile img, .wp-block-image figure img {
        width: var(--full-width);
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .single_project_text p:last-of-type {
        padding-bottom: 30px;
    }

    /*Cookie*/

    #cookie.container {
        width: var(--calc-width);
    }

    #cookie.container h1 {
        margin: 20px 0;
    }

}

@media screen and (max-width: 834px) {

    /*Project*/

    .project_cont_append.container.flex {
        gap: 4%;
    }

    .project_box {
        flex: 0 48%;
        height: calc(48vw*4/3);
    }

}

@media screen and (max-width: 768px) {

    :root {
        --calc-width: calc(100% - 50px);
    }

}

@media screen and (max-width: 600px) {

    :root {
        --calc-width: calc(100% - 30px);
    }

    /*Blog*/

    .blog_article.flex {
        justify-content: center;
    }

    .blog_article_photo {
        flex: 0 var(--full-width);
    }

    .blog_article_title {
        flex: 0 var(--full-width);
        text-align: center;
        margin-top: 20px;
    }

}

@media screen and (max-width: 428px) {

    main {
        padding-top: 50px;
    }

    /*Cookie*/

    #cookie_box {
        width: var(--calc-width);
        right: 15px;
        bottom: 15px;
    }

    /*Project*/

    .project_box {
        margin-bottom: 15px;
    }

    /*Single Project*/

    .image_project_mobile, .wp-block-image {
        margin: 10px 0;
    }

}