/**
 * Photo lightbox in the site's colours, layered over Lightbox2's own stylesheet.
 * Deep navy backdrop, the photo with soft rounded corners, round arrow and close
 * buttons that turn pink on hover, and a quiet "3 / 54" counter. Captions are
 * hidden: the photo titles are camera file names.
 */

/* Lightbox2 preloads its old PNG icons; they are no longer used. */
body:after { content: none; }

.lightboxOverlay { background-color: #031a2d; opacity: .97; }

.lightbox { font-family: 'Josefin Sans', Helvetica, Arial, sans-serif; }
/* Centred on the screen. Lightbox2 places the box from the top of the window, so this overrides its inline position. */
.lightbox { position: fixed !important; top: 50% !important; left: 0 !important; transform: translateY(-50%); }
.lb-outerContainer { background-color: transparent; border-radius: 6px; }
.lb-container { padding: 0; }
.lightbox .lb-image { border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }

/* Previous and next: the whole half of the photo stays clickable; the button shows where. */
.lb-nav a.lb-prev,
.lb-nav a.lb-next { position: relative; opacity: 1; background: none; }
.lb-nav a.lb-prev::before,
.lb-nav a.lb-next::before {
	content: '';
	position: absolute;
	top: 50%;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	border-radius: 50%;
	background-color: rgba(6, 38, 65, .6);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
	transition: background-color .2s ease, transform .2s ease;
}
.lb-nav a.lb-prev::before { left: 16px; }
.lb-nav a.lb-next::before { right: 16px; }
.lb-nav a.lb-prev::after,
.lb-nav a.lb-next::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 10px;
	height: 10px;
	margin-top: -5px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
}
.lb-nav a.lb-prev::after { left: 37px; transform: rotate(-135deg); }
.lb-nav a.lb-next::after { right: 37px; transform: rotate(45deg); }
.lb-nav a.lb-prev:hover::before,
.lb-nav a.lb-next:hover::before { background-color: #c91882; box-shadow: none; transform: scale(1.06); }

/* The counter, centred under the photo. */
.lb-dataContainer { padding-top: 14px; }
.lb-data { padding: 0; }
.lb-data .lb-details { float: none; width: 100%; text-align: center; }
.lb-data .lb-caption { display: none !important; }
.lb-data .lb-number {
	padding: 0;
	color: rgba(255, 255, 255, .75);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	line-height: 20px;
}

/* Close: a round button in the top right corner of the screen, shown while the lightbox is open. */
.lb-closeContainer { position: fixed; top: 14px; right: 14px; z-index: 10001; display: none; }
body.lb-disable-scrolling .lb-closeContainer { display: block; }
.lb-closeContainer .lb-close {
	position: relative;
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
	opacity: 1;
	cursor: pointer;
	transition: background-color .2s ease;
}
.lb-closeContainer .lb-close::before,
.lb-closeContainer .lb-close::after {
	content: '';
	position: absolute;
	top: 21px;
	left: 13px;
	width: 18px;
	height: 2px;
	border-radius: 1px;
	background: #fff;
	transform: rotate(45deg);
}
.lb-closeContainer .lb-close::after { transform: rotate(-45deg); }
.lb-closeContainer .lb-close:hover { background-color: #c91882; box-shadow: none; }

.lb-closeContainer .lb-close:focus-visible,
.lb-nav a:focus-visible { outline: 2px solid #7ebfd1; outline-offset: 3px; }

/* Loading: a light blue ring instead of the old spinner image. */
.lb-cancel {
	width: 36px;
	height: 36px;
	border: 3px solid rgba(126, 191, 209, .25);
	border-top-color: #7ebfd1;
	border-radius: 50%;
	background: none;
	animation: pitc-lightbox-spin .8s linear infinite;
}
@keyframes pitc-lightbox-spin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
	.lb-nav a.lb-prev::before,
	.lb-nav a.lb-next::before { width: 40px; height: 40px; margin-top: -20px; }
	.lb-nav a.lb-prev::before { left: 10px; }
	.lb-nav a.lb-next::before { right: 10px; }
	.lb-nav a.lb-prev::after { left: 26px; }
	.lb-nav a.lb-next::after { right: 26px; }
}

@media (prefers-reduced-motion: reduce) {
	.lb-cancel { animation-duration: 2s; }
	.lb-nav a.lb-prev::before,
	.lb-nav a.lb-next::before,
	.lb-closeContainer .lb-close { transition: none; }
}
