h1,
h2,
h3,
h4 {
  font-weight: 400;
}

body {
  overflow-x: hidden;
}

#header-selected-work {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.5%;
  line-height: 1.2;
  width: 100%;
  margin-bottom: 20vw;
  padding-left: 5%;
  padding-top: 15%;
}

.text-container-header-selected-work {
  position: relative;
  display: flex;
  justify-content: flex-start;
  height: auto;
  margin-left: -0.4%;
}

.text-container-header-selected-work-left {
  font-family: 'Medium';
  letter-spacing: -5;
}

.text-container-header-selected-work-right {
  font-family: 'Light';
  font-weight: 100;
  letter-spacing: -3.5;
  line-height: 1.2;
}

#selected-work-untertitel {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  padding-right: 5%;
}

#toggleButton {
  cursor: pointer;
  padding-left: 3%;
}


@media (max-width: 1168px) {
  #header-selected-work {
    padding-top: 10%;
  }

  .text-container-header-selected-work-left {
    letter-spacing: -3;
  }

  .text-container-header-selected-work-right {
    letter-spacing: -2;
  }
}


@media (max-width: 768px) {
  #header-selected-work {
    padding-top: 8%;
  }

  .text-container-header-selected-work-left {
    letter-spacing: -1.8;
  }

  .text-container-header-selected-work-right {
    letter-spacing: -0.5;
  }
}

#projekte-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 4rem calc(10% / 4);
  align-items: flex-start;
  justify-items: start;
  overflow: hidden;
  margin-top: 5%;
  margin-right: 5%;
  width: 90%;
}


#projekte-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 5rem calc(30% / 4);
  align-items: flex-start;
  justify-items: baseline;
  overflow: hidden;
  margin-top: 5%;
  width: 85%;
}

.hidden {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1168px) {
  #projekte-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 3rem calc(0% / 4);
    width: 100%;
  }

  #projekte-list {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 3rem calc(0% / 4);
    width: 100%;
  }
}

@media (max-width: 768px) {
  #projekte-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 3rem calc(0% / 4);
    width: 100%;
  }

  #projekte-list {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 3rem calc(0% / 4);
    width: 100%;
  }
}


ul li {
  z-index: 1000;
}

li {
  list-style: none;
  display: grid;
  row-gap: 2.5%;
}

.project img {
  z-index: 999;
  width: 80%;
  height: auto;
  display: block;
  object-fit: cover;
  position: relative;
}


.text-container {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  gap: 1%;
}

.overlay-text {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project:hover .overlay-text {
  opacity: 1;
}

.text-frame-year {
  z-index: 3;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.letter-year-top {
  font-family: "Medium";
  text-transform: uppercase;
  font-size: 1.3vw;
  letter-spacing: -0.02em;
}

/* .letter-year-bottom {
  font-size: 2vw;
  letter-spacing: -0.06em;
  line-height: 1.5;
} */

#selected-work-footer {
  margin-top: 3%;
  width: 95%;
}

@media (max-width: 768px) {

  .project img {
    width: 80%;
    height: auto;
  }

  .letter-year-top {
    font-size: 3vw;
  }

  #selected-work-footer {
    margin-bottom: 5%;
    margin-top: 8%;
  }

}



/* /////////// JEWEILIGE PROJEKTE //////// */

.photo-container-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 1rem;
  height: clamp(320px, 60vh, 640px);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  width: 100%;
}

.photo-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: flex-start;
  height: 100%;
}

.photo-item img,
.photo-item video {
  height: 100%;
  max-height: 100%;
  flex-shrink: 0;
  object-fit: cover;
  scroll-snap-align: start;
  width: auto;
  display: block;
}

.photo-item .landscape {
  height: 80%;
  max-height: 80%;
  min-width: 300px;
}

.photo-item .portrait {
  height: 95%;
  max-height: 95%;
  min-width: 200px;
}

.photo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0.2vw;
}

.photo-text h4 {
  font-size: 1vw;
}


@media (max-width: 768px) {
  .photo-container-scroll {
    height: clamp(260px, 55vh, 460px);
    gap: 0.8vh;
    padding: 0.25rem;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
  }

  .photo-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: flex-start;
    height: 100%;
  }

  .photo-item img,
  .photo-item video {
    max-width: 80vw;
    height: 100%;
    max-height: 100%;
    width: auto;
  }

  .photo-item .landscape {
    min-width: 70%;
    height: 80%;
  }

  .photo-item .portrait {
    min-width: 50%;
    height: 95%;
  }
}



.header-projekte {
  position: relative;
  margin-top: 3%;
  margin-left: 5%;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  background-color: var(--c1);
  width: 90%;
  margin-bottom: 2%;
}

.header-projekte>*:not(:first-child) {
  margin-top: 0%;
}

.header-projekte>*:nth-child(n+3) {
  margin-top: 1%;
}

.text-container-header-projekte {
  position: relative;
  display: flex;
  justify-content: flex-start;
  height: auto;
}

.text-container-header-projekte-left {
  font-family: 'Medium';
  letter-spacing: -5;
}

.text-container-header-projekte-right {
  font-family: 'Light';
  font-weight: 100;
  letter-spacing: -3.5;
  line-height: 1.2;
}

.moreinfo {
  width: 70%;
}

.moreinfo-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4vw;
}

.textundbild-container {
  display: none;
}

.textundbild-container.show {
  display: block;
}


.projekt-beschreibungstext {
  width: 70%;
}


.textundskills {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2vw;
}


.skills {
  display: flex;
  width: 70%;
  flex-direction: row;
  justify-content: space-between;
  gap: 1vw;
  margin-bottom: 8%;
}

.skills h3 {
  font-size: 1.2vw;
  line-height: 1.3;
  word-spacing: -6;
  text-transform: lowercase;
}


@media (max-width: 1168px) {
  .text-container-header-projekte-left {
    letter-spacing: -2.8;
  }

  .text-container-header-projekte-right {
    letter-spacing: -2;
  }
}


@media (max-width: 768px) {

  #header-projekte {
    margin-top: 1%;
  }

  .text-container-header-projekte {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
  }

  .text-container-header-projekte-left {
    letter-spacing: -1.8;
  }

  .text-container-header-projekte-right {
    letter-spacing: -0.5;
  }

  .moreinfo {
    width: 95%;
  }

  .moreinfo-btn {
    font-size: 2.1vw !important;
  }

  .projekt-beschreibungstext {
    width: 95%;
  }

  .textundskills {
    gap: 2vw;
  }

  .skills {
    width: 100%;
  }

  .skills h3 {
    font-size: 2vw;
  }

  .moreinfo-btn {
    font-size: 2vw;
  }
}


/* .navigation-bottom {
  width: 85%;
  margin-left: 5%;
  margin-bottom: 2vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.navigation-bottom h3 {
  font-size: 1vw;
} */





/* ////////// SEPCIALS/////// */
.link-MTC {
  font-size: 1.3vw;
}


@media (max-width: 768px) {
  .link-MTC a {
    font-size: 2.8vw !important;
  }
}