/*
Theme Name: Andreu Picher
Theme URI: andreupicher.com
Description: Tema nuevo para el proyecto Andreu Picher
Author: Maria
Author URI: Maria Lara
Version: 1.0
*/

/* CSS RESET */

a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}

:root {
    --main-bg-color: rgb(255, 255, 255);  
    --main-text-color: #000000; 
    --main-font: "Chivo Mono", serif;
}



/* my css */

/* Personalizar la selección de texto */
::selection {
    background: transparent; /* Fondo transparente */
    color: rgb(205, 205, 205); /* Color del texto seleccionado */
}

*, *:after, *:before {
    box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

::-webkit-scrollbar {
    display: none;
}


body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-size: 62.5%; 
    font-weight: 400;
    font-style: normal;
    font-family: sans-serif;
    /* font-family: "Unica77 LL"; */
    line-height: 1.2;
}

a {
    color: var(--main-text-color);
    text-decoration: none;
}

/* a:hover {
    color: var(--main-bg-color);
} */

ul {
    padding-inline-start: 0;
}

li {
    list-style: none;
}

button {
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    font-family: var(--main-font);
    font-size: 12px;
    background: none;
    margin: 0;
    padding: 0;
}

/* nav */

nav.main-nav {
    padding: 1rem;
    position: fixed;
    z-index: 99;
    top: 0;
    width: 100%;
}

nav.main-nav ul {
    display: flex;
    width: 100%;
    justify-content: space-between;
    text-transform: uppercase;
}

nav.main-nav ul li a {
    text-transform: uppercase;
}

nav.main-nav ul li.contact {
    display: flex;
    flex-direction: column;
    text-align: right;
}

nav.main-nav ul li.contact a {
    text-transform: none;
}


/* home */

/* body.page-id-29 h1 {
    text-transform: uppercase;
    padding: 1rem;
} */

.projects-archive {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

body.page-id-29 figure.is-type-video {
    display: none;
}

body.page-id-298 figure.is-type-video {
    display: none;
}

a.project-item {
    display: grid;
    /* grid-template-columns: 1fr; */
    margin: auto;
    max-width: 80vw;
    position: relative;
    transition: all 0.3s ease;
    padding: 0;
}

a.project-item h2 {
   text-transform: uppercase;
   color: black;
}

.project-year {
    color: white;
}

figure.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-end: none;
}

figure.wp-block-gallery.has-nested-images {
    align-items: flex-start;
}

.projects-archive {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-header {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 1.5rem;
}

figure.wp-block-image {
    width: 280px !important;
    /* height: 180px!important; */
    aspect-ratio: 16/9;
}

figure.wp-block-image img {
    object-fit: cover;
}



/* single */

.project-single .wp-block-gallery {
    display: none;
}

section.project-single {
    height: 100%;
    width: 100vw;
    justify-items: center;
    padding: 6rem 1rem;
}



figure.wp-block-vimeo-create.vimeo-create__video-container.full-width {
    width: 55%;
    margin: 6rem 0;
}

figure.is-type-video {
    height: 100%;
    width: 500px;
    display: flex;
    align-items: center;
}

body.page-id-29 figure.wp-block-vimeo-create {
    display: none;
}
body.page-id-298 figure.wp-block-vimeo-create {
    display: none;
}

.group .wp-block-group__inner-container {
    display: flex;
    flex-direction: row;
    gap: 3rem;
}

.wp-block-vimeo-create {
    width: 70vw;
    margin: auto;
    /* position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9; */
}

.credits {
    /* position: absolute;
    bottom: 0;
    left: 0; */
    text-align: center;
    justify-self: anchor-center;
    padding: 1rem;
}

.color-projects-link {
    width: 100%;
    display: block;
    text-align: center;
    padding: 9rem 0;
    text-decoration: underline;
}

/* single VERTICAL */
.project-single-vertical .wp-block-vimeo-create {
    width: 25vw;
}

/* desk */

@media (min-width: 1210px) {
    a.project-item:hover {
        opacity: 0.1;
    }

    figure.wp-block-gallery {
        gap: 0.8rem !important;
    }
}


/* ipad */
@media (max-width: 1200px) {

    figure.wp-block-image {
        width: 210px !important;
        /* height: 150px!important; */
    }
}

/* mov */
@media (max-width: 780px) {

    nav.main-nav {
        background-color: white;
    }
    

    a.project-item {
        max-width: none;
        margin: initial;
    }

    a.project-item h2 {
        font-size: 8px;
     }

    figure.wp-block-image {
        width: 100% !important;
        /* height: 80px!important; */
        aspect-ratio: 16/9;
    }

    .project-header {
        padding-bottom: 1rem;
    }
    .projects-archive {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        margin: auto;
        padding: 8rem 1rem;
    }

    .color-projects-link {
        padding: 5rem 0;
    }

    /* single */

    .wp-block-vimeo-create {
        width: 100%;
        padding: 1rem;
    }

    .credits {
        position: inherit;
        justify-self: left;
        padding: 0 1rem;
        padding-bottom: 1rem;
    }


    /* single VERTICAL */
    .project-single-vertical .wp-block-vimeo-create {
        width: 100vw;
        padding: 1rem;
    }

    .project-single-vertical {
        margin-top: 3rem;
    }

    figure.wp-block-vimeo-create.vimeo-create__video-container.full-width {
        width: 100%;
        margin: 3rem 0;
        padding: 0;
    }

    /* group */
    .group .wp-block-group__inner-container {
        flex-direction: column;
    }

    /* footer */
     footer {
        height: 6rem;
     }

     body.postid-76 section.project-single {
        display: flex;
    flex-direction: column;
    /* justify-items: center; */
    /* align-content: center; */
    /* align-self: center; */
    align-items: center;
    }
    
}


.show {
    display: flex!important;
}
body.home .show {
    display: none!important;
}
