.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    
}

.modal-content {
    display: inherit!important;
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px; /* Adjust as needed */
    top: 60%;
    transform: translateY(-50%);
    padding-bottom:20px;
}

.close {
    color: #eb0a0a;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal img {
    width: 100%;
    height: 450px;
    object-fit: contain;
}


/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .modal-content {
        width: 90%; /* Adjust width for mobile */
    }
    .modal-content {
   
    padding-bottom:10px;
}
}

