@import "reset.css";
@import "fonts.css";
@import "menu.css";
@import "scrollbar.css";

body {
  background-color: #f6f6ef;
}
.overflow-anim {
  overflow: hidden;
}

.intro {
  position: fixed;
  height: 100vh;
  width: 100%;
  margin: 0;
  top: 0;
  z-index: 1000;
  background-color: #f6f6ef;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 1s;
}

#bm {
  height: clamp(250px, 25vh, 1000px);
  width: auto;
  transform: scale(2);
}

.fade {
  opacity: 0;
  margin-top: 50px;
  transition: ease-in-out 0.25s;
}

.container {
  padding: 3em;
  display: grid;
  grid-gap: clamp(20px, 1vw, 30px);
  grid-template-columns: repeat(auto-fit, clamp(350px, 20vw, 600px));
  justify-content: center;
}

.container a {
  text-decoration: none;
  border: none;
}

.project {
  width: clamp(350px, 20vw, 600px);
  height: clamp(350px, 18vw, 550px);
  flex-shrink: 0;
  filter: grayscale(100%);
  text-align: start;
  display: flex;
  cursor: pointer;
  border-radius: 0.3em;
}

.project:hover {
  filter: grayscale(0);
  box-shadow: rgba(0, 0, 0, 0.7) 0px -5vh 2.5vh -2vh inset;
}

.project:hover p {
  opacity: 100%;
  transition: opacity 0.7s;
}

.project p {
  opacity: 0;
  display: block;
  align-self: flex-end;
  width: 100%;
  height: auto;
  padding: 0px 0px 1.5rem 2.5rem;
  color: #f6f6ef;
  font-family: "League Spartan";
  font-size: clamp(26px, 1.4vw, 45px);
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

@media only screen and (min-width: 5000px) {
  .container {
    padding: 10em;
    column-gap: clamp(20px, 3vw, 800px);
    row-gap: clamp(20px, 4vh, 800px);
    grid-template-columns: repeat(auto-fit, clamp(350px, 25vw, 1800px));
  }

  .project {
    width: clamp(350px, 25vw, 1800px);
    height: clamp(350px, 25vw, 1650px);
  }
}

@media only screen and (orientation: portrait) {
  .container {
    grid-gap: clamp(20px, 4vw, 500px);
    grid-template-columns: repeat(1, 90%);
    justify-content: center;
  }

  .project {
    width: clamp(350px, 80vw, 1800px);
    height: clamp(350px, 72vw, 1650px);
  }

  .container a {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
