@import url('https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital@0;1&display=swap');

@font-face {
  font-family: "Alpina";
  src: url("/assets/fonts/BradfordLL-Book.otf");
  font-display: block;
}
@font-face {
  font-family: "Alpina Italic";
  src: url("/assets/fonts/BradfordLL-BookItalic.otf");
  font-display: block;
}


:root {
  --main-bg-color: #FFFFFF;
  --video-bg-color: #000000;
  --main-text-color: #000000;
  --selection-color: rgba(221,221,221,.5);
  --grey: #E2E2E2;
  
  --regular-text: 'Crimson Pro', serif;
  /* --italic-text: 'Alpina Italic', serif; */
  --main-line-height: 1.25;
  --title-line-height: 1.5;
  
  --space-around-1x: 1rem;
  --main-padding-1x: 30px;
  --main-padding-2x: 60px;
  --main-padding-3x: 90px;
  
  --main-nav-width: 60px;
}
  
* {
  padding: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  color: var(--main-text-color);
  font-size: 16px;
  font-family: var(--regular-text);
  font-weight: normal;  
  line-height: 1;
  text-indent: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow: hidden;
}

html, body {
  overscroll-behavior-x: none;
}

body {
  width: 100vw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  background: var(--main-bg-color);
  position: relative;
  overflow: auto;
}

h1, h2, h3, h4, h5, h6, 
article, section, div, 
ul, ol, li, p, blockquote, 
span, a, i, em, strong, sup, 
input {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: inherit;
  color: inherit;
}
p {
  line-height: var(--main-line-height);
}
ul, li {
  list-style: none;
}
a, button {
  cursor: pointer;
  text-decoration: none;
}
input, button {
  outline: 0;
}
a:hover, 
button:hover {
  font-style: italic !important;
}
::selection {
  background-color: var(--selection-color);
}
img {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}


body {
  display: flex;
  flex-flow: row nowrap;
}
main {
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
}

nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  width: var(--main-nav-width);
}
nav > form {
  height: 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;
  padding: var(--main-padding-1x) 0;
}
nav > form > div {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  flex-flow: row nowrap;
  column-gap: var(--space-around-1x);
  align-items: center;
}
nav > form > div > * {
  width: auto;
  display: inline;
  cursor: pointer;
}
section.menu {
  position: fixed;
  top: 0;
  left: 100%;
  width: calc(100% / 3 - var(--main-nav-width));
  height: 100%;
  padding-top: var(--main-padding-1x);
  /* padding-right: var(--main-padding-1x); */
  transition: left .5s;
}
section.menu.slide-in {
  left: calc(100% / 3 * 2);
}
section.menu > p {
  margin-bottom: calc(1em * var(--main-line-height));
}
section.menu > ul > li {
  margin-bottom: calc(.5em * var(--main-line-height));
}
section.menu.happenings > ul > li > p {
  font-style: italic;
}
section.menu.happenings > ul > li > p > a {
  font-style: normal;
}






main.homepage {
  width: calc(100vw - var(--main-nav-width));
  padding: var(--main-padding-1x);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: var(--main-padding-1x);
}
/* desktop */
main.homepage > div {
  height: 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  grid-row-gap: var(--space-around-1x);
}
main.homepage > div > a {
  height: calc((100% - var(--main-padding-1x) * 4) / 5);
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  cursor: pointer;
}
main.homepage > div > a > p {
  text-align: center;
  line-height: var(--title-line-height);
}
main.homepage > div > a > figure {
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--main-bg-color);
}
main.homepage > div > a > figure > img {
  object-fit: contain;
}
main.homepage.desktop > div > a > figure > img.landscape {
  height: 90%;
}
main.homepage.desktop > div > a > figure > img.portrait {
  height: 110%;
}

/* mobile */
main.homepage.mobile {
  display: none;
  flex-flow: column nowrap;
}
main.homepage.mobile > div {
  height: 25%;
}
main.homepage.mobile > div.right {
  align-content: flex-end;
  align-items: flex-end;
}
main.homepage.mobile > div > a {
  width: 50%;
  height: 100%;
}
main.homepage.mobile > div > a > figure {
  height: auto;
  position: relative;
  max-height: 80%;
}
main.homepage.mobile > div > a > figure > img {
  height: 100%;
}




div#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  padding: var(--main-padding-3x);
}
div#lightbox > figure {
  width: 100%;
  height: 100%;
  /* display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  align-content: center; */
}
div#lightbox > figure > img {
  height: 100%;
  object-fit: contain;
}
div#lightbox > figcaption {
  /* padding-top: calc(1em * var(--main-line-height)); */
  position: fixed;
  bottom: var(--main-padding-1x);
  left: var(--main-padding-1x);
  width: calc(50vw - var(--main-padding-1x));
}




main.project {
  /* height: min-content; */
}

main.project > section.project-video {
  width: 100vw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  background: var(--video-bg-color);
  z-index: 10;
}
main.project > section.project-video > iframe {
  position:absolute;
  top: 0;left: 0;right: 0;bottom: 0;
  background: var(--video-bg-color);
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
}

main.project > div.arrow {
  position: absolute;
  left: 0;
  padding: var(--space-around-1x);
  width: auto;
  z-index: 11;
  animation: blink .8s ease-in-out infinite alternate;
}
main.project > div.arrow-up {
  top: 100vh;
  top: calc(var(--vh, 1vh) * 100);
}
main.project > div.arrow-down {
  top: 0;
}
main.project > div.arrow > a > img {
  height: .9rem;
  width: auto;
}



main.project > section.project-images {
  width: 100vw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  padding-top: var(--main-padding-1x);
  padding-bottom: var(--main-padding-3x);
  overflow-x: auto;
  overflow-y: hidden;
}
main.project > section.project-images > div.row {
  height: 50%;
  width: 100%;
  white-space: nowrap;
  overflow-x: visible;
  overflow-y: hidden;
}
main.project > section.project-images > div.row.row-normal {
  width: max-content;
}
main.project > section.project-images > div.row.row-reverse {
  position: sticky;
  top: 50%;
  left: 0;
  width: 100%;
  overflow-x: hidden;
}

main.project > section.project-images > div.row.row-reverse > div.row-wrap {
  position: absolute;
  right: 0;
  margin-right: 0;
  height: 100%;
  white-space: nowrap;
  width: max-content;
  overflow-x: visible;
}



main.project > section.project-images figure {
  margin-block-start: -1em;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;

  height: calc(50vh - var(--main-padding-2x));
  height: calc(var(--vh, 1vh) * 50 - var(--main-padding-2x));
  width: calc(50vh - var(--main-padding-2x));
  width: calc(var(--vh, 1vh) * 50 - var(--main-padding-2x));
  display: inline-flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  align-content: center;
}
main.project > section.project-images figure > img {
  cursor: pointer;
}

main.project > section.project-images figure > img.landscape {
  height: auto;
  max-width: 75%;
}
main.project > section.project-images figure > img.portrait {
  max-height: 75%;
  width: auto;
}
main.project > section.project-images figure > img.square {
  height: 60%;
  width: 60%;
}

main.project > section.install-images {
  width: 100vw;
  height: auto;
}
main.project > section.install-images > figure {
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  line-height: 0;
}
main.project > section.install-images > figure > img {
  height: 100%;
  object-fit: cover;
}

article.project-description {
  position: fixed;
  bottom: var(--main-padding-1x);
  left: var(--main-padding-1x);
  width: calc(50vw - var(--main-padding-1x));
  height: auto;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-end;
  overflow: scroll;
}
article.project-description::-webkit-scrollbar {
  display: none;
}
article.project-description *::-webkit-scrollbar {
  display: none;
}

article.project-description > p.medium {
  padding-top: calc(1em * var(--main-line-height));
}
article.project-description > section {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1.5s;
}
article.project-description > section.max-height {
  max-height: 400px;
}
article.project-description > section > p {
  padding-bottom: calc(1em * var(--main-line-height));
}
article.project-description > section > p:last-child {
  padding-bottom: 0;
}







div#back,
div.close {
  position: fixed;
  bottom: var(--main-padding-1x);
  left: calc(100% / 3 * 2);
}
div#back:hover,
div.close:hover {
  font-style: italic;
}




.hidden {
  display: none;
  visibility: hidden;
}
.blur {
  filter: blur(20px) brightness(1.5) opacity(.8);
}
.back {
  z-index: -1;
}
.disable {
  pointer-events: none;
}

nav, main, article.project-description, div#back {
  transition: filter 1s;
}


@keyframes blink {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}