:root {
    color-scheme: light;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #172923;
    background: #f5f7f3;
    --ink: #172923;
    --muted: #4e645b;
    --line: #d4ded7;
    --green: #24604c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
.site-header, footer { padding: 1.05rem max(5vw, calc((100vw - 75rem) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.site-header { background: #142e26; color: #fafcf8; }
.site-header a { color: inherit; text-decoration: none; }
.site-header nav { display: flex; gap: clamp(.8rem, 3vw, 2rem); }
.site-header nav a:hover, .brand:hover { text-decoration: underline; }
.brand { display: block; flex: 0 1 13rem; min-width: 0; }
.brand img { display: block; width: 100%; height: auto; }
main { width: min(90%, 75rem); margin: auto; min-height: 75vh; padding: 2rem 0 4rem; }
.hero { padding: clamp(2rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.hero.compact { padding: 1.8rem 0; }
h1, h2, h3 { margin: 0; line-height: 1.08; overflow-wrap: anywhere; }
h1 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(2.7rem, 8.5vw, 6.5rem); letter-spacing: -.06em; }
.compact h1, .narrow h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
h2 { font: 400 clamp(1.65rem, 3vw, 2.35rem) Georgia, serif; }
.hero p, .muted, time { color: var(--muted); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); margin: .9rem 0 0; }
.hero .eyebrow { margin: 0 0 .6rem; font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.section-title, .toolbar, .actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.event-grid, .photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.event-card { display: block; color: var(--ink); text-decoration: none; border: 1px solid var(--line); background: white; border-radius: .8rem; overflow: hidden; }
.event-card:hover h3 { text-decoration: underline; }
.event-card img, .photo img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; background: #e1ece3; }
.event-card div { padding: 1rem; }
.event-card h3 { margin: .4rem 0; }
.event-card span, time { font-size: .9rem; }
.empty, .panel { background: #fff; border: 1px solid var(--line); border-radius: .9rem; padding: clamp(1rem, 4vw, 2rem); margin-bottom: 1rem; }
.empty { text-align: center; padding-block: 3rem; }
.empty span { color: var(--green); font-size: 2rem; display: block; margin-bottom: .65rem; }
.empty p { margin-bottom: 0; color: var(--muted); }
.narrow { max-width: 32rem; margin: 2rem auto; }
.narrow form, #uploads { margin-top: 1.2rem; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
input { font: inherit; color: inherit; width: 100%; border: 1px solid #8ca398; background: #fbfdfa; border-radius: .4rem; padding: .65rem; }
input[type=file] { border-style: dashed; padding: 1rem; }
button { background: var(--green); color: white; font: inherit; font-weight: 600; padding: .65rem 1rem; border: 1px solid transparent; border-radius: .4rem; cursor: pointer; }
button:hover { background: #194435; }
button:disabled { opacity: .6; cursor: wait; }
button.secondary { background: transparent; color: var(--ink); border-color: #8ca398; }
:focus-visible { outline: 3px solid #a56d20; outline-offset: 3px; }
.narrow form label { margin-bottom: 1rem; }
.create { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; gap: 1rem; margin-top: 1rem; }
.event-row { display: grid; gap: .25rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.event-row span { color: var(--muted); }
.error { background: #ffe5df; color: #70251e; padding: 1rem; border-radius: .5rem; }
progress { width: 100%; margin-top: 1rem; accent-color: var(--green); }
.photo { display: block; border-radius: .6rem; overflow: hidden; }
dialog { background: #142e26; color: white; border: 0; border-radius: .6rem; width: min(94vw, 68rem); padding: .7rem; }
dialog::backdrop { background: #111c18e8; }
dialog img { display: block; width: 100%; height: min(72vh, 55rem); object-fit: contain; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
footer { color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 36rem) {
    .create { grid-template-columns: 1fr; }
    .search { width: 100%; }
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
}
/* Event directory and administration */
:root {
    color: #102536;
    background: #f3f6fa;
    --ink: #102536;
    --muted: #4c6070;
    --line: #d8e1eb;
    --green: #15577b;
}
.site-header { background: #071523; border-bottom: 1px solid #284456; }
.brand { flex-basis: clamp(9rem, 22vw, 12rem); }
.site-header nav a { font-weight: 600; color: #f1f7fc; }
.site-header nav a:last-child { border: 1px solid #516678; padding: .45rem .85rem; border-radius: .5rem; }
.site-header nav { align-items: center; }
.hero-home {
    margin-top: .1rem;
    padding: clamp(2.7rem, 8vw, 6rem) clamp(1.3rem, 5vw, 4.1rem);
    border-radius: 1.15rem;
    color: #f8fcff;
    background: radial-gradient(ellipse at 95% 0%, #176484 0%, transparent 53%), linear-gradient(120deg, #0b1a2a, #102941);
    border: 1px solid #23435a;
}
.hero-home h1 { font-family: inherit; font-size: clamp(2.8rem, 8vw, 6.4rem); font-weight: 730; letter-spacing: -.075em; }
.hero-home p { color: #d5e6f2; max-width: 35rem; }
.hero.compact h1 { font-family: inherit; font-weight: 680; letter-spacing: -.045em; }
.section-title h2, .panel h2 { font-family: inherit; font-weight: 680; letter-spacing: -.035em; }
.directory-search { margin-bottom: 1.7rem; max-width: 24rem; }
.event-section { margin: 0 0 2.5rem; }
.upcoming-list { display: grid; gap: .7rem; }
.upcoming-card {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
    color: var(--ink); text-decoration: none; padding: 1rem;
    border: 1px solid var(--line); background: white; border-radius: .8rem;
}
.upcoming-card:hover, .event-card:hover { border-color: #648ca5; }
.upcoming-card h3 { font-size: 1.15rem; }
.upcoming-card p { margin: .35rem 0 0; color: var(--muted); }
.event-date { display: grid; min-width: 3.7rem; gap: .12rem; padding: .45rem .55rem; background: #e8f3fa; color: #184d69; border-radius: .55rem; text-align: center; }
.event-date span { text-transform: uppercase; font-size: .82rem; font-weight: 700; }
.event-date strong { font-size: 1.4rem; line-height: 1; }
.event-link { color: var(--green); font-size: .9rem; font-weight: 630; }
.empty-compact { text-align: left; padding: 1.1rem; }
.empty-compact p { margin: 0; }
.event-card, .upcoming-card, .panel { box-shadow: 0 3px 12px #0d253708; }
.event-card img { aspect-ratio: 16 / 10; }
.event-card span { color: var(--muted); }
input { background: #fbfdff; border-color: #8296a6; }
button:hover { background: #104360; }
.notice { background: #e4f3ed; padding: .8rem 1rem; border-radius: .5rem; }
.danger-panel { border-color: #e9c6c9; }
.check { display: flex; align-items: flex-start; gap: .55rem; margin-bottom: .85rem; }
.check input { width: 1.1rem; height: 1.1rem; margin: .1rem 0 0; accent-color: #912531; flex: none; }
button.danger { background: #912531; }
button.danger:hover { background: #6e1924; }
@media (max-width: 36rem) {
    .upcoming-card { grid-template-columns: auto 1fr; }
    .event-link { grid-column: 2; }
    .site-header nav a:last-child { padding: .4rem .55rem; }
}

.gallery-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.gallery-tools:empty { display: none; }
.viewer-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .65rem; margin: .65rem 0; }
.viewer-share a { color: white; text-underline-offset: .2em; padding: .65rem; }
.viewer-share input, .gallery-tools input { max-width: min(24rem, 75vw); }
dialog img { height: min(62vh, 50rem); }

:root {
    background: #f6f6f1;
    --ink: #11232a;
    --muted: #506164;
    --line: #dce2de;
    --green: #15505b;
}
.site-header {
    background: #0b191e;
    border-color: #2e4043;
    padding-block: .35rem;
}
.brand { flex-basis: clamp(7.75rem, 17vw, 9.75rem); }
.site-header nav a:last-child { border-color: #526364; }
main { width: min(92%, 75rem); }
.hero-home {
    position: relative;
    display: grid;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(24rem, 56vw, 37rem);
    align-items: center;
    margin: 0 0 clamp(2.15rem, 5vw, 3.8rem);
    padding: clamp(1.6rem, 6vw, 5rem);
    border-radius: .8rem;
    border: none;
    background: radial-gradient(ellipse at 84% 12%, #26545b, transparent 55%), #0e242b;
}
.hero-home.has-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #091a20 4%, #091a20ed 31%, #091a2063 66%, #091a2020), linear-gradient(0deg, #091a20b3, transparent 26%);
}
.hero-cover { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }
.hero-home h1 { font: 400 clamp(4rem, 11vw, 9.4rem)/.84 Georgia, serif; letter-spacing: -.071em; }
.hero-home p { margin: 1.5rem 0 0; color: #edf4f3; max-width: 24rem; line-height: 1.5; }
.hero-button { display: inline-block; margin-top: 1.45rem; border-radius: .35rem; background: #c6f2ed; color: #102d32; padding: .76rem 1.02rem; font-weight: 700; text-decoration: none; }
.hero-button:hover { background: #e2fffb; }
.cover-credit { position: absolute; right: clamp(1rem, 4vw, 2rem); bottom: 1.25rem; max-width: min(38%, 24rem); color: white; font-size: .9rem; text-align: right; overflow-wrap: anywhere; }
.event-section .section-title { padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.section-title h2 { font: 400 clamp(2rem, 4vw, 3rem)/1 Georgia, serif; letter-spacing: -.045em; }
.event-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.event-card { border-radius: .6rem; }
.event-card h3, .upcoming-card h3 { font-size: 1.18rem; }
.event-date { background: #e3efec; color: #224d50; }
.photo-grid { gap: clamp(.48rem, 1vw, .85rem); }
.photo { border-radius: .35rem; }
.photo:hover { outline: 2px solid #326b73; outline-offset: 2px; }
dialog { background: #0b191e; }
.viewer-bar button, .viewer-share button { background: #1e4349; }
footer { background: #eaece6; }
@media (max-width: 40rem) {
    .hero-home.has-cover { padding-bottom: 4rem; }
    .hero-home.has-cover::before { background: linear-gradient(90deg, #091a20ec, #091a2075 74%, #091a2055), linear-gradient(0deg, #091a20bc, transparent 45%); }
    .cover-credit { max-width: 75%; }
}

.download-all { display: inline-block; background: var(--green); color: white; border-radius: .4rem; padding: .67rem 1rem; font-weight: 700; text-decoration: none; }
.download-all:hover { background: #103c45; }
.admin-photo { background: #f6f8f7; border: 1px solid var(--line); border-radius: .55rem; overflow: hidden; }
.admin-photo details { padding: .6rem; }
.admin-photo summary { color: #862631; cursor: pointer; }
.admin-photo form { margin-top: .5rem; }

.bulk-photos { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; padding: .65rem .75rem; margin: .85rem 0; background: #eef3f1; border: 1px solid var(--line); border-radius: .5rem; }
.bulk-photos .check, .bulk-photos p { margin: 0; }
.bulk-photos button:disabled { cursor: default; }
.admin-photo .photo-selection { margin: 0; padding: .6rem; }
