.fw-recent-articles__header {
	display: flex;
	flex-direction: column;
	gap: var( --wp--custom--spacing--block-gap );
	justify-content: space-between;
	padding-left: var(--wp--style--root--padding-left);
	padding-right: var(--wp--style--root--padding-right);
}

@media ( min-width: 782px ) {
	.fw-recent-articles__header {
		flex-direction: row;
	}
}


@media ( min-width: 1708px ) {
	.fw-recent-articles__header {
		padding-left: 0px;
		padding-right: 0px;
	}
}

.fw-recent-articles__title {
	color: var(--wp--preset--color--primary);
}

:root :where(h1, h2, h3, h4, h5, h6).fw-recent-articles-card__heading,
:root li .fw-recent-articles-card__heading:is(h1, h2, h3, h4, h5, h6) {
	color: inherit !important;
}

li .fw-recent-articles-card__heading a:hover,
li .fw-recent-articles-card__heading a:focus {
	color: var(--wp--preset--color--foreground) !important;
}

/* .has-tertiary-background-color .fw-recent-articles__title {
	color: var(--wp--preset--color--primary);
} */


.fw-recent-articles__buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fw-recent-articles__buttons .wp-block-button {
	white-space: nowrap;
}

@media ( min-width: 362px ) {
	.fw-recent-articles__buttons {
		flex-direction: row;
		justify-content: space-between;
	}
}

@media ( min-width: 782px ) {
	.fw-recent-articles__buttons {
		flex-direction: column;
	}
}


.fw-recent-articles__arrows {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-end;
	gap: 12px;
}

.fw-recent-articles--no-scroll .fw-recent-articles__arrows {
	display: none;
}

.fw-recent-articles__arrow {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: var(--wp--preset--color--primary);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 24px 24px;
	border: 0;
	border-radius: 48px;
	cursor: pointer;
	height: 48px;
	overflow: hidden;
	padding: 0;
	position: relative;
	text-indent: 110%;
	transition: background-color .25s ease;
	white-space: nowrap;
	width: 48px;
}

.fw-recent-articles__arrow:hover,
.fw-recent-articles__arrow:focus {
	background-color: var(--wp--preset--color--tertiary);
}

.fw-recent-articles__arrow--disabled {
	background-color: var(--wp--preset--color--secondary);
	cursor: default;
}

.fw-recent-articles__arrow.fw-recent-articles__arrow--disabled:hover,
.fw-recent-articles__arrow.fw-recent-articles__arrow--disabled:focus {
	background-color: var(--wp--preset--color--secondary);
}

.fw-recent-articles__arrow--back {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath stroke='%230043E8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17 7 7 17M17 17H7V7'/%3E%3C/svg%3E");
}

.fw-recent-articles__arrow--back:not(.fw-recent-articles__arrow--disabled):hover,
.fw-recent-articles__arrow--back:not(.fw-recent-articles__arrow--disabled):focus {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath stroke='%23F0EFE9' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17 7 7 17M17 17H7V7'/%3E%3C/svg%3E");
}

.fw-recent-articles__arrow--forward {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath stroke='%230043E8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m7 7 10 10M17 7v10H7'/%3E%3C/svg%3E");
}

.fw-recent-articles__arrow--forward:not(.fw-recent-articles__arrow--disabled):hover,
.fw-recent-articles__arrow--forward:not(.fw-recent-articles__arrow--disabled):focus {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath stroke='%23F0EFE9' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m7 7 10 10M17 7v10H7'/%3E%3C/svg%3E");
}

.fw-recent-articles__scroll::-webkit-scrollbar {
	display: none;
}

.fw-recent-articles__list {
	-webkit-overflow-scrolling: touch;
	-ms-overflow-style: none;
	scrollbar-width: none;
	
	align-items: stretch;
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	overflow: auto;
	scroll-snap-align: start;
	scroll-snap-type: x mandatory;
	scroll-snap-stop: always;
	scroll-behavior: smooth;
}

.fw-recent-articles--no-scroll .fw-recent-articles__list {
	overflow: hidden;
}

.fw-recent-articles__list:before {
	content: '';
	display: block;
	flex: 0 0 calc( ( 100vw - 1668px ) / 2 - var(--wp--custom--spacing--block-gap) + var(--wp--style--root--padding-left) );
	flex: 0 0 calc( ( 100vw - var(--wp--style--global--wide-size) ) / 2 - ( var(--wp--custom--spacing--block-gap) * 2 ) + ( var(--wp--style--root--padding-left) / 2 ) );
	scroll-snap-align: start;
}

.fw-recent-articles__list:after {
	content: '';
	display: block;
	flex: 0 0 24px;
	scroll-snap-align: start;
}

.fw-recent-articles__article {
	flex: 0 0 calc( clamp( 320px, 28vw, 480px ) );
	scroll-snap-align: start;
}



.fw-recent-articles--no-scroll:has( .fw-recent-articles__article:nth-child( 2 ) ) .fw-recent-articles__article {
	flex: 0 0 50%;
}

.fw-recent-articles--no-scroll:has( .fw-recent-articles__article:nth-child( 3 ) ) .fw-recent-articles__article {
	flex: 0 0 33%;
}

@media ( min-width: 1668px ) {
	.fw-recent-articles:has( .fw-recent-articles__article:nth-child( 4 ) ):not( :has( .fw-recent-articles__article:nth-child( 5 ) ) ) .fw-recent-articles__article {
		flex: 0 0 calc( 25% - 12px );
	}
}

.fw-recent-articles-card {
	overflow: hidden;
	position: relative;
	padding-left: var(--wp--custom--spacing--block-gap);
	padding-right: var(--wp--custom--spacing--block-gap);
}

.fw-recent-articles-card:after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: 1px;
	background-color: var(--wp--preset--color--tertiary);
}

.has-tertiary-background-color .fw-recent-articles-card:after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: 1px;
	background-color: var(--wp--preset--color--primary);
}

ul.fw-recent-articles-card:after,
.fw-recent-articles-card:last-child:after {
	display: none;
}

.fw-recent-articles-card__wrapper {
	color: inherit;
	display: block;
	font-size: var(--wp--preset--font-size--medium-large, 22px);
	font-weight: 300;
	inset: 0;
	position: relative;
	text-decoration: none !important;
}

.fw-recent-articles-card__background {
	-webkit-clip-path: polygon(calc( 100% - 60px ) 0, 100% 60px, 100% 100%, 0 100%, 0 0);
	clip-path: polygon(calc( 100% - 60px ) 0, 100% 60px, 100% 100%, 0 100%, 0 0);
	position: relative;
	height: 240px;
	inset: 0;
	overflow: hidden;
	z-index: 1;
}

.fw-recent-articles-card__wrapper:has( a ) img,
.fw-recent-articles-card__image {
	position: absolute;
	height: 100%;
	inset: 0;
	-o-object-fit: cover;
	object-fit: cover;
	-o-object-position: center;
	object-position: center;
	transition: scale 1s ease;
	transform-origin: center;
	width: 100%;
}

.fw-recent-articles-card__wrapper:has( a:hover ) img,
.fw-recent-articles-card__wrapper:has( a:focus ) img,
.fw-recent-articles-card__wrapper:hover .fw-recent-articles-card__image,
.fw-recent-articles-card__wrapper:focus .fw-recent-articles-card__image {
	scale: 1.1;
}

.fw-recent-articles-card__text {
	font-size: var(--wp--preset--font-size--medium, 18px);
	margin-top: 0;
	padding-top: 30px;
	position: relative;
	height: 266px;
}

.fw-recent-articles-card__read-more {
	font-size: var(--wp--preset--font-size--small, 16px);
	position: absolute;
	bottom: 0;
	left: 0;
	margin-top: 0;
}

:root :where(h1, h2, h3, h4, h5, h6).fw-recent-articles-card__heading,
.fw-recent-articles-card__heading {
	color: inherit;
	/* font-size: var(--wp--preset--font-size--extra-large, 36px); */
	font-size: clamp( var(--wp--preset--font-size--medium-large ), 1.73vw, 30px );
	font-weight: 300;
	text-transform: none;
	transition: opacity .25s ease;
	
	word-wrap:break-word;
	-webkit-box-orient: vertical;
	box-orient: vertical;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	position: relative;
	text-overflow: ellipsis;
}

.fw--news .fw-recent-articles-card__heading {
	font-size: 24px;
}

.has-foreground-background-color .fw-recent-articles-card__heading {
	color: var(--wp--preset--color--primary);
	transition: color .25s ease;
}

.fw-recent-articles-card__wrapper:hover,
.fw-recent-articles-card__wrapper:focus {
	color: inherit;
}

.has-foreground-background-color .fw-recent-articles-card__wrapper:hover .fw-recent-articles-card__heading,
.has-foreground-background-color .fw-recent-articles-card__wrapper:focus .fw-recent-articles-card__heading {
	color: var(--wp--preset--color--primary);
}

.fw-recent-articles-card__excerpt {
	
	font-size: clamp( var(--wp--preset--font-size--tiny ), 1.04vw, var(--wp--preset--font-size--medium ) );
	
	word-wrap:break-word;
	-webkit-box-orient: vertical;
	box-orient: vertical;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	position: relative;
	text-overflow: ellipsis;
}
