* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto; /* Centers the content */
    background-color: #f0e4dc; /* Sets the background color */
}

a {
    color: #0f1b23;
    text-decoration: underline; /* Ensures all links are underlined */
}

/* Style for hover state */
a:hover {
    color: #0056b3; /* Darker blue on hover */
    text-decoration: none; /* Optionally remove underline on hover */
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

header h1 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    color: #222;
}

/* Navigation Menu */
nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    font-weight: bold;
    color: #333;
    text-transform: uppercase; /* Optional: styles nav items in uppercase */
}

/* Main content area */
main {
    padding: 20px 0;
}

section {
    margin-bottom: 40px;
}

/* Styling for section headings */
section h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1a1a1a; /* Slightly darker than the default */
    font-weight: 800; /* Makes it slightly bolder */
    letter-spacing: 0.5px; /* Enhances readability */
    background-color: rgba(0, 0, 0, 0.05); /* Light subtle background */
    padding: 6px 12px; /* Adds some space around the text */
    border-radius: 5px; /* Soft rounded corners for aesthetic appeal */
    display: inline-block; /* Ensures background fits the text width */
}


/* ✅ Strictly enforce 2 rows and 4 columns */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Ensures 4 images per row */
    grid-template-rows: repeat(2, auto); /* Ensures exactly 2 rows */
    gap: 10px; /* Space between images */
    justify-content: center; /* Centers the grid */
    max-width: 800px; /* Prevents stretching */
    margin: 0 auto; /* Center alignment */
}

/* ✅ Ensure images scale correctly */
.photo-grid img {
    width: 100%; /* Ensures images take full width of the grid cell */
    height: 100%; /* Ensures uniform height */
    object-fit: cover; /* Prevents distortion and ensures images fit neatly */
    border-radius: 6px; /* Optional: Soft rounded corners */
}

/* ✅ Responsive Fix for Smaller Screens */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr); /* Switch to 2 columns for mobile */
        grid-template-rows: repeat(4, auto); /* Ensures proper stacking */
    }
}

/* Separator */
.separator {
    height: 4px; /* Adjust the thickness of the bar */
    background-color: #333; /* Adjust the color to match your site's design */
    width: 90%; /* Adjust the width as needed */
    margin: 20px auto; /* Centers the bar and adds vertical space above and below */
}

/* Footer */
footer {
    text-align: center;
    padding: 6px;
    font-size: 0.875rem;
    color: #666;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        padding-top: 20px;
        justify-content: center;
    }

    nav ul li {
        display: block;
    }

    /* Adjust the image grid to 2 columns for smaller screens */
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* Style for navigation links */
nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
    padding: 10px; /* Adds padding around the nav bar */
    background-color: rgba(0, 0, 0, 0.05); /* Slightly darker background */
    border-radius: 8px; /* Soft rounded corners */
}

/* Style for each navigation button */
nav ul li a {
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    padding: 8px 16px; /* Creates a button-like effect */
    background-color: rgba(0, 0, 0, 0.1); /* Slightly darker than the nav background */
    border-radius: 5px; /* Soft rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effect */
}

/* Hover effect */
nav ul li a:hover {
    background-color: rgba(0, 0, 0, 0.2); /* Slightly darker on hover */
    color: #000; /* Darker text color for contrast */
    text-decoration: none; /* Remove underline on hover */
}
