.y25-image-text-wrapper {
	width: min(100%, 1440px);
	margin-left: auto;
	margin-right: auto;
	display: grid;
	grid-gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
}
/** Card style **/
.y25-image-text-wrapper .y25-card {
	position: relative;
	overflow: hidden;
}
.y25-image-text-wrapper .y25-card:hover {
	border-color: inherit; 
}

.y25-image-text-wrapper .y25-card:hover .y25-card-overlay {
	left: 0;
}
.y25-image-text-wrapper .y25-card-overlay {
	position: absolute;
	bottom: 0;
	border-left: 4px solid;
	left: -100%;
	width: 100%;
	height: 100%;
	padding: clamp(2rem, 2.442rem + -2.018vw, 0.625rem);
	color: black;
	transition: all 0.4s ease;
}
.y25-image-text-wrapper .y25-card-image {
	height: -webkit-fill-available;
	max-height: 500px;
}
.y25-image-text-wrapper .y25-card img {
	display: block;
	width: 100%;
	height: auto;
	height: -webkit-fill-available;
	object-fit: cover;
}
.y25-image-text-wrapper .y25-card-description {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	align-items: flex-end;
}

.y25-image-text-wrapper.y25-card p {
	font-size: clamp(0.875rem, 0.795rem + 0.367vw, 1.125rem);
	font-weight: 400;
	margin: 0 0 10px;
}

/** Button style **/
.y25-image-text-wrapper .y25-btn {
	width: max-content;
	display: flex;
	align-items: center;
	transition:
		background 0.3s ease,
		color 0.3s ease;
	color: black;
	font-family: "WeWork Serif";
	font-weight: 600;
	transition: 0.4s cubic-bezier(0.75, 0.02, 0.5, 1);
	font-size: clamp(0.875rem, 0.795rem + 0.367vw, 1.125rem);
}
.y25-image-text-wrapper .y25-btn::before {
	content: "";
	display: inline-block;
	width: 40px;
	height: 0.125em;
	background: var(--y25-link-border);
	transition: width 0.4s cubic-bezier(0.75, 0.02, 0.5, 1);
	margin-right: 5px;
}

.y25-image-text-wrapper .y25-btn:hover::before,
.y25-image-text-wrapper .y25-btn:active::before {
	width: 0px;
}
.y25-image-text-wrapper .y25-btn:hover {
	text-decoration: none;
}
.y25-image-text-wrapper .y25-btn:hover .y25-card-link-after,
.y25-image-text-wrapper .y25-btn:active .y25-card-link-after {
	inset-inline-end: 0px;
	width: 50px;
}
.y25-image-text-wrapper .y25-card-link-after {
	content: "";
	inset-block-start: 0.15em;
	inset-inline-end: -0.5em;
	display: inline-block;
	width: 0px;
	height: 18px;
	background-size: 42px;
	pointer-events: none;
	transition: 0.4s cubic-bezier(0.75, 0.02, 0.5, 1);
	background-position: right center;
	background-repeat: no-repeat;
}


/** Editor style **/
.y25-card-block-cards {
	display: flex;
	flex-direction: row;
	gap: 20px;
}
.y25-editor-card img {
	max-height: 300px;
	object-fit: cover;
}
.y25-editor-card {
	display: flex;
	flex-direction: column;
}
/** End editor style **/

@media (max-width: 900px) and (min-width: 569px) {
	.y25-image-text-wrapper {
		display: flex;
		flex-direction: column;
	}
	.y25-image-text-wrapper .y25-card-overlay {
		position: relative;
		left: 0;
		align-items: stretch;
		flex: 1 1 0;
		height: -webkit-fill-available;
	}
	.y25-image-text-wrapper .y25-card:nth-child(2n) {
		flex-direction: row;
	}
	.y25-image-text-wrapper .y25-card:nth-child(2n) .y25-card-overlay {
		border-right: 4px solid;
		border-left: 0;
	}
	.y25-image-text-wrapper .y25-card {
		display: flex;
		flex-direction: row-reverse;
		align-items: center;
	}
	.y25-image-text-wrapper .y25-card-image {
		flex: 1 0 0;
	}
}
@media (max-width: 570px) {
	.y25-image-text-wrapper .y25-card {
		display: flex;
		flex-direction: column;
	}
	.y25-image-text-wrapper .y25-card-overlay {
		position: relative;
		left: 0;
		align-items: stretch;
		flex: 1 1 0;
		height: -webkit-fill-available;
	}
}