.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--white);
    border-radius: 10px;
    width: 45%;
    height: 70%;
    padding: 0px 20px 20px;
    box-sizing: border-box;
    background-color: white;
}

.up-modal-content {
    display: flex;
    justify-content: end;
    align-items: center;
}

.close {
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text);
    transition: transform 0.3s ease;
}

.close:hover {
    color: var(--hover);
    transform: scale(1.1);
}

.image-modal{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 90%;
}

.image-modal img{
    width: 100%;
    height: 80%;
    object-fit: contain;
    object-position: center;
}

.image-modal p{
    text-align: center;
}

@media (max-width: 768px) {
    .modal-content{
        width: 80%;
        height: auto;
    }

    .image-modal{
        height: auto;
    }
}