/* Header projects */
.main-header.projects {
  background-image: url(../illustrations/backgrounds/bg-projects.svg);
  background-repeat: no-repeat;
  background-size: 115%;
  background-position: -25.5vw 0vh;
  z-index: 100;
  -webkit-animation: slide-in-projects 3s cubic-bezier(0.25, 0.46, 0.45, 0.94)
    both;
  animation: slide-in-projects 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@-webkit-keyframes slide-in-projects {
  0% {
    background-position: -200vw 0vh;
    opacity: 0.5;
  }
  100% {
    background-position: -25.5vw 0vh;
    opacity: 1;
  }
}

@keyframes slide-in-projects {
  0% {
    background-position: -200vw 0vh;
    opacity: 0.5;
  }
  100% {
    background-position: -25.5vw 0vh;
    opacity: 1;
  }
}

/* projects.landingpage */
.projects-landingpage {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  height: 85vh;
  width: 100%;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.projects-landingpage > .teaser {
  position: absolute;
  right: 50%;
  bottom: 5%;
  -webkit-transform: translateX(50%);
  -ms-transform: translateX(50%);
  transform: translateX(50%);
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.5rem;
}

.teaser > i {
  color: var(--KC-orange);
}

.projects-landingpage > button {
  background: none;
  border: none;
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.fade-out {
  transition: opacity 1s ease-out;
  opacity: 0 !important;
}

/* Responsive Background */
@media screen and (min-width: 1800px) {
  .main-header.projects {
    background-image: url(../illustrations/backgrounds/bg-projects.svg);
    background-repeat: no-repeat;
    background-size: 105%;
    background-position: -15vw 0vh;
    z-index: 100;
    -webkit-animation: slide-in-projects 3s cubic-bezier(0.25, 0.46, 0.45, 0.94)
      both;
    animation: slide-in-projects 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }

  @-webkit-keyframes slide-in-projects {
    0% {
      background-position: -200vw 0vh;
      opacity: 0.5;
    }
    100% {
      background-position: -15vw 0vh;
      opacity: 1;
    }
  }

  @keyframes slide-in-projects {
    0% {
      background-position: -200vw 0vh;
      opacity: 0.5;
    }
    100% {
      background-position: -15vw 0vh;
      opacity: 1;
    }
  }
}

@media (max-width: 1300px) {
  .main-header.projects {
    background-image: url(../illustrations/backgrounds/bg-projects.svg);
    background-repeat: no-repeat;
    background-size: 240%;
    background-position: -45.5vw 5vh;
    height: 100vh;
    z-index: 100;
    -webkit-animation: slide-in-projects 3s cubic-bezier(0.25, 0.46, 0.45, 0.94)
      both;
    animation: slide-in-projects 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }

  @-webkit-keyframes slide-in-projects {
    0% {
      background-position: -200vw 5vh;
      opacity: 0.5;
    }
    100% {
      background-position: -45.5vw 5vh;
      opacity: 1;
    }
  }

  @keyframes slide-in-projects {
    0% {
      background-position: -200vw 5vh;
      opacity: 0.5;
    }
    100% {
      background-position: -45.5vw 5vh;
      opacity: 1;
    }
  }
}

@media (max-width: 850px) {
  .main-header.projects {
    background-size: 240%;
    background-position: -45.5vw 5vh;
    -webkit-animation: slide-in-projects 3s cubic-bezier(0.25, 0.46, 0.45, 0.94)
      both;
    animation: slide-in-projects 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }

  @-webkit-keyframes slide-in-projects {
    0% {
      background-position: -200vw 18vh;
      opacity: 0.5;
    }
    100% {
      background-position: -45.5vw 18vh;
      opacity: 1;
    }
  }

  @keyframes slide-in-projects {
    0% {
      background-position: -200vw 18vh;
      opacity: 0.5;
    }
    100% {
      background-position: -45.5vw 18vh;
      opacity: 1;
    }
  }
}

@media (max-width: 820px) {
  .main-header.projects {
    background-size: 240%;
    background-position: -35.5vw 0vh;
    -webkit-animation: slide-in-projects 3s cubic-bezier(0.25, 0.46, 0.45, 0.94)
      both;
    animation: slide-in-projects 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }

  @-webkit-keyframes slide-in-projects {
    0% {
      background-position: -200vw 0vh;
      opacity: 0.5;
    }
    100% {
      background-position: -35.5vw 0vh;
      opacity: 1;
    }
  }

  @keyframes slide-in-projects {
    0% {
      background-position: -200vw 0vh;
      opacity: 0.5;
    }
    100% {
      background-position: -35.5vw 0vh;
      opacity: 1;
    }
  }
}

@media (max-width: 435px) {
  .main-header.projects {
    background-size: 240%;
    background-position: -45.5vw 10vh;
    -webkit-animation: slide-in-projects 3s cubic-bezier(0.25, 0.46, 0.45, 0.94)
      both;
    animation: slide-in-projects 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }

  @-webkit-keyframes slide-in-projects {
    0% {
      background-position: -200vw 10vh;
      opacity: 0.5;
    }
    100% {
      background-position: -45.5vw 10vh;
      opacity: 1;
    }
  }

  @keyframes slide-in-projects {
    0% {
      background-position: -200vw 10vh;
      opacity: 0.5;
    }
    100% {
      background-position: -45.5vw 10vh;
      opacity: 1;
    }
  }
}

@media (max-width: 300px) {
  .main-header.projects {
    background-size: 250%;
    background-position: -50vw 20vh;
    -webkit-animation: slide-in-projects 3s cubic-bezier(0.25, 0.46, 0.45, 0.94)
      both;
    animation: slide-in-projects 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }

  @-webkit-keyframes slide-in-projects {
    0% {
      background-position: -200vw 20vh;
      opacity: 0.5;
    }
    100% {
      background-position: -50vw 20vh;
      opacity: 1;
    }
  }

  @keyframes slide-in-projects {
    0% {
      background-position: -200vw 20vh;
      opacity: 0.5;
    }
    100% {
      background-position: -50vw 20vh;
      opacity: 1;
    }
  }
}

/* Responsive Nav and Landingpage Projects */
@media screen and (max-width: 850px) {
  .projects-landingpage {
    width: 100%;
    height: 85vh;
  }

  .projects-landingpage h1 {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
  }

  .projects-landingpage > .teaser {
    position: absolute;
    right: 50%;
    bottom: 5%;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
    text-align: center;
    min-width: 70%;
  }
}

/* Projects Overview */
.projects-section {
  padding: 10rem 6rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.projects-section h2 {
  padding-bottom: 4rem;
}

.projects-image-container {
  display: -ms-grid;
  display: grid;
  gap: 2rem;
  -ms-grid-columns: 1fr 2rem 1fr;
  grid-template-columns: 1fr 1fr;
}

.projects-image-container > div {
  width: 100%;
}

.projects-image-container > .blog-post {
  width: 100%;
  height: auto;
}

.projects-image-container > .blog-post > img {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.desc {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 6fr 0.5fr;
  grid-template-columns: 6fr 0.5fr;
  padding: 0 1rem;
  -webkit-transform: translateY(-3rem);
  -ms-transform: translateY(-3rem);
  transform: translateY(-3rem);
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  text-align: center;
  background-color: transparent;
}

.desc .info-icon {
  height: auto;
  width: 2rem;
  -o-object-fit: fill;
  object-fit: fill;
  cursor: pointer;
}

.projects-h3 {
  width: auto;
  opacity: 0;
  padding: 5px 0;
}

.desc-text {
  display: none;
}

.infotext {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-top: 5rem;
  gap: 0.5rem;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

.Etsy-Link {
  -webkit-text-decoration: underline 2px var(--KC-orange);
  text-decoration: underline 2px var(--KC-orange);
  font-weight: bolder;
}

.Etsy-Link:link {
  color: var(--KC-orange);
}

.Etsy-Link:visited {
  color: var(--KC-orange);
}

.infotext img {
  height: 2rem;
  -o-object-fit: fill;
  object-fit: fill;
  width: auto;
}

/* Responsive Projects Section */
@media screen and (max-width: 1200px) {
  .projects-section {
    padding: 10rem 2rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
}

@media screen and (max-width: 1050px) {
  .projects-image-container {
    display: -ms-grid;
    display: grid;
    gap: 2rem;
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 850px) {
  .projects-section {
    padding: 5rem 2rem 10rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .projects-section h2 {
    padding-bottom: 2rem;
  }

  .projects-image-container img,
  source {
    width: 100%;
  }

  .info-icon > img {
    height: 1.7rem;
    width: auto;
    -o-object-fit: fill;
    object-fit: fill;
  }
}

@media screen and (max-width: 450px) {
  .desc {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 4fr 0.5fr;
    grid-template-columns: 4fr 0.5fr;
  }

  .infotext {
    font-size: 1.5rem;
  }

  .Etsy-Link {
    font-size: 1.5rem;
    -ms-flex-item-align: start;
    align-self: flex-start;
    margin-left: 3rem;
  }
}

@media screen and (max-width: 400px) {
  .desc {
    -webkit-transform: translateY(-2.5rem);
    -ms-transform: translateY(-2.5rem);
    transform: translateY(-2.5rem);
  }

  .projects-h3 {
    padding-right: 0rem;
  }
}
