.gallery {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: stretch;
  padding-bottom: 0.5em;
  gap: 0.75em;
}

.gallery-item {
  margin: auto 0;
}

.painting-container {
  border: none;
  display: block;
  position: relative;
  max-height: 10em;
  width: fit-content;
  box-shadow: none;
  transition: box-shadow 1s;
}

.preview {
  max-width: 100%;
  max-height: inherit;
}
.appear-on-hover {
  width: 0;
  overflow: hidden;
  transition: width 1s;
}
.painting-container:hover{
  box-shadow: 0 0 3px white, 0 0 15px #cce4ff;
}
.preview:hover ~ .appear-on-hover {
  width: 100%;
}

.date {
  position: absolute;
  margin: 0;
  top: 0;
  left: 0;
  color: white;
  background-image: linear-gradient(to right, black, rgba(0,0,0,0));
}
