/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    background-color: #fefefe;
    color: #333;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    padding: 1rem;
}
/* Header and navigation */
header {
    text-align: center;
    margin-bottom: 1rem;
}
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}
nav a {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    color: white;
    font-weight: bold;
    background: linear-gradient(to right, #ff6b6b, #f0c27b, #6a82fb, #56cc9d);
    transition: transform 0.2s ease;
}
nav a:hover {
    transform: scale(1.05);
}

/* hero image */
.hero {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}
/* photo gallery grid */
.photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.photo-grid figure {
    margin: 0;
    text-align: center;
}
.photo-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
photo-grid figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* footer */
footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    font-size: 0.8rem;
    background-color: #f0f0f0;
    border-top: 1px solid #ddd;
}

/* responsive layout for larger screens */
@media (min-width: 600px) {
    .photo-grid {
        grid-template-columns: repeat(2 1fr);
     }
}
@media (min-width: 900px) {
    .photo-grid {
        /* grid-template-columns: repeat(3, 1fr); */
        display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-auto-flow:  dense; 
    gap: 10px; /* Adjust as needed */
    }
}
