/* --- CSS Variables --- */
:root {
    --bg-color: #121212;
    --header-bg: #1f1f1f;
    --content-box-bg: #1e1e1e;
    --border-color: #333;
    --text-color: #e0e0e0;
    --text-bright: #f5f5f5;
    --link-color: #64b5f6;
    --notice-bg: #4e342e;
    --notice-border: #ff7043;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    /* The linear-gradient creates a dark overlay for readability */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keeps the background in place on scroll */
    color: var(--text-color);
}

header {
    background: var(--header-bg);
    color: var(--text-bright);
    padding: 2rem 1rem;
    border-bottom: 4px solid black;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

header h1 {
    font-size: 3.2rem; /* Made title larger */
    font-style: italic;
    margin: 0;
}

.subtitle {
    margin: 0.5rem 0 0;
    font-weight: 300;
    opacity: 0.9;
}

.logo {
    max-height: 90px;
    margin-bottom: 1rem;
}

nav {
    margin-top: 1.5rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem; /* Adds space between nav items */
}

nav a {
    color: var(--text-bright);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
    display: block; /* Makes the whole area clickable */
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

main {
    padding: 2rem 1rem 4rem; /* Added more bottom padding */
    max-width: 800px;
    margin: 0 auto;
}

.content-box {
    background: var(--content-box-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.notice-box {
    background-color: var(--notice-bg);
    border: 1px solid var(--notice-border);
    color: var(--text-bright);
}

.content-box h2 {
    margin-top: 0;
    color: var(--text-bright);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

ul {
    list-style: none;
    padding: 0;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

/* --- Map Styles --- */
.map-container iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px; /* Match content-box radius */
    border: 1px solid var(--border-color);
}

/* --- Gallery Styles --- */
.gallery-grid {
    display: grid;
    /* Creates responsive columns: they will be at least 250px wide, but can grow to fill space */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-item {
    background-color: var(--header-bg); /* Use a slightly different bg for contrast */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden; /* Ensures the image corners are rounded */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block; /* Removes bottom space under the image */
}

.gallery-caption {
    padding: 1rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-bright);
}

/* Style for the current page link in navigation */
nav a[aria-current="page"] {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    background: var(--header-bg);
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 600px) {
    header h1 {
        font-size: 2.5rem; /* Reduce heading size on small screens */
    }

    nav ul {
        flex-direction: column; /* Stack nav items vertically */
        align-items: center;
        width: 100%;
    }

    nav li {
        width: 100%;
        text-align: center;
    }
}