/* ✅ تكبير الصور عند تمرير الماوس مع تأثير سلس */

.file-item{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ✅ تصميم المعرض */
.gallery-container {
    text-align: center;
    padding: 20px 0 ;
    margin: 10px;
  
}
/*
.gallery-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
*/
.gallery-file {
     width: 100%;
    aspect-ratio: 1 / 1 ; /* ✅ يحافظ على تساوي العرض والطول */
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ccc;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;

    
}

.gallery-file:hover {
    transform: scale(1.1);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* ✅ تصميم النافذة المنبثقة */
#popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

#popup-image {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0px 4px 20px rgba(255, 255, 255, 0.3);
}

/* ✅ أزرار التنقل */
#popup-prev, #popup-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

#popup-prev { right: 20px; }
#popup-next { left: 20px; }

#popup-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.gallery-files {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* ✅ إنشاء شبكة تلقائية بعدد أعمدة متغير */
    gap: 15px; /* ✅ مسافة بين الملفات */
    justify-content: center;
    max-height: 80vh;
    object-fit: cover;
    
}

.pdf-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f8f8;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 90%; /* ✅ يجعل كل عنصر متناسقًا */
    
    
}

.pdf-container iframe {
    width: 90%; /* ✅ اجعل الـ PDF يمتد لعرض العنصر */
    height: 250px;
    border: none;
    
    
    
}

.download-link {
    margin-top: 5px;
    display: inline-block;
    text-decoration: none;
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.download-link:hover {
    background: #0056b3;
}

/* gallery_render_slider خاص بابعاد */
.gallery-slider-img {
    max-height: 80vh;
    height: 600px;
    object-fit: cover;
}
