/**** FONT ****/

@font-face {
  font-family: "work";
  src: url("../font/WorkSans-VariableFont_wght.ttf");
}

/**************/

/**** BODY ****/

body {
  font-family: "work";
  display: flex;
  margin: 0;
  height: 100%;
}

@media screen and (max-width: 1290px) {
  body {
    display: flex;
    flex-direction: column;
  }
}

/**************/

/**** NAV ****/

.topnav {
  width: 9vw;
  padding-left: 2vw;
  padding-top: 3vh;
  position: fixed;
  z-index: 10;
}

#logo {
  opacity: 0.1;
  width: 6vw;
  object-fit: cover;
  display: block;
  margin-bottom: 13vh;
  margin-left: 1vw;
  padding-top: 2vh;
}

#logo:hover {
  opacity: 1;
}

#logo_mobile {
  display: none;
}

#myLinks > a > h4 {
  margin-bottom: 13vh;
  margin-left: 1vw;
}

#myLinks a {
  opacity: 0.1;
  text-decoration: none;
  color: black;
  -webkit-text-fill-color: black;
}

#myLinks a:hover {
  opacity: 1;
}

.homelinks > a {
  display: none;
}

.homenav:hover > .homelinks > a {
  display: block;
}

/*************/

/*****************/

/**** PROJECT DETAIL ****/

#project_container {
  padding: 0 5vw 0 5vw;
  width: 100%;
  overflow: auto;
  -webkit-scroll-snap-type: y mandatory;
  -ms-scroll-snap-type: y mandatory;
  scroll-snap-type: y mandatory;
}

#project_detail {
  width: 100%;
  height: 100%;
  /* background-color: red; */
  font-size: 80%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  /* margin-bottom: 5vh; */
  overflow: hidden;
  scroll-snap-align: start;
}

#project_text {
  width: 20vw;
  height: 70vh;
}

.gallery-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.thumbnails {
  position: absolute;
  bottom: 8px;
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.thumbnails div {
  width: 8px;
  height: 8px;
  cursor: pointer;
  background: #999999;
  border-radius: 100%;
}

.thumbnails div.highlighted {
  /* background-color: #999999; */
  background: white;
}

.slides {
  margin: 0 16px;
  display: grid;
  grid-auto-flow: column;
  gap: 1rem;
  width: 42vw;
  padding: 0 0.25rem;
  height: 70vh;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.slides > div {
  scroll-snap-align: start;
  width: 42vw;
  height: 70vh;
  /* height: 60vw; */
  /* display: flex; */
  /* justify-content: start; */
}

.slides img {
  width: 42vw;
  height: 70vh;
  /* height: 70vw; */
  object-fit: cover;
}

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

/************************/

/* PRODUCT */
#content_product {
  display: flex;
  margin-left: 15vw;
  margin-right: 15vw;
  /* background-color: yellow; */
  width: 100%;
  /* width: 100%; */
}

#cart {
  position: absolute;
  top: 0px;
  right: 0px;
  margin: 3vh;
  font-family: work;
  border: none;
  /* background-color: rgb(0 0 0 / 10%); */
  background-color: white;
  font-size: 1.5vh;
  padding: 2vh;
  font-weight: 300;
  color: black;
}

#cart:hover {
  cursor: pointer;
  text-decoration: underline;
}

#cart_mobile {
  position: absolute;
  top: 0px;
  right: 8%;
  margin: 3vh;
  font-family: work;
  border: none;
  background-color: white;
  font-size: 1.8vh;
  font-weight: 350;
  padding: 14px 16px;
  margin-top: 1.5vh;
  z-index: 10;
  color: black;
}

#cart_mobile {
  display: none;
}

.slideshow-container > div > img {
  height: 40vh !important;
  width: 30vw !important;
  object-fit: cover !important;
}

#product_cont {
  width: 100%;
}

.snipcart-add-item {
  height: 5vh;
}

#ecommerce {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

#ecommerce > h3 {
  margin: 0;
}

#product:first-child {
  margin-top: 20vh;
}

#product {
  display: flex;
  flex-direction: row;
  margin-bottom: 20vh;
  width: 100%;
  justify-content: space-evenly;
}

.slideshow-container {
  height: 30vh;
}

#links a:hover {
  opacity: 1;
}

#links {
  /* background-color: aqua; */
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  /* margin-top: 5vh; */
  height: 70vh;
}

#projects {
  /* background-color: aqua; */
  display: flex;
  flex-direction: column;
  /* margin-top: 5vh; */
  height: 70vh;
  padding-top: 20vh;
  overflow-y: hidden;
  position: fixed;
}

#projects a {
  opacity: 1;
  padding-left: 1vw;
  text-decoration: none;
  color: black;
}

#projects a:hover {
  color: rgb(0 0 0 / 10%);
}

#projects a:hover + .project_box {
  display: none;
}

#projects a > img {
  display: none;
}

#projects a:hover > img {
  display: block;
}

#image {
  /* background-color: black; */
  height: 13vh;
  width: 20vh;
}

#image_home {
  height: 13vh;
  width: 20vh;
}

#content {
  display: flex;
  margin-left: 9vw;
  /* margin-right: 15vw; */
  width: 100%;
  height: 100vh;
}

#project_img {
  position: fixed;
  top: 0;
  right: 0;
  margin-top: 40vh;
  margin-right: 20vw;
  z-index: 1000;
  width: 30vw;
  object-fit: cover;
  height: 51.3vh;
}

.project_box {
  background-color: black;
  opacity: 0.02;
}

#about {
  width: 100%;
  /* background-color: red; */
  padding: 25vh 15vw 0 15vw;
  font-size: 70%;
}

#project_images {
  overflow: scroll;
  right: -17px;
  z-index: 1000s;
}

#project_images > img {
  width: 40vw;
  margin-bottom: 4vh;
}

::-webkit-scrollbar {
  width: 0px;
  background: transparent; /* make scrollbar transparent */
}

/* HEADER */

.icon {
  display: none;
}

#content_title {
  margin-bottom: 3vh;
  margin-top: 0;
}

#content_year {
  margin-top: 2vh;
}

/* MOBILE */

@media screen and (max-width: 1270px) {
  #cart_mobile {
    display: block;
  }

  #cart {
    display: none;
  }
  /* Style the navigation menu */
  .topnav {
    overflow: hidden;
    /* background-color: #333; */
    position: relative;
    width: 100%;
    padding-left: 0;
    padding-top: 0;
  }

  /* #myLinks a {
    opacity: 1;
    text-decoration: none;
    color: black;
  } */

  /* Hide the links inside the navigation menu (except for logo/home) */
  .topnav #myLinks {
    display: none;
  }

  /* Style navigation menu links */
  #myLinks a {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 2vh;
    display: block;
    color: black;
    text-align: end;
    opacity: 0.4;
  }

  #myLinks > #active {
    opacity: 1;
  }

  .icon {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
    color: black;
  }

  /* Style the hamburger menu */
  .topnav a.icon {
    /* background: black; */
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    font-size: 4.5vh;
  }

  /* Add a grey background color on mouse-over */
  .topnav a:hover {
    color: black;
  }

  .active {
    display: block;
    height: 8vh;
  }

  #logo {
    display: none;
  }

  #logo_mobile {
    display: block;
    width: 9vh;
    opacity: 1;
    padding: 2.5vh 0 0 3vw;
  }

  #myLinks > a > h4 {
    margin-bottom: 0;
    margin-left: 0;
  }

  #content {
    margin: 0;
  }

  #content_product {
    margin: 0;
  }

  #about {
    padding: 3vh 5vh 5vh 5vh;
  }

  #projects {
    width: 100%;
    justify-content: center;
    padding: 0;
  }

  #project_detail {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin-bottom: 0;
    padding-bottom: 25vh;
    justify-content: center;
  }

  #project_container {
    padding: 3vh 5vh 5vh 5vh;
    width: 100%;
  }

  #product {
    flex-direction: column;
  }

  #product_cont {
    padding: 3vh 5vh 5vh 5vh;
    width: 100%;
  }

  #projects a:hover > img {
    display: none;
  }

  .project_box {
    display: none;
  }

  .slideshow-container {
    width: 100% !important;
    margin-top: 2vh;
    height: 40vh;
  }

  .slideshow-container > div > img {
    height: 40vh !important;
    width: 100% !important;
    object-fit: cover !important;
  }

  #product:first-child {
    margin-top: 0;
  }

  #product {
    margin-bottom: 5vh;
  }

  #project_text {
    width: 100%;
    margin-right: 0;
    overflow: visible;
    margin-bottom: 0.5vh;
    height: auto;
  }

  .slides {
    width: 100vw;
    height: 50vh;
  }

  .slides > div {
    width: 100vw;
    height: 50vh;
  }
  .slides img {
    width: 100vw;
    height: 50vh;
  }

  #content_title {
    margin-bottom: 2vh;
  }

  #project_images > img {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}
