/*
	README

	This file should only be used to style structure of the widget. It should not
	contain fonts or theme styling. Use the shared_theme.css for that purpose.

	If simply theming the CCL, leave this file alone.

	If your design is very customized, edit this file as needed. 
*/

.core-v2-side-by-side .slides {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-12) var(--space-4);
	max-width: var(--width-base);
	padding: 0 var(--space-5);
	margin: 0 auto;
}

.core-v2-side-by-side.sm-two-col .slides {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.core-v2-side-by-side .slide > .inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.core-v2-side-by-side .content-section {
	align-items: center;
	align-content: center;
	gap: var(--space-4);
	width: 100%;
	max-width: var(--width-comfortable);
	margin: 0 auto;
}

.core-v2-side-by-side .slide-top {
	margin-bottom: var(--space-5);
}

/*----- full-width -----*/

.core-v2-side-by-side.full-width .slides {
	max-width: none;
	margin: 0;
}

/*----- media queries -----*/

@container (min-width: 40em) {
	.core-v2-side-by-side .slide > .inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
		gap: var(--space-10);
	}

	.core-v2-side-by-side .slide-top {
		margin-bottom: 0;
	}

	.core-v2-side-by-side.slide-right .slide-top,
	.core-v2-side-by-side.slide-left.alternating .slide:nth-child(even) .slide-top,
	.core-v2-side-by-side.slide-right.alternating .slide:nth-child(even) .content-section {
		order: 1;
	}
	
	.core-v2-side-by-side.slide-right.alternating .slide:nth-child(even) .slide-top {
		order: -1;
	}

	/*----- full-width -----*/

	.core-v2-side-by-side.full-width .slides {
		padding: 0;
	}

	.core-v2-side-by-side.full-width .slide > .inner {
		gap: 0;
	}

	.core-v2-side-by-side.full-width .content-section {
		padding: 0 40px;
	}
}