/* REDWatch lightbox overlay */
.rw-lb-open { overflow: hidden; }

.rw-lb-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba( 0, 0, 0, 0.85 );
	padding: 24px;
	animation: rw-lb-fade 0.15s ease-out;
}
@media ( prefers-reduced-motion: reduce ) {
	.rw-lb-overlay { animation: none; }
}
@keyframes rw-lb-fade { from { opacity: 0; } to { opacity: 1; } }

.rw-lb-fig {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	text-align: center;
}
.rw-lb-img {
	max-width: 100%;
	max-height: 85vh;
	height: auto;
	width: auto;
	background: #fff;
	box-shadow: 0 4px 30px rgba( 0, 0, 0, 0.5 );
}
.rw-lb-cap {
	color: #eee;
	font-size: 13px;
	margin-top: 10px;
	max-width: 60ch;
	margin-left: auto;
	margin-right: auto;
}
.rw-lb-close {
	position: absolute;
	top: 12px;
	right: 16px;
	width: 40px;
	height: 40px;
	font-size: 28px;
	line-height: 1;
	color: #fff;
	background: rgba( 0, 0, 0, 0.4 );
	border: 1px solid rgba( 255, 255, 255, 0.4 );
	border-radius: 4px;
	cursor: pointer;
}
.rw-lb-close:hover { background: #8B0000; }
.rw-lb-close:focus-visible { outline: 2px solid #ffcc00; outline-offset: 2px; }

/* hint that content images are clickable */
.entry-content a.rw-lightbox { display: inline-block; cursor: zoom-in; }
.entry-content a.rw-lightbox img { display: block; }
