/* ==========================================================================
   Image Modal / Lightbox Styles - Simple Full-Size Image Viewer
   ========================================================================== */

.modal-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.modal-popup.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-img {
    display: block;
    max-width: 95%;
    max-height: 95vh;
    width: auto;
    height: auto;
    margin: auto;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.close-popup {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
    z-index: 10001;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content-img {
        max-width: 98%;
        max-height: 90vh;
    }

    .close-popup {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
}