body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}

.navbar {
    background-color: #333;
    color: white;
    padding: 15px;
    text-align: center;
    position: relative; /* Ensure navbar is positioned relative */
}

.hamburger {
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s;
    user-select: none;
}

.hamburger:hover {
    color: gray;
}

.menu {
    display: none;
    background-color: #444;
    color: white;
    padding: 10px;
    position: absolute; /* Change to absolute positioning */
    top: 69px; /* Adjust based on navbar height */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center the menu */
    width: 200px;
    z-index: 1000; /* Ensure it overlays other content */
}

.menu.show {
    display: block; /* Show menu */
}

.container {
	top: 40px;
    text-align: center;
    position: relative; /* Ensure container is positioned relative */
}

.container h1 {
	padding-bottom: 8px;
}

.menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
	
}

.menu li {
    padding: 8px 0;
    text-align: center;
}

.menu a {
    font-family: 'Montserrat', sans-serif;
    color: white;
    text-decoration: none;
    display: block;
    padding: 8px;
}

.menu a:hover {
    background-color: gray;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 600px;
    margin: auto;
    width: 100%;
}
.grid-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    background-color: #d0d0d0;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Optional: adds a subtle shadow */
    max-width: 300px;
    margin: 0 auto;
}
.grid-item:hover {
	transform: scale(1.05);
}
.grid-item img {
    width: 50%;
    height: auto;
}
.description {
	margin-top: 10px;
	font-size: 1.2em;
}

.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #333; 
    padding: 10px; /* Padding for the gallery */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Optional: adds a subtle shadow */
    max-width: 420px; /* Set a max width slightly wider than images */
    margin: 0 auto; /* Center the gallery without top margin */
    margin-top: 10px; /* Add top margin to account for the fixed navbar */
}

.gallery-image {
    width: 100%; /* Make images take full width of the gallery */
    max-width: 400px; /* Keep the max width for images */
    margin: 10px 0; /* Vertical margin for spacing */
    cursor: pointer;
    transition: transform 0.2s;
    display: block;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Higher z-index than the navbar */
}

.viewed-image {
    max-width: 90%;
    max-height: 100%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.navigation {
    position: absolute;
    top: 50%; /* Position halfway down the viewport */
    transform: translateY(-50%); /* Center the buttons vertically */
    width: 100%;
    display: flex;
    justify-content: space-between;
}

button {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    margin: 0 20px; /* Add margin to the left and right of the buttons */
}

/* Responsive styles for mobile devices */
@media (max-width: 600px) {
    body {
        font-size: 1em;
    }
    .navbar {
        padding: 10px;
        font-size: 1em;
    }
    .hamburger {
        font-size: 28px;
    }
    .menu {
        position: static;
        width: 100%;
        top: auto;
        left: auto;
        transform: none;
        padding: 0;
        font-size: 1em;
    }
    .container {
        width: 100%;
        padding: 0 5px;
        top: 0;
    }
    .grid-container {
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }
    .grid-item img {
        width: 100%;
        max-width: 100%;
    }
    .gallery {
        max-width: 100%;
        padding: 5px;
    }
    .gallery-image {
        max-width: 100%;
    }
    .description {
        font-size: 1em;
    }
    .menu ul {
        padding: 0;
    }
    .menu li {
        padding: 10px 0;
    }
}