.image-card-container {
position: relative;
display: inline-block; /* Or block, depending on layout */
}
.image-card-image {
display: block;
width: 100%; /* Ensure the image fills the container */
height: auto;
}
.image-card-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(0, 0, 0, 0.6);
color: white;
padding: 10px;
text-align: center;
width: 90%;
box-sizing: border-box;
}
.zoom {
transition: transform 0.3s ease;
}
.zoom:hover {
transform: scale(1.1);
}
/* Make the container clickable */
.image-card-container {
cursor: pointer;
}