/* Brentwood lightbox — overlay shown when an opt-in image is clicked.
   Tiny, self-contained (no external library). Markup is built by bw-lightbox.js;
   these rules do nothing on pages without a lightbox image. */

.bw-lb-on { cursor: zoom-in; }

.bw-lb-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5rem;
	background: rgba(10, 12, 16, .92);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
}
.bw-lb-overlay.is-open { opacity: 1; visibility: visible; }

.bw-lb-fig {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 92vw;
	max-height: 92vh;
}
.bw-lb-img {
	max-width: 92vw;
	max-height: 86vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 2px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
	background: #1b1e24;
}
.bw-lb-cap {
	margin-top: .8rem;
	max-width: 64ch;
	color: #fff;
	text-align: center;
	font-size: .95rem;
	line-height: 1.4;
}

.bw-lb-btn {
	position: absolute;
	background: none;
	border: 0;
	padding: .25rem .75rem;
	color: #fff;
	cursor: pointer;
	opacity: .8;
	line-height: 1;
	transition: opacity .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.bw-lb-btn:hover,
.bw-lb-btn:focus-visible { opacity: 1; }

.bw-lb-close { top: .9rem; right: 1.1rem; font-size: 2.4rem; }
.bw-lb-prev,
.bw-lb-next { top: 50%; transform: translateY(-50%); font-size: 3rem; }
.bw-lb-prev { left: .4rem; }
.bw-lb-next { right: .4rem; }

.bw-lb-count {
	position: absolute;
	bottom: 1rem;
	left: 0;
	right: 0;
	text-align: center;
	color: #fff;
	opacity: .65;
	font-size: .85rem;
}

@media (max-width: 600px) {
	.bw-lb-overlay { padding: 1rem; }
	.bw-lb-prev,
	.bw-lb-next { font-size: 2.2rem; }
}
