@font-face {
  font-family: 'Martina Plantijn';
  src: url('../fonts/martina-plantijn-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Martina Plantijn';
  src: url('../fonts/martina-plantijn-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --main-padding: 40px;
  --main-font-color: #0a0a0a;
  --blend-mode: none;
}

body {
  font-family: 'Martina Plantijn', "Times New Roman", serif;
  margin: 0;
  padding: calc(var(--main-padding)/2) var(--main-padding);
  color: var(--main-font-color);
  line-height: 1.3;
  font-size: 1.2rem;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  body {
    padding: calc(var(--main-padding)/2);
  }
}

a {
  color: inherit;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

h2 {
  font-size: 1em;
}

main {
  margin: 0 auto;
  max-width: 2000px;
  z-index: 1;
  position: relative;
}

.nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  padding: 0 0 20px 0;
  isolation: isolate;
}

.logo {
  flex: 0 0 auto;
  cursor: pointer;
}

.project-title {
  flex: 1;
  text-align: right;
  padding: 0 20px 0 0;
}

.nav-right {
  flex: 0 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-right .nav-right-link a {
  text-decoration: none;
}

.project-title-mobile-back,
.project-title-mobile-front {
  display: none;
}

.images picture {
  position: absolute;
}

.modal {
  position: fixed;
  opacity: 0;
  top: 0;
  left: 100vw;
  bottom: 0;
  width: 70vw;
  height: 100vh;
  background-color: #fff;
  box-shadow: 2px 1px 18px 0px rgba(0,0,0,0.2);
  -webkit-box-shadow: 2px 1px 18px 0px rgba(0,0,0,0.2);
  -moz-box-shadow: 2px 1px 18px 0px rgba(0,0,0,0.2);
  transition: left ease-in-out .3s;
  z-index: 1000;
}

.modal .modal-close {
  cursor: pointer;
  position: absolute;
  left: 40px;
  top: 20px;
  z-index: 1001;
}

.modal .modal-close {
  position: relative;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.modal  .modal-close::before,
.modal  .modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1px;           /* Dicke der Linie */
  background: #000;      /* Farbe des X */
  transform-origin: center;
}

.modal .modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal  .modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal .modal-close:hover::before,
.modal .modal-close:hover::after {
  background: #000;
}

.modal .modal-content {
  scroll-behavior: smooth;
  overflow-y: auto;
  overflow-x: hidden;
  position: absolute;
  height: 100%;
  top: 65px;
}

.modal .modal-content-row {
  padding: 120px 40px 120px 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.modal .modal-content-row .modal-content-col {
  padding: 0 60px 0 0;
}

@media (max-width: 1024px) {
  .nav-main {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100vw - 40px);
    padding: 20px 0 0 20px;
    isolation: unset;
    background: transparent;
    z-index: 10;
  }

  .project {
    margin: 0 0 60px 0;
    border-bottom: solid 1px transparent;
  }

  .project-title {
    display: none;
  }

  .project-title-mobile-back,
  .project-title-mobile-front {
    display: block;
    position: fixed;
    bottom: 40px;
    left: 20px;
    mix-blend-mode: var(--blend-mode);
  }
  .project-title-mobile-back {
    z-index: 1;
  }
  .project-title-mobile-front {
    z-index: 100;
    mix-blend-mode: var(--blend-mode);
  }

  .images {
    position: relative;
    z-index: 2;
    padding: 50px 0 0 0;
  }

  .images picture {
    position: relative;
    display: block;
    opacity: 1;
  }

  .cursor-title {
    display: none !important;
  }

  .images,
  .images picture:hover,
  .images picture:hover img {
    cursor: default;
  }
  .modal {
    width: 90vw;
  }
  .modal--open {
    z-index: 1000;
    opacity: 1;
    left: 10vw;
  }
  .modal .modal-content {
    width: 90vw;
  }
  .modal .modal-content-row {
    grid-template-columns: repeat(1, 1fr);
  }
  .modal .modal-content-row .modal-content-col {
    display: block;
    padding: 0;
    width: calc(90vw - 80px);
  }
}

.responsive-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 0 0;
}

@media (min-width: 1024px) {
  .images picture {
    display: none;
    opacity: 0;
    transition: opacity 200ms ease;
  }
  .images picture.active {
    display: block;
    opacity: 1;
  }

  .responsive-image {
    position: static;
  }

  .images {
    user-select: none;
    cursor: none;
  }
  .images picture:hover,
  .images picture:hover img {
    cursor: none;
  }

  .modal--open {
    opacity: 1;
    z-index: 1000;
    left: 30vw;
  }
}

.cursor-title {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 120ms ease;
  font-weight: normal;
  mix-blend-mode: var(--blend-mode);
  background: transparent;
  padding: 0;
  border-radius: 0;
  white-space: nowrap;
  text-align: center;
}
.cursor-title.visible {

  opacity: 1;
}

.js-enabled .images picture { display: none; }
.js-enabled .images picture.active { display: block; }

.images { position: relative; }
