.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-container {
    position: relative;
    background: transparent;
    max-width: 90%;
    max-height: 90%;
    overflow: visible;
}

.popup-close {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.popup-content {
    text-align: center;
    background: transparent;
}

.popup-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    .popup-container {
        margin: 20px;
    }
    
    .popup-close {
        top: -5px;
        right: -5px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
}