.gallery {
  column-count: auto;
  column-width: 400px;
  column-gap: 0.75rem;
}

.gallery > * {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.gallery-item {
  width: 100%;
  cursor: pointer;
}

.gallery-item :focus {
  outline: 3px solid var(--link-color);
}

.gallery-item-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 0.5rem;
}