.flex-container {
    display: flex;
	flex-wrap: wrap;
	align-items: center;
    justify-content: center;
}

.image-container {
    position: relative;
    margin: 10px;
}

.image-container img {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
	flex-direction: column; /* Display title and text in a column */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay h3 {
    font-weight: bold;
    margin-bottom: 5px;
}
  
.image-container:hover .overlay {
    opacity: 1;
}