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

.gallerymansory figure {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  margin-bottom: 10px;
  break-inside: avoid;
}

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

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

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

.gallerymansory .container-photo {
  column-count: 4;
  column-gap: 10px;
}

@media only screen and (max-width: 679px) {
	.gallerymansory .container-photo {
	  column-count: 3;
	  column-gap: 5px;
	}
	.gallerymansory figure { margin-bottom: 5px; }
}

@media only screen and (max-width: 479px) {
	.gallerymansory .container-photo {
	  column-count: 1;
	}
}
