/**
 * RS: Media and text
 */

.rs-media-text-block {
	width: 100%;
	margin-top: var(--rs-media-text-margin-top-mobile, var(--rs-media-text-margin-top-tablet, var(--rs-media-text-margin-top, 0)));
	margin-bottom: var(--rs-media-text-margin-bottom-mobile, var(--rs-media-text-margin-bottom-tablet, var(--rs-media-text-margin-bottom, 0)));
}

.rs-media-text {
	display: grid;
	grid-template-columns: 1fr;
	border-radius: 10px;
	overflow: hidden;
	align-items: stretch;
	gap: 0;
	min-height: 0;
}

.rs-media-text--media-right .rs-media-text__media,
.rs-media-text--media-left .rs-media-text__media {
	order: -1;
}

.rs-media-text__media {
	height: var(--rs-media-text-mobile-image-height, 280px);
	min-height: var(--rs-media-text-mobile-image-height, 280px);
	max-height: var(--rs-media-text-mobile-image-height, 280px);
	position: relative;
	overflow: hidden;
	align-self: stretch;
	background: var(--rs-accordion-item-idle-bg, #f0f0f0);
}

.rs-media-text__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
}

.rs-media-text__content {
	min-width: 0;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	background: linear-gradient(352.25deg, #0065ca 34.53%, #004080 92.54%);
}

.rs-media-text__content a {
	color: inherit;
}

.rs-media-text__content > *:first-child {
	margin-top: 0;
}

.rs-media-text__content > *:last-child {
	margin-bottom: 0;
}

@media screen and (min-width: 960px) {
	.rs-media-text-block {
		margin-top: var(--rs-media-text-margin-top-tablet, var(--rs-media-text-margin-top, 0));
		margin-bottom: var(--rs-media-text-margin-bottom-tablet, var(--rs-media-text-margin-bottom, 0));
	}

	.rs-media-text {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		min-height: 441px;
	}
	
	.rs-media-text--media-right .rs-media-text__media {
		order: 2;
	}
	
	.rs-media-text--media-right .rs-media-text__content {
		order: 1;
	}

	.rs-media-text__content {
		padding: 70px 48px 40px;
	}

	.rs-media-text__media {
		position: relative;
		overflow: hidden;
		align-self: stretch;
		min-height: 0;
		background: var(--rs-accordion-item-idle-bg, #f0f0f0);
		height: auto;
		max-height: unset;
	}
}

@media screen and (min-width: 1440px) {
	.rs-media-text-block {
		margin-top: var(--rs-media-text-margin-top, 0);
		margin-bottom: var(--rs-media-text-margin-bottom, 0);
	}

	.rs-media-text {
		min-height: 662px;
	}

	.rs-media-text__content {
		padding: 80px 40px;
	}
}
