/************/
/*          */
/*  Global  */
/*          */
/************/

.clear-padding-top {
	padding-top: 0 !important;
}

.clear-padding-bottom {
	padding-bottom: 0 !important;
}

/* Continuing section: first block must not stretch alone to viewport height,
   and the last row keeps the normal row gap before the next CE. */
#content > div:first-child.content.clear-padding-bottom,
#content > div:first-child .content.clear-padding-bottom {
	min-height: 0 !important;
}

.content.clear-padding-bottom > .row:last-child {
	margin-bottom: 4rem;
}

/* Match first-section bottom padding (8rem beats the ≤1680 6rem rule). */
#content .content.clear-padding-top {
	padding-bottom: 8rem;
}

/************/
/*          */
/* Desktop  */
/*          */
/************/

@media all and (min-width: 376px) {

	.clear-padding-top-on-desktop {
		padding-top: 0 !important;
	}

	.clear-padding-bottom-on-desktop {
		padding-bottom: 0 !important;
	}

	/* Same continue-section behaviour when only desktop padding is cleared. */
	#content > div:first-child.content.clear-padding-bottom-on-desktop,
	#content > div:first-child .content.clear-padding-bottom-on-desktop {
		min-height: 0 !important;
	}

	.content.clear-padding-bottom-on-desktop > .row:last-child {
		margin-bottom: 4rem;
	}

	#content .content.clear-padding-top-on-desktop {
		padding-bottom: 8rem;
	}

}

/************/
/*          */
/*  Mobile  */
/*          */
/************/

@media all and (max-width: 375px) {

	.clear-padding-top-on-mobile {
		padding-top: 0 !important;
	}

	.clear-padding-bottom-on-mobile {
		padding-bottom: 0 !important;
	}

}
