.wp-admin .wp-block-acf-mhrf-postflode {
	overflow: hidden;
}
/* Various */
.post-feed img {
	object-fit: cover;
	transition: 0.3s ease-out;
}
article.single-post {
	height: fit-content;
}

/* Title  */
.post-feed article h3 {
	margin: 0;
	font-weight: 600;
	line-height: 1;
}
/* Disable margin on excerpt  */
.post-feed article p {
	margin: 0;
}
/* Two buttons */
.post-feed .btn-mobile {
	display: none;
}
@media screen and (max-width: 1025px) {
	.post-feed .btn-mobile {
		display: inline;
		left: 32px;
		position: sticky;
	}
	.post-feed .btn-desktop {
		display: none;
	}
}
/* Date tag */
.single-post__date {
	text-transform: uppercase;
	font-weight: 600;
	color: var(--blue-primary);
}
/* Top section */
.post-feed__hero-wrapper {
	display: flex;
	row-gap: 16px;
	column-gap: 32px;
	margin-top: 32px;
	margin-bottom: 32px;
	align-items: center;
	flex-wrap: wrap;
}
.post-feed__hero-wrapper:has(+ .post-feed__hero-text) {
	margin-bottom: 14px;
}

@media screen and (min-width: 1026px) {
	.post-feed__hero-wrapper {
		padding-top: 16px;
	}
}
@media screen and (max-width: 767px) {
	.post-feed__hero-wrapper {
		margin-top: 16px;
	}
}
.post-feed__hero-wrapper--with-btn {
	justify-content: space-between;
}
/* Text */
.post-feed__hero-text {
	width: 100%;
}
@media screen and (max-width: 1025px) {
	.post-feed__hero-text,
	.post-feed__hero-text p {
		position: sticky;
		left: 32px;
		max-width: 320px;
	}
}
.post-feed__hero-text p {
	max-width: 475px;
	margin-bottom: 30px;
}
/* Inner content alignment */
.single-post__meta {
	display: flex;
	flex-direction: column;
	align-items: start;
	gap: 12px;
	margin-top: 20px;
}
.single-post__meta h3 + .btn-secondary {
	margin-top: 12px !important;
}
.single-post__meta .post-excerpt {
	margin-top: 8px;
	margin-bottom: 8px;
}
@media screen and (max-width: 767px) {
	.single-post__meta .post-excerpt {
		display: none;
	}
	.single-post__meta {
	}
	.post-feed article.single-post p.btn-secondary {
		margin-top: 16px;
	}
}
/* Grid system */
.post-feed__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 16px;
	row-gap: 40px;
}
@media screen and (max-width: 1025px) {
	.post-feed__grid {
		padding-bottom: 32px;
	}
}
.post-feed--featured,
.post-feed.category-forsakrade-parlor {
	position: relative;
	z-index: 9;
	--vertical-offset: 40px;
	--total-vertical-offset: calc(var(--vertical-offset) * 2);
	margin-top: calc(var(--total-vertical-offset) * 1.5);
	margin-bottom: calc(var(--total-vertical-offset) * 1.5);
}
@media screen and (min-width: 1026px) {
	.post-feed--featured .post-feed__grid {
		padding-bottom: 16px;
	}
}
@media screen and (max-width: 767px) {
	.post-feed--featured,
	.post-feed.category-forsakrade-parlor {
		overflow: hidden;
		--vertical-offset: 20px;
	}
}
/* Background for featured */
.post-feed__grid {
	position: relative;
}
body:has(.post-feed--featured),
body:has(.post-feed.category-forsakrade-parlor) {
	overflow-x: hidden;
}
@media screen and (min-width: 768px) {
	.post-feed--featured::after,
	.post-feed.category-forsakrade-parlor::after {
		content: "";
		position: absolute;
		top: calc(var(--vertical-offset) * -1);
		height: calc(100% + var(--total-vertical-offset));
		background: var(--yellow-primary--trans-10);
		z-index: -1;
		width: 200vw;
		left: -50vw;
	}
}


	.forsakrade-landing .post-feed.category-forsakrade-parlor::after{
		display:none!important;
	}


.post-feed__grid.swiper-wrapper h3 {
	line-height: 1.5;
}
.post-feed__grid.swiper-wrapper h3 a {
	font-size: 16px;
}

@media screen and (max-width: 767px) {
	/* It should scroll on mobile */
	.post-feed__grid {
		display: flex;
		overflow: scroll;
		width: max-content;
	}
	article.single-post {
		width: 75vw;
	}
	.post-feed {
		margin-left: -32px;
		width: calc(100% + 64px);
		padding-top: 64px;
		padding-bottom: 64px;
		overflow: overlay;
	}
	@media screen and (max-width: 767px) {
		.post-feed {
			padding-top: 32px;
			padding-bottom: 32px;
		}
		.post-feed.post-feed--slider {
			padding-bottom: 0;
		}
	}
	.post-feed--featured {
		background: var(--yellow-primary--trans-10);
		margin-top: 40px;
		margin-bottom: 40px;
	}

	.post-feed__hero-wrapper {
		padding-left: 32px;
		padding-right: 32px;
		position: sticky;
		left: 0;
		align-items: flex-start;
		flex-direction: column;
	}

	.post-feed__grid article:first-of-type {
		margin-left: 32px;
	}
	.post-feed__grid article:last-of-type {
		margin-right: 32px;
	}
}

/* First item */
@media screen and (min-width: 1026px) {
	.post-feed--featured article:first-child {
		grid-row: span 2;
		grid-column: span 2;
	}
	.post-feed--featured article:first-child .single-post__featured-img {
		height: 500px;
	}
	.post-feed--featured article:first-child .single-post__featured-img img {
		min-height: 500px;
	}

	.post-feed--featured article:first-child h3 {
		line-height: 1.4;
		font-weight: 400;
	}
	.post-feed--featured article:first-child h3 a {
		font-size: 2rem;
		font-family: PT Serif;
	}
	.post-feed--featured article:first-child .post-excerpt p {
		font-size: 20px;
	}

	/* 2 and 3 */
	.post-feed--featured article:nth-child(2),
	.post-feed--featured article:nth-child(3) {
		padding-left: 80px;
	}
	.post-feed--featured article:nth-child(2) .post-excerpt,
	.post-feed--featured article:nth-child(3) .post-excerpt {
		display: none;
	}
	.post-feed--featured article:nth-child(2) h3,
	.post-feed--featured article:nth-child(3) h3 {
		margin-bottom: 12px;
	}
}
/* Other items */
@media screen and (min-width: 1026px) {
	.single-post__featured-img {
		height: 250px;
	}
}
@media screen and (max-width: 767px) {
	.single-post__featured-img {
		height: 200px;
	}
}
.post-feed__grid article img {
	width: 100%;
	height: 100%;
	transform: translateZ(1px);
}

.single-post__title a {
	color: black;
	text-decoration: none !important;
	font-family: Source sans pro;
	font-size: 20px;
}

/* Hover effect */

article.single-post .single-post__featured-img {
	overflow: hidden;
	border-radius: var(--radius-s);
}
@media screen and (min-width: 1026px) {
	article.single-post:hover h3 {
		text-decoration: underline;
		text-underline-offset: 3px;
		text-decoration-thickness: 1px;
	}
	article.single-post:hover .single-post__featured-img img {
		transform: scale(1.05);
	}
	article.single-post:hover .btn-secondary {
		background: var(--blue-primary) !important;
		color: white !important;
	}
}

/* Slider */
.post-feed--slider {
	margin-bottom: 80px;
}

.post-feed--slider .single-post {
	background: var(--blue-secondary);
	border-radius: var(--radius-s);
	padding: 10px 20px;
	transition: 0.2s ease-out;
}
/* Hover */
@media screen and (min-width: 1026px) {
	.post-feed--slider .single-post:is(:hover, :focus-visible) {
		background: var(--blue-primary--trans-60);
		text-decoration: underline;
	}
}

/* Size the posts */
.post-feed--slider .single-post {
	height: 87px;
	display: flex;
	align-items: center;
}
/* Buttons */
.swiper-buttons {
	display: flex;
	gap: 20px;
}
.swiper-buttons button {
	background: var(--blue-primary);
	color: white;
	font-size: 40px;
	border-radius: 50vmax;
	aspect-ratio: 1 / 1;
	line-height: 1;
	text-align: center;
	transition: 0.1s ease-out;
	padding: 0px !important;
	height: 42px;
	display: flex;
	justify-items: center;
	align-items: center;
	justify-content: center;
	padding-bottom: 6px !important;
	padding-left: 2px !important;
}

.swiper-buttons button.swiper-button-disabled {
	background: var(--blue-secondary);
	cursor: not-allowed;
	color: var(--blue-primary);
}
.swiper-buttons button.swiper-prev {
	padding-right: 3px !important;
}
.swiper-buttons button[tabindex="0"]:is(:hover, :focus-visible) {
	background: var(--blue-primary);
	color: white;
}

@media screen and (max-width: 767px) {
	.swiper-buttons {
		display: none;
	}
	.swiper-slide {
		max-width: 78vw;
	}
}
.single-post-icon {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 28px;
}
.post-feed--slider h3.single-post__title {
	padding-right: 14px;
	display: flex;
}

@keyframes fadeInSlider {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.post-feed--slider {
	opacity: 0;
	animation: fadeInSlider 0.5s ease 0.5s forwards;
}

.post-feed.category-forsakrade-parlor div.single-post__date {
	display: none !important;
}

@media screen and (min-width: 1026px) {
	.extra-div-forsakrade .post-feed.category-forsakrade-parlor .post-feed__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 70px;
		column-gap: 32px;
	}
	..extra-div-forsakrade .post-feed.category-forsakrade-parlor .single-post__title a {
		font-size: 24px;
		line-height: 1.3;
	}
}

@media screen and (min-width: 1026px) {
	.extra-div-forsakrade .post-feed.category-forsakrade-parlor .single-post__featured-img {
		height: 215px;
	}
}

.post-feed.category-traffa-mhrf .single-post__featured-img {
	width: fit-content;
}
.post-feed.category-traffa-mhrf .single-post__featured-img img {
	object-fit: contain;
}

.swiper-slide h3 {
	text-decoration: none !important;
}


