.display-none{
    display: none;
}

#button-header{
    li{
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.spacewhiteTwo, .spacewhiteOne{
    display: none;
}

.grid-colum{
    grid-template-columns: repeat(2, 1fr);
}



#button-main{
    grid-column: 1/3;
    a{
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.contentCanvas{
    height: 450px;
    @media (min-width: 768px) {
        height: auto;
    }
}

#about{
    article{
        display: grid;
        gap: var(--space-3);
        ul{
            display: flex;
            flex-wrap: wrap;
            gap: var(--space-3);
            align-items: center;
            height: auto;
            padding: var(--space-3);
            width: 100%;

            li{
                padding: var(--space-3);
                background: var( --color-bg-list);
            }
        }
    }

}
#works{
    overflow-x: hidden;
    margin-bottom: 2px;
}
.list-works{
    overflow-x: scroll;
    li{
        width: 300px;
        a{
            height: 100%;
            color: var( --color-text);
        }
    }
}
/* Imagen que sigue el cursor — desktop */
.works-cursor-img {
  position: fixed;
  width: 260px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  transform: translate(20px, -50%);
  z-index: 100;
}
.works-cursor-img.visible { opacity: 1; }

/* Preview expandible — mobile/tablet */
.work-preview {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.work-preview img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  display: block;
}
li.open .work-preview { max-height: 220px; }

#process{
    article{
        gap: var(--space-5);
    }
}

.contacts{
    li{
        a{
            display: grid;
            align-items: center;
            justify-items: center;
        }
    }
}

@media (min-width: 768px) {

    
    #about{
        p{
            grid-column: 1/2;
            grid-row: 2/3;
        }
        div{
            grid-column: 2/3;
        }
    }

    #works{
        grid-template-columns: repeat(2, 1fr);
        align-items: stretch;
        .list-works{
            overflow-x: hidden;
            flex-direction: column;
            height: 80vh;
            width: 100%;
            li{
                width: 100%;
                height: 100%;
                display: flex;
                align-items: start;
            }
        }
        h2{
            grid-column: 1/4;
        }
        div{
            grid-column: 2/3;
            grid-row: 2/4;
        }
    }

    .display-none, .contacts{
            li{
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                a{
                    justify-content: center;
                }
            }
        }

         .contacts{
            display: flex;
            flex-direction: column;
            li{
                height: 10vh;
                display: flex;
                align-items: center;
                justify-content: end;
                a{
                    justify-content: center;
                    text-align: end;
                }
            }
        }
}

@media (min-width: 1200px) {

    header article{
         height: 87vh;
         width: 100%;
        h1{
            grid-column: 1/3;
            display: flex;
            align-items: center;
            padding: var(--space-3);
        }
        h2{
            grid-column: 1/2;
        }
        p{
            display: flex !important;
            grid-column: 1/2;
        }
       .contentCanvas{
            grid-column: 2/3;
        }
        ul{
            grid-column: 1/2;
        }

    }
    
    .spacewhiteTwo, .spacewhiteOne{
        display: block;
    }  
   header .contentCanvas{
        height: auto;
        z-index: 0;
       
    }

    #about{
        article{
            grid-column: 1/2;
        }
        p{
            height: auto;
        }
        div{
            grid-row: 2/5;
        }
    }

    #contacts{
        div{
            height: 80vh;
        }
    }
     .contacts{
        li{
            height: 100%;
            a{
                font-size: var( --font-size-xl);
            }
        }
     }
}
