.home-grid {
  display: flex;
  flex-direction: column;
  list-style: none;
  position: relative;
}
.home-grid li {
  position: relative;
  overflow: hidden;
}
.home-grid a {
  display: block;
}
.home-grid figcaption {
  color: var(--color-white);
}
.home-grid img {
  max-width: 100%;
}
.main {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

#projects {
  background-color: var(--color-grey);
  width: 50%;
}

#photo-archive {
  background-color: var(--color-white);
  width: 50%;
}

#photo-archive .home-grid {
  padding: 3.75rem 2rem;
}

#projects, #photo-archive {
  height: 100vh;
  overflow: scroll;
}

.project, .post {
  display: -webkit-flex;
  display: flex;
  align-items: center;
  margin: 10vw 0;
  width: 100%;
}

.post {
  margin: 1rem 0;
}

.portrait {
  width: 33.33%;
}

.landscape {
  width: 66.66%;
}

.square {
  width: 50%;
}

.project:first-child {
  margin-top: 3.75rem;
}

.project.left {
  justify-content: flex-start;
}

.project.center {
  justify-content: center;
}

.project.right {
  justify-content: flex-end;
}

.post figure {
  width: 4rem;
}

.post a {
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
}

.post a:hover .title, .post a:hover .date {
  text-decoration: underline;
}

.post .title {
  max-width: 12.5rem;
}

/* Headline on the left */
.post a.left .title {
  order: 0;
}

.post a.left figure {
  order: 1;
}

.post a.left .date {
  order: 2;
}

/* Headline in the center */
.post a.center figure {
  order: 0;
}

.post a.center .title {
  order: 1;
}

.post a.center .date {
  order: 2;
}

/* Headline on the right */
.post a.right figure {
  order: 0;
}

.post a.right .date {
  order: 1;
}

.post a.right .title {
  order: 2;
}

#mobile-tabs {
  display: none;
}

.project-title {
  padding: 0.5rem;
}

/* Homepage Doodles */
.doodles {
  position: fixed;
  top: 0;
  width: 50%;
  height: 100%;
  display: none;
  z-index: 99;
}

.doodles-left {
  left: 0;
  right: auto;
}

.doodles-right {
  left: auto;
  right: 0;
}

.doodle-left, .doodle-right {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%,-50%);
  -moz-transform: translate(-50%,-50%);
  -o-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  opacity: 0.001;
  -webkit-transition: opacity .1s linear;
  -moz-transition: opacity .1s linear;
  -o-transition: opacity .1s linear;
  transition: opacity .1s linear;
}

.projects-label, .archive-label {
  position: fixed;
  top: 0;
  padding: 1rem;
  opacity: 0;
  -webkit-transition: opacity .1s linear;
  -moz-transition: opacity .1s linear;
  -o-transition: opacity .1s linear;
  transition: opacity .1s linear;
}

.projects-label {
  color: var(--color-white);
  text-align: right;
  right: 50%;
}

.archive-label {
  left: 50%;
}

#projects:hover .projects-label,
#photo-archive:hover .archive-label {
  opacity: 1;
}

@media screen and (max-width: 700px){
  #projects, #photo-archive {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
  }

  .projects-label, .archive-label {
    display: none;
  }

  #projects {
    z-index: 1;
    padding-top: 1.5rem;
    padding-bottom: 8rem;
  }

  #mobile-tabs {
    display: flex;
    flex-direction: row;
    position: fixed;
    top: 0.5rem;
    left: calc(50% + 1.5rem);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 101;
    mix-blend-mode: exclusion;
    color: var(--color-white);
  }

  #mobile-tabs > button {
    padding: 0.5rem;
    color: #808080;
  }

  #mobile-tabs > button.active {
    color: var(--color-white);
    text-decoration: underline;
  }

  .doodles {
    display: none !important;
  }

  #photo-archive {
    padding: 3.75rem 1rem 8rem 1rem;
  }

  .post .title {
    max-width: 10rem;
  }

  #photo-archive .home-grid {
    padding: 0;
  }

  #mobile-tabs > button.b-archive {
    padding-right: 0;
  }

  #mobile-tabs > button.b-projects {
    padding-left: 0;
  }
}