<style>
* {box-sizing: border-box;}

.container {
  position: relative;
  width: 100%;
  height: 100%;
  /*max-width: 300px;*/
  margin:0px;
  padding:0px;
}

.image {
  display: block;
  width: 100%;
  height: auto;
}

.overlay {
  position: absolute; 
  bottom: 0;
  right: 0;
  /*background: rgb(0, 0, 0);*/
  background: rgba(0, 0, 0, 0.5); /* Black see-through */
  color: #f1f1f1; 
  width: 20%;
  transition: .5s ease;
  opacity:0;
  color: white;
  font-size: 20px;
  padding: 10px;
  text-align: center;
}

.container:hover .overlay {
  opacity: 1;
}
</style>
