container {
    max-width: 100%;
/* this is the width of your layout! */
/* if you change the above value, scroll to the bottom
and change the media query according to the comment! */
    margin: 0 auto;
/* this centers the entire page */
}

p {
    font-family: fantasy;
    text-align: center;
}

#wrapper {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    width: 100%;
    gap: 3px;
}

/* IMG HOVER */
.container {
    position: relative;
    width: 200px;
}

.image {
    display: block;
    max-height: 200px;
    max-width: 200px;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background: rgba(0, 0, 0, 0.5);
}

.container:hover .overlay {
    opacity: 1;
}

.text {
    color: white;
    font-size: 13px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
}