/* Code: Jonas Pelzer, jonaspelzer.com */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 100%;
  font: inherit;
  list-style-type: none;
  /* outline: solid 1px rgba(0,0,0,.5); */
}

html {
  scroll-behavior: smooth;
}

body {
}

.snapper {
  scroll-snap-points-y: repeat(100vh);
  scroll-snap-type: y mandatory;
  scroll-snap-type: mandatory;
}

html, body {
}

.snap {
  scroll-snap-align: start;
  /* background: rgba(255,0,0,0.4);
  outline: solid 1px #666; */
}

.main {
  height: auto;
}

.main, section {
  min-height: 100vh;
  width: 100%;
}

section {
}

.wrap {
  width: 100%;
  /* max-width: 1200px; */
  max-width: 1400px;
  /* max-width: 100%; */
  margin: auto;
  padding: 10px;
  /* padding: 0 10px 10px 10px; */
  /* outline: solid 1px green; */
}

.container {
  min-height: 100vh;
  display: grid;
  /* align-items: center; */
  justify-items: center;
}

.container-50 {
  width: 50%;
  float: left;
  min-height: 100vh;
}

.container-100 {
  width: 100%;
}

img, video {
  max-width: 100%;
  max-height: 100vh;
}

a {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.cf {
  display: block;
  clear: both;
}

.shadow {
  box-shadow: rgba(0,0,0,.5) 0px 0px 10px;
}

.fadein {
  position: fixed;
  top: 150%;
  z-index: 500;
  transition: 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  height: 100vh;
  overflow: auto;
}

.fadein--visible {
  top: 0;
}

.noscroll {
  overflow: hidden !important;
}

button {
  cursor: pointer;
  font: inherit;
  background: none;
  border: none;
}

.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

*:focus {
  /* outline: dotted 1px #666; */
  outline: none;
}

.body--focusEnabled *:focus {
  outline: dotted 1px #666;
}

.thirds {
  /* outline: solid 1px red; */
  display: grid;
  /* grid-template-columns: auto auto auto; */
  grid-template-areas: 'a c b';
  grid-template-columns: repeat(3, 1fr);
}

.thirds div {
  justify-self: start;
  grid-area: a;
}

.thirds div+div {
  justify-self: end;
  grid-area: b;
}

.thirds div+div+div, .thirds div+div+ul {
  grid-area: c;
  justify-self: center;
  text-align: center;
}

.thirds-about {
  /* outline: solid 1px red; */
  width: 100%;
  max-width: 1400px;
}

.thirds-about > div:first-of-type div {
  text-align: left;
  width: 100%;
}

.thirds-about > div, .thirds-about > ul {
  /* outline: solid 1px blue; */
  float: left;
  width: 33.33%;
  display: block;
}

.thirds-about div+div {
  float: right;
}

.thirds-about div+div > div {
  text-align: right;
}

.thirds-about ul {
  text-align: center;
}

::selection {
  background: #666;
  color: #fff;
}

.body--project, .body--work, .body--about {
  background: #ededed;
}

/* .body--project nav, .body--work nav, .body--about nav { */
.body--about nav {
  /* outline: solid 1px red; */
  background: linear-gradient(180deg, rgba(237,237,237,1) 0%, rgba(237,237,237,1) 80%, rgba(237,237,237,0) 100%);
}

/* .body--project:after, .body--work:after, .body--about:after { */
.body--about:after {
  content: '';
  width: 100%;
  height: 50px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(237,237,237,0) 0%, rgba(237,237,237,1) 20%, rgba(237,237,237,1) 100%);
  z-index: 200;
}





/* TYPOGRAPHY */
@font-face {
    font-family: 'sans';
    src: url('../fonts/engravers_gothic_bt.woff2') format('woff2'),
         url('../fonts/engravers_gothic_bt.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.sans {
  font-family: 'sans';
  text-transform: uppercase;
  font-size: 16px;
}

@font-face {
    font-family: 'serif';
    src: url('../fonts/playfairdisplay-italic.woff2') format('woff2'),
         url('../fonts/playfairdisplay-italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

.serif {
  font-family: 'serif';
  font-style: italic;
  font-size: 16px;
}

.header-logo {
  font-size: 16px;
  -ms-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.mobile-nav, .hamburger {
  display: none;
}





.projectlink {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 4vw;
  z-index: 100;
  height: auto;
}

.projectlink a {
  display: grid;
  align-items: center;
  justify-items: center;
  position: relative;
}

.projectlink a:hover {
}

.projectlink a:hover .projectlink-text {
  display: block;
}

.projectlink a:hover .projectlink-image {
  filter: blur(40px);
  opacity: .8;
}

.work .projectlink a:hover .projectlink-image {
  filter: blur(20px);
  opacity: .8;
}

.projectlink-image {
  height: auto;
  transition: all .2s;
}

.projectlink--list {
}

.projectlink--list .projectlink-text {
  display: block;
}

.projectlink--list .projectlink-image {
  filter: blur(40px);
  opacity: 0;
}

.projectlink--list a:hover .projectlink-text {
  opacity: 0;
}

.projectlink--list a:hover .projectlink-image {
  filter: blur(0px) !important;
  opacity: 1;
}

.projectlink-image img, .projectlink-image video {
  max-height: 80vh;
}

.projectlink-text {
  display: none;
  position: absolute;
  text-align: center;
}

.projectlink-text-title {
  display: block;
  white-space: nowrap;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -20px;
}

.projectlink-text-client {
  display: block;
  white-space: nowrap;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.backtotop {
  display: none;
}






/* HEADER */

.header {
}

.header-logo {
  position: fixed;
  z-index: 700;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  letter-spacing: 5px;
  text-align: center;
  white-space: nowrap;
}

.header-logo:not(.header-logo--before-ani) {
  pointer-events: auto !important;
}

.header a {
  padding: 5px;
}

.nav {
  position: fixed;
  z-index: 400;
  top: -5px;
  width: 100%;
}

.nav .wrap {
  display: grid;
  grid-auto-flow: column;
}

.nav-left {
  justify-self: start;
  /* outline: solid 4px red;
  margin-left: 40px; */
}

.nav-right {
  justify-self: end;
  /* outline: solid 4px red;
  margin-right: 40px; */
}





/* WORK OVERVIEW */

.work {
  padding-top: 10vh;
}

.work-list {
  /* display: grid;
  grid-template-columns: auto auto auto auto; */
  /* grid-template-rows: auto auto; */
  /* justify-items: start; */
  padding-bottom: 10vh;
  min-height: 90vh;
  /* background: green; */
}

.work-list li {
  /* outline: solid 1px blue; */
  display: inline-block;
  height: auto;
  /* padding-top: 1vw;
  padding-bottom: 1vw; */
  /* position: relative; */
  padding-left: 10px;
  padding-right: 10px;
  width: 24.5%;
  max-height: 50vw;
}

/* NEW START */
.projectlink-image-video {
  width: 200px;
  height: 320px;
  position: relative;
  overflow: hidden;
  background: #000;
  /* max-width: calc(100% - 20px) !important;
  max-height: 34vw;
  padding-right: 10px; */
  /* outline: solid 2px red; */
}

.projectlink-image-video video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  max-height: 100%;
  max-width: 300%
}
/* NEW END */

.work-list li img {
  max-width: 200px;
  max-height: 320px;
  width: 100%;
}

.work .projectlink {
  display: block;
  margin: auto;
  /* outline: solid 1px red; */
  padding: 25% 0;
}

.work .projectlink-text {
  text-align: center;
  width: 100px;
  top: 50%;
  transform: translateY(-50%);
}

.close {
  background: none;
  border: none;
  position: fixed;
  right: 10px;
  top: 0;
  padding: 4px 10px;
  z-index: 500;
  font-size: 23px;
  /* outline: solid 1px red; */
  /* opacity: 0; */
  /* pointer-events: none; */
  /* transition: .6s cubic-bezier(0.23, 1, 0.32, 1); */
}

/* .close--visible {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 1s;
  z-index: 500;
  margin-right: 10px;
  margin-top: 2px;
} */

.bottombar {
  position: sticky;
  bottom: 20px;
  z-index: 300;
  /* height: 0; */
}

.bottomtitle {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 3px;
  text-align: center;
}

.work-switch {
}

.work-switch-btn {
  padding: 5px;
  color: #B2B2B2;
}

.work-switch-btn--current {
  color: #000;
}

ul.work-cats {
  /* position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%); */
  /* outline: solid 1px red; */
}

ul.work-cats li {
  display: inline-block;
}

.work-cats-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #B2B2B2;
}

.work-cats-btn:hover {
  color: #000;
}

.work-cats-btn--current span {
  /* border-bottom: solid 1px #000; */
  color: #000;
}

.cat {
  transition: all .2s;
}

.cat--filterout {
  /* visibility: hidden; */
  /* filter: grayscale(100%); */
  filter: blur(20px);
  opacity: .8;
  /* opacity: 0; */
  pointer-events: none;
}

.work-filter {
  display: none;
}







/* PROJECT */

.body--project {
}

.project {
}

.project-meta {
  cursor: auto;
}

.project .container {
  align-items: center;
}

.project .container-50 {
  justify-items: end;
  padding: 5px;
  /* outline: solid 1px red; */
}

.container-50--right {
  justify-items: start !important;
  /* background: blue; */
}

.sibling-wrapper {
  /* outline: solid 1px red;
  background: yellow; */
}

.sibling-wrapper:after {
  content: '';
  clear: both;
  display: block;
}

.project-image, .project-video {
  max-height: 80vh;
  position: relative;
  z-index: 100;
}

.project-jumper {
  display: block;
  background: transparent;
  width: 100vw;
  height: calc(100vh - 60px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  cursor: url(../images/cursor-arrow-new.png), auto;
}

.projects .projectlink {
}

.project-meta {
  min-height: 100vh;
  text-align: center;
  display: grid;
}

.project-meta > div {
  align-self: center;
  /* margin-top: -20px; */
}

.project-image, .about-image {
  /* cursor: zoom-in; */
  cursor: url(../images/cursor-plus.svg), auto;
}

.project-image--full, .about-image--full {
  position: fixed;
  height: 100vh !important;
  max-height: 100vh !important;
  max-width: 500vw !important;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  top: 0;
  /* bottom: 0; */
  z-index: 800;
  /* cursor: zoom-out; */
  cursor: url(../images/cursor-minus.svg), auto;
}

.project-images--hidden {
}

.about-text--hidden {
  visibility: hidden;
}

.project-images--hidden .project-image:not(.project-image--full), .project-images--hidden .project-video {
  visibility: hidden;
  pointer-events: none;
}

.pagination {
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  margin-top: -20px;
}

.pagination img {
  width: 200px;
  height: 320px;
}

.pagination a .pagination-image {
  transition: all .2s;
}

.pagination a:hover .pagination-image {
  filter: blur(40px) !important;
  opacity: .8;
}

.pagination-prev {
  left: 20px;
}

.pagination-next {
  right: 20px;
}

.textpagination {
  display: none;
  position: fixed;
  bottom: 20px;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
}




/* ABOUT */

.about {
}

.about-text {
  min-height: 100vh;
  display: grid;
  justify-items: center;
  align-items: center;
  padding: 10vh 0 10vh 0;
}

.about-text-inner {
  text-align: center;
  max-width: 600px;
}

.about-text-inner img {
  max-width: 400px;
  margin-bottom: 40px;
}

.about-text-inner a {
  border-bottom: solid 1px #000;
}

.about-text-inner a:hover {
  border: none;
}

.about-meta {
  /* outline: solid 1px red; */
  /* width: 28vw; */
}

.about-meta-studio, .about-meta-imprint {
  display: none;
}



/* ANIMATIONS */
@keyframes blur {
  0% {
    filter: blur(40px);
    opacity: .8;
  }

  100% {
    filter: blur(0);
    opacity: 1;
  }
}

.ani-blur {
  animation: blur .4s linear;
}

@keyframes blur-out {
  100% {
    filter: blur(40px);
    opacity: .8;
  }

  0% {
    filter: blur(0);
    opacity: 1;
  }
}

.ani-blur-out {
  /* animation: blur-out .4s linear forwards; */
}

@keyframes intro-logo {
  0% {
    /* transform: translateX(-50%) scale(4); */
    transform: translateX(-50%) translateY(-50%);
    font-size: 34px;
    letter-spacing: 11px;
    top: 50%;
    text-align: center;
    left: 50%;
  }

  100% {
    /* transform: translateX(-50%) scale(1); */
    transform: translateX(-50%) translateY(0%);
    left: 50%;
    font-size: 16px;
    /* fix based on .sans size */
    letter-spacing: 5px;
    text-align: center;
    top: 0;
  }
}

.ani-intro-logo {
  animation: intro-logo 2s ease-in-out forwards;
  /* animation-delay: 2s; */
  /* transform: translateX(-50%) scale(4); */
  transform: translateX(-50%) translateY(-50%);
  /* font-size: 48px; */
  top: 50%;
}

.header-logo--before-ani {
  font-size: 34px;
  letter-spacing: 11px;
  text-align: center;
  transform: translateX(-50%) translateY(-50%);
  top: 50%;
  pointer-events: none;
}

@keyframes ani-intro-container {
  0% {
    top: 100vh;
  }

  100% {
    top: 0;
  }
}

.ani-intro-container:first-of-type {
  animation: ani-intro-container 2s ease-in-out forwards;
  animation-delay: .2s;
  position: relative;
  top: 100vh;
}

.intro-container--before-ani:first-of-type {
  position: relative;
  top: 100vh;
}

@keyframes opacity {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.ani-intro-nav {
  animation: opacity 2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: 2s;
  opacity: 0;
}



/* BREAKPOINTS */
@media (min-width: 626px) {
  .bottombar--fixed {
    position: fixed;
    width: 97%;
    max-width: 1400px;
    /* outline: solid 1px red; */
    margin: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 625px) {
  .snapper {
    scroll-snap-type: initial;
    scroll-snap-points-y: initial;
  }

  .mobile-hidden {
    display: none !important;
  }

  .body--home .bottombar {
    position: fixed;
  }

  .work-list {
    padding-bottom: 0;
  }

  .bottomtitle {
    width: 100%;
    text-align: center;
    pointer-events: none;
  }

  .about .bottombar {
    position: static;
  }

  .about-text {
    padding-bottom: 20px;
    padding-top: 22vw;
    height: initial;
    max-height: initial;
    min-height: initial;
  }

  .about-text-inner {
    height: initial;
    max-height: initial;
    min-height: initial;
  }

  .nav {
    background: #fff !important;
    box-shadow: rgba(0,0,0,0.5) 0px 0px 5px;
    display: block !important;
    height: 50px;
  }

  .header-logo {
    margin-top: 2px;
  }

  .container {
    justify-items: center !important;
    align-items: center !important;
  }

  .container-50 {
    float: none;
    width: 100%;
  }

  .work-list {
    /* display: grid;
    grid-template-columns: auto auto; */
  }

  .work-filter, .work-cats {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45px;
    z-index: 700;
    background: #fff;
    /* box-shadow: rgba(0,0,0,0.5) 0px 0px 5px; */
    width: 100%;
    white-space: nowrap;
  }

  .work-filter {
    letter-spacing: .8px;
    z-index: 800;
  }

  .work-cats, .work-switch {
    display: none;
  }

  .work-cats {
    line-height: 35px;
    overflow-y: auto;
    white-space: nowrap;
    padding-left: 20px;
  }

  .work-cats li:last-of-type {
    margin-right: 20px;
  }

  .about .work-cats {
    display: block;
  }

  .work-cats li a {
  }

  .about img {
    max-width: 100%;
  }

  .thirds, .thirds-about {
    display: block;
    padding-bottom: 100px;
    position: static;
    text-align: center;
    width: 100%;
  }

  .thirds div, .thirds ul, .thirds-about div, .thirds-about ul {
    /* text-align: left !important; */
    width: 100%;
    text-align: center !important;
  }

  .thirds div+div+div, .thirds div+div+ul, .thirds-about div+div+div, .thirds-about div+div+ul {
    margin-top: 20px;
  }

  .about-meta {
    width: 100%;
    text-align: center;
  }

  .hamburger {
    display: block;
    position: fixed;
    right: 15px;
    top: 8px;
    width: 30px;
    height: 30px;
    background: url(../images/hamburger.svg);
  }

  .mobile-nav {
    display: block;
    position: fixed;
    height: 141px;
    width: 100%;
    top: -141px;
    transition: all .6s;
    z-index: 300;
  }

  .mobile-nav--visible {
    top: 45px;
  }

  .mobile-nav a {
    display: block;
    width: 100%;
    /* outline: solid 1px blue; */
    height: 47px;
    line-height: 35px;
    text-align: center;
    background: #fff;
    box-shadow: rgba(0,0,0,0.5) 0px 0px 5px;
    position: relative;
  }

  .mobile-nav a:first-of-type {
    z-index: 209;
  }

  .mobile-nav a:first-of-type+a {
    z-index: 208;
  }

  .mobile-nav a:last-of-type {
    z-index: 207;
  }

  .close {
    display: none;
  }

  /* remove animations for mobile */
  .ani-intro-logo, .ani-intro-container, .ani-intro-nav {
    animation: none !important;
  }
  .ani-intro-logo {
    transform: translateX(-50%);
    top: 0;
  }
  .ani-intro-container {
    position: static !important;
  }
  .ani-intro-nav {
    opacity: 1;
  }

  .body--about:after {
    content: '';
    width: 100%;
    height: 50px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(237,237,237,0) 0%, rgba(237,237,237,1) 20%, rgba(237,237,237,1) 100%);
    z-index: 200;
    display: none;
  }

  .work-list li {
    /* outline: solid 4px red; */
    width: 49%;
  }
}

@media (orientation: portrait) {
  img.project-image {
    pointer-events: none;
  }
}



/* browser fixes */

/* Safari 11+ */

@media not all and (min-resolution:.001dpcm)
{ @supports (-webkit-appearance:none) and (stroke-color:transparent) {

    .header-logo:not(.header-logo--before-ani) {
      animation: none !important;
    }

    .header-logo--before-ani {
    }

    .ani-intro-logo {
      animation: intro-logo 1.8s ease-in-out forwards;
      /* animation-delay: 2s; */
      /* transform: translateX(-50%) scale(4); */
      /* transform: translateX(-50%) translateY(-50%); */
      /* font-size: 48px; */
      /* top: 50%; */
    }

    @keyframes intro-logo {
      0% {
        /* transform: translate(-50%) translateY(-50%); */
        font-size: 34px;
        letter-spacing: 11px;
        top: 50%;
        text-align: center;
        left: 50%;
      }

      100% {
        /* transform: translateX(-50%) translateY(0%); */
        left: 50%;
        font-size: 16px;
        /* fix based on .sans size */
        letter-spacing: 5px;
        text-align: center;
        top: 0;
        margin-top: 19px;
      }
    }
}}
