/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    margin: auto;
    background-color: #fff;
    padding: 30px;
    overflow: hidden;
    /* Prevent content overflow */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    max-height: 700px;
    object-fit: cover;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 7px;
    right: 7px;
    background: transparent;
    border: none;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}