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

.popup-container {
    position: relative;
    max-width: 920px;
    height: auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.3s ease-out;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 1);
}

.popup-image-wrapper {
    display:block;
    max-width:100%;
    height:100%;
    margin:0;
}

.popup-image-wrapper img {
    display: block;
    max-width: 100%;
    height: 100%;
	object-fit:contain;
    cursor: pointer;
}
@media only screen and (min-width:768px) {
    .popup-image-wrapper img.mobile {display:none;}
}

@media only screen and (max-width:768px) {
    .popup-image-wrapper img.desktop {display:none;}
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.popup-overlay.closing {
    animation: popupFadeOut 0.3s ease-in;
}

/* Responsive */
@media (max-width: 768px) {
    .popup-container {
        width: 100%;
        height: auto;
    }
    
    .popup-close {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}