body {
  position: relative;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: #000;
  color: #e9f0fb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 3em;
  text-align: center;
}

h1 a, h1 a:hover {
  color: inherit;
  text-decoration: none;
}

article a, article a:hover{
  color: inherit;
}

main {
  margin: 0 auto;
  max-width: 1200px;
}

.item-show #images {
  width: 100%;
}

.item-show #images img {
  width: 100%;
  border: 5px #fff solid;
  border-radius: 5px;
  margin-bottom: 5px;
  box-sizing: border-box;
}

#items {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

.item-view {
  flex-basis: 24%;
  -ms-flex: auto;
  width: 25%;
  position: relative;
  padding: 10px;
  box-sizing: border-box;
  border: 2px #fff solid;
  border-radius: 5px;
  margin-bottom: 10px;
  text-align: center;
}

.item-view img {
  width: 100%;
  height: auto;
}

.item-view a, .item-view a:hover {
  color: inherit;
}

#viewer-3d {
  height: 82vh;
  width: 100%;
  position: relative;
  margin: 0 auto;
  top: calc(50% - 250px);
}

#viewer-3d model-viewer {
  height: 82vh;
  width: 100%;
  position: absolute;
  margin: 0 auto;
  top: 0;
  left: 0;
  border: none;
}

footer {
  height: auto;
  max-width: 350px;
  margin: auto auto 0;
}

footer nav {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-direction: row;
  text-align: center;
  width: 350px;
}

@media(max-width: 1073px) {
  .item-view {
    flex-basis: 32%;
  }
}
@media(max-width: 815px) {
  .item-view {
    flex-basis: 49%;
  }
}
@media(max-width: 555px) {
  .item-view {
    flex-basis: 100%;
  }
}
