
/**
 * Where are all the colors?
 *
 * Everything has been moved to the bedstone/functions/palette.php file.
 *
 * In SASS, you can use the color names as css variables. There's even a
 *     lighter/darker version of each color. Here are some examples:
 *     color: var(--palette-text);
 *     background-color: var(--palette-bg-alt);
 *     border-color: var(--palette-bg-alt-darker);
 */
.flexset {
	display: flex;
	flex-flow: row wrap;
	margin-left: -1vw;
	margin-right: -1vw;
	overflow: hidden;
}

.flexset > * {
	padding-left: calc(2vw / 2);
	padding-right: calc(2vw / 2);
}

.flexset--nogutter {
	margin-left: 0;
	margin-right: 0;
}

.flexset--nogutter > * {
	padding-left: 0;
	padding-right: 0;
}

@media (min-width: 768px) {
	.flexset {
		display: flex;
		flex-flow: row wrap;
		margin-left: -1.5vw;
		margin-right: -1.5vw;
		overflow: hidden;
	}
	
	.flexset > * {
		padding-left: calc(3vw / 2);
		padding-right: calc(3vw / 2);
	}
	
	.flexset--nogutter {
		margin-left: 0;
		margin-right: 0;
	}
	
	.flexset--nogutter > * {
		padding-left: 0;
		padding-right: 0;
	}
}

@media (min-width: 1072px) {
	.flexset {
		display: flex;
		flex-flow: row wrap;
		margin-left: -13px;
		margin-right: -13px;
		overflow: hidden;
	}
	
	.flexset > * {
		padding-left: calc(26px / 2);
		padding-right: calc(26px / 2);
	}
	
	.flexset--nogutter {
		margin-left: 0;
		margin-right: 0;
	}
	
	.flexset--nogutter > * {
		padding-left: 0;
		padding-right: 0;
	}
}

@media (min-width: 1199px) {
	.flexset {
		display: flex;
		flex-flow: row wrap;
		margin-left: -20px;
		margin-right: -20px;
		overflow: hidden;
	}
	
	.flexset > * {
		padding-left: calc(40px / 2);
		padding-right: calc(40px / 2);
	}
	
	.flexset--nogutter {
		margin-left: 0;
		margin-right: 0;
	}
	
	.flexset--nogutter > * {
		padding-left: 0;
		padding-right: 0;
	}
}

.timeline {
	position: relative;
}

.timeline::before {
	content: "";
	background: var(--palette-bg-alt);
	width: 2px;
	height: 95%;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 30px;
}

.timeline-item {
	width: 100%;
	margin-bottom: 70px;
}

.timeline-item:nth-child(even) .timeline-content {
	float: right;
	padding: 40px 30px 10px 30px;
}

.timeline-item:nth-child(even) .timeline-content .date {
	right: auto;
	left: 0;
}

.timeline-item:nth-child(even) .timeline-content::after {
	content: "";
	position: absolute;
	border-style: solid;
	width: 0;
	height: 0;
	top: 30px;
	left: -15px;
	border-width: 10px 15px 10px 0;
	border-color: transparent var(--palette-bg) transparent transparent;
}

.timeline-item::after {
	content: "";
	display: block;
	clear: both;
}

.timeline-content {
	position: relative;
	width: 47.5%;
	padding: 10px 30px;
	border-radius: 4px;
	background: var(--palette-bg);
	box-shadow: 0 20px 25px -15px rgba(0, 0, 0, .3);
}

.timeline-img {
	width: 30px;
	height: 30px;
	background: var(--palette-attention);
	border-radius: 50%;
	position: absolute;
	left: 50%;
	margin-top: 25px;
	margin-left: -15px;
}

.timeline-card {
	padding: 0 !important;
}

.timeline-item .timeline-img-header {
	background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .4));
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.timeline-align-Top .timeline-img-header {
	background-position: top center;
}

.timeline-align-Bottom .timeline-img-header {
	background-position: bottom center;
}

.timeline-img-header {
	height: 200px;
	position: relative;
	margin-bottom: 20px;
}

.timeline-img-header h2 {
	color: var(--palette-bg);
	position: absolute;
	bottom: 5px;
	left: 30px;
	text-shadow: 0 0 6px rgba(0, 0, 0, .56);
}

.date {
	background: var(--palette-brand-1);
	display: inline-block;
	color: var(--palette-bg);
	padding: 10px;
	position: absolute;
	top: 0;
	right: 0;
}

.timeline-content-wrapper {
	padding: 0 30px 10px;
}

@media screen and (max-width: 768px) {
	.timeline::before {
		left: 50px;
	}
	
	.timeline .timeline-img {
		left: 50px;
	}
	
	.timeline .timeline-content {
		max-width: 100%;
		width: auto;
		margin-left: 70px;
	}
	
	.timeline .timeline-item:nth-child(even) .timeline-content {
		float: none;
	}
	
	.timeline .timeline-item:nth-child(odd) .timeline-content::after {
		content: "";
		position: absolute;
		border-style: solid;
		width: 0;
		height: 0;
		top: 30px;
		left: -15px;
		border-width: 10px 15px 10px 0;
		border-color: transparent var(--palette-bg) transparent transparent;
	}
}
