@media (max-width: 1400px) {
  .card-small {
    transform: scale(0.5);
  }
  .card-img-wrapper {
    height: 150px;
  }
}

@media (max-width: 1000px) {
  #portfolio-single {
    flex-direction: column;
    align-items: center;
    padding: 22px;
  }
  .portfolio-img-wrapper {
    max-width: calc(100% - 12px);
  }
  .portfolio-descr {
    margin-left: 0;
  }
}

/* media query for  touch */
@media (pointer: none), (pointer: coarse) {
  .button {
    font-size: 18px;
    padding: 8px;
  }

  html,
  body,
  main {
    margin: 0;
    padding: 0;
  }

  .icon-wrapper {
    display: none;
  }

  .single-article-layout {
    padding: 8px;
    margin: 0;
  }

  p,
  span,
  div,
  body,
  html {
    font-size: 16px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 24px;
  }

  h4 {
    font-size: 18px;
  }

  h5 {
    font-size: 16px;
  }

  h6 {
    font-size: 14px;
  }

  .icon {
    height: 32px;
    width: 32px;
    margin: 8px;
  }

  .blog-grid-subtitle {
    display: none;
  }

  #blog-grid {
    grid-template-areas:
      "a a a"
      "c c d"
      "b b b";
  }
  .single-article-wrapper {
    border: none;
  }

  .single-article-wrapper .blog-title {
    font-size: 2.5rem;
    line-height: 2.8rem;
  }

  .single-article-wrapper .blog-subtitle {
    font-size: 2rem;
    line-height: 2.3rem;
    margin-top: 16px;
  }
}

/* media query for tablet and smaller */

@media (max-width: 1000px) {
  body {
    flex-direction: column;
    margin: 0;
  }

  main {
    margin: 0;
  }

  header {
    position: relative;
    flex-direction: column;
    border: none;
    margin: auto;
  }

  #header-first {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  nav {
    flex-direction: row;
  }

  #copyright {
    display: none;
  }

  #landing-spacer {
    min-height: 55vh;
    max-height: 55vh;
  }
}
