/* TNMS Mission Lightbox */

.tnms-lb-trigger {
	cursor: zoom-in;
}

.tnms-lb-trigger:focus-visible {
	outline: 2px solid #FF0C01;
	outline-offset: 2px;
}

/* Keep floating badges (e.g. reCAPTCHA) from sitting on top of the photo */
.tnms-lb-open .grecaptcha-badge {
	visibility: hidden;
}

/* Caption bar along the bottom of the viewer */
.pswp .tnms-lb-caption {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	box-sizing: border-box;
	padding: 18px 20px 16px;
	color: #fff;
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
	pointer-events: none;
}

.pswp .tnms-lb-caption:empty {
	display: none;
}

/* Phones: the page is shown zoomed out, so scale the buttons, counter and
   caption back up to a normal, tappable size. */
.pswp.tnms-ui-scaled .pswp__top-bar {
	width: calc(100% / var(--tnms-ui, 1));
	transform: scale(var(--tnms-ui, 1));
	transform-origin: 0 0;
}

.pswp.tnms-ui-scaled .tnms-lb-caption {
	width: calc(100% / var(--tnms-ui, 1));
	transform: scale(var(--tnms-ui, 1));
	transform-origin: 0 100%;
}
