body.body {
  font-family: "ProximaNovaLtLight", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  display: grid;
  grid-template-areas:
    "header"
    "main";
  grid-template-rows: max-content auto;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
@media screen and (max-width: 800px) {
  body.body {
    grid-template-areas:
      "main"
      "header";
    grid-template-rows: auto max-content;
  }
}

body.body--homepage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header.header {
  width: 100%;
  grid-area: header;
  max-height: max-content;
}
@media screen and (max-width: 800px) {
  header.header:not(.header--homepage) {
    position: sticky;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 5;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
  }
}

header.header--homepage {
  z-index: 2;
  padding-top: 256px;
  margin-top: auto;
  position: relative;
}

div.header__container {
  display: grid;
  grid-template-columns: max-content auto;
  gap: 20px;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  padding-top: 48px;
  padding-bottom: 48px;
  box-sizing: border-box;
}

header.header--homepage::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9));
  z-index: -1;
  pointer-events: none;
}

img.header__logo {
  max-width: 160px;
}
@media screen and (max-width: 800px) {
  img.header__logo {
    max-height: 96px;
  }
}

nav.nav {
  display: flex;
  gap: 32px;
  font-size: 15px;
}
@media screen and (max-width: 800px) {
  nav.nav {
    text-align: right;
    flex-direction: column;
    gap: 20px;
  }
}

a.a {
  align-self: end;
  width: max-content;
  text-decoration: none;
  color: #222;
  opacity: 0.75;
  border-bottom: 1px solid transparent;
  padding-top: 2px;
  padding-bottom: 2px;
}

a.a--active,
a .a:hover {
  color: #1e577f;
  opacity: 1;
  border-bottom-color: rgba(30, 87, 127, 0.25);
}

a.a--dark,
a.a--dark:hover {
  filter: invert();
  color: #000;
}

a.a--dark:hover {
  border-bottom-color: #666;
}

main.main {
  grid-area: main;
  position: relative;
}

h1.h1 {
  color: #999;
  font-size: 2em;
  font-weight: 100;
  margin-bottom: 64px;
}

p.p {
  color: #444;
  line-height: 1.5em;
}

div.gallery {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
}

nav.gallery__nav {
  position: absolute;
  top: 64px;
  bottom: 64px;
  left: 64px;
  right: 64px;
}

section.gallery__section {
  position: relative;
  width: 100vw;
  height: 550px;
}

figure.gallery__figure {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  margin: 0;
  padding: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

img.gallery__img {
  max-width: 100vw;
}

figure.gallery__figure.bss-show {
  opacity: 1;
}

.bss-next,
.bss-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  z-index: 50;
  opacity: 0.5;
  transition: opacity 0.5s ease-in-out;
  -webkit-transition: opacity 0.5s ease-in-out;
  -moz-transition: opacity 0.5s ease-in-out;
  cursor: pointer;
  text-indent: -9999px;
  background-size: auto;
}

.bss-prev {
  background: url(../images/arrow-prev.png) no-repeat center;
  left: 64px;
}
@media screen and (max-width: 800px) {
  .bss-prev {
    left: 0;
    background-size: 50%;
    background-color: rgba(255, 255, 255, 1);
  }
}

.bss-next {
  background: url(../images/arrow-next.png) no-repeat center;
  right: 64px;
}
@media screen and (max-width: 800px) {
  .bss-next {
    right: 0;
    background-size: 50%;
    background-color: rgba(255, 255, 255, 1);
  }
}

.bss-next:hover img,
.bss-next:hover,
.bss-prev:hover img,
.bss-prev:hover {
  opacity: 1;
}

section.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
}

div.section__columns {
  display: grid;
  grid-auto-flow: column;
  gap: 64px;
}
@media screen and (max-width: 800px) {
  div.section__columns {
    grid-auto-flow: row;
    grid-gap: 48px;
  }
}

img.section__img {
  width: 256px;
  border-radius: 1em;
  margin: 0 auto;
}

div.section__text {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
}

div.section__text--narrow {
  max-width: 50%;
}
@media screen and (max-width: 800px) {
  div.section__text--narrow {
    max-width: 75%;
  }
}

blockquote.blockquote {
  font-size: 23px;
  margin: 0;
  font-family: Georgia, Times New Roman, Times, serif;
  font-style: italic;
  line-height: 30px;
  font-weight: 100;
  color: #666;
}

span.blockquote__quote {
  display: block;
  height: 96px;
  font-size: 90px;
  color: #2970a1;
  float: left;
  width: 64px;
  line-height: 80px;
}

span.blockquote__author {
  font-size: 0.75em;
  white-space: nowrap;
}
