/**
 * Two-column "media + text" sections.
 * Used by: hall-koll, ar-du-inte-medlem, accelerator-foretag.
 */
.two-col-media {
	padding-top: clamp(40px, 6vh, 80px);
	padding-bottom: clamp(40px, 6vh, 80px);
	padding-left: clamp(20px, 4vw, 60px);
	padding-right: clamp(20px, 4vw, 60px);
}

/* When two two-col-media sections stack directly, tighten the interface */
.two-col-media + .two-col-media {
	padding-top: clamp(20px, 3vh, 40px);
}
.two-col-media:has(+ .two-col-media) {
	padding-bottom: clamp(20px, 3vh, 40px);
}

.two-col-media__inner {
	display: flex;
	gap: 72px;
	align-items: center;
	justify-content: center;
	max-width: 1200px;
	margin: 0 auto;
	flex-wrap: wrap;
}

.two-col-media__text {
	flex: 1 1 450px;
	max-width: 564px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.two-col-media__text > .wp-block-heading {
	font-family: var(--wp--preset--font-family--ivymode, "ivymode", serif);
	font-weight: 300;
	font-size: clamp(3rem, 6vw, 5rem);
	line-height: 1.09;
	margin: 0;
	color: var(--wp--preset--color--contrast);
}

.two-col-media__text > p,
.two-col-media__text > .wp-block-paragraph {
	margin: 0;
	font-size: 16px;
	line-height: 1.44;
	color: var(--wp--preset--color--contrast);
}

.two-col-media__text a {
	color: inherit;
}

.two-col-media__media {
	flex: 1 1 450px;
	max-width: 564px;
}

.two-col-media__media img,
.two-col-media__media .wp-block-image img,
.two-col-media__image img {
	width: 100%;
	height: auto;
	max-height: 566px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}
.two-col-media__image,
.two-col-media__media .wp-block-image {
	margin: 0;
	flex: 1 1 450px;
	max-width: 564px;
}

/* Reverse variant: image on the left — swap the order of children */
.two-col-media--image-left .two-col-media__inner > .two-col-media__media {
	order: -1;
}

/* Button variant for wider pill look (matches Figma) */
.two-col-media .wp-block-button__link {
	padding: 15px 30px;
	min-width: 193px;
}

/* Force button colors site-wide (higher specificity than WP's :where() defaults) */
.wp-block-button > .wp-block-button__link.wp-element-button,
.wp-block-button > .wp-block-button__link.wp-element-button:visited {
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--persimmon);
}
.wp-block-button > .wp-block-button__link.wp-element-button:hover,
.wp-block-button > .wp-block-button__link.wp-element-button:focus-visible,
.wp-block-button > .wp-block-button__link.wp-element-button:active {
	color: var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--contrast);
}

@media (max-width: 820px) {
	.two-col-media__inner {
		gap: 40px;
	}
	.two-col-media__text > .wp-block-heading {
		font-size: 3rem;
	}
}

@media (max-width: 600px) {
	.two-col-media__media img,
	.two-col-media__media .wp-block-image img,
	.two-col-media__image img {
		aspect-ratio: 16 / 10;
		height: auto;
		max-height: 280px;
		object-fit: cover;
	}
}
