body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	background: #f7f7f7;
	color: #222;
}
.container {
	max-width: 860px;
	margin: 0 auto;
	padding: 16px;
}
.btn-group { display:flex; gap:8px; margin: 8px 0 16px; flex-wrap: wrap; }
.btn { display:inline-block; padding:6px 12px; border:1px solid #d0d7de; background:#fff; border-radius:6px; text-decoration:none; color:#222; }
.btn:hover { background:#f6f8fa; }
.navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	margin-bottom: 12px;
	border-bottom: 1px solid #e2e2e2;
}
.brand { font-weight: 700; font-size: 18px; }
.nav-split { display:flex; justify-content: space-between; align-items:center; gap: 12px; width: 100%; margin-left: 12px; }
.nav { display: flex; gap: 8px; align-items:center; }
.nav a.btn { text-decoration: none; }
.hero {
	background: linear-gradient(180deg,#eef6ff, #fff);
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 16px;
}
.media-vertical img, .media-vertical video { width: 100%; height: auto; margin-bottom: 8px; border-radius: 6px; }
.media-item { margin-bottom: 24px; }
.media-caption { 
	font-size: 14px; 
	color: #666; 
	font-style: italic; 
	margin-top: 4px; 
	padding: 4px 8px; 
	background: #f8f9fa; 
	border-radius: 4px; 
	border-left: 3px solid #ddd; 
}
h1 {
	font-size: 20px;
	margin: 8px 0 12px;
}
.entry-header { display:flex; justify-content: space-between; align-items:center; margin-bottom:8px; color:#333; font-size:20px; font-weight:700; }
.entry h3 { font-size: 20px; margin: 6px 0 8px; }
.entry p { font-size: 15px; line-height: 1.6; }
.entry .event { font-weight: 700; font-size: 16px; margin: 2px 0 6px; }
.entry small { color:#555; }
.date-picker {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}
.entry {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 16px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.events {
	list-style: none;
	padding: 0;
	margin: 8px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.events li {
	background: #eef6ff;
	color: #155eab;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
}
.media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 8px;
	margin-top: 8px;
}
.media-grid img, .media-grid video {
	width: 100%;
	height: auto;
	max-height: 60vh;
	object-fit: contain;
	border-radius: 6px;
	background: #000;
}

/* Ensure images and videos scale within containers on small screens */
img, video { max-width: 100%; height: auto; }

/* Vertical media list on home page already uses natural height; ensure responsiveness */
.media-vertical img, .media-vertical video { max-width: 100%; height: auto; }

/* Calendar layout (used by SPA and PHP page) */
.head { display:grid; grid-template-columns: repeat(7,1fr); gap:6px; margin: 8px 0; }
.head div { text-align:center; font-weight:700; }
.cal { display:grid; grid-template-columns: repeat(7,1fr); gap:6px; }
.cell { background:#fff; border:1px solid #e2e2e2; border-radius:6px; min-height:80px; padding:8px; }
.cell a { text-decoration:none; color:#155eab; display:inline-block; padding:2px 4px; border-radius:4px; }
.cell a:hover { background:#eef6ff; }
.dim { color:#888; }
.count { display:inline-block; background:#155eab; color:#fff; border-radius:10px; padding:2px 6px; font-size:11px; }

