
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #eee;
}

.images {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem;
}

.image {
  float: left;
  width: 99%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ddd;
  margin: .5%;
}

.image .img {
  width: 100%;
  display: block;
  height: auto;
}


/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .image {
    width: 99%;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .image {
    width: 49%;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 1024px) {
  .image {
    width: 32.3333%;
  }
}

@media only screen and (min-width: 1400px) {
  .image {
    width: 24%;
  }
}

@media only screen and (min-width: 1800px) {
  .image {
    width: 19%;
  }
}

