/* Prevent scroll when open */
.c2gls-no-scroll { overflow: hidden; }

.c2gls-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
}
.c2gls-overlay.is-open { display: flex; }

.c2gls-inner {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 64px;
	box-sizing: border-box;
}

.c2gls-img {
	max-width: 100%;
	max-height: 100%;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
	border-radius: 6px;
}

.c2gls-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: transparent;
	border: 0;
	color: #fff;
	line-height: 1;
	cursor: pointer;
	opacity: 0.8;
	z-index: 999;
	font-size: 36px;
}
.c2gls-close:hover { opacity: 1; }

.c2gls-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(255,255,255,0.1);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.25);
	cursor: pointer;
	font-size: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, opacity .2s ease;
	opacity: 0.9;
}
.c2gls-prev { left: 24px; }
.c2gls-next { right: 24px; }
.c2gls-nav:hover { background: rgba(255,255,255,0.2); }

.c2gls-caption, .c2gls-counter {
	position: absolute;
	left: 0; right: 0;
	color: #fff;
	text-align: center;
	padding: 8px 16px;
	text-shadow: 0 1px 2px rgba(0,0,0,0.6);
	font-size: 14px;
}
.c2gls-caption { bottom: 24px; opacity: 0.95; }
.c2gls-counter { top: 24px; opacity: 0.75; }

@media (max-width: 782px) {
	.c2gls-inner { padding: 32px; }
	.c2gls-nav { width: 48px; height: 48px; font-size: 24px; }
	.c2gls-prev { left: 12px; }
	.c2gls-next { right: 12px; }
}

/* Show pointer over images inside blocks where Lightbox swipe is enabled */
[data-c2-lightbox-swipe="true"] img { cursor: pointer; }
