body {
  background-color: #313131;
  display: flex;
  height: 100vh;
  flex-direction: column;
  margin: 0;
}
portfolio-page {
  flex: 1;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-content: flex-start;
}
portfolio-page thumbnails,
portfolio-page .thumbnails {
  flex-wrap: wrap;
  width: 100%;
  display: flex;
  justify-content: center;
  align-content: flex-start;
  cursor: pointer;
  cursor: zoom-in;
}
portfolio-page thumbnails .portfolio-grid-thumb,
portfolio-page .thumbnails .portfolio-grid-thumb,
portfolio-page thumbnails picture,
portfolio-page .thumbnails picture {
  margin: 0.5vh;
}
@media (min-width: 800.001px) and (orientation: landscape) {
  portfolio-page {
    width: 580px;
    margin-top: 50px;
    padding-bottom: 50px;
  }
  portfolio-page .portfolio-grid-thumb:not(.grid-alligner),
  portfolio-page picture:not(.grid-alligner),
  portfolio-page img {
    width: 130px;
    height: 130px;
  }
  portfolio-page .portfolio-grid-thumb.grid-alligner,
  portfolio-page picture.grid-alligner {
    display: block;
    width: 130px;
    height: 0;
    margin-top: 0;
    margin-bottom: 0;
  }
}
@media (max-width: 800px), (orientation: portrait) {
  portfolio-page {
    max-width: 420px;
    margin-top: 50px;
    padding-bottom: 50px;
  }
  portfolio-page picture:not(.grid-alligner),
  portfolio-page img {
    width: 90px;
    height: 90px;
  }
  portfolio-page picture.grid-alligner {
    width: 90px;
    height: 0;
    margin-top: 0;
    margin-bottom: 0;
  }
}
