.image-overlay-container {
position: relative;
display: inline-block; /* Or block, depending on layout */
}
.image-overlay-image {
display: block;
}
.image-overlay-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
color: white;
padding: 10px;
text-align: center;
width: 90%;
box-sizing: border-box;
}
.zoom {
transition: transform 0.3s ease; /* Add transition for smooth zoom */
}
.zoom:hover {
transform: scale(1.1); /* Zoom on hover */
}