.sa-posts {
	padding-block: 5rem;
}

.sa-posts__head {
	display: flex;
	gap: 1.5rem;
	align-items: flex-end;
	justify-content: space-between;
}

.sa-posts__intro {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.sa-posts__intro h2,
.sa-posts__panel h3,
.sa-posts__panel p {
	margin: 0;
}

.sa-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin-top: 2rem;
}

.sa-posts__card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 36rem;
	padding: 0.9rem;
	overflow: hidden;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
}

.sa-posts__card > .ct-media-container {
	position: absolute;
	inset: 0;
	display: block;
	width: auto;
	height: auto;
	overflow: hidden;
	background: var(--theme-palette-color-6);
}

.sa-posts__card > .ct-media-container img {
	transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sa-posts__card:is(:hover, :focus-visible) > .ct-media-container img {
	transform: scale(1.06);
}

.sa-posts__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.1rem;
	border-radius: 6px;
	background: var(--theme-palette-color-7);
	color: var(--theme-text-color);
}

@media (max-width: 899px) {
	.sa-posts {
		overflow-x: clip;
	}

	.sa-posts > .ct-container {
		display: flex;
		flex-direction: column;
		gap: 2rem;
	}

	.sa-posts__head {
		display: contents;
	}

	.sa-posts__intro {
		order: 1;
	}

	.sa-posts__grid {
		display: flex;
		order: 2;
		gap: 0.75rem;
		margin-top: 0;
		margin-right: calc(50% - 50vw);
		padding-right: 1.125rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.sa-posts__grid::-webkit-scrollbar {
		display: none;
	}

	.sa-posts__card {
		flex: 0 0 17.4375rem;
		width: 17.4375rem;
		min-height: 20.875rem;
		scroll-snap-align: start;
	}

	.sa-posts__head > .ct-button {
		order: 3;
		align-self: flex-start;
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sa-posts__card > .ct-media-container img {
		transition: none;
	}

	.sa-posts__card:is(:hover, :focus-visible) > .ct-media-container img {
		transform: none;
	}
}
