/* Reset CSS */
@font-face {
  font-family: 'TimesNewArial';
  src: url(../src/fonts/TimesNewArialVF.ttf);
}

html, body {
  background: #fff;
  z-index: 1;
  font-size: 16px;
  font-size: 100%;
  padding: 0;
  margin: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'TimesNewArial';
  font-variation-settings: "wght" 100, "srff" 0, "ital" 0, "nvgn" 0;
  width: 100vw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: scroll;
}

*{
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

*::-webkit-scrollbar {
  display: none;
}

html .navitem1, body .navitem1 {
  max-width: 50vw;
  transition: max-width 0.5s linear, border-width 0.5s linear;
}

html.detailopen, body.detailopen {
  overflow: hidden;
}

html.detailopen .navitem1, body.detailopen .navitem1 {
  display: none;
}

html.detailopen .close, body.detailopen .close {
  display: inline-block;
}

a, button, input, label {
  cursor: pointer;
}

a {
  color: black;
  text-decoration: none;
}

*, *:after, *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-weight: lighter;
}

ul, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

body {
  font-size: 0;
}

/* Your CSS */
main {
  position: relative;
  z-index: 9;
  padding-top: 2vw;
}

main .background {
  margin-top: -2vw;
  pointer-events: none;
  position: absolute;
  display: block;
  background-size: 2vw 2vw;
  background-image: linear-gradient(to right, black 0.05vw, transparent 0.05vw), linear-gradient(to bottom, black 0.05vw, transparent 0.05vw);
  min-height: 100%;
  min-width: 100%;
  transition: opacity 0.5s ease;
}

main.subwillopen .imgwrap {
  pointer-events: none;
}

main.subwillopen .background {
  opacity: 0;
}

main.subopen {
  pointer-events: none;
}

main.subopen .legalnav {
  opacity: 0;
}

main.subopen .imgwrap {
  opacity: 0;
}

nav {
  position: relative;
  z-index: 9999999999999;
}

nav.legalnav a {
  cursor: pointer;
  padding-left: 0.5vw;
}

nav.legalnav a#cta_imprint {
  width: 8vw;
  text-align: left;
}

nav.mainnav {
  pointer-events: none !important;
  position: fixed;
  left: 0;
  top: 0;
}

nav.mainnav .name, nav.mainnav .count {
  pointer-events: none !important;
}

nav > a, nav > div {
  cursor: pointer;
  height: 2vw;
  font-size: 1.5vw;
  line-height: 2.25vw;
  vertical-align: top;
  display: inline-block;
  text-align: left;
  pointer-events: auto !important;
  padding-left: 0.25vw;
}

nav > a.home, nav > div.home {
  width: 12vw;
  pointer-events: none;
}

nav > a.home div, nav > div.home div {
  width: 12vw;
}

nav > a.imprint, nav > a.data, nav > div.imprint, nav > div.data {
  width: 10vw;
}

nav > a.about, nav > div.about {
  width: 6vw;
}

nav > a.contact, nav > div.contact {
  width: 8vw;
}

nav > a.close, nav > div.close {
  width: 6vw;
  display: none;
}

#subpage {
  z-index: 1 !important;
  pointer-events: none;
  top: 0;
  opacity: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  position: fixed;
  padding-bottom: 0vw;
}

#subpage .texxxt {
  cursor: pointer;
  z-index: 99999999999999;
  text-align: left;
  top: 0;
  left: 50vw;
  position: fixed;
  font-size: 1.5vw;
  line-height: 2.25vw;
  width: 6vw;
}

#subpage .arrow {
  display: none;
}

#subpage .text2 {
  padding-top: 2vw;
  display: none;
}

#subpage.open {
  opacity: 1;
  pointer-events: auto;
}

#subpage .textwrap {
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: scroll;
}

#subpage .textwrap a {
  word-break: break-all;
}

#subpage .textwrap.open {
  display: block;
}

#subpage .textwrap .text {
  margin-top: 0.25vw;
  width: 50vw;
  position: relative;
  margin-left: 50vw;
}

#subpage .textwrap .text:nth-of-type(2) {
  margin-top: 6vw;
}

#subpage .textwrap .text.exhibition .datetitle {
  font-size: 1.5vw;
  line-height: 2.25vw;
  margin-bottom: 0;
}

#subpage .textwrap .text.exhibition .datetitle p {
  display: inline-block;
  margin-bottom: 0;
}

#subpage .textwrap .text.exhibition .detail {
  line-height: 0;
}

#subpage .textwrap .text.exhibition .detail span {
  font-size: 1.5vw;
  line-height: 1.5vw;
}

#subpage .textwrap .text.exhibition .detail span:not(:last-child):after {
  content: ", ";
}

#subpage .textwrap .text div {
  margin-bottom: 2vw;
}

#subpage .textwrap .text div div {
  font-size: 2vw;
  font-variation-settings: "wght" 0, "srff" 0, "ital" 0, "nvgn" 0;
  line-height: 2.25vw;
  margin-bottom: -0.25vw;
}

#subpage .textwrap .text div div .caption {
  font-size: 1.25vw;
  line-height: 1vw;
  vertical-align: top;
}

#subpage .textwrap .text h1 {
  font-size: 2vw;
  font-variation-settings: "wght" 0, "srff" 0, "ital" 0, "nvgn" 0;
  line-height: 2.25vw;
  margin-bottom: 1vw;
}

#subpage .textwrap .text p, #subpage .textwrap .text span {
  font-size: 2vw;
  font-variation-settings: "wght" 0, "srff" 0, "ital" 0, "nvgn" 0;
  line-height: 2.25vw;
  margin-bottom: 0.5vw;
}

#subpage .textwrap .text p a, #subpage .textwrap .text span a {
  transition: font-variation-settings .25s linear;
}

#subpage .textwrap .text p a:hover, #subpage .textwrap .text span a:hover {
  font-variation-settings: "wght" 0, "srff" 0, "ital" 50, "nvgn" 0;
}

#subpage .textwrap .text .imprint, #subpage .textwrap .text .data {
  cursor: pointer;
  font-size: 1.5vw;
  line-height: 2.25vw;
  width: 12vw;
  display: inline-block;
  text-align: left;
}

.slider {
  left: 0;
  top: 0;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  position: fixed;
  width: auto;
  overflow: hidden;
  display: inline-block;
  z-index: -1;
}

.slider .slide {
  width: 100vw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  display: inline-block;
  position: relative;
}

.slider .slide img {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;
  margin: auto;
}

.slider .slide img.quer {
  width: 60vw;
}

.slider .slide img.hoch {
  width: 40vw;
}

.slider .slick-arrow {
  top: 0;
  position: fixed;
  width: 50vw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  z-index: 999;
  opacity: 0;
}

.slider .slick-arrow.slick-prev {
  left: 0;
  cursor: w-resize;
}

.slider .slick-arrow.slick-next {
  right: 0;
  cursor: e-resize;
}

.imgwrap {
  position: relative;
  z-index: 1;
  font-size: 0;
  background-size: 2vw 2vw;
  background-image: linear-gradient(to right, black 0.05vw, transparent 0.05vw), linear-gradient(to bottom, black 0.05vw, transparent 0.05vw);
  cursor: pointer;
  vertical-align: top;
  display: inline-block;
}

.imgwrap:hover img {
  mix-blend-mode: multiply;
}

.imgwrap:hover div {
  opacity: 1;
}

.imgwrap.hoch {
  width: 40vw;
}

.imgwrap.quer {
  width: 60vw;
}

.imgwrap img {
  width: 100%;
}

.imgwrap.loaded img {
  height: 100%;
}

.imgwrap div {
  opacity: 0;
  height: 2vw;
  background-color: white;
  font-size: 1.5vw;
  line-height: 2.25vw;
}

.imgwrap div.name {
  position: absolute;
  bottom: 0;
  left: 0;
  margin-left: 0.05vw;
  border-right: 0.05vw solid black;
  border-top: 0.05vw solid black;
  text-align: left;
}

.imgwrap div.count {
  border-left: 0.05vw solid black;
  border-top: 0.05vw solid black;
  margin-right: 0.05vw;
  width: calc(6vw - 0.05vw);
  text-align: left;
  position: absolute;
  bottom: 0;
  right: 0;
}

/* Media Queries */
@media screen and (max-width: 500px) {
  main {
    padding-top: 7vw;
  }
  main .background {
    margin-top: -7vw;
    pointer-events: none;
    position: absolute;
    display: block;
    background-size: 7.1405vw 7vw;
    background-image: linear-gradient(to right, black 0.1vw, transparent 0.1vw), linear-gradient(to bottom, black 0.1vw, transparent 0.1vw);
    min-height: 100%;
    min-width: 100%;
    transition: opacity 0.5s ease;
  }
  .imgwrap {
    margin-bottom: 7vw;
  }
  .imgwrap.quer, .imgwrap.hoch, .slider .slide img.hoch, .slider .slide img.quer {
    width: 100vw;
  }
  .slider .slick-arrow {
    top: auto;
    bottom: 0;
    height: 10vh;
    height: calc(var(--vh, 1vh) * 10);
  }
  nav {
    padding-left: 1vw;
    padding-right: 1vw;
  }
  nav.mainnav {
    width: auto;
    height: auto;
  }
  nav > div, nav > a {
    width: auto;
    width: auto;
    height: 8vw;
    font-size: 6vw;
    line-height: 8vw;
  }
  nav > a.about {
    width: auto;
    margin-right: 2.5vw;
  }
  nav > div.home div, nav > div.home {
    width: 49vw;
    text-align: left;
    margin-right: 1vw;
  }
  nav.legalnav a#cta_imprint {
    width: 28vw;
  }
  #subpage .textwrap {
    padding-top: 14vw;
  }
  #subpage .textwrap .text {
    width: 100vw;
    margin-left: 0;
    padding: 1vw;
  }
  #subpage .textwrap .text.exhibition {
    margin-top: 14vw;
  }
  #subpage .textwrap .text.exhibition .detail {
    margin-bottom: 7vw;
  }
  #subpage .textwrap .text.exhibition .detail span {
    font-size: 6vw;
    line-height: 6vw;
  }
  #subpage .textwrap .text p, #subpage .textwrap .text h1 {
    font-size: 8vw;
    line-height: 9vw;
    margin-bottom: 7vw;
  }
  #subpage .textwrap .text.exhibition .datetitle {
    font-size: 8vw;
    line-height: 9vw;
  }
  html.detailopen .close, body.detailopen .close {
    width: 100vw;
  }
  .name, .count, .close {
    margin-right: 2vw;
  }
  #subpage .texxxt {
    top: auto;
    bottom: 0.25vw;
    left: 1vw;
    font-size: 6vw;
    line-height: 13vw;
    width: 50vw;
    height: 10vw;
  }
  #subpage .arrow {
    display: block;
    position: fixed;
    pointer-events: none;
    top: auto;
    bottom: 0.25vw;
    right: 1vw;
    font-size: 6vw;
    line-height: 6vw;
  }
  .slick-prev {
    display: none !important;
  }
  .imgwrap:hover img {
    mix-blend-mode: initial;
  }
}
