 /* body {
  background-color: #000;
  font: 1.1em Arial, Helvetica, sans-serif;
} */

.img-grid {
  max-width: 100%;
  display: block;
}

figure {
  margin: 0 0 15px;
  display: grid;
  grid-template-rows: 2fr auto;

  break-inside: avoid;
}

figure > img {
  grid-row: 1 / -1;
  grid-column: 1;
}

figure a {
  color: black;
  text-decoration: none;
}

figcaption {
  grid-row: 2;
  grid-column: 1;
  background-color: rgba(255,255,255,.5);
  padding: .2em .5em;
  justify-self: start;
}

.container {

  column-count: 3;
  column-gap: 15px;
  padding:40px;
}

@media only screen and (max-width: 780px) {
.container {
  column-count: 2;
  column-gap: 10px;
}

@media only screen and (max-width: 500px) {
.container {
  column-count: 1;
  column-gap: 8px;
}

}
