/* ================================================
   redbull.css — add to assets/css/
   ================================================ */

/* Inline meta tags in the banner */
ul.cs-meta {
	list-style: none;
	padding: 0;
	margin: 1.5em 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0 2em;
}

ul.cs-meta li {
	font-size: 0.75em;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.75;
	padding: 0;
	margin: 0;
}

ul.cs-meta li span {
	opacity: 0.5;
	margin-right: 0.5em;
}

/* Numbered chapter layout for section #three */
.cs-chapter {
	display: flex;
	align-items: flex-start;
	gap: 3em;
	padding: 1em 0;
}

.cs-chapter-num {
	font-size: 3.5em;
	font-weight: 700;
	line-height: 1;
	opacity: 0.08;
	letter-spacing: -0.02em;
	flex-shrink: 0;
	width: 1.4em;
	text-align: right;
	padding-top: 0.1em;
}

.cs-chapter-body {
	flex: 1;
}

.cs-chapter-body header.major {
	margin-bottom: 0.75em;
}

.cs-chapter-body header.major h3 {
	margin-bottom: 0;
}

#three hr {
	border: none;
	border-top: 1px solid rgba(255,255,255,0.07);
	margin: 0.5em 0;
}

/* ================================================
   Lightbox
   ================================================ */

#lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

#lightbox.is-open {
	pointer-events: all;
	opacity: 1;
}

#lb-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
}

#lb-content {
	position: relative;
	z-index: 1;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1em;
	transform: scale(0.96);
	transition: transform 0.3s ease;
}

#lightbox.is-open #lb-content {
	transform: scale(1);
}

#lb-img {
	display: block;
	max-width: 90vw;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 2px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

#lb-caption {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.78em;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0;
	text-align: center;
}

/* Lightbox buttons — force perfect circles, override theme styles */
#lb-close,
#lb-prev,
#lb-next {
	box-sizing: content-box !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 2rem !important;
	height: 2rem !important;
	min-width: 0 !important;
	min-height: 0 !important;
	border-radius: 50% !important;
	border: none !important;
	background: #fff !important;
	color: #000 !important;
	font-size: 0.9rem !important;
	line-height: 1 !important;
	cursor: pointer;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	opacity: 0.3;
	transition: opacity 0.2s;
	z-index: 2;
	position: fixed;
}

#lb-close { top: 1.5rem; right: 1.5rem; }
#lb-prev  { top: 50%; left: 1.5rem;  transform: translateY(-50%); }
#lb-next  { top: 50%; right: 1.5rem; transform: translateY(-50%); }

#lb-close:hover,
#lb-prev:hover,
#lb-next:hover { opacity: 0.55; }

/* ================================================
   Responsive
   ================================================ */
@media screen and (max-width: 736px) {
	.cs-chapter {
		flex-direction: column;
		gap: 0.5em;
	}
	.cs-chapter-num {
		font-size: 2em;
		width: auto;
		text-align: left;
	}
	ul.cs-meta {
		flex-direction: column;
		gap: 0.4em;
	}
	#lb-prev { left: 0.5rem; }
	#lb-next { right: 0.5rem; }
}
