@import url("./globals.css");

/* PRIMARY GRID TEMPLATE */

.main, .lines, .home, .about, .contact, .project{
  width: 100vw;
  height: 100dvh;
  transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin: 0 auto;
}

.--grid {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 0.8rem;
  margin: 0 auto;
}

.lines {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(8, 1fr);
  pointer-events: none;

  z-index: -1;
}

.lines .--grid-column {
  position: relative;
  height: 100%;
  pointer-events: none;
  grid-row: 1 / -1;
}

.lines .--grid-column::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(100% + 0.4rem);
  width: 0.5px;
  height: 100%;
  background-color: var(--black);
  opacity: 0.2;
  transform: translateX(-50%);
}

.lines .--grid-column:first-child::after{
  content: "";
  position: absolute;
  width: 0.5px;
  opacity: 0.2;
  background-color: var(--black);
  top: 0;
  left: -0.4rem;
  height: 100%;
}

/* GRID ALIGNMENT */

.navigation{
  position: absolute;
  width: 100%;
  height: fit-content;
  padding: 2rem;
  top: 0;
  
  grid-column: 1 / -1;

  display: grid;
  grid-template-columns: repeat(10, 1fr);
}

.primary-image{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;

  /* outline: 1px solid var(--black); */
}

.--list{
  display: grid;
  grid-template-rows: subgrid;

  position: relative;
  /* outline: 1px solid var(--black); */
}


/* NAVIGATION ITEMS */

.luke-nicklin {
  grid-column: 1 / 3; 
  grid-row: 1 / 1;
  justify-self: start;
}

.--contents-item{
  transition: var(--transition-1-out);
}

.--contents-item:hover{
  cursor: pointer;
  opacity: 0.4;
  transition: var(--transition-1-in);
}

.--contents-item:nth-child(2) {
  grid-column: 9 / 10;
  justify-self: end; 
}

.--contents-item:nth-child(3) {
  grid-column: 10 / -1;
  justify-self: end; 
}

.--col1{
  grid-column: 1 / 7;
  grid-row: 3 / -1;
}

.--col2{
  grid-column: 7 / -1;
  grid-row: 3 / -1;
}






@media screen and (width <= 1100px) {

      .--grid {
        grid-template-columns: repeat(5, 1fr);
      }

      .lines {
        grid-template-columns: repeat(5, 1fr);
      }

      .lines .--grid-column:nth-last-child(-n+5) {
        display: none !important;
        visibility: hidden;
      }

      .navigation{
        grid-template-columns: repeat(5, 1fr);
      }

      .--contents-item:nth-child(2) {
        grid-column: 4 / 5;
      }
      
      .--contents-item:nth-child(3) {
        grid-column: 5 / -1;
      }

}

@media screen and (width <= 750px) {

  .--grid {
    padding: 1rem;
  }

  .navigation{
    padding: 1rem;
  }

}




/* PRIMARY IMAGE */

.header--info{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.header--info .line{
  width: 100%;
  height: 0.5px;
  background-color: var(--black);
}

.header--info .--text-regular{
  text-wrap: nowrap;
}

#primary-image {
  background-position: center;
  background-size: cover;
  width: 100%;
  height: 100%;
  transition: background-image 0.5s ease-in-out;
}





/* PROJECTS */

.--list .--text-header{
  grid-row: 3 / 4;
  align-self: end;
}

.projects{
  grid-row: 5 / -1;
  align-self: end;

  width: calc(50% - 0.5rem);

  display: flex;
  flex-direction: column;
}

.projects-item{
  padding-block: 0.5rem;
  width: 100%;
  transition: var(--transition-1-out);
}

.projects-item:hover{
  opacity: 0.4;
  transition: var(--transition-1-in);
  translate: 5px;
}



/* CONTACT */

.contact > .--col1{
  grid-column: 1 / 4;
  grid-row: 6 / -1;
}

.contact > .--col2{
  grid-column: 4 / -1;
  grid-row: 7 / -1;
}



/* ABOUT */

.about > .--col1{
  grid-column: 1 / 5;
  grid-row: 3 / -1;
  justify-content: end;

  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.about > .--col2{
  grid-column: 5 / -1;
}

.about--img{
  background-image: url(../img/about/headshot.jpg);
  background-position: center;
  background-size: cover;
  width: 100%;
  height: 100%;
  transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about--img--2{
  background-image: url(../img/about/lineage.jpg) !important;
  transition: var(--transition-1-in);
}

.about .--transparent{
  margin-bottom: 0.2rem;
}

.--margin-top{
  margin-top: 0.8rem;
}





@media screen and (width <= 1100px) {

  .primary-image{
    grid-column: 1 / 4;
  }

  .--list{
    grid-column: 4 / -1;
  }

  .projects{
    width: 100%;
  }

  .contact > .--col1{
    grid-column: 1 / 4;
    grid-row: 6 / -1;
  }
  
  .contact > .--col2{
    grid-column: 3 / -1;
    grid-row: 7 / -1;
  }

  .--text-col{
    column-count: 1;
    column-gap: 0.8rem;
  }

  .about > .--col1{
    grid-column: 1 / 3;
  }

  .about > .--col2{
    grid-column: 3 / -1;
  }

}

@media screen and (width <= 750px) {

  .primary-image{
    grid-column: 1 / -1;
    grid-row: 2 / 8;
  }

  .--list{
    grid-column: 1 / -1;
    grid-row: 7 / -1;
  }

  .--list .--text-header{
    grid-row: auto;
  }

  .--list .--text-header{
    display: none;
  }

  .header--info{
    gap: 0.4rem;
  }

  .contact > .--col1{
    grid-column: 1 / 4;
    grid-row: 5 / -1;
  }
  
  .contact > .--col2{
    grid-column: 2 / -1;
    grid-row: 6 / -1;
    justify-items: end;
  }

  .--artist-statement{
    display: none;
  }

  .about > .--col1{
    grid-column: 1 / -1;
    grid-row: 6 / -1;
    justify-content: start;
  }

  .about > .--col2{
    grid-column: 1 / -1;
    grid-row: 2 / 6;
  }

  .about .--text-header{
    grid-column: 1 / -1;
    align-self: end;
  }

}











/* IMAGERY */

.slideshow-img,
.project-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  transition: opacity 0.5s ease-in-out;
}

.slideshow-img#slide1 {
  background-image: url('../img/1.jpg');
}

.slideshow-img#slide2 {
  background-image: url('../img/2.jpg');
}

.slideshow-img#slide3 {
  background-image: url('../img/3.jpg');
}

.project-img#hanga {
  background-image: url('../img/6.jpg');
}

.project-img#emulsion {
  background-image: url('../img/5.jpg');
}

.project-img#inu {
  background-image: url('../img/4.jpg');
}

.project-img#greenhouse {
  background-image: url('../img/1-min.jpg');
}

.img--hidden{
  opacity: 0;
  pointer-events: none;
}



/* PROJECTS */

.--best-24{
  position: absolute;
  right: 2rem;
  top: 2rem;
  display: flex;
  gap: 0.4rem;
}

.--best-24 svg{
  width: 4rem;
}

.project{
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 2rem;
  gap: 0.8rem;
}

.project-contents{
  width: 100%;
  display: flex;
  align-items: end;
  gap: 1.6rem;
}

.--project-details{
  display: flex;
  flex-direction: column;
  width: 50%;
}

.--project-details .--text-medium{
  font-size: clamp(16pt, 1.5vw, 12pt) !important;
}

.--project-desc{
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  width: 50%;
}

.--project-details .--text-row{
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-block: 0.5rem;
  text-align: right;
}

.project-image img{
  width: 100%;
  height: fit-content;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.project-image iframe{
  width: 100%;
  height: fit-content;
  aspect-ratio: 16 / 10;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}




.--top{
  width: 100%;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
}


@media screen and (width <= 1100px) {

  .project{
    padding: 1rem;
  }

}




@media screen and (width <= 750px) {

  .--best-24{
    top: 1rem;
    right: 1rem;
  }

  .--best-24 svg{
    width: 3rem;
  }

  .project-contents{
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .--project-details{
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .--project-desc{
    width: 100%;
  }

}



