.container1 {
    position: relative;
    padding: 10px;
    width: 100%;
  }
  
  .image1 {
    display: block;
    width: 100%;
    align-items: center;
    height: auto;
  }
  
  .overlay1 {
    position: absolute; 
    bottom: 0; 
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.5); /* Black see-through */
    color: #f1f1f1; 
    width: 95%;
    margin: 10px;
    transition: .5s ease;
    opacity:0;
    color: white;
    font-size: 20px;
    padding: 20px;
    text-align: center;
  }
  
  .container1:hover .overlay1 {
    opacity: 1;
  }