/*
 * Viewer 2026 (colorbox on album pages).
 * Goal: look like the image page — dark background, title above the picture,
 * no frames around the picture, navigation arrows at the left and right edge of the screen.
 * Loaded after the colorbox example3 theme CSS; all rules are scoped to .viewer2026.
 */

/* background: same colour as the site (#27282A), almost opaque */
#cboxOverlay.viewer2026 {
	background: #27282A;
}

/* remove the grey outer frame (border images of the example3 theme) */
#colorbox.viewer2026 #cboxTopLeft,
#colorbox.viewer2026 #cboxTopCenter,
#colorbox.viewer2026 #cboxTopRight,
#colorbox.viewer2026 #cboxBottomLeft,
#colorbox.viewer2026 #cboxBottomCenter,
#colorbox.viewer2026 #cboxBottomRight,
#colorbox.viewer2026 #cboxMiddleLeft,
#colorbox.viewer2026 #cboxMiddleRight {
	background: none;
	width: 0;
	height: 0;
}
#colorbox.viewer2026 #cboxMiddleLeft,
#colorbox.viewer2026 #cboxMiddleRight {
	height: auto;
}
#colorbox.viewer2026 #cboxTopCenter,
#colorbox.viewer2026 #cboxBottomCenter {
	width: auto;
}

/* remove the white inner frame */
#colorbox.viewer2026 #cboxContent {
	background: transparent;
	margin-top: 0;
}
#colorbox.viewer2026 #cboxLoadedContent {
	background: transparent;
	border: 0;
	/* space for the title above and the counter below the picture */
	margin: 64px 0 34px 0;
}
#colorbox.viewer2026 .cboxPhoto {
	border: 0;
	box-shadow: none;
}

/* title above the picture, in the heading font of the site */
#colorbox.viewer2026 #cboxTitle {
	position: absolute;
	top: 0;
	bottom: auto;
	left: 0;
	width: 100%;
	height: 64px;
	line-height: 30px;
	overflow: hidden;
	white-space: normal; /* 2027: long titles wrap to two lines */
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-family: "Poiret One", cursive;
	font-weight: normal;
	font-size: 28px;
	color: #e6e6e6;
}
#colorbox.viewer2026 #cboxTitle a,
#colorbox.viewer2026 #cboxTitle a:visited {
	color: #e6e6e6;
	text-decoration: none;
}
#colorbox.viewer2026 #cboxTitle a:hover {
	color: #fff;
	text-decoration: underline;
}

/* controls are placed outside the picture: let them overflow the colorbox block */
#colorbox.viewer2026,
#colorbox.viewer2026 #cboxWrapper,
#colorbox.viewer2026 #cboxContent {
	overflow: visible;
}

/* counter "5 / 35" and slideshow button below the picture */
#colorbox.viewer2026 #cboxCurrent {
	position: absolute;
	top: auto;
	bottom: 6px;
	left: 0;
	right: auto;
	width: 100%;
	height: auto;
	text-align: center;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-weight: normal;
	font-size: 14px;
	color: #8a8a8a;
}
#colorbox.viewer2026 #cboxSlideshow {
	position: absolute;
	top: auto;
	bottom: 4px;
	right: 0;
	left: auto;
	width: auto;
	height: auto;
	background: none;
	text-indent: 0;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 14px;
	color: #8a8a8a;
}
#colorbox.viewer2026 #cboxSlideshow:hover {
	color: #fff;
}

/* arrows: small grey triangles outside the picture, left and right of it, vertically centred (variant E, chosen by Jamila) */
#colorbox.viewer2026 #cboxPrevious,
#colorbox.viewer2026 #cboxNext,
#colorbox.viewer2026 #cboxClose {
	position: absolute;
	bottom: auto;
	margin: 0;
	background: none;
	text-indent: 0;
	font-size: 0;
	color: rgba(230, 230, 230, 0.45);
	cursor: pointer;
}
#colorbox.viewer2026 #cboxPrevious,
#colorbox.viewer2026 #cboxNext {
	top: 50%;
	width: 56px;
	height: 96px;
	margin-top: -48px;
}
#colorbox.viewer2026 #cboxPrevious {
	left: -80px;
	right: auto;
}
#colorbox.viewer2026 #cboxNext {
	left: auto;
	right: -80px;
}
#colorbox.viewer2026 #cboxPrevious::before,
#colorbox.viewer2026 #cboxNext::before {
	content: "";
	position: absolute;
	top: 50%;
	margin-top: -11px;
	width: 0;
	height: 0;
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
}
#colorbox.viewer2026 #cboxPrevious::before {
	right: 18px;
	border-right: 15px solid currentColor;
}
#colorbox.viewer2026 #cboxNext::before {
	left: 18px;
	border-left: 15px solid currentColor;
}

/* close button: outside the picture, right of the title */
#colorbox.viewer2026 #cboxClose {
	top: 8px;
	right: -80px;
	left: auto;
	width: 56px;
	height: 48px;
}
/* thin cross drawn with two lines, same stroke as the arrows */
#colorbox.viewer2026 #cboxClose::before,
#colorbox.viewer2026 #cboxClose::after {
	content: "";
	position: absolute;
	left: 12px;
	top: 23px;
	width: 32px;
	height: 0;
	border-top: 1.5px solid currentColor;
}
#colorbox.viewer2026 #cboxClose::before {
	transform: rotate(45deg);
}
#colorbox.viewer2026 #cboxClose::after {
	transform: rotate(-45deg);
}

#colorbox.viewer2026 #cboxPrevious:hover,
#colorbox.viewer2026 #cboxNext:hover,
#colorbox.viewer2026 #cboxClose:hover {
	color: #fff;
}
#colorbox.viewer2026 #cboxPrevious:focus,
#colorbox.viewer2026 #cboxNext:focus,
#colorbox.viewer2026 #cboxClose:focus {
	outline: none;
}

/* narrow screens (phones): the picture takes 82% of the width, arrows fit into the 9% margins */
@media (max-width: 700px) {
	/* title: up to two lines instead of one cut line, vertically centred in the 64px band */
	#colorbox.viewer2026 #cboxTitle {
		font-size: 17px;
		line-height: 21px;
		white-space: normal;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	#colorbox.viewer2026 #cboxPrevious,
	#colorbox.viewer2026 #cboxNext {
		width: 30px;
	}
	#colorbox.viewer2026 #cboxPrevious {
		left: -32px;
	}
	#colorbox.viewer2026 #cboxNext {
		right: -32px;
	}
	#colorbox.viewer2026 #cboxPrevious::before {
		right: 6px;
	}
	#colorbox.viewer2026 #cboxNext::before {
		left: 6px;
	}
	#colorbox.viewer2026 #cboxClose {
		right: -32px;
		width: 30px;
	}
	#colorbox.viewer2026 #cboxClose::before,
	#colorbox.viewer2026 #cboxClose::after {
		left: 3px;
		width: 24px;
	}
}
