/* ==========================================================================
	SECTION: INDEX PAGE STYLES
========================================================================== */

/* -- Site main ----------------------------------------------------------- */
.site-main {
	width: 100%;
}

.site-main .inner-site-main {
	width: 92%;
	max-width: 1200px;
	margin: 0 auto;
}

/* -- Index main shell ---------------------------------------------------- */
.index-main {}

.index-main .inner-index-main {}

.index-main .inner-index-main .page-title {}

/* -- Featured post styles ----------------------------------------------- */
.index-main .inner-index-main #featured-post {}

/* -- Popular posts styles ----------------------------------------------- */
.index-main .inner-index-main #popular-posts {}

.inner-index-main #popular-posts h2 {
	font-size: 1.125rem;
	font-weight: 700;
	display: inline-block;
	text-transform: uppercase;
	padding: 0 0.75rem 0 0;
	border-bottom: 2px solid var(--ui-stroke-1);
}

/* -- Recent posts styles ------------------------------------------------- */
.index-main .inner-index-main #recent-posts {}

.index-main .inner-index-main #recent-posts h2 {
	font-size: 1.125rem;
	font-weight: 700;
	display: inline-block;
	text-transform: uppercase;
	padding: 0 0.75rem 0 0;
	border-bottom: 2px solid var(--ui-stroke-1);
}

.index-main .inner-index-main #recent-posts .recent-posts-loops {
	margin-top: -2rem;
}

.index-main .inner-index-main #recent-posts .recent-posts-loops .recent-posts-loop {
	margin-top: 2rem;
}

/* ==========================================================================
	SECTION: BREAKPOINTS
========================================================================== */

/* -- 600 up -------------------------------------------------------------- */
@media only screen and (min-width: 600px) {
	.index-main .inner-index-main #recent-posts .recent-posts-loops {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.index-main .inner-index-main #recent-posts .recent-posts-loops .recent-posts-loop {
		width: 48.5%;
	}
}

/* -- 1024 up ------------------------------------------------------------- */
@media only screen and (min-width: 1024px) {
	.index-main .inner-index-main {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.index-main .inner-index-main h1.page-title {
		width: 100%;
		order: 1;
	}

	.index-main .inner-index-main #featured-post {
		width: 100%;
		order: 2;
	}

	.index-main .inner-index-main #popular-posts {
		width: 62.5%;
		order: 3;
	}

	.index-main .inner-index-main #recent-posts {
		width: 100%;
		order: 5;
	}

	.index-main .inner-index-main #recent-posts .recent-posts-loops .recent-posts-loop {
		width: 31.33%;
	}

	.index-main .inner-index-main #secondary.widget-area {
		width: 32.5%;
		order: 4;
	}
}

/* ==========================================================================
	SECTION: LOADING SPINNER
========================================================================== */

/* -- Absolute center spinner -------------------------------------------- */
.loading {
	position: fixed;
	z-index: 999;
	height: 2rem;
	width: 2rem;
	overflow: show;
	margin: auto;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	visibility: hidden;
}

/* -- Transparent overlay ------------------------------------------------- */
.loading:before {
	content: "";
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.3);
}

/* -- IE9-and-below safeguard -------------------------------------------- */
/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
	/* hide "loading..." text */
	font: 0/0 a;
	color: transparent;
	text-shadow: none;
	background-color: transparent;
	border: 0;
}

.loading:not(:required):after {
	content: "";
	display: block;
	font-size: 0.625rem; /* 10px equivalent in rem */
	width: 1rem;
	height: 1rem;
	margin-top: -0.5rem;
	-webkit-animation: spinner 1500ms infinite linear;
	animation: spinner 1500ms infinite linear;
	border-radius: 0.5rem;
	box-shadow:
		rgba(0, 0, 0, 0.75) 1.5rem 0 0 0,
		rgba(0, 0, 0, 0.75) 1.1rem 1.1rem 0 0,
		rgba(0, 0, 0, 0.75) 0 1.5rem 0 0,
		rgba(0, 0, 0, 0.75) -1.1rem 1.1rem 0 0,
		rgba(0, 0, 0, 0.75) -1.5rem 0 0 0,
		rgba(0, 0, 0, 0.75) -1.1rem -1.1rem 0 0,
		rgba(0, 0, 0, 0.75) 0 -1.5rem 0 0,
		rgba(0, 0, 0, 0.75) 1.1rem -1.1rem 0 0;
}

/* -- Animation ----------------------------------------------------------- */
@-webkit-keyframes spinner {
	0% {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}

	100% {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

@keyframes spinner {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}