
/*بزرگ کردن عکس های صفحه اول*/

/* پس‌زمینه طوسی و پوشش کامل با 80% عرض/ارتفاع صفحه */
.modal.fullscreen-80 {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(128, 128, 128, 0.75); /* طوسی با شفافیت مناسب */
    z-index: 2000; /* بالاتر از منوهای ناوبری */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    display: none;
}

/* محتوی مودال در مرکز با اندازه حدود 80% صفحه */
.modal-content {
   /* width: 80vw;
    height: 80vh;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 8px;
    position: relative;
    box-shadow: none;*/
}

/* تصویر مرکزی با حفظ نسبت ابعاد و مرکزیت */
.modal-image-center {
    width: 100%;
    height: 100%;
    object-fit: contain; /* تصویر رو داخل کادر حفظ می‌کنه */
    background: #00000075; /* اگر تصویر کوچیک باشه پس‌زمینه تیره نمایش بده */
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

/* Caption (اختیاری) */
.modal-caption {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    max-width: calc(80vw - 24px);
    text-align: center;
    pointer-events: none;
}

/* دکمه بسته شدن در بالا-چپ */
.modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: #333;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2100; /* مطمئن شویم روی همه چیز هست */
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
