/* Galerije (iz teme SCNG) */
.page__docs {
	padding-top: clamp(1.5rem, 3vw, 2.5rem) !important;
	padding-bottom: clamp(3rem, 6vw, 5rem) !important;
}
.docs__title {
	margin: 2.25rem 0 0.75rem;
	font-size: 1.375rem;
}
.docs > .docs__title:first-child {
	margin-top: 0.5rem;
}
.docs__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid #333;
}
.docs__item {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	padding: 0.8rem 0 0.8rem 2.25rem;
	border-bottom: 1px solid #333;
}
.docs__item::before {
	content: "";
	position: absolute;
	left: 0.1rem;
	top: 0.85rem;
	width: 1.35rem;
	height: 1.35rem;
	background: #333;
	-webkit-mask: url(icons/docs.svg) center / contain no-repeat;
	mask: url(icons/docs.svg) center / contain no-repeat;
}
.docs__item--pdf::before { background: #D9412F; }
.docs__item--doc::before,
.docs__item--docx::before { background: #2B579A; }
.docs__item--xls::before,
.docs__item--xlsx::before { background: #217346; }
.docs__item a {
	font-weight: 650;
	text-decoration: none;
}
.docs__item a:hover {
	text-decoration: underline;
}
.docs__meta {
	font-size: 0.8125rem;
	color: #333;
}
.docs-wrap {
	max-width: 900px;
	padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(2rem, 4vw, 3rem);
}
.ngg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 6px;
	margin: 1.5rem 0;
}
.ngg-grid__item {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 4px;
	background: #333;
}
.ngg-grid__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.ngg-grid__item:hover img {
	transform: scale(1.05);
}
.ngg-album {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.25rem;
	margin: 1.5rem 0;
}
.ngg-album__item {
	margin: 0;
}
.ngg-album__open {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.ngg-album__open img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 6px;
	transition: opacity 0.2s ease;
}
.ngg-album__open:hover img {
	opacity: 0.85;
}
.ngg-album__item.is-open .ngg-album__open img {
	outline: 4px solid #333;
	outline-offset: 2px;
}
.ngg-album__title {
	display: block;
	margin-top: 0.5rem;
	font-weight: 700;
	font-size: 0.9375rem;
}
.ngg-album__title span {
	color: #333;
	font-weight: 400;
}
.ngg-album__holder .ngg-album__panel {
	margin: 0 0 2rem;
	padding: 1.25rem;
	border-radius: 8px;
	background: #333;
	scroll-margin-top: 1rem;
}
.ngg-album__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.ngg-album__head h3 {
	margin: 0;
	font-size: 1.25rem;
}
.ngg-album__close {
	border: 1px solid #333;
	border-radius: 4px;
	background: #333;
	color: #333;
	padding: 0.45rem 0.9rem;
	font: inherit;
	font-size: 0.875rem;
	cursor: pointer;
}
.ngg-album__panel .ngg-grid {
	margin-bottom: 0;
}
dialog.galerija {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgb(5 12 18 / 0.94);
	color: #fff;
}
dialog.galerija::backdrop {
	background: rgb(5 12 18 / 0.6);
}
dialog.galerija img {
	position: absolute;
	inset: 3.5rem 4.5rem;
	width: calc(100% - 9rem);
	height: calc(100% - 7rem);
	object-fit: contain;
}
dialog.galerija button {
	position: absolute;
	border: 0;
	background: rgb(255 255 255 / 0.12);
	color: #fff;
	font-size: 2.25rem;
	line-height: 1;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	cursor: pointer;
}
dialog.galerija button:hover,
dialog.galerija button:focus-visible {
	background: rgb(255 255 255 / 0.25);
}
.galerija__prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.galerija__next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
.galerija__close { right: 0.75rem; top: 0.75rem; }
.galerija__count {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.75rem;
	margin: 0;
	text-align: center;
	font-size: 0.875rem;
	color: rgb(255 255 255 / 0.75);
}
@media (max-width: 600px) {
	dialog.galerija img {
		inset: 3.5rem 0.5rem;
		width: calc(100% - 1rem);
	}
	.galerija__prev,
	.galerija__next {
		top: auto;
		bottom: 0.5rem;
		transform: none;
	}
}
