/* Modal Style */
#imageModal {
    display: none;  /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 50px; /* Position the modal */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Black background with opacity */
    background-color: rgba(0, 0, 0, 0.9); /* Black with opacity */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.modal-content {
    margin: auto;
    display: block;
    width: 70%; /* 70% of the screen size */
    max-width: 70%; /* Ensure it doesn't exceed this width */
    max-height: 70%; /* Keep it within the screen height */
}

#modal-image {
    width: 100%; /* Scale the image */
    height: auto;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #f44336;
    text-decoration: none;
    cursor: pointer;
}
