/* Jure Builder – osnovni slogi (frontend + editor) */
.jb-page {
	max-width: none !important;
	margin-left: auto;
	margin-right: auto;
	padding: 0 !important;
}
.jb-page *,
.jb-page *::before,
.jb-page *::after {
	box-sizing: border-box;
}
.jb-section {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin: 0;
}
.jb-container {
	display: flex;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	gap: 30px;
}
.jb-column {
	flex: 1 1 0;
	min-width: 0;
	position: relative;
}
.jb-widget {
	margin-bottom: 20px;
}
.jb-widget:last-child {
	margin-bottom: 0;
}
.jb-widget.jb-widget-spacer {
	margin-bottom: 0;
}

.jb-page .jb-heading {
	margin: 0;
	padding: 0;
	line-height: 1.2;
}
.jb-page .jb-text p {
	margin: 0 0 1em;
	font-size: inherit;
}
.jb-page .jb-text > :first-child { margin-top: 0; }
.jb-page .jb-text > :last-child { margin-bottom: 0; }

.jb-page .jb-image {
	display: inline-block;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.jb-page .jb-button {
	display: inline-block;
	border: 0;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.jb-page .jb-button:hover,
.jb-page .jb-button:focus {
	text-decoration: none;
	transform: translateY(-1px);
}

.jb-page .jb-spacer { height: 40px; }

.jb-page .jb-divider {
	height: 0;
	width: 100%;
	margin: 0 auto;
	border: 0;
	border-top: 1px solid #dddddd;
}

.jb-page .jb-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}
.jb-page .jb-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Zadnji članki */
.jb-page .jb-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}
.jb-page .jb-post {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin: 0;
}
.jb-page .jb-post-thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: inherit;
}
.jb-page .jb-post-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.jb-page .jb-post-thumb:hover img { transform: scale(1.04); }
.jb-page .jb-post-body { padding: 14px 0 0; display: flex; flex-direction: column; flex: 1; }
.jb-page .jb-post-title { margin: 0 0 6px; font-size: 20px; line-height: 1.3; }
.jb-page .jb-post-title a { color: inherit; text-decoration: none; }
.jb-page .jb-post-title a:hover { text-decoration: underline; }
.jb-page .jb-post-meta { font-size: .85em; opacity: .7; margin-bottom: 8px; }
.jb-page .jb-post-excerpt { margin: 0 0 10px; }
.jb-page .jb-post-more { margin-top: auto; font-weight: 600; text-decoration: none; }

/* Mobilnik: stolpci drug pod drugim */
@media (max-width: 767px) {
	.jb-page .jb-container { flex-direction: column; }
	.jb-page .jb-column { flex-basis: auto; width: 100%; }
}

body.jb-canvas { margin: 0; }
