
.modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    max-width: 80%;
    max-height: 80vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.4); 
    animation: zoomIn 0.8s ease-in-out forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.4); 
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal.active {
    display: flex;
}

.modal.active .modal-content {
    opacity: 1;
}

.modal-close {
    color: #fff;
	transition: color 0.3s ease;
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 9999; 
}

.modal-close:hover {
    color: #888; 
}

#imgTitle {
    position: absolute;
    top: 90%; 
    left: 50%;
    transform: translateX(-50%);
    background-color: #EDEDED;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 20px;
}