/*******************************************************************************
 * Variables
 */
:root {
  --projects-gap: 43px;
  --project-width: 1200px;
  --project-thumbnail-height: 134px;
  --project-thumbnails-gap: 10px;
  --copyright-height: 15px;
}

/*******************************************************************************
 * General styles
 */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: #ebebeb;
}

body {
  font-family: "Helvetica", "Arial", "Verdana", Sans-Serif;
  font-size: 14px;
}

a {
  color: black;
  text-decoration: underline;
  cursor: pointer;
}

a:hover {
  text-decoration: none;
}

/*******************************************************************************
 * Brand
 */

.brand {
  margin: 0;
  padding: 0;
  font-size: 2.2rem;
  line-height: 95%;
  text-transform: uppercase;
}

.brand:after {
  content: "—";
  font-size: 2rem;
  font-family: Garamond, Baskerville, "Baskerville Old Face", "Hoefler Text",
    "Times New Roman", serif;
  font-weight: 300;
  display: block;
}

.brand__sub {
  font-size: 1.2rem;
  line-height: 80%;
}

.subtitle {
  margin-bottom: -10px;
  margin-top: 22px;
  font-family: "Helvetica", "Arial", "Verdana", Sans-Serif;
  font-weight: bold;
  font-size: 3.3em;
  text-align: left;
  color: black;
}

/*******************************************************************************
 * Wrapper
 */

.wrapper {
  padding-top: 100px;
  /* width: 100%;
  height: auto; */
  padding: 50px 8px;
  /* overflow: hidden; */
}

/*******************************************************************************
 * Contact
 */

.contact {
  font-family: "Helvetica", "Arial", "Verdana", Sans-Serif;
  font-size: 0.86em;
  margin-top: -5px;
  line-height: 110%;
  font-weight: normal;
  text-transform: none;
}

/*******************************************************************************
 * About
 */

.about {
  display: block;
  font-family: "Helvetica", "Arial", "Verdana", Sans-Serif;
  font-size: 0.86em;
  font-weight: normal;
  max-width: 325px;
  height: auto !important;
  color: black;
  margin-top: 4px;
}

.about-detail {
  display: none;
}

.about-detail.active {
  display: block;
}

/*******************************************************************************
 * Projects
 */

.projects {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--projects-gap);
}

/*******************************************************************************
 * Project
 */

.project {
  position: relative;
  width: var(--project-width);
  max-width: 100%;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  padding-right: 8px;
}

.project__title {
  font-size: 0.86em;
  font-family: "Helvetica", "Arial", "Verdana", Sans-Serif;
}

.project__thumbnail-list {
  border: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--project-thumbnails-gap);
  overflow: hidden;
  flex-wrap: wrap;
}

.project__thumbnail {
  display: block;
  padding: 0;
  margin: 0;
  width: auto;
  /* TODO: make this a variable */
  height: var(--project-thumbnail-height);
}

.project__thumbnail img {
  height: 100%;
  width: auto;
}

/*******************************************************************************
 * Copyright
 */

.copyright {
  position: fixed;
  bottom: 0;
  left: 0;
  height: var(--copyright-height);
  width: 100%;
  background-color: #ebebeb;
  font-family: "Helvetica", "Arial", serif;
  color: black;
  font-size: 0.65em;
  z-index: 1000;
  display: flex;
  align-items: left;
  justify-content: left;
}

.copyright a {
  color: black;
}

/*******************************************************************************
 * Fancybox overrides
 */

.fancybox-close {
  position: fixed;
  top: 59px;
  right: 75px;
  width: 25px;
  height: 25px;
  cursor: pointer;
  opacity: 0.5;
  z-index: 8040;
  text-decoration: none;
}

.fancybox-nav {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  margin: 0px;
}

.fancybox-prev,
.fancybox-next {
  height: 100%;
  width: calc(50vw - 20px);
}

.fancybox-prev span,
.fancybox-next span {
  opacity: 0;
}

.fancybox-prev {
  /*background: blue;*/
  left: calc(-50vw + 50%);
  margin-left: 20px;
}

.fancybox-next {
  /*background: yellow;*/
  left: 50%;
}

.fancybox-prev span,
.fancybox-next span {
  position: absolute;
  top: 50%;
  padding: 0;
  margin: 0;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
}

.fancybox-prev span {
  display: hidden;
  left: 30px;
}

.fancybox-next span {
  right: 30px;
}

.fancybox-title {
  top: 100%;
  margin-top: 10px;
}

.fancybox-inner {
  position: relative;
  z-index: 1111;
}

.fancybox-nav:hover span {
  opacity: 0.6;
}

/*******************************************************************************
 * Media Queries
 */

@media screen and (max-width: 650px) {
  .fancybox-close {
    top: 30px;
    right: 35px;
  }
}

@media screen and (min-width: 768px) {
  .wrapper {
    padding: 100px 80px calc(var(--copyright-height) + 20px);
  }

  .brand {
    font-size: 3rem;
  }

  .brand__sub {
    font-size: 2rem;
  }

  .copyright {
    left: 80px;
  }

  .fancybox-prev,
  .fancybox-next {
    width: calc(50vw - 40px);
  }

  .fancybox-prev {
    margin-left: 40px;
  }
}

@media screen and (min-width: 1281px) {
  body {
    font-size: 15px;
  }

  .brand {
    font-size: 3rem;
  }

  .brand__sub {
    font-size: 2rem;
  }

  .fancybox-close:after {
    font-size: 2em;
  }

  .about {
    max-width: 410px;
  }
}
