﻿/* استایل کلی پاپ‌آپ */
.image-popup-modal {
    display: none; /* در حالت عادی مخفی */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* پس‌زمینه تیره */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* محتوای داخل پاپ‌آپ */
.popup-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

    /* عکسی که داخل پاپ‌آپ لود می‌شود */
    .popup-content-wrapper img {
        display: block;
        max-width: 100%;
        max-height: 80vh;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 5px 25px rgba(0,0,0,0.5);
        margin: 0 auto;
    }

/* دکمه بستن (ضربدر) */
.popup-close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 38px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

    .popup-close-btn:hover {
        color: #ff4d4d;
    }
