.container-gallery {
    max-width: 1400px;
    margin: 0 auto;
}

/* Ensure gallery starts below the fixed navbar */
.navbar.fixed-top + .container-gallery {
    margin-top: 200px;
}

@media (max-width: 992px) {
    .navbar.fixed-top + .container-gallery {
        margin-top: 72px;
    }
}

.navbar{
    position: sticky;
    top: 0;
}


.gallery {
    display: grid;
    /* Reduced from 4 to 3 columns and increased minimum size for larger images */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 45px;
    max-width: 100%;
    margin-bottom: 5rem;
}

.gallery-title {
    font-size: 28px;
    font-weight: 600;
    margin: 16px 0 24px 8px;
}


.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item a {
    text-decoration: none;
    color: inherit;
}

.gallery-item img {
    width: 100%;
    /* Increased image height from 250px to 320px for better detail visibility */
    height: 320px;
    object-fit: cover;
    display: block;
}

.image-name {
    color: rgb(0, 0, 0);
}


/* Responsive Design */
@media (max-width: 1200px) {
    .gallery {
        /* Changed from 3 to 2 columns on medium screens for larger images */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-item img {
        /* Increased mobile image height from 200px to 280px */
        height: 280px;
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .container {
        padding: 0 10px;
    }
}

/* Updated large screen layout to show exactly 3 items per row instead of 4 */
@media (min-width: 1201px) {}