/**
 * Elements Ultra - posts grid + post navigation.
 *
 * Deliberately self-contained: Elementor Pro's frontend.css supplied all of
 * these rules, and it goes away when Pro is deactivated. Class names match
 * Pro's exactly so existing custom CSS and Elementor-generated per-page CSS
 * keep targeting the right elements.
 */

/* ----------------------------------------------------------------------
 * Posts grid
 * ------------------------------------------------------------------- */

.elementor-posts-container {
	display: grid;
	grid-template-columns: repeat(var(--ep-grid-columns, 3), minmax(0, 1fr));
	column-gap: 30px;
	row-gap: 35px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.elementor-posts .elementor-post {
	display: flex;
	flex-direction: column;
	margin: 0;
	min-width: 0;
}

/* Image left / right variants */
.elementor-posts--thumbnail-left .elementor-post {
	flex-direction: row;
	align-items: flex-start;
}

.elementor-posts--thumbnail-right .elementor-post {
	flex-direction: row-reverse;
	align-items: flex-start;
}

.elementor-posts--thumbnail-left .elementor-post__thumbnail__link,
.elementor-posts--thumbnail-right .elementor-post__thumbnail__link {
	flex-shrink: 0;
	width: 30%;
}

.elementor-posts--thumbnail-left .elementor-post__text,
.elementor-posts--thumbnail-right .elementor-post__text {
	flex: 1;
	min-width: 0;
}

/* Thumbnail */
.elementor-post__thumbnail__link {
	display: block;
	width: 100%;
	margin-bottom: 20px;
	text-decoration: none;
}

.elementor-post__thumbnail {
	position: relative;
	overflow: hidden;
	width: 100%;
	padding-bottom: 66%;
	background-color: rgba(0, 0, 0, 0.04);
}

.elementor-post__thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: filter 0.2s ease;
}

/* Text */
.elementor-post__text {
	width: 100%;
	min-width: 0;
}

.elementor-post__title {
	margin: 0 0 10px;
}

.elementor-post__title a {
	color: inherit;
	text-decoration: none;
}

.elementor-post__excerpt {
	margin-bottom: 15px;
}

.elementor-post__excerpt p {
	margin: 0;
	line-height: 1.5;
}

.elementor-post__read-more {
	display: inline-block;
	font-weight: 500;
	text-decoration: none;
}

.elementor-post__meta-data {
	margin-bottom: 10px;
	font-size: 0.85em;
	line-height: 1.4;
}

.elementor-post__meta-data span + span:before {
	content: "///";
	margin: 0 0.5em;
	display: inline-block;
}

/* Masonry (CSS columns; Pro used JS) */
.elementor-posts--masonry.elementor-posts-container {
	display: block;
	column-count: var(--ep-grid-columns, 3);
	column-gap: 30px;
}

.elementor-posts--masonry .elementor-post {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	margin-bottom: 35px;
	display: inline-block;
	width: 100%;
}

/* Editor-only notice */
.ep-posts__empty {
	padding: 20px;
	border: 1px dashed #c2cbd2;
	color: #6d7882;
	font-size: 13px;
	text-align: center;
}

/* ----------------------------------------------------------------------
 * Pagination
 * ------------------------------------------------------------------- */

.elementor-pagination {
	margin-top: 30px;
	text-align: center;
}

.elementor-pagination .page-numbers {
	display: inline-block;
	padding: 0 0.5em;
	text-decoration: none;
}

.elementor-pagination .page-numbers.current {
	font-weight: 700;
}

/* ----------------------------------------------------------------------
 * Post navigation
 * ------------------------------------------------------------------- */

.elementor-post-navigation {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	overflow: hidden;
}

.elementor-post-navigation__link {
	flex: 1 1 45%;
	min-width: 0;
	overflow: hidden;
}

.elementor-post-navigation__link a {
	display: flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	text-decoration: none;
}

.elementor-post-navigation__next {
	text-align: right;
}

.elementor-post-navigation__next a {
	justify-content: flex-end;
}

.elementor-post-navigation__link__prev,
.elementor-post-navigation__link__next {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.elementor-post-navigation__link span.post-navigation__prev--label,
.elementor-post-navigation__link span.post-navigation__next--label {
	display: block;
	text-transform: uppercase;
	line-height: 1.4;
}

.elementor-post-navigation__link span.post-navigation__prev--title,
.elementor-post-navigation__link span.post-navigation__next--title {
	display: block;
	font-size: 0.8em;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.post-navigation__arrow-wrapper {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 1;
}

.post-navigation__arrow-wrapper svg {
	width: 22px;
	height: 22px;
	display: block;
}

.elementor-post-navigation__separator-wrapper {
	display: flex;
	align-items: stretch;
	flex: 0 0 auto;
	padding: 0 20px;
	align-self: stretch;
}

.elementor-post-navigation__separator {
	width: 1px;
	min-height: 2.5em;
	background-color: #d5d8dc;
}

.elementor-screen-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ----------------------------------------------------------------------
 * Responsive fallbacks (Elementor's own responsive controls override these)
 * ------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.elementor-posts-container {
		--ep-grid-columns: 2;
	}
}

@media (max-width: 767px) {
	.elementor-posts-container {
		--ep-grid-columns: 1;
	}

	.elementor-posts--thumbnail-left .elementor-post,
	.elementor-posts--thumbnail-right .elementor-post {
		flex-direction: column;
	}

	.elementor-posts--thumbnail-left .elementor-post__thumbnail__link,
	.elementor-posts--thumbnail-right .elementor-post__thumbnail__link {
		width: 100%;
		margin: 0 0 20px;
	}

	.elementor-post-navigation__separator-wrapper {
		padding: 0 10px;
	}
}

/* ----------------------------------------------------------------------
 * Cards / full content skins
 * ------------------------------------------------------------------- */

.elementor-posts--skin-cards .elementor-post {
	overflow: hidden;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	background-color: #fff;
}

.elementor-posts--skin-cards .elementor-post__text {
	padding: 20px;
}

.elementor-posts--skin-cards .elementor-post__thumbnail__link {
	margin-bottom: 0;
}

.elementor-posts--skin-full-content .elementor-posts-container {
	--ep-grid-columns: 1;
}

.elementor-post__full-content {
	margin-bottom: 15px;
}

/* ----------------------------------------------------------------------
 * Gallery
 * ------------------------------------------------------------------- */

.elementor-gallery__container {
	--ep-gallery-columns: 4;
	--ep-gallery-gap: 10px;
	width: 100%;
}

.elementor-gallery--grid {
	display: grid;
	grid-template-columns: repeat(var(--ep-gallery-columns, 4), minmax(0, 1fr));
	gap: var(--ep-gallery-gap, 10px);
}

.elementor-gallery--masonry {
	column-count: var(--ep-gallery-columns, 4);
	column-gap: var(--ep-gallery-gap, 10px);
}

.elementor-gallery--masonry .elementor-gallery-item {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	margin: 0 0 var(--ep-gallery-gap, 10px);
	display: inline-block;
	width: 100%;
}

.elementor-gallery-item {
	margin: 0;
	overflow: hidden;
	position: relative;
}

.elementor-gallery-item__link {
	display: block;
	text-decoration: none;
}

.elementor-gallery-item__image img {
	display: block;
	width: 100%;
	height: auto;
	transition: opacity 0.2s ease, transform 0.3s ease;
}

.elementor-gallery--grid .elementor-gallery-item__image {
	width: 100%;
	height: 100%;
}

.elementor-gallery--grid .elementor-gallery-item__image img {
	height: 100%;
	object-fit: cover;
}

@media (max-width: 1024px) {
	.elementor-gallery__container { --ep-gallery-columns: 3; }
}

@media (max-width: 767px) {
	.elementor-gallery__container { --ep-gallery-columns: 2; }
}
