/* Overlay container */
.image-overlay {
    position: relative;
    display: inline-block;
}

.image-overlay img {
    width: 100%;
    height: auto;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay color and transparency */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover .overlay {
    opacity: 1;
}

.overlay-text {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.curvy-image {
    border-radius: 50px; /* Adjust as needed */
    overflow: hidden; /* Ensure overlay text does not overflow */
    width: 100%; /* Optional: adjust width as needed */
    height: auto; /* Maintain aspect ratio */
}

.image-overlay {
    position: relative;
    overflow: hidden; /* Ensures that the overlay is clipped to the rounded corners */
}

.image-overlay img {
    border-radius: 50px; /* Same radius for the image */
    transition: transform 0.3s ease; /* Optional hover effect */
}

.image-overlay:hover img {
    transform: scale(1.05); /* Optional zoom effect on hover */
}
