.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.popup {
    position: relative;
    background: transparent;
    padding: 5px;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.popup img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 25px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.close-btn:hover {
    background: #fff;
    color: #000;
}