html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  box-sizing: border-box;
  text-rendering: optimizeLegibility;
  font-family: "Maven", sans-serif;
  color: black;
  transition: opacity 200ms;
}
body {
  overflow: hidden scroll;
}
* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* stock styles */

h1 {
  font-weight: normal;
  margin: 0;
}
h2 {
  font-weight: normal;
  margin: 0 0 0.75rem 0;
}
h3 {
  font-weight: normal;
  margin: 0 0 0.75rem 0;
}
a {
  color: #666;
}

/* header */

header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: block;
  justify-content: flex-start;
  align-items: center;
  padding: 1.5rem 1rem;
}
header .logo {
  position: relative;
  height: 5rem;
}
header .logo-link {
  position: relative;
  display: block;
  padding: 0.5rem;
}
header .logo-white {
  position: absolute;
  top: 6px;
  left: 6px;
  height: 5rem;
  opacity: 0;
}
header .logo-black {
  opacity: 1;
}
.page-homepage header .logo-white {
  opacity: 1;
}
.page-homepage header .logo-black {
  opacity: 0;
}

header .links {
  position: relative;
  display: none;
  height: 0rem;
  width: 0;
  z-index: 2;
  margin-top: 1rem;
}

header .links .artist-links {
  margin-left: 1rem;
}

header .links a {
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  display: inline-block;
  background: white;
}

header a span {
  display: inline-block;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  padding: 0.2rem 0.2rem;
}
header a.active span,
header a:hover span {
  border-bottom: 1px solid #000;
}

/* footer */

footer {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background-image: url("/assets/img/photocopy.png");
}
footer .logo {
  height: 3rem;
}
footer .contact {
  font-size: 0.75rem;
}
footer a {
  color: #444;
}
footer .social a {
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 1rem;
}
footer .social img {
  width: 2rem;
  height: 2rem;
  margin-right: 0.25rem;
}
footer .social a span {
  border-bottom: 1px solid transparent;
}
footer .social a:hover span {
  border-bottom: 1px solid black;
}

/* content */

.container {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
.content {
  flex: 1;
  width: 100%;
}

/* homepage */

body.home header {
  position: fixed;
  transition: background-color 0.2s;
  background: rgba(0, 0, 0, 0);
}
body.home header:hover {
}
body.home header a {
  color: white;
  transition: all 0.05s;
}

/*
body.home header:hover .logo-white {
  display: none;
}
body.home header:hover .logo-black {
  display: inline;
}
*/
body.home header .links a {
  background: #000;
}
body.home header a:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: black;
}
body.home header a span {
  white-space: nowrap;
}
body.home header a:hover {
  background: transparent;
}
body.home header a:hover span {
  background: white;
  border-bottom-color: white;
}
.homepage .section {
  width: 100%;
  height: calc(100vh);
  background-size: cover;
  position: relative;
}
.homepage .section.center {
  background-position: center;
}
.homepage .plaque {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: white;
  color: black;
  padding: 1rem;
  box-shadow: 5px 5px 0px #000;
}

/* pages */

.page h2 {
  /* margin: 2rem; */
  padding: 2rem 2rem 0 2rem;
  width: 100%;
  /* text-align: center; */
  font-size: 3rem;
  letter-spacing: 1rem;
}
.page-content {
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.page .image {
  flex: 1;
  max-width: 100%;
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
}
.page .body {
  width: 400px;
  margin: 1rem 2rem 2rem 2rem;
}
.page.page-impressum {
  justify-content: flex-start;
  padding: 1rem 0 2rem 0;
}
.page.page-impressum .body {
  width: calc(100vw - 20rem);
}

.content.page.page-about {
  margin-left: 7rem;
  padding-right: 5rem;
}

/* news */

.news-page {
  display: flex;
  flex-flow: row wrap;
  margin-left: 7rem;
  padding-right: 5rem;
  justify-content: space-around;
}
.news-page h2 {
  padding: 2rem 2rem 2rem 2rem;
  width: 100%;
  text-align: center;
  font-size: 3rem;
  letter-spacing: 1rem;
}
.news-item {
  display: block;
  padding: 2rem;
  width: 400px;
}
.news-item .date {
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}
.news-item .date a {
  color: #888;
  text-decoration: none;
}
.news-item .date a:hover {
  text-decoration: underline;
}
.news-item .title {
  font-weight: bold;
  /*font-size: 1.25rem;*/
  margin-bottom: 0.25rem;
}
.news-item .body {
  line-height: 1.25;
  text-align: justify;
}
.news-item .links {
  margin-top: 0.5rem;
  line-height: 1.5;
}
.news-item .image {
  width: 100%;
  height: 250px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  margin-bottom: 0.75rem;
}
.news-item .image.km {
  background-image: url(/assets/img/KM_logo_transparent.png);
  background-size: auto;
  background-color: #f8f8f8;
  background-position: center;
  border-radius: 0.5rem;
}

/* artist list */

.artist-list {
  display: block;
  /* flex-flow: row wrap; */
  margin-left: 7rem;
  padding-right: 5rem;
}
.artist-list h2 {
  padding: 2rem 2rem 2rem 2rem;
  width: 100%;
  text-align: center;
  font-size: 3rem;
  letter-spacing: 1rem;
  padding-bottom: 3rem;
}
.artist-list-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
}
.artist-list-row > div {
  padding: 0 4rem;
}
.artist-list-row > div > div {
  padding: 0 0 0.75rem 0;
}
.artist-list .artist-list-row div a {
  border-bottom: 1px solid #888;
  color: #333;
  text-decoration: none;
}
.artist-list .artist-list-row div a:hover {
  color: #000;
  border-bottom-color: #333;
}

/* artist */

.artist-page {
  position: relative;
  padding: 0rem;
}
.artist-page h2 {
  padding: 2rem 2rem 1rem 2rem;
}
.artist-page h2.artist-name {
  padding-bottom: 1rem;
  /* margin: 2rem; */
  padding: 2rem 2rem 4rem 2rem;
  width: 100%;
  text-align: center;
  font-size: 3rem;
  letter-spacing: 1.5rem;
}
.artist-page .artist-desc {
  line-height: 1.5;
}
.artist-page .artist-desc .bio {
  padding-left: 2rem;
}
.artist-page .cv {
  margin-top: 0rem;
}
.artist-page .cv a {
  text-decoration: none;
  border-bottom: 1px solid;
}

.artist-page .artist-links {
  text-align: center;
}
.artist-page .artist-links a {
  margin: 1rem;
}

.artist-page .exhibition-list {
  flex-flow: column;
  margin-top: 0;
  margin-left: 0;
  padding-right: 5rem;
}
.artist-page .exhibition-list .exhibition {
  width: 48%;
  margin-left: 1rem;
}
.artist-page .exhibition-list .exhibition-image {
  height: 150px;
}
.artist-page .exhibition-list .exhibition-image img {
  height: 150px;
}
.artist-top-content,
h2.artist-top-content {
  padding-left: 12rem;
}

.artist-projects {
  display: flex;
  flex-flow: row wrap;
}

/* artist artworks */

.artwork.artist .desc {
  background: #f8f8f8 !important;
}
.artwork.artist .desc img {
  width: 100%;
}
.artwork.artist .image {
  background: white !important;
  justify-content: flex-start;
}

.aw {
  cursor: pointer;
}

.exh {
  cursor: pointer;
}

.artworks {
  padding: 0;
}
.artwork {
  display: flex;
  flex-direction: column;
}
.artwork .image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.artwork:nth-child(2n + 1) .image {
  background: #fdf8f8;
}
.artwork:nth-child(2n + 2) .image {
  background: #f8f8fd;
}
.artwork .desc {
  width: 400px;
  margin: 0 auto;
  max-width: 400px;
  padding: 1rem 2rem 2rem 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}
.artwork img {
  max-width: 100%;
  max-height: 70vh;
}
.artwork .title {
  font-style: italic;
  margin-bottom: 0.5rem;
}
.artwork .caption {
  line-height: 1.25;
  font-size: 0.75rem;
}
.artwork .for_sale {
  padding: 0.5rem 0;
  display: block;
}

/* exhbitions & archive */

.exhibition-list {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  margin-left: 7rem;
  padding-right: 5rem;
}
.exhibition-list h2 {
  padding: 2rem 2rem 2rem 2rem;
  width: 100%;
  text-align: center;
  font-size: 3rem;
  letter-spacing: 1rem;
}
.exhibition-list .exhibition {
  width: 50vh;
  padding: 1rem 1rem;
  margin-right: 5rem;
  line-height: 1.25;
  margin-left: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}
.exhibition-list .exhibition-image {
  height: 40vh;
  width: auto;
  margin-bottom: 0.5rem;
}
.exhibition-list .exhibition-image img {
  height: 40vh;
}
.exhibition-list .exhibition.archive-link {
  font-size: larger;
  /*width: 100%;*/
  padding: 2rem 1rem;
}

/*.exhibition {
    text-align: center;
}*/
.archive .date {
  color: #444;
  text-transform: uppercase;
  font-size: smaller;
  margin-top: 0.125rem;
}
.archive i {
  color: #444;
}

/*img.pdfss {
  top: 15%;
  right: 0;
  position: fixed;
  pointer-events: none;
}
*/

div.content.exhibition-list.archive {
  display: block;
  /* flex-flow: row wrap; */
  margin-left: 7rem;
  padding-right: 5rem;
}

.archive.exhibition-list .exhibition {
  width: auto;
}

/* exhibition page */

.exhibition-page {
}
.invitation-card a {
  display: block;
  width: 100%;
  height: 80vh;
}
.invitation-card .real-inviation-card {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}
.invitation-card .fake-inviation-card {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.invitation-card .no-inviation-card {
  background-position: center center;
  background-image: url("/assets/img/photocopy.png");
  background-size: auto;
  background-repeat: repeat;
  border-bottom: 1px solid #ddd;
}
.exhibition-desc {
  padding: 1rem 2rem 2rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}
.exhibition-desc .body {
  text-align: justify;
  line-height: 1.25;
}
.exhibition-desc iframe {
  width: 100%;
}
.exhibition-desc .dates,
.exhibition-desc .cv {
  margin: 0.5rem 0 1rem 0;
}
.exhibition-desc .title {
  font-style: italic;
  margin-top: 1rem;
}

.carousel {
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.5s;
  transition-delay: 0.15s;
}
.carousel.visible {
  opacity: 1;
}

/* pages */

.page-carousel img {
  /*max-height: 80vh;*/
}

/* mobile */

@media (max-width: 1200px) {
}

@media (max-width: 800px) {
  /* homepage stuff */
  .homepage .plaque {
    max-width: calc(100vw - 4rem);
  }
  /* header */
  header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: static;
  }
  header .links {
    display: flex;
    flex-flow: row wrap;
    width: auto;
    margin-top: 0;
    min-height: 5rem;
    padding-left: 0.5rem;
  }
  header .links a {
    padding: 0.25rem;
    margin-bottom: 0.25rem;
    margin-right: 0.25rem;
  }

  /* footer */
  footer {
    flex-direction: column-reverse;
  }
  footer .social {
    margin-bottom: 1.5rem;
  }

  /* exhibition list */
  .artist-list,
  .exhibition-list,
  .news-page,
  .content.page.page-about,
  div.content.exhibition-list.archive {
    margin-left: 0;
    padding-right: 0;
  }
  .artist-list h2,
  .artist-page h2.artist-name,
  .news-page h2,
  .exhibition-list h2,
  .page h2 {
    font-size: 2rem;
    letter-spacing: 5px;
    padding: 1rem;
  }
  .artist-page .exhibition-list .exhibition,
  .exhibition-list .exhibition {
    margin: 1rem;
    width: 100%;
  }
  .artist-page .exhibition-list .exhibition-image,
  .artist-page .exhibition-list .exhibition-image img,
  .exhibition-list .exhibition-image,
  .exhibition-list .exhibition-image img {
    height: auto;
    max-width: 100%;
  }

  /* carousel */
  .invitation-card a.no-inviation-card {
    height: 9rem;
  }
  .flickity-prev-next-button.previous {
    left: 1rem;
  }
  .flickity-prev-next-button.next {
    right: 1rem;
  }
  .carousel img {
    height: 90vh;
  }
  .flickity-button:hover {
    background: transparent;
  }

  /* artist list */
  .artist-list-row > div {
    padding: 0 1rem;
  }
  .artist-list-row {
    flex-direction: column;
    margin-bottom: 2rem;
  }

  /* artist page */
  .artist-top-content {
    padding-left: 0;
  }
  .artist-page .exhibition-list {
    padding-right: 2rem;
  }
  .artist-page .artist-links {
    margin-bottom: 2rem;
  }
  .artist-page .artist-links a {
    margin: 0;
    padding: 1rem;
    display: inline-block;
  }
  .news-item {
    width: 100%;
  }

  /* about */
  .page-about .page-content {
    flex-direction: column-reverse;
  }
  .page .body {
    width: 100%;
    margin: 0;
    padding: 1rem;
  }
  .page-about.page .image {
    flex: auto;
    width: calc(100vw - 2rem);
    height: 61vw;
    margin: 0 1rem;
  }
}
