/* https://www.sitepoint.com/using-modern-css-to-build-a-responsive-image-grid/

*/

body {
	margin: 0;
	padding: 8px;
	font-family: "Helvetica Neue", "Helvetica", sans-serif;
	font-weight: normal;
	background-color: white;
	color: black;
}

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

h1 {
	font-weight: normal;
}

h3 {
  text-align: center;
  font-size: 1.65em;
  margin: 0 0 30px;
}

#thumbnails {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#thumbnails:after {
  content: "";
  flex: auto;
}


#thumbnails a {
  display: inline-block;
  margin-bottom: 8px;
  width: calc(50% - 4px);
  text-decoration: none;
  color: white;
}

@media screen and (min-width: 600px) {
  #thumbnails a {
    width: calc(33% - 6px);
  }
}

@media screen and (min-width: 1000px) {
  #thumbnails a {
    width: calc(25% - 6px);
  }
}

@media screen and (min-width: 1500px) {
  #thumbnails a {
    width: calc(20% - 6px);
  }
}

figure {
  margin: 0;
  overflow: hidden;
}

.thumbnail {
    float:left;
    position: relative;
    width: 100%;
    padding-top : 100%; /* = width for a 1:1 aspect ratio */
    background-position:center center;
    background-repeat:no-repeat;
    background-size:cover; /* you change this to "contain" if you don't want the images to be cropped */
}



img {
  border: none;
  max-width: 100%;
  height: auto;
  display: block;
  background: #ccc;
  transition: transform .2s ease-in-out;
}

.p a {
  display: inline;
  font-size: 13px;
  margin: 0;
  text-decoration: underline;
  color: blue;
}

.p {
  text-align: center;
  font-size: 13px;
  padding-top: 100px;
}