/* Popup Modal Styles */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.popup-modal.show {
    display: flex;
}

.popup-content {
    position: relative;
    max-width: 400px;
    max-height: 80vh;
    margin: auto;
    cursor: pointer;
}

.popup-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.popup-content picture {
    display: block;
    position: relative;
}

/* Close button area - positioned over the X on the image */
.popup-close-area {
    position: absolute;
    top: 0px;
    right: 2px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10000;
}

.popup-close-area::before,
.popup-close-area::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: #000;
}

.popup-close-area::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.popup-close-area::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .popup-content {
        max-width: 90%;
    }
    
    .popup-close-area {
        width: 30px;
        height: 30px;
    }
    
    .popup-close-area::before,
    .popup-close-area::after {
        width: 16px;
        height: 2px;
    }
}