.amurweb-posts-showcase {
	--amurweb-image-zoom: 1.08;
	position: relative;
}

.amurweb-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 32px;
	transition: opacity .2s ease;
}

.amurweb-post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	background: #fff;
	border-radius: 12px;
	transition: box-shadow .25s ease;
}

.amurweb-post-image {
	position: relative;
	display: block;
	width: 100%;
	height: 260px;
	min-height: 0;
	flex: 0 0 auto;
	overflow: hidden;
	contain: paint;
	isolation: isolate;
	transform: translateZ(0);
}

.amurweb-post-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	transform: translateZ(0) scale(1);
	transform-origin: center center;
	transition-property: transform;
	transition-duration: .4s;
	transition-timing-function: ease;
	will-change: transform;
}

.amurweb-post-card:hover .amurweb-post-image img,
.amurweb-post-card:focus-within .amurweb-post-image img {
	transform: translateZ(0) scale(var(--amurweb-image-zoom));
}

.amurweb-post-content {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
	padding: 22px;
}

.amurweb-post-title {
	margin: 0;
	font-size: 24px;
	line-height: 1.25;
}

.amurweb-post-title a {
	color: inherit;
	text-decoration: none;
}

.amurweb-post-excerpt {
	font-size: 16px;
	line-height: 1.55;
}

.amurweb-post-taxonomy,
.amurweb-post-meta {
	font-size: 14px;
	line-height: 1.4;
}

.amurweb-post-taxonomy a {
	color: inherit;
	text-decoration: none;
}

.amurweb-post-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 4px;
	padding: 11px 18px;
	color: #fff;
	background: #e86a1c;
	border-radius: 6px;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease;
}

.amurweb-post-button:hover,
.amurweb-post-button:focus {
	color: #fff;
	background: #c9540d;
}

.amurweb-posts-empty {
	grid-column: 1 / -1;
	padding: 20px;
	text-align: center;
	border: 1px dashed currentColor;
	border-radius: 8px;
}

/* Фильтр */
.amurweb-posts-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin: 0 0 24px;
}

.amurweb-filter-button {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 16px;
	color: #252525;
	background: #f1f1f1;
	border: 1px solid transparent;
	border-radius: 6px;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.amurweb-filter-button:hover,
.amurweb-filter-button:focus-visible {
	border-color: currentColor;
}

.amurweb-filter-button.is-active {
	color: #fff;
	background: #e86a1c;
}

.amurweb-filter-button:disabled,
.amurweb-posts-load-more:disabled {
	cursor: wait;
	opacity: .6;
}

/* Кнопка подгрузки */
.amurweb-load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

.amurweb-posts-load-more {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 24px;
	color: #fff;
	background: #e86a1c;
	border: 1px solid transparent;
	border-radius: 6px;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.amurweb-posts-load-more:hover,
.amurweb-posts-load-more:focus-visible {
	color: #fff;
	background: #c9540d;
}

.amurweb-posts-showcase.is-loading .amurweb-posts-grid {
	opacity: .55;
	pointer-events: none;
}

/* Карточка с текстом поверх изображения */
.amurweb-layout-overlay .amurweb-post-overlay-wrap {
	position: relative;
	min-height: 260px;
	overflow: hidden;
}

.amurweb-layout-overlay .amurweb-no-image .amurweb-post-overlay-wrap {
	background: #2b2b2b;
}

.amurweb-layout-overlay .amurweb-post-overlay-wrap .amurweb-post-image {
	position: absolute;
	inset: 0;
	height: 100%;
}

.amurweb-layout-overlay .amurweb-post-image::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	pointer-events: none;
}

.amurweb-layout-overlay .amurweb-post-overlay-wrap .amurweb-post-content {
	position: relative;
	z-index: 2;
	justify-content: flex-end;
	min-height: 260px;
	color: #fff;
	pointer-events: none;
}

.amurweb-layout-overlay .amurweb-post-overlay-wrap .amurweb-post-content a {
	pointer-events: auto;
}

.amurweb-layout-overlay .amurweb-post-overlay-wrap .amurweb-post-title,
.amurweb-layout-overlay .amurweb-post-overlay-wrap .amurweb-post-title a,
.amurweb-layout-overlay .amurweb-post-overlay-wrap .amurweb-post-taxonomy,
.amurweb-layout-overlay .amurweb-post-overlay-wrap .amurweb-post-taxonomy a,
.amurweb-layout-overlay .amurweb-post-overlay-wrap .amurweb-post-meta {
	color: inherit;
}

.amurweb-layout-overlay .amurweb-post-content-below {
	flex: 1;
}


/* Режим портфолио */
.amurweb-layout-portfolio .amurweb-post-card {
	min-height: 340px;
}

.amurweb-post-portfolio-wrap {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	min-height: 340px;
	overflow: hidden;
	background: #2b2b2b;
}

.amurweb-post-portfolio-wrap .amurweb-post-image {
	position: absolute;
	inset: 0;
	height: 100%;
}

.amurweb-post-portfolio-wrap::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .05) 25%, rgba(0, 0, 0, .82) 100%);
	pointer-events: none;
}

.amurweb-post-portfolio-content {
	position: relative;
	z-index: 2;
	justify-content: flex-end;
	min-height: 340px;
	color: #fff;
	pointer-events: none;
}

.amurweb-post-portfolio-content a {
	pointer-events: auto;
}

.amurweb-post-portfolio-content .amurweb-post-title,
.amurweb-post-portfolio-content .amurweb-post-title a,
.amurweb-post-portfolio-content .amurweb-post-taxonomy,
.amurweb-post-portfolio-content .amurweb-post-taxonomy a,
.amurweb-post-portfolio-content .amurweb-post-meta {
	color: inherit;
}

.amurweb-content-portfolio .amurweb-post-author,
.amurweb-content-portfolio .amurweb-post-date,
.amurweb-content-portfolio .amurweb-meta-separator {
	display: none;
}

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

@media (max-width: 767px) {
	.amurweb-posts-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.amurweb-posts-filter {
		gap: 8px;
	}

	.amurweb-filter-button {
		min-height: 38px;
		padding: 8px 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.amurweb-post-image img,
	.amurweb-posts-grid,
	.amurweb-filter-button,
	.amurweb-posts-load-more {
		transition: none !important;
	}
}

/* Карусель и крупный слайдер */
.amurweb-posts-stage {
	position: relative;
	min-width: 0;
}

.amurweb-posts-swiper {
	position: relative;
	width: 100%;
	min-width: 0;
	overflow: hidden;
}

.amurweb-posts-swiper .amurweb-posts-grid {
	display: flex;
	column-gap: 0;
	row-gap: 0;
	transition: opacity .2s ease;
}

.amurweb-posts-swiper .amurweb-post-card {
	height: auto;
}

.amurweb-posts-swiper .swiper-slide {
	display: flex;
	box-sizing: border-box;
}

.amurweb-posts-swiper .swiper-slide > .amurweb-post-card,
.amurweb-posts-swiper article.swiper-slide {
	width: 100%;
}

.amurweb-display-slider .amurweb-post-card {
	width: 100%;
}

.amurweb-display-slider .amurweb-layout-overlay .amurweb-post-overlay-wrap,
.amurweb-display-slider .amurweb-layout-overlay .amurweb-post-overlay-wrap .amurweb-post-content {
	min-height: inherit;
}

.amurweb-display-slider .amurweb-layout-overlay .amurweb-post-image {
	height: 100%;
}

.amurweb-display-slider .amurweb-post-image {
	background: #f2f2f2;
}

.amurweb-display-slider .amurweb-post-image img {
	object-fit: contain;
}

.amurweb-display-slider .amurweb-layout-portfolio .amurweb-post-portfolio-wrap,
.amurweb-display-slider .amurweb-layout-portfolio .amurweb-post-portfolio-content {
	min-height: inherit;
}

.amurweb-swiper-button {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	z-index: 6;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	color: #fff;
	background: rgba(0, 0, 0, .55);
	border: 0;
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity .2s ease, background-color .2s ease, transform .2s ease;
}

.amurweb-swiper-button:hover,
.amurweb-swiper-button:focus-visible {
	transform: translateY(-50%) scale(1.06);
}

.amurweb-swiper-button-prev {
	left: 14px;
}

.amurweb-swiper-button-next {
	right: 14px;
}

.amurweb-swiper-button.swiper-button-disabled {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.amurweb-swiper-pagination {
	position: relative;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 18px;
	text-align: center;
}

.amurweb-swiper-pagination .swiper-pagination-bullet {
	width: 9px;
	height: 9px;
	margin: 0 !important;
	background: #b8b8b8;
	opacity: 1;
	transition: width .2s ease, border-radius .2s ease, background-color .2s ease;
}

.amurweb-swiper-pagination .swiper-pagination-bullet-active {
	width: 24px;
	border-radius: 8px;
	background: #e86a1c;
}

.amurweb-posts-swiper .amurweb-posts-empty {
	width: 100%;
}

.amurweb-posts-showcase.is-loading .amurweb-posts-stage {
	opacity: .6;
	pointer-events: none;
}

@media (max-width: 767px) {
	.amurweb-swiper-button {
		width: 38px;
		height: 38px;
		font-size: 19px;
	}

	.amurweb-swiper-button-prev {
		left: 8px;
	}

	.amurweb-swiper-button-next {
		right: 8px;
	}
}
