/* Basic Reset & Body Styling (Agar zaroorat ho) */
body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Gallery Section Styling */
.image-gallery-section {
    padding-top: 40px;
    padding-bottom: 0px;
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive columns */
    gap: 20px; /* Space between gallery items */
}

.gallery-item {
    position: relative;
    display: block; /* Make the whole area clickable */
    overflow: hidden;
    border-radius: 8px; /* Slightly rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none; /* Remove underline from links */
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px); /* Slight lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%; /* Important for consistent height */
    object-fit: cover; /* Ensures images cover the area without distortion */
    display: block; /* Remove extra space below image */
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Zoom effect on image hover */
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%); /* Gradient overlay */
    color: #fff;
    text-align: center;
    transform: translateY(0); /* Start visible */
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

/* Optional: Hide overlay initially and show on hover for a cleaner look */
/* Uncomment below if you want the text to appear only on hover */
/*
.gallery-overlay {
    opacity: 0;
    transform: translateY(100%);
    background: rgba(0, 0, 0, 0.7); // Solid color for full hover overlay
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}
*/

.gallery-title {
    margin: 0;
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust column size for tablets */
    }

    .gallery-title {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Single column on small mobiles */
    }

    .gallery-item {
        margin-bottom: 15px; /* Space between items when stacked */
    }

    .gallery-title {
        font-size: 1.3em;
    }
}