/*
 * blog-single.scss
 * -----------------------------------------------
*/
body.single {
	.main-content-area {
		@include media-breakpoint-up(lg) {
			padding-right: 40px;
		}
		article {
			margin-bottom: 0;
			border-bottom: none;
			.entry-meta {
				padding: 0;
				margin-top: 60px;
				margin-bottom: 0;
				font-size: 15px;
				li {
					position: relative;
					padding-left: 10px;
					a {
						font-weight: normal;
					}
					i {
						margin: 0 5px 0 0;
						vertical-align: baseline;
					}
					&:after {
						content: '';
						width: 1px;
						height: 75%;
						background: #ddd;
						position: absolute;
						left: 0;
						top: 3px;
					}
					&:first-child:after {
						display: none;
					}
					&:first-child {
						padding-left: 0;
					}
				}
			}
			.entry-header {
				.post-thumb {
					margin-bottom: 25px;
				}
			}
			.entry-title {
				margin-top: 0;
			}
			.entry-content {
				font-size: $font-size-lg;
				h1, h2, h3, h4, h5, h6,
				.h1, .h2, .h3, .h4, .h5, .h6 {
					margin-top: 30px;
					&:first-child {
						margin-top: 0;
					}
				}
				.post-content,
				.post-excerpt {
					a:not(.btn):not(.styled-icons-item):not(.wp-block-button__link):not(.wp-block-button__link), p a:not(.btn):not(.styled-icons-item):not(.wp-block-button__link):not(.wp-block-button__link) {
					}
				}
			}
		}
	}
	.single-post-tags-share {
		border-top: 1px solid #ececec;
		border-bottom: 1px solid #ececec;
		padding: 20px 0;
		margin-top: 55px;
		margin-left: 0;
		margin-right: 0;
		> div {
			@include media-breakpoint-up(lg) {
				max-width: 100%;
			}
			&.max-width-half {
				@include media-breakpoint-up(lg) {
					max-width: 50%;
				}
			}
			&:first-child {
				padding-left: 0;
				padding-right: 0;
			}
			&:last-child {
				padding-left: 0;
				padding-right: 0;
			}
		}
	}

	.single-post-tags {
		margin: 0;
		span {
			color: $headings-color;
			font-size: 1rem;
			font-family: $heading-font;
			font-weight: $headings-font-weight-h4-h6;
		}
		li:not(:first-child) {
			margin: 5px 7px 5px 0;
		}
		a {
			background-color: $gray-eee;
			border-radius: 3px;
			color: $black-777;
			font-size: 12px;
			padding: 7px 12px;
			text-transform: capitalize;
			&:hover {
				background-color: $black-555;
				color: $gray-eee;
			}
		}
	}
	.pre-next-post-link {
		margin-top: 60px;
		vertical-align: middle;
		.pre-post-link,
		.next-post-link {
			cursor: pointer;
			display: table;
			height: 100%;
			position: relative;
			width: 100%;
			> * {
				display: table-cell;
				height: 100%;
				position: relative;
				vertical-align: middle;
			}
			.title {
				margin-top: 0;
				margin-bottom: 0;
				font-style: italic;
				color: #9a9a9a;
				font-size: $font-size-sm;
			}
			.content {
				font-size: $font-size-lg;
				word-break: break-all;
				a {
					font-size: 1rem;
					font-family: $heading-font;
					font-weight: $headings-font-weight-h4-h6;
				}
			}
			span {
				color: #f5f5f5;
				font-size: 130px;
				line-height: 0;
				padding-top: 15px;
				@include transition( all .4s ease 0s);
			}
			&:hover {
				span {
					color: #ddd;
				}
			}
			.link {
				margin-bottom: 0;
				margin-top: 0;
			}
		}
		.next-post-link {
			text-align: right;
		}
	}
	.author-info {
		background: #f8f8f8;
		border: 1px solid #f5f5f5;
		margin-top: 60px;
		padding: 40px;
		.author-thumb {
			float: left;
			margin-right: 30px;
			img {
				border-radius: 50%;
			}
		}
		.author-description {
			margin-left: 110px;
			.author-title {
				margin-bottom: 0;
				margin-top: 0;
				.author-title-label {
					display: none;
					font-weight: bold;
				}
				a {
				}
			}
			.author-email {
				font-size: 14px;
				a {
					color: #a1a1a1;
					font-weight: normal;
				}
			}
			.author-text {
				p {
					margin-top: 10px;
					margin-bottom: 0;
				}
			}
		}
		@include media-breakpoint-down(sm) {
			.author-thumb {
				float: none;
			}
			.author-description {
				margin-left: 0;
				.author-title {
					margin-top: 15px;
					margin-bottom: 7px;
				}
			}
		}
	}
	.related-posts {
		margin-top: 60px;
		.title {
			margin-bottom: 20px;
			font-weight: bold;
			text-transform: uppercase;
		}
		article {
			background-color: #fefefe;
			box-shadow: 0 0 2px #ccc;
			.entry-header {
				.post-thumb {
					margin-bottom: 0;
				}
			}
			.entry-content {
				padding: 20px;
			}
			.entry-date {
				color: #999;
				font-size: 12px;
			}
			.post-excerpt {
				font-size: 13px;
				margin-bottom: 10px;
			}
			.entry-meta {
				padding: 5px 0;
				margin-bottom: 0;
				margin-top: 0;
			}
			.post-btn-readmore {
				font-size: 11px;
				font-weight: bold;
				text-transform: uppercase;
			}
		}
	}
}
body.single.single-post .related-posts article .entry-title {
	margin-bottom: 0;
	margin-top: 10px;
}

body.single {
	.post-single.drop-caps {
		.entry-content {
			.post-content,
			.post-excerpt {
				> p:first-child:first-letter {
					color: $black-222;
					float: left;
					font-size: 75px;
					line-height: 0.85;
					padding-top: 4px;
					padding-right: 8px;
					padding-left: 0;
				}
			}
		}
	}
}

body.single {
	.comments-no-password {
		margin-top: 1rem;
	}
}
.comments-area {
	margin-top: 60px;
	.comments-title {
		.title {
			margin-bottom: 0;
			margin-top: 0;
			text-transform: uppercase;
		}
		p {
			display: none;
		}
	}

	.comment-list { 
		margin: 0 0 60px;
		border-bottom: 1px solid #eee;
		.comment,
		.pingback, .trackback {
			border-top: 1px solid #eee;
			background: #f8f8f8;
			padding: 30px;
			margin-top: 20px;
			margin-bottom: 0;
			list-style: none;
			.comment,
			.pingback, .trackback {
				padding-left: 20px;
				padding-right: 0;
			}
			.children {
				margin: 20px 0 0 20px;
				> li {
					padding-bottom: 0;
					margin-bottom: 0;
				}
			}
			
			.comment-item-wrapper {
				padding: 0;
				.comment-thumb {
					display: block;
					margin-bottom: 7px;
					img {
						border-radius: 50%;
					}
				}
				.comment-body {
					display: block;
					padding: 0;
					width: auto;

					.comment-reply-link {
						.list-inline-item {
							margin-right: 0;
							padding-left: 15px;
						}
						.comment-edit-link, 
						.comment-reply-link {
							font-size: 13px;
							text-transform: uppercase;
						}
					}

					.comment-author-name {
						color: #0073aa;
						line-height: 1;
						font-size: 1.1rem;
						margin-bottom: 0;
						margin-top: 0;
						a {
							@include transition(all .2s ease-in-out);
						}
					}
					.comment-metadata {
						a {
							font-size: 14px;
							color: #a1a1a1;
							font-weight: normal;
						}
					}
					.comment-content {
						p {
							margin-top: 10px;
							margin-bottom: 0;
						}
						blockquote {
							p {
								margin-top: 0;
							}
						}
					}
				}
			}
		}

		@include media-breakpoint-down(md) {
			.comment,
			.pingback, .trackback {
				padding: 20px;
				.children {
					margin: 5px 0 0 5px;
				}
			}
		}
		@include media-breakpoint-down(sm) {
			.comment,
			.pingback, .trackback {
				padding: 15px;
				.children {
					margin: 0;
					.comment,
					.pingback, .trackback {
						padding: 5px;
					}
				}
			}
		}
		@include media-breakpoint-down(xs) {
		}
	}

	.comment-respond {
		margin: 30px 0 0 0;
		padding-left: 15px;
		width: 100%;
		padding-right: 15px;
		.comment-reply-title {
			margin-bottom: 20px;
			text-transform: uppercase;
			#cancel-comment-reply-link {
				font-size: 12px;
				text-transform: capitalize;
			}
		}
		.comment-form {
			margin-bottom: 0;
			.logged-in-as, .comment-notes {
				color: #999;
			}
			.form-submit {
				margin-bottom: 0;
				input[type="submit"] {
					margin-top: 15px;
				}
			}
			.form-control {
				background-color: #fff;
				border: 1px solid #ddd;
				border-radius: 0;
				height: calc(2.25rem + 18px);
			}
			textarea.form-control {
				height: auto;
			}
		}
		.form-group {
			label {
				display: none;
				font-size: 14px;
			}
			.required {
				display: none;
			}
		}
	}
	> .comment-respond {
		padding-left: 0;
		padding-right: 0;
	}

	.comment-form-cookies-consent {
		label {
			color: #999;
		}
		#wp-comment-cookies-consent {
			margin-right: 0.6rem;
		}
	}
}

.post-password-form {
	margin-bottom: 20px;
	label {
		display: block;
		text-transform: uppercase;
	}
	input[type="password"] {
		margin-bottom: 7px !important;
		background-color: #f5f5f5;
		border-radius: 0;
		height: calc(2.0rem + 12px);
	}
	> :last-child {
		margin-bottom: 0;
	}
}
body.single {
	.post-password-form {
		input[type="password"] {
			margin-bottom: 0 !important;
		}
	}
}

.page-links {
	clear: both;
	padding: 20px 0 20px;
	a,
	> span {
		border: 2px solid #d1d1d1;
		border-radius: 2px;
		display: inline-block;
		font-size: 15px;
		text-align: center;
		padding: 3px 10px;
		margin-right: 10px;
	}
	> span {
		color: #fff;
	}

	a {
		background-color: #fff;
		border-color: #ddd;
		color: #222;
		&:hover,
		&:focus {
			background-color: #007acc;
			border-color: transparent;
			color: #fff;
			text-decoration: none;
		}
	}
	> .page-links-title {
		border: 0;
		background: none;
		color: #1a1a1a;
		height: auto;
		margin: 0 7px 0 0;
		padding: 0;
		width: auto;
	}
}

.gallery {
	margin-bottom: 30px;
	.isotope-item {
		display: inline-block;
		padding: 1.79104477%;
		text-align: center;
		vertical-align: top;
		width: 100%;
		margin: 0;
	}
	&.gallery-columns-2 .isotope-item {
		max-width: 50%;
	}
	&.gallery-columns-3 .isotope-item {
		max-width: 33.33%;
	}
	&.gallery-columns-4 .isotope-item {
		max-width: 25%;
	}
	&.gallery-columns-5 .isotope-item {
		max-width: 20%;
	}
	&.gallery-columns-6 .isotope-item {
		max-width: 16.66%;
	}
	&.gallery-columns-7 .isotope-item {
		max-width: 14.28%;
	}
	&.gallery-columns-8 .isotope-item {
		max-width: 12.5%;
	}
	&.gallery-columns-9 .isotope-item {
		max-width: 11.11%;
	}
	.gallery-icon img {
		max-width: 100%;
		height: auto;
		margin: 0 auto;
	}
	.gallery-caption {
		color: #707070;
		color: rgba(51, 51, 51, 0.7);
		display: block;
		font-size: 12px;
		line-height: 1.5;
		padding: 0.5em 0;
	}
	&.gallery-columns-6 .gallery-caption, 
	&.gallery-columns-7 .gallery-caption, 
	&.gallery-columns-8 .gallery-caption, 
	&.gallery-columns-9 .gallery-caption {
		display: none;
	}
}

.video-player-wrapper {
	video {
		width: 100% !important;
	}
}

.tm-social-share-icons {
	.title {
		display: inline-block;
		margin-right: 10px;
		font-size: 1rem;
		font-family: $heading-font;
		color: $headings-color;
		font-weight: $headings-font-weight-h4-h6;
	}
	.styled-icons {
		display: inline-block;
		a {
			float: none;
		}
	}
	.social-share-icons-text {
		display: inline-block;
	}
}