body {
	margin: 0;
	font-family:
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		sans-serif;
	background-color: #ffffff;
	color: #111827;
}

header {
	border-bottom: 1px solid #e5e7eb;
	padding: 1rem 1.5rem;
}

main {
	max-width: 48rem;
	margin: 0 auto;
	padding: 2.5rem 1.5rem 3rem;
}

a {
	color: #4f46e5;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1 {
	font-size: 2.25rem;
	font-weight: 800;
	color: #4338ca;
	margin-bottom: 0.75rem;
}

h2 {
	margin-top: 2rem;
	margin-bottom: 0.5rem;
	font-size: 1.5rem;
	font-weight: 700;
}

p {
	line-height: 1.7;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

.meta {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #6b7280;
	margin-bottom: 1rem;
}

footer.blog-footer {
	border-top: 1px solid #e5e7eb;
	margin-top: 2rem;
	padding: 1.5rem 1.5rem 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.875rem;
	color: #6b7280;
}

footer.blog-footer img {
	height: 32px;
	width: auto;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.75rem;
	margin-top: 0.75rem;
	margin-bottom: 0.75rem;
}

.gallery-grid figure {
	margin: 0;
	text-align: center;
}

.gallery-image {
	width: 100%;
	height: auto;
	cursor: pointer;
	border-radius: 0.375rem;
	border: 1px solid #e5e7eb;
	background-color: #f9fafb;
}

.lightbox {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.75);
	z-index: 50;
}

.lightbox.hidden {
	display: none;
}

.lightbox img {
	max-width: 90vw;
	max-height: 90vh;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
	border-radius: 0.5rem;
	background-color: #ffffff;
}

.gallery-grid figcaption {
	margin-top: 0.25rem;
	font-size: 0.75rem;
	color: #4b5563;
}

/* Vertical video (e.g. YouTube Shorts), phone-shaped 9:16.
   Use aspect-ratio — padding % height is wrong here because it keys off main’s width, not this box. */
.video-embed--portrait {
	position: relative;
	width: min(100%, 16rem);
	margin: 1.25rem auto;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	border-radius: 0.5rem;
	background: #111827;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.video-embed--portrait iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
