/* Apply light tan background color to the body */
body {
    background-color: #e0daca; /* Light tan */
    margin: 0; /* Remove default body margin */
    font-family: Courier Thin, monospace; /* Set default font family */
}

/* Style the header */
header {
    background-color: #e0daca; /* Dark background color */
    color: #333333; /* Text color */
    padding: 20px; /* Padding around the header */
    text-align: center; /* Center align text */
}

/* Style the navigation links */
nav {
    background-color: #e0daca; /* Dark background color */
    text-align: center; /* Center align links */
    padding: 10px 0; /* Padding above and below links */
}

nav a {
    color: #333333; /* Text color */
    text-decoration: none; /* Remove underline */
    margin: 0 20px; /* Add spacing between links */
    font-size: 18px; /* Set font size */
}

/* Media query for screens smaller than 600px */
@media only screen and (max-width: 600px) {
    /* Center align the navigation links */
    nav {
        padding: 10px 0; /* Adjust padding */
    }

    nav a {
        margin: 10px; /* Adjust link margin */
    }
}

/* Grid layout for images */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Style each image */
.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #ccc;
    cursor: pointer;
}

/* Overlay for displaying larger image */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Cover the entire viewport width */
    height: 100%; /* Cover the entire viewport height */
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Container for larger image */
#largeImageContainer {
    display: none;
    position: fixed;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Move container back by half its width and height */
    z-index: 1001;
    width: 80%; /* Adjust width as needed */
    height: 80%; /* Adjust height as needed */
    max-width: 90vw; /* Limit width to viewport width */
    max-height: 90vh; /* Limit height to viewport height */
    pointer-events: none; /* Allow click events to pass through */
}

/* Larger image */
#largeImage {
    max-width: 100%;
    max-height: 100%;
}
/* Close button styles */
#closeButton {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333333;
    z-index: 1002; /* Ensure the button is above the overlay */
}
