.image-container {
  position: relative;
  display: inline-block;
}

.image-container img {
  width: 300px;
  height: auto;
}

.image-container .description {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.image-container:hover .description {
  opacity: 1;
}

