/* desktop */

@media screen and (min-width: 716px) {  
  .hamb {
    display: none;
  }

  .m-nav {
    display: flex;
  }

  .m-footer, 
  .mobile-crop {
    display: none;
  }

  .desktop-crop {
    display: block;
  }

  .about section:first-of-type {
    padding-left: 2rem;
  }

  .cv section {
    padding-left: 2rem;
  }
}

/* ham nav */

.m-nav.show {
  display: block;
  position: absolute;
  right: -0.75rem;
  top: 0;
  padding-top: 7rem;
  background-color: white;
  opacity: 0.98;
  width: 100vw;
  z-index: 1;
  margin-top: -1rem;
  height: 140vh;
}

.hamb {
  --ham-width: 30px;
  cursor: pointer;
  position: relative;
  width: var(--ham-width);
  height: var(--ham-width);
  /* margin: 5px; */
}

.hamb-line:after, .hamb-line:before {
  display: block;
  content: "";
}

.hamb-line {
  top: 3px;
}

.hamb-line:before {
  top: 9px;
}

.hamb-line:after {
  top: 18px;
}

.hamb-line, .hamb-line:after, .hamb-line:before {
  position: absolute;
  width: var(--ham-width);
  height: 1.5px;
  transition-timing-function: ease;
  transition-duration: .2s;
  transition-property: transform;
  background-color: black;
}


.hamb.show .hamb-line {
  transform: translate3d(0, 9px, 0) rotate(45deg);
}

.hamb.show .hamb-line:before {
  display: none;
}

.hamb.show .hamb-line:after {
  transform: translate3d(0, -18px, 0) rotate(-90deg);
}

@media screen and (min-width: 981px) {  
  .section .painting, section .series, .paintings .painting {
    width: 33.33%;
  }
  .serieses section .series, .series .gallery .series { 
    width: 50%;
  }
}

/* tablet */

@media screen and (max-width: 1200px) { 
  .section .painting, section .series, .paintings .painting {
    width: 50%;
  }
  .paintings .painting figure img {
    max-width: 80%;
  }
}


@media screen and (max-width: 980px) { 
  section .painting, section .series {
    padding: 3rem 0;
  }

  .serieses section .series, 
  .series .gallery .series {
    width: 100%;
  }

  .section .painting, section .series,
  .paintings .painting {
    width: 100%;
  }

  .nav-arrows {
    width: 92vw;
    transform: translateX(0);
    bottom: 15px;
    top: unset;
  }
}


/* mobile */
@media screen and (max-width: 715px) { 
  :root {
    --spacing: 0.75rem;
  }
  .hamb, .m-footer {
    display: inline-block;
    z-index: 10;
  }

  footer, 
  .m-nav, 
  .desktop-crop {
    display: none;
  }

  .mobile-crop {
    display: block;
  }
  
  nav a {
    margin-left: 0;
  }

  .m-nav li {
    text-align: center;
    padding-bottom: 1rem;
  }

  .header {
    width: calc(100% - 1.5rem);
    position: fixed;
  }

  section:first-of-type {
    margin-top: 4rem;
  }

  .about section:first-of-type {
    width: 100%
  }

  .about p {
    font-size: 1.3rem;  
  }

  .painting .painting {
    padding: 1rem 0;
  }

  .about .insta .headline {
    flex-flow: column;
  }

  .painting figure img, .series figure img, .serieses img, .paintings .painting figure img {
    max-width: 100%;
  }
}
