body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f7f7f7;
}

header {
    background: #2d3748;
    color: #fff;
    padding: 1rem 2rem;
}

main {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px #0001;
}

.date-section {
    margin-bottom: 2.5rem;
}

.date-section h3 {
    margin-top: 0;
    color: #2d3748;
}

.gallery {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

/* Responsive gallery grid: force 4 columns at tablet, 2 columns at mobile */
@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr 1fr !important;
    }
    .gallery img {
        height: 110px !important;
    }
}

/* Gallery images */
.gallery img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 1px 6px #0002;
    cursor: pointer;
    background: #ddd;
    transition: transform 0.15s;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Lightbox Styles */
#lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.88);
    align-items: center;
    justify-content: center;
}
#lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 4px 32px #0008;
}
#lightbox:target {
    display: flex;
}
#lightbox-close {
    position: absolute;
    top: 36px;
    right: 48px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1100;
}

main > h2,
body main h2 {
    text-align: center !important;
    margin-top: 1.5em !important;
    margin-bottom: 1.1em !important;
    font-size: 1.5em !important;
    font-weight: bold !important;
}

/* ----------- NAVIGATION MENU ------------- */

/* Desktop (default) - horizontal menu */
nav#mainNav ul, nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #ed1c24;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 2px 14px #0002;
}

nav#mainNav ul li, nav ul li {
    margin: 0 0.3em;
    padding: 0;
    list-style: none;
}

nav#mainNav ul li a, nav ul li a {
    color: #fff;
    padding: 13px 13px;
    display: block;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.09em;
    transition: background 0.2s;
    border-radius: 6px;
    white-space: nowrap;
}

nav#mainNav ul li a:hover,
nav#mainNav ul li a.active,
nav ul li a:hover,
nav ul li a.active {
    background: #b50011;
}

/* Mobile - Horizontal Scroll Menu */
@media (max-width: 700px) {
    nav#mainNav ul, nav ul {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        border-radius: 0 0 12px 12px;
        scrollbar-width: none;
        gap: 0;
        margin: 0;
        padding: 0.4em 0 0.4em 0;
        position: relative;
    }
    nav#mainNav ul::-webkit-scrollbar,
    nav ul::-webkit-scrollbar {
        display: none;
    }
    nav#mainNav ul li, nav ul li {
        margin: 0 0.07em;
        min-width: 72px;
        max-width: 108px;
        text-align: center;
        box-sizing: border-box;
        flex: 0 0 auto;
    }
    nav#mainNav ul li a, nav ul li a {
        padding: 12px 8px !important;
        font-size: 1em !important;
        box-sizing: border-box;
        width: 100%;
        display: block;
        white-space: nowrap;
    }
}

/* Fading edge for horizontal scrolling nav */
.nav-fade-right {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 32px;
    pointer-events: none;
    background: linear-gradient(to right, rgba(237,28,36,0.04) 10%, #ed1c24 90%);
    z-index: 22;
    display: none;
}

@media (max-width: 700px) {
    nav#mainNav {
        position: relative;
        overflow: visible;
    }
    nav#mainNav .nav-fade-right {
        display: block;
    }
}