/* Style for the clickable image */
.clickable-image {
    width: 200px; /* Initial size */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
}

.clickable-image:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow effect on hover */
}

/* Modal container */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Background overlay */
    overflow: hidden;
    transition: opacity 0.3s ease; /* Smooth show/hide animation */
}

/* Display the modal when active */
.modal.show {
    display: block;
    opacity: 1; /* Full visibility */
}

/* Modal content (the enlarged image) */
.modal-content {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease; /* Smooth zoom effect */
}

.modal-content:hover {
    transform: scale(1.1); /* Slight zoom on hover */
}

/* Close button */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    transition: color 0.3s ease; /* Smooth transition on hover */
}

.close:hover, .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Add responsiveness for smaller screens */
@media screen and (max-width: 600px) {
    .modal-content {
        max-width: 100%;
        max-height: 80%;
    }

    .close {
        font-size: 30px;
    }
}
