

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 80px 20px 20px; /* to offset the fixed navbar and provide side margins */
}

.gallery-item {
    background-color: #fff;
    border: 2px solid #ddd;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: transform 0.3s;
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #333;
    }
    .nav-link {
        text-align: center;
        padding: 15px;
        width: 100%;
        border-top: 1px solid #555;
    }
    .nav-link:first-child {
        border-top: none;
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .gallery {
        grid-template-columns: 1fr;
        margin: 80px 10px 20px; /* Adjusted for small screens */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}





