/*-------------------------------------------------------*/
/* Blog
/*-------------------------------------------------------*/
.entry {
	position: relative;
	margin-bottom: 40px;
	word-wrap: break-word;
	border-radius: 5px;
	overflow: hidden;

	.masonry-item:last-child & {
		border-bottom: 0;
		padding-bottom: 0 !important;
	}

	&__header .entry__categories {
		margin-bottom: 16px;
	}

	&__body {
		padding: 40px 34px;
		border-radius: 5px;
		border: 1px solid $border-color;
	}

	&__img-holder {
		overflow: hidden;
		position: relative;

		& + .entry__body {
			border-top: 0;
			border-radius: 0 0 5px 5px;
		}

		.entry__categories {
			position: absolute;
			left: 24px;
			top: 24px;
			z-index: 1;
		}

		&:hover {
			img {
				@include transform(scale(1.1));
			}
		}
	}

	&__img {
		width: 100%;
		@include transition(
			transform 0.4s cubic-bezier(0.05, 0.2, 0.1, 1) !important
		);
	}

	&__title {
		font-size: 1.5rem;
		margin-bottom: 14px;
		position: relative;

		a:hover,
		a:focus {
			color: $primary-color;
		}
	}

	&__excerpt {
		margin-top: 24px;

		p {
			margin-bottom: 0;
		}
	}
}

/*-------------------------------------------------------*/
/* Meta
/*-------------------------------------------------------*/
.entry__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 16px;

	&-item {
		display: inline-flex;
		flex-wrap: wrap;
		font-size: 0.625rem;
		font-weight: 600;
		text-transform: uppercase;
		color: $meta-color;

		a {
			color: $meta-color;
		}

		&:not(:last-child) {
			margin-right: 24px;
		}
	}

	a {
		&:hover,
		&:focus {
			color: $primary-color;
		}
	}
}

span.entry__meta-item {
	font-weight: normal;
}

// Categories
.entry__meta-item .entry__category-item {
	color: #fff;
	background-color: rgba(#000, 0.39);
	padding: 4px 10px;
	font-size: 0.625rem;
	text-transform: uppercase;
	margin-right: 10px;
	border-radius: 30px;

	&:hover,
	&:focus {
		color: #fff;
		background-color: $primary-color;
	}
}

/* Post Pagination
-------------------------------------------------------*/
.post-pagination {
	& > span:first-child {
		margin-right: 10px;
	}
}

/* Read More
-------------------------------------------------------*/
.read-more {
	display: inline-flex;
	align-items: center;

	&__text {
		margin-right: 6px;
	}
}

.entry__read-more {
	margin-top: 24px;
}

/*-------------------------------------------------------*/
/* Single Post
/*-------------------------------------------------------*/

/* Featured Image / Entry Header
-------------------------------------------------------*/
.single-post {
	@include bp-md-up {
		.breadcrumbs-wrap {
			text-align: center;
		}
	}

	&__entry-header {
		max-width: 780px;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 64px;
		text-align: center;

		.entry__category {
			margin-bottom: 20px;
		}

		.entry__meta {
			justify-content: center;
		}
	}

	&__featured-img {
		margin-bottom: 40px;

		&-image {
			width: 100%;
		}
	}

	&__content {
		max-width: 840px;
		margin-left: auto;
		margin-right: auto;

		&--wider {
			max-width: 840px;
		}
	}

	&__entry {
		overflow: visible;
		margin-bottom: 20px;
	}

	&__entry-title {
		word-wrap: break-word;
		line-height: 1.2;
		margin-top: 16px;
		margin-bottom: 32px;
		font-size: 2.25rem;

		@include bp-lg-up {
			font-size: 2.625rem;
		}
	}

	&__entry-article {
		p a,
		li:not(.wp-social-link) a {
			color: $post-link-color;
			text-decoration: underline;

			&:hover {
				color: $heading-color;
			}
		}
	}
}

/* Single post article
-------------------------------------------------------*/
.entry__article {
	font-size: 1.125rem;
	line-height: 1.8;

	@include bp-lg-down {
		margin-top: 16px;
	}

	& > h1,
	& > h2,
	& > h3,
	& > h4,
	& > h5,
	& > h6 {
		margin-top: 36px;
		margin-bottom: 20px;

		& > a {
			text-decoration: underline;
		}
	}

	& > p,
	& > ul,
	& > ol {
		margin-bottom: 34px;
	}

	ol {
		padding-left: 26px;
	}

	ul {
		padding-left: 20px;
	}

	a:hover,
	a:focus {
		text-decoration: underline;
	}
}

/* Entry Tags
/*-------------------------------------------------------*/
.entry__tags {
	overflow: hidden;
	margin-top: 8px;
	margin-bottom: 16px;
}

/* Author
/*-------------------------------------------------------*/
.entry-author {
	border: 1px solid $border-color;
	margin-top: 24px;
	margin-bottom: 64px;
	padding: 32px;
	border-radius: 5px;

	&__url {
		display: inline-flex;
		float: left;
		align-items: center;
	}

	&__img {
		height: 128px;
		width: 128px;
		display: block;
		margin-right: 32px;
		border-radius: 50%;

		@include bp-lg-down {
			width: 64px;
			height: 64px;
		}

		@include bp-sm-down {
			width: 50px;
			height: 50px;
		}
	}

	&__img-holder {
		display: block;
		float: left;

		@include bp-sm-down {
			float: none;
			margin-bottom: 24px;
		}
	}

	&__info {
		overflow: hidden;
	}

	&__name {
		margin-bottom: 6px;
		font-size: 1.5rem;
	}

	&__website {
		display: block;
		margin-bottom: 12px;
	}

	&__socials {
		margin-top: 24px;
		display: flex;
	}
}

/* Related Posts
/*-------------------------------------------------------*/
.related-posts {
	padding-bottom: 38px;
	border-bottom: 2px solid $border-color;
	margin-top: 48px;
	margin-bottom: 24px;

	&__entry {
		margin-bottom: 24px;
		border-bottom: 0;
		padding-bottom: 0;
	}

	.entry__body {
		padding: 24px;
	}

	.entry__meta {
		margin-bottom: 0;
	}

	&__title {
		padding-right: 80px;
	}

	&__entry-img-holder {
		border-radius: 5px 5px 0 0;
		overflow: hidden;
	}

	&__entry-title {
		font-size: 1rem;

		&:hover a {
			color: $primary-color;
		}
	}
}

.entry__bg-img-holder {
	position: relative;
	overflow: hidden;
	@include background-img-cover;
	height: 198px;
}

.thumb {
	&-bg {
		margin-bottom: 0;
	}

	&-text-holder {
		position: absolute;
		bottom: 0;
		width: 100%;
		z-index: 3;
		padding: 16px 24px;
		pointer-events: none;
	}

	&-entry-title {
		color: #fff;
		font-size: 1rem;
		font-weight: 500;
		margin-bottom: 0;
	}

	&-url {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 2;
	}
}

/* Comments
/*-------------------------------------------------------*/
.entry__comments {
	margin-top: 48px;
}

.related-posts__title,
.entry-comments__title,
.comment-respond__title {
	font-size: 1.5rem;
	margin-bottom: 32px;
}

.comment-respond__title small {
	margin-left: 12px;
}

.comment-content {
	& > h1,
	& > h2,
	& > h3,
	& > h4,
	& > h5,
	& > h6 {
		margin-top: 36px;
		margin-bottom: 20px;
	}

	ol {
		padding-left: 26px;
	}

	ul {
		padding-left: 20px;
	}
}

.comment {
	&-list {
		padding-left: 0;
		margin-bottom: 48px;
	}

	&-list,
	&-list .children {
		list-style: none;
	}

	.children {
		padding-left: 30px;

		@include bp-md-down {
			padding-left: 20px;

			.children {
				padding-left: 0;
			}
		}
	}

	&-list > li:first-child > .comment-body {
		border-top: 0;
		padding-top: 0;
	}

	&-body {
		margin-bottom: 32px;
		padding-top: 32px;
		border-top: 1px solid $border-color;
	}

	&-text {
		overflow: hidden;
	}

	&-avatar {
		float: left;
		margin-right: 20px;
		display: block;
		border-radius: 50%;
		overflow: hidden;
	}

	&-author {
		font-size: 1rem;
		display: inline-block;
		margin-right: 16px;

		&__name {
			color: $heading-color;
		}

		&__post-author-label {
			display: inline-block;
			vertical-align: middle;
			margin-left: 10px;
			margin-bottom: 3px;
			background-color: $primary-color;
			color: #fff;
			padding: 3px 8px;
			border-radius: 3px;
			font-weight: 500;
			font-size: 0.6875rem;
		}

		a {
			color: inherit;
		}
	}

	&-metadata {
		display: inline-block;
		text-transform: uppercase;
	}

	&-date,
	&-edit-link {
		display: inline-block;
		margin-bottom: 14px;
		font-size: 0.625rem;
		color: $meta-color;
	}

	&-edit-link {
		margin-left: 5px;
		margin-bottom: 0;
		color: $primary-color;
	}
}

/* Comment Form
/*-------------------------------------------------------*/
.comment-respond {
	margin-top: 60px;
	margin-bottom: 60px;
}

.comment-form .logged-in-as {
	margin-bottom: 26px;
	margin-top: -20px;
}

/* Previous / Next Post Navigation
/*-------------------------------------------------------*/
.entry-navigation {
	margin-top: 64px;
	margin-bottom: 48px;

	&__row {
		margin: 0 -40px;
		display: flex;
	}

	&__col {
		padding: 0 40px;
		width: 50%;
		margin-bottom: 20px;
	}

	&__item {
		display: flex;
		overflow: hidden;
		height: 100%;
	}

	&--left {
		float: left;

		i {
			margin-right: 7px;
		}

		@include bp-sm-up {
			text-align: right;
		}
	}

	&--right {
		float: right;
		margin-left: auto;

		i {
			margin-left: 7px;
		}

		@include bp-sm-up {
			text-align: left;
		}
	}

	&__body {
		width: 100%;
	}

	i {
		font-size: 12px;
		color: $text-color;
	}

	&__label {
		display: inline-block;
		margin-bottom: 10px;
		color: $meta-color;
		font-size: 0.875rem;
	}

	&__title {
		font-size: 1.125rem;
		margin-bottom: 0;

		a:hover {
			color: $primary-color;
		}
	}

	@include bp-sm-down {
		&__row {
			display: block;
		}

		&__col {
			width: 100%;
			float: none;
		}

		&--right {
			text-align: left;
		}
	}
}
