nav{
  margin-bottom: 1em;
}
#projects{
  display: table;
  width:50%;
  float: left;
}

#projects a{
  display:block;
}

#projects a:hover,
#projects a.hover{
  box-shadow: var(--shadow);
}

#projects a span{
  display: inline-block;
}

#projects a span#index{
  display: none;
}
#projects a span#title{
  width:74%;
}

#projects a span#type,
#projects a span#year{
  /* text-align: right; */
  width:10%;
}

#info{
  /* color: var(--pink); */
  padding-left: 5em;
  box-sizing: border-box;
  display: none;
}

#info img{
  position: absolute;
  left: 20%;
  z-index: -1;
}

.showinfo #info{
  display: inline-block;
}

.showinfo nav >div:last-of-type span{
  box-shadow: var(--shadow);
  background-color: transparent;
}
.showinfo nav >div:last-of-type span::before{
  content: 'x';
  margin-right: 1em;
}

#prev_imgs{
  position: absolute;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  white-space: nowrap;
  pointer-events: none;
  z-index: -1;
}

.prev_img{
  display: none;
}

.prev_img img{
  position: absolute;
  display: block;
  height:10em;

}

@media (max-width:700px) {
  #projects{
    display: table;
    width:100%;
    float: none;
  }

  #prev_imgs{
    overflow: hidden auto;
    pointer-events: all;
  }

  .prev_img{
    display: block;
    height:100vh;
    position: relative;
  }

  #projects a{
    display: inline;
  }

  #projects a span#index{
    display: inline;
  }

  #projects a span#year,
  #projects a span#title,
  #projects a span#type{
    display: none;
  }

  #projects a.hover span#title{
    display: inline;
  }
  #projects a.hover span#index{
    display: none;
  }

  #info{
    padding-left: 0;
    margin: 1em 0;
  }

  #info img{
    position: absolute;
    left: 30%;
    top:30vh;
    width:10%;
  }

  .prev_img img{
    height:5em;

  }

  #gotopmob{
    float:right;
    text-decoration: underline;
  }
  #gotopmob::after{
    content: 'see project →';
  }
  #gotopmob.scroll::after{
    content: '↑ scroll ↑';
  }

  footer{
    width:100%
  }
}