﻿
/* حاوية الصور */
.gallery-item {
    width: 100%;
    height: 350px; /* ارتفاع مناسب للصور الثلاث */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    max-width: 100%;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

    .gallery-item:hover img {
        transform: scale(1.08);
    }

/* تحسينات للشاشات المختلفة - عرض 3 صور جنب بعض مع تصغير تدريجي */

/* شاشات كبيرة جداً (أكبر من 1400px) */
@media (min-width: 1400px) {
    .gallery-item {
        height: 400px;
    }
}

/* شاشات كبيرة (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .gallery-item {
        height: 350px;
    }
}

/* شاشات متوسطة (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .gallery-item {
        height: 300px;
    }
}

/* شاشات التابلت (768px - 991px) - تصبح صورتين جنب بعض */
@media (max-width: 991px) and (min-width: 768px) {
    .row {
        justify-content: center;
    }

    .col-md-6 {
        flex: 0 0 48%;
        max-width: 48%;
    }

    .gallery-item {
        height: 280px;
    }
}

/* شاشات الجوال (أقل من 768px) - صورة واحدة */
@media (max-width: 767px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .gallery-item {
        height: 250px;
    }
}

/* شاشات الجوال الصغير (أقل من 480px) */
@media (max-width: 480px) {
    .gallery-item {
        height: 200px;
    }
}

/* إضافة عنوان للقسم (اختياري) */
.gallery-section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

    .gallery-section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: rgb(154, 15, 15);
        border-radius: 2px;
    }


