.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
    visibility: hidden;
    backdrop-filter: blur(5px);
    cursor: zoom-out;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup img {
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease, opacity 0.3s;
    opacity: 0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.popup.show img {
    transform: scale(1);
    opacity: 1;
}

.popup img:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
}

.popup-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.popup-close:hover {
    opacity: 1;
}