.gl-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(20, 24, 28, .97);
}

.gl-lightbox[hidden] {
	display: none;
}

.gl-figura {
	margin: 0;
	max-width: calc(100vw - 180px);
}

.gl-figura img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 140px);
	margin: 0 auto;
	border-radius: 8px;
}

.gl-figura figcaption {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 16px;
	font-family: Montserrat, sans-serif;
	font-size: 15px;
	color: #fff;
}

.gl-brojac {
	white-space: nowrap;
	color: rgba(255, 255, 255, .55);
	font-variant-numeric: tabular-nums;
}

.gl-lightbox button {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	width: 56px;
	height: 56px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	box-shadow: none;
	line-height: 1;
	cursor: pointer;
}

.gl-lightbox button:hover {
	background: rgba(255, 255, 255, .1);
}

.gl-lightbox button:focus-visible {
	outline: 2px solid #fff;
}

.gl-lightbox .gl-zatvori {
	top: 18px;
	right: 18px;
}

.gl-zatvori::before,
.gl-zatvori::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 24px;
	height: 2px;
	background: #fff;
	transform: translate(-50%, -50%) rotate(45deg);
}

.gl-zatvori::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.gl-lightbox .gl-nav {
	top: 50%;
	margin-top: -28px;
}

.gl-lightbox .gl-pret { left: 24px; }
.gl-lightbox .gl-sled { right: 24px; }

.gl-nav::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	border-top: 2px solid #fff;
	border-left: 2px solid #fff;
	transform: translate(-30%, -50%) rotate(-45deg);
}

.gl-sled::before {
	transform: translate(-70%, -50%) rotate(135deg);
}

body.gl-otvoren {
	overflow: hidden;
}

@media (max-width: 600px) {
	.gl-figura { max-width: 100vw; }
	.gl-figura figcaption { padding: 0 16px; }
	.gl-figura img { max-height: calc(100vh - 200px); }
	.gl-lightbox .gl-nav { top: auto; bottom: 16px; margin-top: 0; }
}
