/* Reset & Base Styling */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f8f9fa; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: #2c3e50; color: white; padding: 40px 0; text-align: center; }
header h1 { margin-bottom: 20px; }
#searchInput { 
    width: 100%; max-width: 400px; padding: 12px; 
    border: none; border-radius: 25px; outline: none; 
}

/* Gallery Grid */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 25px; margin: 40px 0; 
}

/* Card Styling */
.image-card { 
    background: white; border-radius: 12px; overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease;
}
.image-card:hover { transform: translateY(-5px); }

.img-container img { width: 100%; height: 200px; object-fit: cover; }

.card-content { padding: 20px; text-align: center; }
.card-content h3 { margin-bottom: 10px; font-size: 1.25rem; }
.card-content p { color: #666; font-size: 0.9rem; margin-bottom: 20px; height: 40px; overflow: hidden; }

/* Download Button */
.btn-download { 
    display: inline-block; background: #27ae60; color: white; 
    padding: 10px 20px; text-decoration: none; border-radius: 5px; 
    font-weight: bold; transition: background 0.3s; 
}
.btn-download:hover { background: #219150; }

/* Footer */
footer { text-align: center; padding: 30px; color: #888; border-top: 1px solid #ddd; }

/* Responsive Adjustments */
@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; }
}