/* CC Astrophotos — full screen viewer of the lightbox of the public gallery (original picture, as in the planetarium). */

/* Inside the lightbox, above everything it shows. */
.cc-astrophotos-full {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #000;
	/* The viewer takes every touch: the page does not move under a pinch. */
	touch-action: none;
}

.cc-astrophotos-full .cc-astrophotos-full__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.cc-astrophotos-full__copyright,
.cc-astrophotos-full__status,
.cc-astrophotos-full__close {
	z-index: 1;
}

.cc-astrophotos-full__copyright {
	position: absolute;
	right: 16px;
	bottom: 16px;
	margin: 0;
	overflow: hidden;
	color: rgba(255, 255, 255, 0.8);
	font-family: "Noto Sans", sans-serif;
	line-height: 1.2;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.45), 1px -1px 0 rgba(0, 0, 0, 0.45), -1px 1px 0 rgba(0, 0, 0, 0.45), 1px 1px 0 rgba(0, 0, 0, 0.45);
	pointer-events: none;
	user-select: none;
}

.cc-astrophotos-full__copyright[hidden] {
	display: none;
}

.cc-astrophotos-full__status {
	position: absolute;
	bottom: 16px;
	left: 50%;
	margin: 0;
	padding: 4px 12px;
	font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: #fff;
	background: rgba(0, 0, 0, 0.6);
	border-radius: 6px;
	transform: translateX(-50%);
}

.cc-astrophotos-full__status:empty {
	display: none;
}

.cc-astrophotos-full__close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	font-size: 28px;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	background: rgba(0, 0, 0, 0.6);
	border: 0;
	border-radius: 6px;
}

/* The theme colours a focused button: the viewer keeps its own. */
.cc-astrophotos-full .cc-astrophotos-full__close:focus,
.cc-astrophotos-full .cc-astrophotos-full__close:active {
	color: #fff;
	background: rgba(0, 0, 0, 0.6);
	box-shadow: none;
}

.cc-astrophotos-full .cc-astrophotos-full__close:hover {
	color: #fff;
	background: rgba(0, 0, 0, 0.85);
}

.cc-astrophotos-full__close:focus-visible,
.cc-astrophotos-fullscreen-button:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}
