html, body {
  font-size: 0.975em;
  font-family: Times New Roman;
  color: black;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  -o-font-smoothing: antialiased;
  -ms-font-smoothing: antialiased;
  font-smoothing: antialiased;
  -webkit-text-stroke: 0.02em;
  -moz-text-stroke: 0.02em;
  -o-text-stroke: 0.02em;
  -ms-text-stroke: 0.02em;
  text-stroke: 0.02em;
  position: absolute;
  height: 100%;
  width: 100%;
  overflow-y: hidden;
}

.projects-section {
  position: relative;
  height: 100%;
}

* {
  box-sizing: border-box;
}

.area-l {
  position: fixed;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 990;
  cursor: w-resize;
}

.area-r {
  position: fixed;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 990;
  cursor: e-resize;
}

.block {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

figure {
  position: relative;
  display: block;
  margin: 0;
  height: 100%;
  width: 100%;
  background-color: white;
}

figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img.lazy {
  opacity: 0;
}

img.initial,
img.loaded,
img.error {
  opacity: 1;
}

img:not([src]) {
  visibility: hidden;
}

figcaption {
  position: absolute;
  width: 100%;
  padding: 2.5vh 3vw;
  padding-bottom: calc(2.5vh + env(safe-area-inset-bottom));
  bottom: 0;
  left: 0;
  text-align: center;
  opacity: 0;
}

figcaption.show {
  opacity: 1;
}

figcaption p {
  margin: 0;
}

.block-type-doubleimage {
  display: flex;
}

.block-type-doubleimage > figure {
  width: 50%;
}

a:link, a:link p, a:visited, a:visited p {
  color: inherit;
  text-decoration: none;
}

a:hover, a:hover p, a:active, a:active p, .bio-link:hover {
  color: inherit;
  font-style: italic;
  cursor: pointer;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  margin: 2.5vh 3vw;
  box-sizing: border-box;
  text-align: left;
}

header p {
  margin: 0;
}

.biography {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  color: black;
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 0;
  pointer-events: none;
  padding: 2.5vh calc((100% - 550px) / 2);
  overflow-y: auto;
}

.biography p {
  margin-top: 0;
}

.biography.show {
  pointer-events: all;
  opacity: 1;
}

.close {
  position: absolute;
  left: 2.5vw;
  top: calc(2.5vh - 12px);
  cursor: pointer;
  font-size: 36px;
}

/* MOBILE */

@media screen and (max-width: 800px) {

  header {
    text-align: center;
    padding: 0;
  }

  .block-type-doubleimage {
    display: block;
  }

  .block-type-doubleimage > figure {
    width: 100%;
    height: 100%;
  }

  figcaption {
    padding: 4vh 5vw;
    padding-bottom: calc(4vh + env(safe-area-inset-bottom));
  }

  .biography {
    padding: 15vw 5vw 5vw 5vw;
  }

  .close {
    position: absolute;
    width: calc(100% - 10vw);
    text-align: center;
    top: calc(5vw);
    font-size: 30px;
  }

}
