body {
  font-family: Arial;
  padding: 20px;
  background: white;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(13, 300px);
    grid-gap: 15px;
    justify-items: center;
    align-items: end;
}

.gallery-item {
    grid-column-start: auto;
    grid-column-end: auto;
    grid-row-start: auto;
    grid-row-end: auto;
}

.display-figure {
}

.display-img {
    max-width: 192;
    max-height: 192;
    padding: 3;
}

.picture-display {
    text-align: center;
}

.tooltip {
    position: relative; /* making the .tooltip span a container for the tooltip text */
}

.tooltip:before {
    content: attr(data-text);
    position: absolute;
    z-index: 10;
    
    top: 50%;
    transform: translateY(-50%);
    
    left: 10%;
    margin-left: 15px; /* and add a small left margin */
    

    width: 200px;
    padding: 10px;
    border-radius: 5px;
    background: #000;
    color: #fff;
    text-align: center;
    display: none;
}

.tooltip:hover:before {
    display: block;
}
