.image-gallery {
  display: flex;
  flex-direction: column;
}

.image-gallery > * {
  margin: 20px 0 0;
}

.image-gallery > *:first-child {
  margin-top: 0;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 0.5fr));
  grid-gap: 0.5rem;
  justify-items: center;
  margin: 0;
  padding: 0;
}

.image-tile {
  padding: 0.5rem;
  padding-bottom: 0.2rem;
  text-align: center;
  background-color: #f0f0f0f0;
  color: #223;
  border: 2px solid #ccc;
  width: 100%;
  max-width: 30rem;
  display: flex;
  flex-direction: column;
}

// Put a little space between each element by applying margin to all children 
// except the first one
.image-tile > * {
  margin: 0.1rem 0 0;
}

.image-tile > *:first-child{
  margin-top: 0;
}

.image-tile-links,.image-tile-label {
    flex-grow: 0;
    flex-shrink: 0;
}

.image-tile-links button {
  background-color: #f6f6f6;
  border-color: #ccd;
}

.image-tile-image-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-tile-image {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.image-tile-icon {
    width: 100%;
}
.image-tile-icon img {
    width: 30%;
}

.load-more {
  text-align: center;
  width: 100%;
  flex-grow: 0;
}