/* Gallery Section General Styling */
.gallery-section {
    background-color: #fcfdfe; /* Light background for a clean look */
    padding-bottom: 50px;
}

/* Header Underline (Your project theme) */
.header-underline {
    width: 60px;
    height: 4px;
    background-color: #007A83;
    margin: 10px auto;
    border-radius: 2px;
}

/* Gallery Grid Layout */
.gallery-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* Hover Effects for Cards */
.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

/* Image Container - Square Aspect Ratio */
.gallery-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Desktop par perfect square cards */
    overflow: hidden;
    background-color: #f0f0f0;
}

.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Image kategi nahi, box ko fill karegi */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Zoom effect on image hover */
.gallery-card:hover img {
    transform: scale(1.1);
}

/* Overlay Styling (Title and Icon) */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 122, 131, 0.7); /* Teal theme transparent overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0; /* Default hidden on desktop */
    transition: all 0.3s ease;
    padding: 15px;
    text-align: center;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-overlay i {
    transform: translateY(0);
}

.gallery-overlay span {
    font-weight: 600;
    font-size: 1rem;
    text-transform: capitalize;
}

/* ========================================= */
/* MOBILE RESPONSIVENESS (< 768px)          */
/* ========================================= */
@media screen and (max-width: 768px) {
    .gallery-img-box {
        aspect-ratio: 4 / 3; /* Mobile par photos thodi wide zyada achi dikhti hain */
    }

    /* Mobile par hover nahi hota, isliye title hamesha dikhayenge gradient ke saath */
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
        justify-content: flex-end;
        align-items: flex-start;
    }

    .gallery-overlay i {
        display: none; /* Mobile par icon hide rakhenge clear view ke liye */
    }

    .gallery-overlay span {
        font-size: 0.9rem;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    }
}

/* Lightbox (Luminous) Customization */
.lum-lightbox {
    z-index: 10000; /* Taaki navbar ke upar dikhe */
}

.lum-lightbox-inner img {
    border: 5px solid white;
    border-radius: 4px;
    max-shadow: 0 0 20px rgba(0,0,0,0.5);
}