/**THE SAME CSS IS USED IN ALL 3 DEMOS**/    
/**gallery margins**/  

.zoom {
    transition: transform 0.35s ease-in-out;
    cursor: zoom-in;
    display: inline-block;
}

.zoom:hover,
.zoom:active,
.zoom:focus {
    transform: scale(5.5);
    position: absolute; /* اجعل العنصر مفصول عن السياق الطبيعي */
    z-index: 9999; /* تأكد أنه فوق كل العناصر */
    background-color: white; /* يساعد في وضوح الصورة */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* ظل لإبراز العنصر */
    padding: 5px;
}
/* ============================================================================ */
#zoom-image {
    width: 50px;
    height: auto;
    cursor: zoom-in;
}
/* الطبقة المظلمة */
#zoom-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* الصورة المكبرة داخل التراكب */
#zoom-overlay img {
    max-width: 80vw;
    max-height: 80vh;
    transition: transform 0.3s ease;
    cursor: zoom-out;
}

/* تفعيل الطبقة */
#zoom-overlay.active {
    display: flex;
}


