/* posts grid */
.posts-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 20px;
	/* grid-row-gap: 30px; */
}

.post--card {
	background: #fff;
	border: var(--e-global-border);
	border-radius: var(--e-global-radius);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	position: relative;
	height: 480px;
}

.post--card > img {
	height: 100%;
	object-fit: cover;
}

.post__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	padding: 20px;
}

.post__meta-data {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.post__meta-data > span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post__title {
	margin:	15px 0;
}

.post__title, .post__excerpt {
	overflow: hidden;
	display: -webkit-box;
	line-clamp: 4; 
	-webkit-line-clamp: 4; 
	-webkit-box-orient: vertical;
}

.post__title a {
	color: var(--e-global-color-primary);
}

.post__excerpt {
	color: var(--e-global-color-text);
}

.post__footer {
	margin-top: 20px;
	display: none;
}

.post__footer .post__button {
	display: flex;
	justify-content: center;
	align-items: center;
	background: var( --e-global-color-accent );
	color: #fff !important;
	width: 33px;
	height: 33px;
	border-radius: 100%;
	padding: 0;
}

.post__thumbnail img {
	height: 170px;
	width: 100%;
	object-fit: cover;
	margin-bottom: -10px;
}

.post--card .post__icon  {
	fill: var(--e-global-color-accent);
	opacity: 0.07;
	position: absolute;
	bottom: 0;
	right: -60px;
	width: 180px;
	pointer-events: none;
}

.post--card .post__icon.calendar path {
	fill: var(--e-global-color-accent);
	stroke: var(--e-global-color-accent);
}

.post__link {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

.load-more-container {
	text-align: center;
	margin-top: 50px;
}

@media only screen and (max-width: 1200px) {
	.posts-container {
	    display: flex;
	    flex-wrap: nowrap;
		overflow-x: scroll;
		-ms-overflow-style: none;
		scrollbar-width: none;
		margin: 0 -20px;
	}	
	
	.posts-container::-webkit-scrollbar {
		display: none;
	}

	.post--card {
		height: auto;
		max-height: 100%;
		width: 300px;
		min-width: 300px;
	}
	
	.post--card:not(.banner--large) {
        min-height: 400px;
	}

	.post--card:first-child {
		margin-left: 20px;
	}

	.post--card:last-child {
		margin-right: 20px;
	}

	.disable-mobile-x-scroll .posts-container {
		overflow-x: hidden;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		margin: 0;
	}

	.disable-mobile-x-scroll.important-posts .posts-container {
		grid-template-columns: repeat(2, 1fr);
	}

	.disable-mobile-x-scroll .post--card {
		margin: 0 !important;
		width: auto;
		min-width: auto;
	}
}

@media only screen and (max-width: 768px) {
	.disable-mobile-x-scroll .posts-container {
		grid-template-columns: repeat(2, 1fr);
	}	
}

@media only screen and (max-width: 480px) {
	.disable-mobile-x-scroll .posts-container,
	.disable-mobile-x-scroll.important-posts .posts-container {
		grid-template-columns: 100%;
	}
}

/* post categories filter */
.categories-filter {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: scroll;
	overflow-y: clip;
	-ms-overflow-style: scroll;
	scrollbar-width: none;
	margin: 0 -20px 80px;
}

.categories-filter::-webkit-scrollbar {
	display: none;
}

.categories-filter .category-link:first-child {
	margin-left: 20px;
}

.categories-filter .category-link:last-child {
	margin-right: 20px;
}

.elementor-kit-6 .categories-filter a {
	color: var(--e-global-color-secondary);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.5em;
	margin-right: 30px;
	min-width: fit-content;
	cursor: pointer;
}

.elementor-kit-6 .categories-filter :is(a.active, a:hover) {
	color: var(--e-global-color-accent);
}

/* post banners  */
.post-banner a  {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 100%;
}

.post-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-banner.banner--large {
	max-width: 100%;
}

@media only screen and (max-width: 1200px) {
	.post-banner.banner--large {
		height: 70vw;
	}
}

@media only screen and (max-width: 768px) {
	.post-banner {
		height: 550px;
	}
}

@media only screen and (max-width: 480px) {
	.post-banner {
		height: 140vw;
	}
}

@media only screen and (min-width: 481px) {
	.post-banner.banner--large {
		grid-column: 1/span 2;
		grid-row-start: 1;
	}
}

/* posts slider */
.swiper-slide article,
.swiper-slide article > div {
    height: 100%;
}

/* single post */
.single-post__meta-text {
	margin-bottom: 20px;
}

.single-post__meta-text span:not(:last-child) {
	margin-right: 20px;
}

.single-post__title {
	margin: 0 0 25px;
}

.single-post__thumbnail,
.elementor .elementor-widget:not(.elementor-widget-text-editor):not(.elementor-widget-theme-post-content) .single-post__content figure {
	margin: 30px 0;
}

.single-post__content .wp-block-gallery {
	margin: 30px 0 !important;
}

.single-post__content .wp-block-gallery figure {
	margin: 0 !important;
}

@media only screen and (min-width: 768px) {
	.single-post__thumbnail,
	.elementor .elementor-widget:not(.elementor-widget-text-editor):not(.elementor-widget-theme-post-content) .single-post__content figure {
		margin-left: -10px;
		margin-right: -10px;
	}
		
	.single-post__thumbnail span {
	    margin: 0 10px;
	}
}

.single-post__thumbnail img,
.single-post__content .wp-block-image img {
	border-radius: var(--e-global-radius);
}

.single-post__thumbnail span {
    font-size: 14px;
    font-style: italic;
}

.single-post__content,
.single-post__content .wp-block-image {
	color: var( --e-global-color-text );
}

.single-post__content .wp-block-gallery {
    display: grid;
	gap: 10px !important;
}

.single-post__content .wp-block-gallery.columns-1 {
    grid-template-columns: 100%;
}
.single-post__content .wp-block-gallery.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}
.single-post__content .wp-block-gallery.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}
.single-post__content .wp-block-gallery.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media only screen and (max-width: 767px) {
	.single-post__content .wp-block-gallery.columns-3,
	.single-post__content .wp-block-gallery.columns-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* share buttons */
.elementor-widget-share-buttons--vertical .elementor-grid {
	display: flex;
	flex-direction: column;
}

.elementor-widget-share-buttons .elementor-share-btn {
	width: 36px !important;
	height: 36px !important;
}

.elementor-widget-share-buttons .elementor-share-btn__icon {
	font-size: 12px;
	padding: 1px 0 0 2px;
}

@media only screen and (max-width: 767px) {
	.elementor-widget-share-buttons--vertical .elementor-grid {
		flex-direction: row;
		flex-wrap: wrap;
	}
}

/* single post - companies tags */
.single-post__companies {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
}

.single-post__companies > span {
	color: #fff;
	background: var(--e-global-color-accent);
    padding: 4px 10px;
    border-radius: 5px;
}

.single-post__companies > .company--energetika {
    background-color: var(--e-global-color-energetika-maribor);
}

.single-post__companies > :is(.company--skupina-jhmb, .company--jhmb) {
    background-color: var(--e-global-color-javni-holding-maribor);
}

.single-post__companies > .company--snaga {
    background-color: var(--e-global-color-javno-podjetje-snaga);
}

.single-post__companies > .company--vodovod {
    background-color: var(--e-global-color-mariborski-vodovod);
}

.single-post__companies > .company--marprom {
    background-color: var(--e-global-color-marprom);
}

.single-post__companies > .company--mestne-nepremicnine {
    background-color: var(--e-global-color-mestne-nepremicnine);
}

.single-post__companies > .company--nigrad {
    background-color: var(--e-global-color-nigrad);
}

.single-post__companies > .company--pogrebno-podjetje {
    background-color: var(--e-global-color-pogrebno-podjetje-maribor);
}

.single-post__companies > .company--sport-maribor {
    background-color: var(--e-global-color-sport-maribor);
}

.single-post__companies > .company--zum {
    background-color: var(--e-global-color-zum);
}


/* facilities special notices */
.special-notice-container {
    background: var(--e-global-color-accent);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-direction: row;
    gap: 25px;
    align-items: center;
    margin-bottom: 20px;
}

.special-notice-container .post__icon svg {
    fill: #fff;
    width: 36px;
}

.special-notice-container .single-post__content * {
    color: #fff;
}

.special-notice-container .single-post__content *:not(.single-post__title) {
    opacity: .9;
}

.special-notice-container .single-post__content a {
    color: inherit;
}

.special-notice-container .single-post__title {
    margin: 0 0 10px 0;
}
 
.special-notice-container .single-post__content p:last-child {
    margin-bottom: 0;
}