.wp-block-bainer-theme-project-related-projects {
	width: 100%;
	display: block;
	box-sizing: border-box;
}

.bainer-related-projects {
	width: min(1200px, 100%);
	margin: 3rem auto 2rem;
	padding-inline: 20px;
	box-sizing: border-box;
	direction: rtl;
	text-align: center;
}

.bainer-related-projects__title {
	margin: 0 0 1.75rem;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	color: #0d141a;
}

.bainer-related-projects__nav {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	width: 100%;
	margin-bottom: 1.25rem;
	text-align: start;
}

.bainer-related-projects__nav-link {
	display: inline-flex;
	flex: 0 0 auto;
	white-space: nowrap;
	color: #000 !important;
	text-decoration: none;
	font-weight: 600;
}

.bainer-related-projects__nav-link:hover,
.bainer-related-projects__nav-link:focus-visible {
	color: #2edbe8 !important;
}

.bainer-related-projects__back {
	margin: 1.75rem 0 0;
	text-align: center;
}

.bainer-related-projects__back-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 39px;
	padding: 0 24px;
	background-color: #2edbe8 !important;
	color: #fff !important;
	text-decoration: none !important;
	border: 1px solid #2edbe8 !important;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	box-sizing: border-box;
	transition:
		transform 300ms ease,
		background-color 300ms ease,
		border-color 300ms ease;
}

.bainer-related-projects__back-link:hover,
.bainer-related-projects__back-link:focus-visible {
	color: #fff !important;
	background-color: #25c9d6 !important;
	border-color: #25c9d6 !important;
	transform: scale(1.01);
}

.bainer-related-projects-root .post-title {
	color: #000 !important;
}

.bainer-related-projects-root .project-post-item:hover .post-title {
	color: #2edbe8 !important;
}

.bainer-related-projects-root .project-post-button {
	color: #000 !important;
	border: 1px solid #000 !important;
	background: transparent;
}

.bainer-related-projects-root .project-post-item:hover .project-post-button {
	color: #2edbe8 !important;
	border-color: #2edbe8 !important;
}

.bainer-related-projects__placeholder {
	margin: 0;
	padding: 1rem;
	border: 1px dashed #ccc;
	border-radius: 12px;
	color: #666;
	text-align: center;
}

.bainer-related-projects-root .project-post-item {
	width: 308px;
	max-width: 100%;
	margin-inline: auto;
	flex-shrink: 0;
}

.bainer-related-projects-root .bainer-project-posts-wrapper {
	width: 100%;
	display: flex;
	justify-content: center;
}

.bainer-related-projects-root .bainer-related-projects__grid {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 20px;
	direction: rtl;
	width: 100%;
	max-width: calc((308px * 3) + (20px * 2));
	margin-inline: auto;
}

.bainer-related-projects-root .project-posts-flex-container {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 20px;
	direction: rtl;
	width: 100%;
	max-width: calc((308px * 3) + (20px * 2));
	margin-inline: auto;
}

.bainer-related-projects-root .project-posts-flex-container--count-2 {
	max-width: calc((308px * 2) + 20px);
}

@media (max-width: 1024px) and (min-width: 768px) {
	.bainer-related-projects-root .bainer-related-projects__grid,
	.bainer-related-projects-root .project-posts-flex-container {
		max-width: calc((308px * 2) + 20px);
	}
}

@media (max-width: 767px) {
	.bainer-related-projects__nav {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: space-between;
		align-items: center;
		width: 100%;
	}

	.bainer-related-projects__nav-link {
		display: inline-flex;
		flex: 0 0 auto;
		max-width: calc(50% - 0.5rem);
		white-space: nowrap;
	}

	.bainer-related-projects-root .bainer-related-projects__grid,
	.bainer-related-projects-root .project-posts-flex-container {
		max-width: 308px;
	}
}

.bainer-related-projects-root .project-post-item .post-thumbnail {
	width: 100%;
	height: 280px;
	overflow: hidden;
	flex-shrink: 0;
	border-radius: 40px 40px 32px 32px;
}

.bainer-related-projects-root .project-post-item .post-thumbnail img.bainer-project-card,
.bainer-related-projects-root .project-post-item .post-thumbnail img {
	width: 100%;
	height: 280px;
	display: block;
	object-fit: cover;
	object-position: center;
	border-radius: inherit;
}
