:root {
    --ink: #17221c;
    --muted: #647068;
    --green: #275d3a;
    --green-dark: #173f27;
    --cream: #f6f3e9;
    --card: #ffffff;
    --line: #d8ddd9;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Arial, Helvetica, sans-serif; }
button, select { font: inherit; }

.environment-banner {
    padding: 6px;
    border: 2px solid #b00000;
    color: #b00000;
    background: #ffeb3b;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
}

.site-header {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 136px;
    padding: 28px max(24px, calc((100% - 1180px) / 2));
    color: #fff;
    background: linear-gradient(120deg, var(--green-dark), var(--green));
}
.site-header h1 { margin: 3px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: normal; }
.home-link { display: grid; justify-items: center; gap: 3px; color: #fff; font-size: .8rem; text-decoration: none; }
.home-link img { width: 34px; height: auto; }
.eyebrow { margin: 0; font-size: .78rem; font-weight: bold; letter-spacing: .13em; text-transform: uppercase; }
main { max-width: 1180px; margin: 0 auto; padding: 28px 24px 64px; }

.collection-nav { display: flex; gap: 10px; margin-bottom: 32px; overflow-x: auto; }
.collection-nav a { flex: 0 0 auto; min-height: 44px; padding: 12px 18px; border: 1px solid var(--green); border-radius: 999px; color: var(--green-dark); font-weight: bold; text-decoration: none; }
.collection-nav a.is-active { color: #fff; background: var(--green); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-heading h2 { margin: 4px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.85rem; }
.year-select { display: flex; align-items: center; gap: 10px; font-weight: bold; }
.year-select select { min-width: 110px; min-height: 44px; padding: 8px 34px 8px 12px; border: 1px solid #9aa79e; border-radius: 8px; background: #fff; }

.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.event-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--card); box-shadow: 0 4px 14px rgba(20, 48, 30, .08); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.event-card:hover, .event-card:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(20, 48, 30, .15); }
.event-card img { display: block; width: 100%; height: 170px; object-fit: cover; background: #e5e8e5; }
.event-card-copy { display: grid; gap: 5px; padding: 16px; }
.event-card-copy strong { font-size: 1.08rem; }
.event-card-copy small, .photo-help { color: var(--muted); }

.photo-section { margin-top: 12px; }
.back-link { display: inline-block; margin-bottom: 10px; color: var(--green); font-weight: bold; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.photo-card { aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: #dfe4e0; box-shadow: 0 3px 10px rgba(20, 48, 30, .13); cursor: pointer; }
.photo-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.photo-card:hover img, .photo-card:focus-visible img { transform: scale(1.04); }
.empty-state { padding: 28px; border: 1px dashed #a9b4ac; border-radius: 10px; background: #fff; text-align: center; }

.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 10000; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; background: rgba(7, 12, 8, .95); }
.lightbox figure { display: grid; justify-items: center; gap: 10px; margin: 56px 8px 20px; }
.lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 105px); object-fit: contain; }
.lightbox figcaption { color: #fff; }
.lightbox button { border: 0; color: #fff; background: transparent; cursor: pointer; }
.lightbox-prev, .lightbox-next { min-width: 48px; min-height: 64px; font-size: 2.2rem; }
.lightbox-close { position: absolute; top: 8px; right: 14px; width: 48px; height: 48px; font-size: 2.5rem; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 620px) {
    .site-header { min-height: 112px; padding: 20px 16px; }
    .site-header h1 { font-size: 1.9rem; }
    main { padding: 20px 14px 48px; }
    .collection-nav { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
    .collection-nav a { display: grid; place-items: center; padding: 10px 8px; text-align: center; }
    .section-heading { align-items: stretch; flex-direction: column; gap: 14px; }
    .year-select { justify-content: space-between; }
    .year-select select { flex: 1; }
    .event-grid { grid-template-columns: 1fr; }
    .event-card { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: center; }
    .event-card img { height: 100px; }
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; }
    .photo-help { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .event-card, .photo-card img { transition: none; }
}

/* Phase 2: approved bold-button site navigation; gallery functions unchanged. */
.site-navigation { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; max-width:1180px; margin:14px auto 0; padding:10px; border:1px solid #b7c5b3; border-radius:8px; background:#e5ebdd; }
.site-navigation a { display:flex; justify-content:center; align-items:center; box-sizing:border-box; min-height:48px; padding:8px; border:1px solid #aebaa9; border-radius:6px; background:#fff; color:#150083; font:700 16px/1.2 Arial,Helvetica,sans-serif; text-align:center; text-decoration:none; overflow-wrap:anywhere; }
.site-navigation a[aria-current="page"] { grid-column:1/-1; grid-row:1; background:#155b37; color:#fff; border-color:#155b37; }
.site-navigation a:hover:not([aria-current="page"]) { background:#f0f4ee; border-color:#155b37; }
.site-navigation a:focus-visible { outline:3px solid #d5a93f; outline-offset:2px; }
@media(max-width:900px) { .site-navigation { grid-template-columns:repeat(2,minmax(0,1fr)); margin:10px 14px 0; } }
