/* Small Screens and iPhones */

@media screen and (max-height: 800px) {
  body {
    /* background: lightcoral; */
  }
  
  nav {
    margin-bottom: 150px;
  }
  
}

@media screen and (max-width: 1050px) {
  body {
    /* background: lightcoral; */
  }
  
  nav {
    margin-bottom: 150px;
  }
  
  main {
    padding: 0 50px;
  }
  
  #text,
  #image,
  #text + #images > figure:first-child {
    width: calc(50% - 25px);
  }
  
  #text {
    margin-right: 50px;
  }
  
  footer {
    padding-top: 100px;
  }
  
  .footer-grid {
    margin-top: 75px;
  }
  
  #thumbnails {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 100px;
  }
  
  .rows.two .cell {
    width: calc((100% - 50px) / 2);
  }
  
  .rows.two .cell:nth-child(odd) { /* left */
    margin-left: 0;
    margin-right: 25px;
  }
  
  .rows.two .cell:nth-child(even) { /* right */
    margin-left: 25px;
  }

  
  nav li:nth-child(3) {
    display: none;
  }
  
  nav ul li {
    display: inline;
    margin-right: 25px;
  }
  
}


@media screen and (max-width: 800px) {
  body {
    /* background: lightcoral; */
  }
  
  main {
    padding: 0 0;
  }
  
  #text,
  #image,
  #text + #images figure,
  #text + #images > figure:first-child {
    width: 100%;
    margin-bottom: 50px;
  }  
  
  #text + #images figure + figure {
    margin-bottom: 0;
  }
  
  #thumbnails {
    gap: 50px;
  }
  
  #footerDescription {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 50px;
  }

}


@media screen and (max-width: 600px) {

  body,
  .medium {
    /* background: lightblue; */
    font-size: 16px;
    line-height: 21px;
  }
  
  h3 {
    font: 22px/29px Std, sans-serif;
    margin-bottom: 1.318em;
  }
  
  #container {
  padding: 50px 25px 0 25px;
  }
  
  main {
    margin-bottom: 0;
  }
  
  /* Nav */
    
  nav {
    position: relative;
    height: calc(100vh);
    height: auto;
    width: calc(100vw);
    margin: -50px 0 0 -25px;
    padding: 25px 25px 0 25px;
  }
  
  nav h1 {
    xmargin-top: 100vh;
    display: block;
    height: auto;
    transform: translate(-50%, 0);
    margin: 21px auto 125px auto;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }
  
  nav h1 a {
    margin: 0 auto;
  }
  
  nav ul {
    height: 0;
    display: none;
  }
  
  nav ul li {
    display: block;
    font-size: 22px;
    line-height: 29px;
    margin-bottom: 29px;
  }
  
  nav li:nth-child(3) {
    display: block;
  }
  
  nav ul ol {
    display: block;
  }
  
  nav ul ol li,
  nav ul li p {
    font-size: 16px;
    line-height: 21px;
    margin-bottom: 0;
  }
  
  nav ul li p {
    margin-bottom: 21px;
  }
  
  nav ul li ol li {
    list-style: disc inside;
    display: list-item;
    line-height: 29px;
  }
  
  nav ul ol li a {
  border-bottom: 2px solid;
  }

  
  nav ul {
  }
  
  nav #navContact {
    float: none;
    text-align: left;
    font-size: 22px;
    line-height: 29px;
  }
  
  nav #navContact > a:first-child {
    display: none;
  }  
  
  nav #navContact p {
    display: block;
  }
  
  nav #navContact .navFollow {
    display: none;
  }
  
  #toggleMobileNav {
    position: absolute;
    top: 49px;
    right: 25px;
    width: 25px;
    height: 17px;
    background: transparent url('/assets/images/burgerBlack.svg') no-repeat top left;
    background-size: cover;
    text-indent: -1000em;
    display: block;
  }
  
  .darkmode #toggleMobileNav {
    background-image: url('/assets/images/burgerWhite.svg');
  }
  
  #toggleMobileNav:hover {
    opacity: .4;
  }
  
  .navOpen {
    overflow: hidden;
  }

  .navOpen nav {
    height: calc(100vh);
    background: #F1F1F1;
  }
  
  .home.navOpen .darkmode nav {
    color: #000;
  }
  
  .home.navOpen .darkmode nav h1 a {
    background-image: url("/assets/images/rgTypeBlack.svg");
  }
  
  .navOpen nav ul {
    display: block;
  }
  
  .navOpen nav #toggleMobileNav {
    background-image: url('/assets/images/closeBlack.svg');
    width: 22px;
    height: 22px;
    top: 46px;
  }
  
  /* Main Content */
  
  .rows.two .cell {
    width: 100%;
    margin-bottom: 50px;
  }
 
  .rows.two .cell figure {
    margin-bottom: 0 !important;
  }
  
  .rows.two .cell:nth-child(even) {
  margin-left: 0;
  }
  
  #thumbnails {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 50px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #footerProjects {
    display: none;
  }
  
  #footerContact {
    order: 3;
  }
  
  #footerDescription {
    display: none;
  }
  
  /* Sections */
  
  .projects h3 {
    margin-bottom: 2.64em;
  }
}
