/* Loan Gallery Section Styles */
.loan-gallery-section {
    background-color: #f8f9fa;
}

.gallery-card {
    height: 300px;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    height: 100%;
    width: 100%;
    transition: all 0.3s ease;
}

.gallery-overlay h3 {
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.gallery-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-card {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .gallery-card {
        height: 200px;
    }
    
    .gallery-overlay {
        padding: 15px !important;
    }
    
    .gallery-overlay h3 {
        font-size: 1.25rem;
    }
    
    .gallery-overlay p {
        font-size: 0.85rem;
        margin-bottom: 10px !important;
    }
}