.rb-post-grid-section {
	width: 100%;
	max-width: none;
	margin-block: 0;
	box-sizing: border-box;
	background: var(--wp--preset--color--kremhvit, #fbf8f2);
	border-top: var(--wp--custom--border--hairline, 1px solid rgba(46, 43, 39, 0.1));
}

.rb-post-grid-section__inner {
	max-width: var(--wp--custom--container, 1320px);
	margin: 0 auto;
	width: 100%;
	padding: clamp(56px, 7vw, 96px) var(--wp--custom--gutter, clamp(28px, 5vw, 80px));
	box-sizing: border-box;
}

.rb-post-grid-section__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 44px;
}

.rb-post-grid-section__main {
	min-width: min(100%, 280px);
	flex: 1 1 320px;
}

.rb-post-grid-section__eyebrow {
	margin: 0 0 16px;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--label, 12px);
	font-weight: 400;
	letter-spacing: var(--wp--custom--eyebrow-tracking, 0.24em);
	text-transform: uppercase;
	color: var(--wp--preset--color--messing, #a67c3d);
	line-height: 1.3;
}

.rb-post-grid-section__eyebrow:empty {
	display: none;
}

.rb-post-grid-section__heading {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	font-size: clamp(30px, 3.6vw, 46px);
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--blekk, #2e2b27);
	text-wrap: pretty;
}

.rb-post-grid-section__more {
	flex: 0 0 auto;
	padding: 6px 2px;
	border: 0;
	border-bottom: 1px solid rgba(46, 43, 39, 0.35);
	background: none;
	color: var(--wp--preset--color--blekk, #2e2b27);
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition:
		color var(--wp--custom--transition, 0.25s),
		border-color var(--wp--custom--transition, 0.25s);
}

.rb-post-grid-section__more:empty {
	display: none;
}

.rb-post-grid-section__more::after {
	content: "→";
	display: inline-block;
	margin-left: 0.55em;
	letter-spacing: 0;
	transition: transform var(--wp--custom--transition, 0.25s);
}

.rb-post-grid-section__more:hover,
.rb-post-grid-section__more:focus-visible {
	color: var(--wp--preset--color--messing, #a67c3d);
	border-bottom-color: var(--wp--preset--color--messing, #7b6535);
}

.rb-post-grid-section__more:hover::after,
.rb-post-grid-section__more:focus-visible::after {
	transform: translateX(5px);
}

.rb-post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 32px;
}

.rb-post-grid__empty {
	margin: 0;
	padding: 24px;
	color: var(--wp--preset--color--text-muted, #4a443c);
	background: var(--wp--preset--color--kalk, #f4efe5);
}

.rb-post-card {
	min-width: 0;
}

.rb-post-card__link {
	display: grid;
	gap: 16px;
	align-content: start;
	color: inherit;
	text-decoration: none;
}

.rb-post-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--wp--preset--color--sand, #e8e1d5);
	box-shadow: var(--wp--preset--shadow--image-sm, 0 10px 22px -18px rgba(46, 43, 39, 0.38));
}

.rb-post-card__media--empty {
	min-height: 1px;
}

.rb-post-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rb-post-card__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(22px, 2vw, 25px);
	font-weight: 500;
	line-height: 1.25;
	color: var(--wp--preset--color--blekk, #2e2b27);
	text-wrap: pretty;
	transition: color var(--wp--custom--transition, 0.25s);
}

.rb-post-card__link:hover .rb-post-card__title,
.rb-post-card__link:focus-visible .rb-post-card__title {
	color: var(--wp--preset--color--messing, #a67c3d);
}

.rb-post-card__excerpt {
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	line-height: 1.7;
	color: var(--wp--preset--color--text-faint, #5b5449);
}

/* Aktuelt / list layout */
.rb-post-grid-section--list {
	background: var(--wp--preset--color--kremhvit, #fbf8f2);
	border-top: 0;
}

.rb-post-grid-section--list .rb-post-grid-section__inner {
	padding-block: clamp(40px, 5vw, 72px);
}

.rb-post-grid-section--list .rb-post-grid-section__header {
	margin-bottom: clamp(28px, 4vw, 40px);
}

.rb-post-list {
	display: grid;
	gap: 0;
}

.rb-post-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(24px, 3vw, 40px);
	align-items: start;
	padding: clamp(28px, 3.5vw, 40px) 0;
	border-top: var(--wp--custom--border--hairline, 1px solid rgba(46, 43, 39, 0.12));
}

.rb-post-row:first-child {
	border-top: 0;
}

.rb-post-row:last-child {
	border-bottom: var(--wp--custom--border--hairline, 1px solid rgba(46, 43, 39, 0.12));
}

@media (min-width: 800px) {
	.rb-post-row {
		grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.35fr);
		column-gap: clamp(40px, 6vw, 72px);
		align-items: center;
	}
}

.rb-post-row__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--wp--preset--color--sand, #e8e1d5);
	box-shadow: var(--wp--preset--shadow--image-sm, 0 10px 22px -18px rgba(46, 43, 39, 0.38));
	text-decoration: none;
}

.rb-post-row__media--empty {
	min-height: 160px;
}

.rb-post-row__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rb-post-row__body {
	display: grid;
	gap: 12px;
	align-content: start;
	min-width: 0;
}

.rb-post-row__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--blekk, #2e2b27);
	text-wrap: pretty;
}

.rb-post-row__title a {
	color: inherit;
	text-decoration: none;
	transition: color var(--wp--custom--transition, 0.25s);
}

.rb-post-row__title a:hover,
.rb-post-row__title a:focus-visible {
	color: var(--wp--preset--color--messing, #a67c3d);
}

.rb-post-row__excerpt {
	margin: 0;
	max-width: 54ch;
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(15px, 1.2vw, 17px);
	line-height: 1.65;
	color: var(--wp--preset--color--text-muted, #4a443c);
	text-wrap: pretty;
}

.rb-post-row__more {
	justify-self: start;
	margin-top: 6px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--taupe, #8a7f70);
	transition:
		color var(--wp--custom--transition, 0.25s),
		transform var(--wp--custom--transition, 0.25s);
}

.rb-post-row__more::after {
	content: "→";
	display: inline-block;
	margin-left: 0.55em;
	letter-spacing: 0;
	transition: transform var(--wp--custom--transition, 0.25s);
}

.rb-post-row__more:hover,
.rb-post-row__more:focus-visible {
	color: var(--wp--preset--color--messing, #a67c3d);
}

.rb-post-row__more:hover::after,
.rb-post-row__more:focus-visible::after {
	transform: translateX(5px);
}

@media (prefers-reduced-motion: reduce) {
	.rb-post-row__more::after {
		transition: none;
	}

	.rb-post-row__more:hover::after,
	.rb-post-row__more:focus-visible::after {
		transform: none;
	}
}
