/*
	Written by Artem K.
	https://www.github.com/goodguyartem
*/

/*
	Don't question this!
 */
.img-container {
	width: fit-content;
	margin: 0 auto;
}

.img-container > img {
	width: 400px;
	height: 300px;
	max-width: 100%;
	margin: 0 auto;
	object-fit: cover;
	border: 1px solid var(--blue2);
}

.p-img-container {
	margin-bottom: 48px;
}

.p-img-container p:first-of-type {
	margin-top: 0;
}

.cliffnotes-container {
	margin-bottom: 48px;
	width: 100%;
}

.cliffnotes-container > div  {
	display: flex;
	justify-content: space-around;
	align-items: center;
	flex-direction: column;
	width: 100%;
}

.cliffnote {
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	flex-direction: column;
	width: 100%;
}

.cliffnote > * {
	border: 1px solid var(--blue2);
}

.cliffnote p {
	font-size: 1.25rem;
	width: 400px;
	max-width: 100%;
	height: fit-content;
	padding: 2ch;
	box-sizing: border-box;
	background: white;
	text-align: center;
	line-height: 100%;
}

.cliffnote img {
	width: 250px;
	max-width: 100%;
	height: 200px;
}

.staircase {
	width: 100%;
}

.staircase .box {
	width: 100%;
	padding: 8px 12px;
	box-sizing: border-box;
	text-align: center;
	margin: 24px 0;
}

@media (min-width: 1080px) {
	.p-img-container {
		display: grid;
		grid-template-columns: 2fr 1fr;
	}

	.p-img-container > .img-container {
		grid-column: 2;
		height: 0; /* I told you NOT to question it. */
	}

	.img-container {
		overflow: show;
	}

	.cliffnotes-container {
		width: 90%;
	}

	.cliffnotes-container > div:nth-of-type(even)  {
		padding-left: calc(220px / 2 - 134px / 2);
	}

	.cliffnotes-container > div:nth-of-type(odd)  {
		padding-right: calc(220px / 2 - 134px / 2);
	}

	.cliffnotes-container > :not(:last-child) {
		margin-bottom: 48px;
	}

	.cliffnotes-container > div:nth-of-type(even) .cliffnote  {
		flex-direction: row-reverse;
	}

	.cliffnotes-container > div  {
		flex-direction: row;
	}

	.cliffnote {
		flex-direction: row;
	}

	.cliffnote img {
		width: 134px;
		height: 134px;
	}

	.p-img-container > p {
		grid-column: 1;
		width: 95%;
	}

	.cliffnote p {
		font-size: 1rem;
		width: 210px;
		height: fit-content;
		padding: 10px;
		background: white;
		text-align: center;
		line-height: 100%;
	}

	.staircase .box {
		padding: 8px 12px;
		width: fit-content;
	}

	.staircase > .box:nth-child(2) {
		margin-left: 10%;
	}

	.staircase > .box:nth-child(3) {
		margin-left: 40%;
	}

	.staircase > .box:nth-child(4) {
		margin-left: auto;
	}
}