/* flylac.org – public website of the Royal Lier Aviation Club (generated by the Clubportaal) */
:root {
  --bg: #f4f6f9; --card: #fff; --text: #1b2430; --muted: #5d6b7a; --line: #dde3ea; --accent: #c40812;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12161c; --card: #1b2129; --text: #e6eaef; --muted: #9aa7b5; --line: #2c3540; --accent: #ff7a7f; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; padding: .7rem 16px; background: var(--card);
  border-bottom: 3px solid var(--accent); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.brand img { width: 88px; height: auto; display: block; }
.menu { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.menu a { color: var(--text); text-decoration: none; font-weight: 600; }
.menu a[aria-current], .menu a:hover { color: var(--accent); text-decoration: underline; }
.langs { display: flex; gap: .5rem; margin-left: auto; font-size: .9rem; }
.langs a { color: var(--muted); text-decoration: none; }
.langs a[aria-current] { color: var(--text); font-weight: 700; text-decoration: underline; }

main { max-width: 820px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { font-size: 1.8rem; line-height: 1.25; margin: .6rem 0 .4rem; }
h2 { font-size: 1.35rem; margin: 1.8rem 0 .5rem; }
h3 { font-size: 1.15rem; margin: 0 0 .2rem; }
.lead { font-size: 1.15rem; color: var(--muted); margin-top: 0; }
.text { overflow-wrap: anywhere; }
.banner { display: block; width: 100%; max-height: 460px; object-fit: contain; border-radius: 10px; margin: .4rem 0 .8rem; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 1.2rem 0; }
.gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #fff; }
.date { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.back { margin: 0; }

.news-card { display: grid; grid-template-columns: 160px 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px; margin: 0 0 14px; }
.news-card:not(:has(.news-thumb)) { grid-template-columns: 1fr; }
.news-card p { margin: .3rem 0; }
.news-card h3 a { color: var(--text); text-decoration: none; }
.news-card h3 a:hover { color: var(--accent); }
.news-thumb img { display: block; width: 160px; height: 160px; object-fit: cover; border-radius: 8px; }
.more { font-weight: 600; }
ul.pdfs { padding-left: 0; list-style: none; }
ul.pdfs li { margin: .3rem 0; }

/* viewer pages (<item>/bekijk/<n>/): photo or PDF pages with Terug, Vorige/Volgende, Downloaden */
.gallery a { cursor: zoom-in; }
.btn { display: inline-block; padding: .55rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 600; white-space: nowrap;
  background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn.back { font-size: 1.1rem; padding: .6rem 1.2rem; }
.btn.disabled { opacity: .4; }
.viewer-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  background: var(--bg); padding: 8px 0; border-bottom: 1px solid var(--line); }
.viewer-title { flex: 1 1 200px; }
.viewer-title h1 { font-size: 1.2rem; margin: 0; overflow-wrap: anywhere; }
.viewer-title .date { margin: 0; }
.viewer-nav, .viewer-dl { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.viewer-pos { color: var(--muted); white-space: nowrap; }
.viewer { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 16px 0; }
.viewer img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.viewer-bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
@media (max-width: 600px) {
  .viewer-title { flex-basis: 100%; order: 3; }
  .viewer-dl { order: 4; }
}

a.eml span { unicode-bidi: bidi-override; direction: rtl; }  /* address written backwards; site.js makes it a link */

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; text-align: center; padding: 18px 16px 30px; }
footer p { margin: .2rem 0; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand img { width: 64px; }
  .news-card { grid-template-columns: 1fr; }
  .news-thumb img { width: 100%; height: 200px; }
  h1 { font-size: 1.5rem; }
}
