body {
    font-family: "Montserrat", sans-serif;
    font-size: 5vmin;
    color: white;
    margin: 0px;
    background: darkslategray;
}

.base {
    position: relative;
    left: 50%;
    transform: translate(-50%,0%);
    width: 90vmin;
    height: 90vmin;
    display: grid;
    grid-template-columns: 49% 49%;
    grid-template-rows: 49% 49%;
    grid-gap: 2%;
}

 /* Container needed to position the overlay. Adjust the width as needed */
.container {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    float: left;
    border: 3px solid black;
}

/* Make the image to responsive */
.image {
    max-width: 100%;
    max-height: 100%;
}

/* The overlay effect (full height and width) - lays on top of the container and over the image */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgb(212, 21, 21);
    overflow: hidden;
    width: 100%;
    height: 100%;
    transform: scale(0);
    transition: .3s ease;
}

/* When you mouse over the container, the overlay text will "zoom" in display */
.container:hover .overlay {
    transform: scale(1);
}

/* Some text inside the overlay, which is positioned in the middle vertically and horizontally */
.text {
    color: white;
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
} 