/**
 * Webror Dynamic Posts — minimal layout styles.
 */

.webror-posts {
	box-sizing: border-box;
}

.webror-posts *,
.webror-posts *::before,
.webror-posts *::after {
	box-sizing: inherit;
}

.webror-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(var(--webror-cols, 3), minmax(0, 1fr));
}

@media (max-width: 900px) {
	.webror-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.webror-grid {
		grid-template-columns: 1fr;
	}
}

.webror-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.webror-list .webror-post-card {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 1rem;
}

.webror-list .webror-post-card__media {
	flex: 0 0 140px;
	max-width: 140px;
	margin: 0;
}

.webror-list .webror-post-card__body {
	flex: 1 1 auto;
	min-width: 0;
}

@media (max-width: 560px) {
	.webror-list .webror-post-card {
		flex-direction: column;
	}

	.webror-list .webror-post-card__media {
		max-width: 100%;
		width: 100%;
	}
}

.webror-post-card {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.webror-post-card__media {
	margin: 0;
	line-height: 0;
}

.webror-post-card__img,
.webror-acf-img {
	display: block;
	width: 100%;
	height: auto;
}

.webror-post-card__body {
	padding: 0.85rem 1rem 1rem;
}

.webror-post-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	line-height: 1.3;
}

.webror-post-card__title a {
	text-decoration: none;
	color: inherit;
}

.webror-post-card__title a:hover,
.webror-post-card__title a:focus {
	text-decoration: underline;
}

.webror-post-card__excerpt,
.webror-post-card__content {
	font-size: 0.95rem;
	line-height: 1.5;
	color: #333;
}

.webror-post-card__excerpt {
	margin-top: 0.25rem;
}

.webror-post-card__content {
	margin-top: 0.5rem;
}

.webror-acf-field {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	margin-top: 0.5rem;
	font-size: 0.9rem;
}

.webror-acf-label {
	font-weight: 600;
	color: #222;
}

.webror-acf-value {
	color: #444;
	white-space: pre-line;
}

.webror-acf-image {
	margin: 0.65rem 0 0;
	line-height: 0;
}

.webror-layout-carousel.webror-posts-swiper,
.webror-layout-carousel.webror-swiper {
	position: relative;
	padding-bottom: 2.5rem;
}

.webror-layout-carousel .webror-post-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.webror-layout-carousel .webror-post-card__body {
	flex: 1 1 auto;
}

.webror-swiper-pagination.swiper-pagination {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
}

.webror-swiper-prev,
.webror-swiper-next {
	color: inherit;
}
