/* NAV */
header#header #primary #symbol {
  display: none;
}

#home footer .first {
  margin-bottom: 20px;
}

footer#footer #footer-copy2 {
  display: none;
}

/* TOUCH */
.body--touch header#header {
  height: 224px;
}
.body--touch header#header nav ul li a {
  height: 24px;
}
.body--touch header#header nav #secondary {
  top: 122px;
}
.body--touch div.pagination span,
.body--touch div.pagination a {
  padding: 0 3px;
}
.body--touch footer#footer nav ul li {
  height: 24px;
}
.body--touch #content aside ul.cross li {
  min-height: 24px;
}
.body--touch header#header nav #primary li ul{
  display: block;
}
.body--touch header#header #primary .projects li {
  display: none;
}

/* LIGHTBOX */
#colorbox,
#cboxWrapper,
#cboxContent,
#cboxLoadedContent,
.cboxPhoto {
  max-width: 100%;
  max-height: 100vh;
}
#cboxLoadedContent {
  display: flex;
}


/* TABLET ------------------------------------------------------------------- */
@media (max-width: 1023px) {
  #page {
    width: 711px;
    margin: 28px auto;
  }

  #logo {
    top: 100px;
    /*
    left: 50%;
    margin-left: -71px;
    */
  }
  /*
  #symbol {
    left: 50%;
    margin-left: -30px;
  }
  */
  #container {
    width: 711px;
    margin: 180px 0 0 0;
  }
  body:not(#home) footer#footer {
    position: relative;
    padding-top: 30px;
  }

  header#header nav #secondary .intro {
    text-align: left;
    
  }


  /* HOME */
  #home #container {
    margin-bottom: -180px;
  }
  body#home footer#footer {
    height: auto;
    padding-bottom: 10px;
  }
  #home footer .first {
    width: 150px;
  }
  #home footer .second,
  #home footer .third {
    width: 270px;
  }

  /* SINGLE PROJECTS */
  #middle.project article {
    padding-bottom: 0;
  }
}

/* actual size is 770 for cutoff, but use 767 because ipad */
/* PHABLET ------------------------------------------------------------------ */
@media (max-width: 767px) {
  #page,
  #container {
    width: 471px;
  }
  header#header,
  .body--touch header#header  {
    height: auto;
  }
  header#header #primary .span2 {
    height: 94px; /* is 4 items */
    width: 90px;
  }
  .body--touch header#header #primary .span2 {
    height: 118px; /* is 4 items */
  }
  header#header nav #secondary,
  .body--touch header#header nav #secondary {
    position: relative;
    top: 0;
    width: auto;
  }
  header#header nav #secondary .first {
    display: none;
  }
  header#header nav #secondary .intro {
    width: 100%;
    padding-bottom: 20px;
    margin-left: 10px;
  }

  /* HOME */
  #home footer .second,
  #home footer .third {
    width: 310px;
  }

  /* PEOPLE */
  #middle.people .span9 {
    width: auto;
  }
  #middle.people section figure {
    width: 230px;
  }
  #middle.people section figure img {
    max-width: 100%;
  }

  /* SINGLE PROJECTS */
  body#projects header#header nav #secondary {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  body#projects header#header nav ul#secondary li#projects-prev {
    display: inline;
    position: absolute;
    top: -22px;
  }
  body#projects header#header nav ul#secondary li#projects-prev a {
    float: left;
  }
  body#projects header#header nav ul#secondary li#projects-next {
    position: absolute;
    top: -22px;
    width: 150px;
    right: 0;
  }
  #project-images a{
    pointer-events: none;
  }
  img.lightbox-open {
    display: none;
  }
  #project-content {
    width: 470px;
    columns: 2;
  }

  /* RECOGNITION */
  body#recognition header#header nav #secondary{
    display: none;
  }

  /* BLOG */
  .hide--phablet {
    display: none !important;
  }
  header#header nav ul#secondary li.post-nav {
    display: block;
    position: relative;
    height: 43px;
  }
  header#header nav ul#secondary #searchform {
    margin-bottom: 20px;
  }
  #middle.post article header .row .span7 {
    width: 310px;
  }
  #middle.blog-home #hero .span6,
  #middle.blog-archive .span6 {
    width: 230px;
  }
  #middle.blog-home #recent {
    margin-bottom: 40px;
  }
  #middle.blog-home figure img,
  #middle.blog-archive figure img {
    max-width: 100%;
  }
  #middle.blog-home figure figcaption,
  #middle.blog-archive figure figcaption {
    width: 210px;
  }

  /* CONTACT */
  #contact-form {
    margin-left: 0px;
    width: 96%;
  }
  #middle.contact .span6,
  #middle.contact figure {
    width: 230px;
  }
  #middle.contact img {
    max-width: 100%;
  }
  #middle.contact section.list {
    min-height: initial;
  }
}

/* MOBILE ------------------------------------------------------------------- */
@media (max-width: 529px) {
  
	
	
  label {
    width: 100% !important;
    font-size: 1.25em;
    border-top: 1px solid #aeaeae;
    float: left;
    text-align: left;
    color: fff;
    margin-left: 10px;
    cursor: pointer;
}
	
	.contact-form {
		width: 50% !important;
		padding: 20px;
	}
	
	
  #page {
    width: auto;
    margin: 14px 14px;
  }
  .hamburger {
    display: block;
    position: fixed;
    right: 18px;
    top: 22px;

    background-color: transparent;
    border: none;
    padding: 10px;

    z-index: 11;
  }
  .hamburger .hamburger__lines {
    position: relative;
    width: 30px;
    height: 21px;
  }
  .hamburger .hamburger__line {
    position: absolute;
    height: 1px;
    width: 100%;

    background-color: #fff;

    transition: all 0.2s 0.4s;
  }
  .hamburger .hamburger__line:nth-of-type(1) {
    top: 0;
  }
  .hamburger .hamburger__line:nth-of-type(2) {
    top: 10px;
  }
  .hamburger .hamburger__line:nth-of-type(3) {
    top: 20px;
  }
  .hamburger--active .hamburger__line:nth-of-type(1) {
    transform: rotate(45deg) translate(4px, 2px);
    width: 50%;
  }
  .hamburger--active .hamburger__line:nth-of-type(2) {
    transform: rotate(-45deg);
  }
  .hamburger--active .hamburger__line:nth-of-type(3) {
    transform: rotate(45deg) translate(6px, -12px);
    width: 50%;
  }

  header#header nav #primary {
    position: fixed;
    background-color: #000;
    top: 0;
    left: 0;
    margin-top: -30px;

    padding: 120px 14px 0;
    width: 100%;
    height: 100%;
    z-index: 10;

    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);

    transition: opacity 0.4s, padding 0.4s;
  }
  header#header nav #primary.row--active {
    opacity: 1;
    pointer-events: all;
    padding-top: 100px;
  }

  header#header #primary #symbol {
    display: block;
    top: 14px;
    left: 24px;
    margin-left: 0;
  }

  header#header #primary .span2,
  .body--touch header#header #primary .span2 {
    width: calc(100% - 28px);
    height: 118px;
  }
  header#header #primary .span2.about,
  .body--touch header#header #primary .span2.about {
    height: 94px;
  }
  header#header #primary .span2.projects,
  .body--touch header#header #primary .span2.projects {
    height: 46px;
  }
  header#header #primary .span2.blog,
  .body--touch header#header #primary .span2.blog {
    height: 94px;
  }
  header#header #primary .span1,
  .body--touch header#header #primary .span1 {
    width: calc(100% - 28px);
  }

  #container {
    margin-top: 140px;
    width: 100%;
  }

  /* HOME */
  #home footer .second,
  #home footer .third {
    max-width: calc(100vw - 26px);
  }
  #home #menu-footer-navigation {
    display: none;
  }
  #home footer .first {
    margin-bottom: 0;
  }
  footer#footer #footer-copy1 {
    display: none;
  }
  footer#footer #footer-copy2 {
    display: block;
  }

  /* ABOUT */
  #middle.text #main {
    width: calc(100% - 10px);

    -moz-column-count: 1;
    -webkit-column-count: 1;
    column-count: 1;
  }

  /* PEOPLE */
  #middle.people .span9 {
    width: auto;
  }
  #middle.people section figure {
    margin: 0 auto;
    display: block;
    float: none;
  }
  #middle.people section .span3 {
    width: auto;
  }

  /* CONTACT */
  #middle.contact .span6,
  #middle.contact figure {
    width: 100%;
  }

  /* RECOGNITION */
  #middle.recognition .span3{
    width: 100%;
  }
  #middle.recognition article div.image {
    margin: 0 auto;
    width: 230px;
  }

  /* BLOG */
  #middle.blog-home #hero .span6,
  #middle.blog-archive .span6 {
    width: 100%;
    max-height: initial;
  }
  #middle.blog-home figure img,
  #middle.blog-archive figure img {
    max-width: 100%;
    /*max-height: calc(100vw - 28px);*/
    max-height: 300px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 5px;
  }
  #middle.blog-home figure figcaption,
  #middle.blog-archive figure figcaption {
    width: calc(100% - 28px);
    text-align: center;
  }
  #middle.blog-home .span3,
  #middle.blog-archive .span3 {
    width: auto;
  }
  #middle.blog-home #recent {
    width: auto;
    margin-bottom: 40px;
  }
  #middle.blog-home #recent article {
    width: calc(33.333% - 10px);
  }
  #middle.blog-home #recent article a.image {
    width: 100%;
    background-size: 100%;
    height: calc((100vw - 50px) * 125 / 150 / 3);
  }
  #middle.post article header .row.first {
    display: none;
  }
  #middle.post article .span6 {
    width: auto;
  }
  #middle.post article .wp-caption,
  #middle.post article .wp-image{
    max-width: calc(100vw - 28px);
  }
  #middle.post article .wp-caption img,
  #middle.post article .wp-image img,
  #middle.post article .size-full  {
    max-width: 100%;
    height: auto;
  }

  /* PROJECTS ARCHIVE */
  #middle.projects article {
    width: calc(50% - 10px);
  }
  #middle.projects article a.project-image {
    height: calc((100vw - 38px) * 0.66666 / 2);
    background-size: 100%;
  }

  /* PROJECTS SINGLE */
  body#projects header#header nav ul#secondary li.column {
    width: calc(33.3333% - 10px);
  }
  header#header nav #secondary li ul li a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #middle.project article header .row.first {
    display: none;
  }
  #middle.project #project-images {
    width: auto;
  }
  #middle.project article #project-images figure {
    width: auto;
    text-align: center;
  }
  #middle.project article #project-images figure img{
    max-width: 100%;
    max-height: calc(100vw - 28px);
    width: auto;
    height: auto;
  }
  #middle.project article #project-images figure figcaption{
    width: calc(100% - 20px);
  }
  #project-content {
    width: auto;
    columns: 1;
  }
}
