:root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; color: #1c2730; background: #f5f7f6; }
main { max-width: 1120px; margin: 0 auto; padding: 24px 16px 48px; }
header { position: sticky; top: 0; z-index: 100; color: #fff; background: #176a48; box-shadow: 0 2px 8px rgba(9, 48, 31, .22); }
header > div { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; }
h1 { margin: 0; color: #fff; font-size: clamp(1.25rem, 3vw, 1.8rem); }
h2 { margin: 0 0 14px; font-size: 1.25rem; }
p { line-height: 1.5; }
a { color: #0d5c3d; }
nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
nav a { display: inline-block; border: 1px solid rgba(255, 255, 255, .55); border-radius: 4px; padding: 8px 11px; color: #fff; background: transparent; text-decoration: none; font: inherit; }
nav a:hover { background: rgba(255, 255, 255, .12); }
nav a.secondary { color: #fff; background: transparent; }
.nav-form { margin: 0; }
.nav-button { border-color: rgba(255, 255, 255, .55); padding: 8px 11px; color: #fff; background: transparent; }
.nav-button:hover { background: rgba(255, 255, 255, .12); }
button, .button { display: inline-block; border: 1px solid #176a48; border-radius: 4px; padding: 9px 13px; color: #fff; background: #176a48; text-decoration: none; font: inherit; cursor: pointer; }
.button.secondary { color: #176a48; background: #fff; }
.intro { margin: 0 0 24px; color: #47534d; }
.notice { margin: 16px 0; padding: 12px 14px; border-radius: 4px; background: #e7f3ec; border-left: 4px solid #176a48; }
.notice.error { background: #f9e8e7; border-left-color: #a13228; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.event-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.event-card { overflow: hidden; color: inherit; background: #fff; border: 1px solid #d8dfda; border-radius: 5px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.event-card:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(21, 48, 36, .14); }
.event-card img, .event-card-placeholder { display: block; width: 100%; height: 175px; object-fit: cover; background: #e9edeb; }
.event-card-placeholder { display: grid; place-items: center; color: #617068; }
.event-card-body { padding: 14px; }
.event-card-body h2 { margin: 0 0 7px; font-size: 1.15rem; }
.event-card-body p { margin: 0; }
.gallery-back { display: inline-block; margin: 0 0 18px; font-weight: 700; }
.photo { margin: 0; overflow: hidden; border: 1px solid #d8dfda; background: #fff; border-radius: 5px; }
.photo a { display: block; background: #e9edeb; }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption { padding: 10px 11px; font-size: .92rem; }
.lightbox-open { overflow: hidden; }
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: minmax(46px, 1fr) minmax(0, 1100px) minmax(46px, 1fr); align-items: center; background: rgba(0, 0, 0, .9); padding: 20px; }
.lightbox-figure { grid-column: 2; margin: 0; text-align: center; color: #fff; }
.lightbox-figure img { display: block; max-width: 100%; max-height: calc(100vh - 100px); margin: 0 auto; object-fit: contain; }
.lightbox-figure figcaption { margin-top: 12px; line-height: 1.4; }
.lightbox-close, .lightbox-nav { position: absolute; z-index: 1; border: 0; color: #fff; background: rgba(0, 0, 0, .38); font: inherit; cursor: pointer; }
.lightbox-close { top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; padding: 0; border-radius: 4px; font-size: 3rem; line-height: 1; }
.lightbox-nav.previous { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox-watermark { position: absolute; left: 18px; bottom: 18px; z-index: 1; width: clamp(72px, 11vw, 130px); height: auto; opacity: .58; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); pointer-events: none; }
.muted { color: #617068; }
.empty { padding: 28px; text-align: center; background: #fff; border: 1px solid #d8dfda; border-radius: 5px; }
.form-card, .admin-card { max-width: 680px; padding: 20px; background: #fff; border: 1px solid #d8dfda; border-radius: 5px; }
label { display: block; margin: 15px 0 6px; font-weight: 700; }
input, textarea, select { width: 100%; padding: 10px; border: 1px solid #aebbb3; border-radius: 4px; font: inherit; }
textarea { min-height: 84px; resize: vertical; }
.help { margin: 5px 0 0; color: #617068; font-size: .9rem; }
.form-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.admin-list { display: grid; gap: 18px; }
.admin-item { display: grid; grid-template-columns: minmax(160px, 250px) 1fr; gap: 16px; padding: 14px; background: #fff; border: 1px solid #d8dfda; border-radius: 5px; }
.admin-item img { max-width: 100%; width: 250px; max-height: 220px; object-fit: contain; background: #edf1ef; }
.admin-item p { margin: 0 0 9px; }
.event-assignment { margin-top: 22px; }
.event-list { display: grid; gap: 14px; }
.event-admin-item { display: flex; justify-content: space-between; gap: 18px; padding: 16px; background: #fff; border: 1px solid #d8dfda; border-radius: 5px; }
.event-admin-item h3 { margin: 0 0 8px; font-size: 1.08rem; }
.event-admin-item p { margin: 0 0 8px; }
.event-status { display: inline-block; margin-left: 6px; padding: 3px 6px; color: #075232; background: #e7f3ec; border-radius: 3px; font-size: .75rem; font-weight: 400; vertical-align: middle; }
.inline { display: inline; }
.danger { background: #a13228; border-color: #a13228; }
footer { max-width: 1120px; margin: 0 auto; padding: 16px; color: #617068; font-size: .85rem; }
@media (max-width: 620px) { header > div { align-items: flex-start; flex-wrap: wrap; } nav { width: 100%; margin-left: 0; } .admin-item { grid-template-columns: 1fr; } .admin-item img { width: 100%; } .event-admin-item { display: block; } .lightbox { grid-template-columns: 1fr; padding: 12px 52px; } .lightbox-figure { grid-column: 1; } .lightbox-nav { width: 40px; height: 58px; font-size: 2.5rem; } .lightbox-nav.previous { left: 4px; } .lightbox-nav.next { right: 4px; } .lightbox-close { top: 8px; right: 8px; } .lightbox-watermark { left: 10px; bottom: 10px; width: 76px; } }
