.gallery-info {
    background-color: #fff;
    color: #047;
    padding-top: 3.5rem;
    padding-bottom: 4rem;
}

.gallery-kicker {
    font-family: 'Amiri Quran', serif;
    font-size: 22px;
    color: #047;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.gallery-title {
    font-family: var(--font-main);
    font-size: 52px;
    color: #FA8DBE;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.btn-gallery {
    background: #047;
    color: #fff;
    font-family: var(--font-main);
    border-radius: 2rem;
    font-weight: 500;
    font-size: 15px;
    border: none;
    padding: 0.75rem 2.5rem;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btn-gallery:hover,
.btn-gallery:focus {
    background: #169;
    color: #fff;
}

.gallery-images {
    margin-top: 1.5rem;
    position: relative;
}

/* Gradient overlay on left and right edges */
.gallery-images::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 15%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 30%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.gallery-images::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 15%;
    height: 100%;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 30%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px; /* Fixed height for all images */
}

.gallery-image {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    object-fit: cover; /* Ensures images fill the container without distortion */
    object-position: center; /* Centers the image within the container */
    transition: transform 0.3s ease;
}

.gallery-image-wrapper:hover .gallery-image {
    transform: scale(1.1);
}

/* Mobile: horizontal scroll for gallery images */
@media (max-width: 767.98px) {
    .gallery-info {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .gallery-info .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .gallery-kicker {
        font-size: 18px;
        margin-bottom: 0.5rem;
    }
    
    .gallery-title {
        font-size: 36px;
        margin-bottom: 1.5rem;
    }
    
    .btn-gallery {
        padding: 0.7rem 2rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 280px;
    }
    
    .gallery-images {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: scroll;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
        margin-top: 1rem;
        scrollbar-gutter: stable;
    }
    
    .gallery-images::before,
    .gallery-images::after {
        display: none;
    }
    
    .gallery-images > [class*="col-"] {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-right: 1rem;
        scroll-snap-align: start;
    }
    
    .gallery-images > [class*="col-"]:last-child {
        margin-right: 0;
    }
    
    .gallery-image-wrapper {
        height: 280px;
    }
    
    /* Style scrollbar - always visible */
    .gallery-images::-webkit-scrollbar {
        height: 8px;
        -webkit-appearance: none;
    }
    
    .gallery-images::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 4px;
        margin-top: 0.5rem;
    }
    
    .gallery-images::-webkit-scrollbar-thumb {
        background: rgba(0, 68, 119, 0.25);
        border-radius: 4px;
        transition: background 0.3s ease;
        min-width: 50px;
    }
    
    .gallery-images::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 68, 119, 0.5);
    }
    
    /* Firefox scrollbar - always visible */
    .gallery-images {
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 68, 119, 0.25) rgba(0, 0, 0, 0.05);
    }
    
    /* Custom scrollbar wrapper */
    .gallery-scroll-wrapper {
        position: relative;
    }
    
    /* Custom scrollbar - always visible */
    .custom-scrollbar {
        display: none;
        width: 100%;
        height: 8px;
        margin-top: 0.5rem;
        padding: 0 1rem;
    }
    
    .custom-scrollbar-track {
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 4px;
        position: relative;
        cursor: pointer;
    }
    
    .custom-scrollbar-thumb {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        background: rgba(0, 68, 119, 0.25);
        border-radius: 4px;
        min-width: 50px;
        transition: background 0.3s ease, left 0.1s ease, width 0.1s ease;
    }
    
    .custom-scrollbar-thumb:hover {
        background: rgba(0, 68, 119, 0.5);
    }
    
    /* Hide native scrollbar on mobile */
    .gallery-images {
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    
    .gallery-images::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
}

