.gallery {
    max-width: 1200px; /* Maximum width for the gallery */
    margin: 0 auto; /* Center the gallery */
    padding: 20px; /* Padding around the gallery */
    text-align: center; /* Center text */
}

.gallery h2 {
    font-size: 2.5em; /* Larger font size for the heading */
    color: #4CAF50; /* Theme color for the heading */
    margin-bottom: 20px; /* Space below the heading */
}

.gallery-images {
    display: grid; /* Use CSS Grid for layout */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid */
    gap: 15px; /* Space between images */
}

.gallery-image {
    width: 100%; /* Make images responsive */
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover; /* Ensure images cover the space without distortion */
    border-radius: 8px; /* Slightly rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: transform 0.3s; /* Smooth transition for hover effect */
}

.gallery-image:hover {
    transform: scale(1.05); /* Scale up image on hover */
}

/* Media Queries for additional responsiveness */
@media (max-width: 768px) {
    .gallery h2 {
        font-size: 2em; /* Adjust heading size on smaller screens */
    }
}

@media (max-width: 480px) {
    .gallery h2 {
        font-size: 1.5em; /* Further adjust heading size */
    }
}
