/*
 * Magnific Popup skin "sc-lightbox": the look of the old fancyBox 2.1.5 lightbox of the site.
 * White frame (#f9f9f9, 15px padding, 4px radius, drop shadow) around the photo, dark overlay,
 * round close button on the top right corner of the frame, "Afbeelding 1 van 3" below the photo.
 * The frame is drawn with .mfp-figure:after behind the image padding, so Magnific's verticalFit
 * (which subtracts the image padding) keeps the whole frame inside the window.
 * Image padding = 20px room + 15px frame (+ 30px caption line at the bottom).
 */

/* Overlay: the colour of fancybox_overlay.png. */
.mfp-bg.sc-lightbox {
	background: rgb(16, 12, 12);
	opacity: 0.69;
}

.sc-lightbox img.mfp-img {
	padding: 35px 35px 65px;
}

.sc-lightbox .mfp-figure:after {
	top: 20px;
	right: 20px;
	bottom: 20px;
	left: 20px;
	background: #f9f9f9;
	border-radius: 4px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Caption line inside the frame, 10px below the photo (fancyBox title type "inside"). */
.sc-lightbox .mfp-bottom-bar {
	margin-top: -55px;
	padding: 0 35px;
	box-sizing: border-box;
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	align-items: baseline;
}

.sc-lightbox .mfp-title,
.sc-lightbox .mfp-counter {
	color: #444;
	font: normal 13px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
	text-shadow: none;
}

.sc-lightbox .mfp-title {
	padding-right: 0;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sc-lightbox .mfp-counter {
	position: static;
	flex: none;
	font-weight: bold;
	margin-right: 10px;
}

/* Round close button on the frame corner (fancyBox 2 style). */
.sc-lightbox.mfp-wrap .mfp-image-holder .mfp-close,
.sc-lightbox.mfp-wrap .mfp-close {
	top: 2px;
	right: 2px;
	width: 36px;
	height: 36px;
	padding: 0;
	line-height: 30px;
	text-align: center;
	font-size: 26px;
	font-family: Arial, sans-serif;
	color: #fff;
	background: #222;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
	box-sizing: border-box;
	opacity: 1;
	cursor: pointer;
	z-index: 1046;
}

.sc-lightbox.mfp-wrap .mfp-close:hover,
.sc-lightbox.mfp-wrap .mfp-close:focus {
	background: #000;
	opacity: 1;
}

.sc-lightbox .mfp-arrow {
	opacity: 0.8;
}

.sc-lightbox .mfp-arrow:hover,
.sc-lightbox .mfp-arrow:focus {
	opacity: 1;
}

/* Phones: a bit less room around the frame. */
@media (max-width: 600px) {
	.sc-lightbox img.mfp-img {
		padding: 25px 25px 55px;
	}
	.sc-lightbox .mfp-figure:after {
		top: 12px;
		right: 12px;
		bottom: 12px;
		left: 12px;
	}
	.sc-lightbox .mfp-bottom-bar {
		margin-top: -47px;
		padding: 0 25px;
	}
	.sc-lightbox.mfp-wrap .mfp-image-holder .mfp-close,
	.sc-lightbox.mfp-wrap .mfp-close {
		top: -4px;
		right: -4px;
	}
}
