.img-wrapper {
	position: relative;
	background: #EEE;
	overflow: hidden;
}

.img-wrapper img {
	transition: transform 2s;
}

.img-wrapper img:hover {
	transform: scale(1.1);
}

.img-wrapper img {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.detail {
	width: fit-content;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 40px;
}

.detail .left {
	max-width: 700px;
}

.detail .left .title {
	font-size: 2.5em;
	margin: 0 0 30px;
}

/* Post information */

.detail .post-info {
	display: grid;
	grid-template-columns: 1fr auto;
    gap: 20px;
	margin: 0 0 40px;
}

.detail .post-info .general,
.detail .post-info .share {
	display: flex;
	flex-wrap: wrap;
}

.detail .post-info .general {
	margin: auto 0;
}

.detail .post-info p {
	margin: auto 0;
}

.detail .post-info .general > div {
	width: max-content;
	margin: auto 0;
}

.detail .post-info .general > div span {
	line-height: 1.5em;
}

.detail .post-info .share button {
	margin-left: 10px;
	padding: 0;
}

.detail .author {
	font-weight: 600;
	color: var(--color-secondary);
}

.detail .middle-dot {
	display: inline-block;
	width: 5px;
	height: 5px;
	border-radius: 100%;
	background: #CCC;
	margin: 0 5px;
	vertical-align: middle;
}

.share svg {
	font-size: 1.5em;
	cursor: pointer;
	transition: color 0.2s;
}

.share svg:hover {
	color: var(--color-primary);
}

/* Post content */

.detail .cover-image {
	display: flex;
	height: max-content;
	max-height: 600px;
	overflow: auto;
}

/* View content.css for content styles */

/* Comment form  */

.detail form .ql-container {
	border-bottom-width: 0 !important;
}

.detail form .ql-editor {
	min-height: 150px;
}

.detail form button[type="submit"] {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	width: 100%;
}

/* Existing comments */

.detail .comment .card {
	border: 1px solid var(--color-border-gray);
	margin: 0 0 20px;
}

.detail .comment .card:nth-last-child(1) {
	margin: 0;
}

.detail .comment .slash {
	color: #AAA;
}

.detail .comment .card-control {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	border: 1px solid var(--color-border-gray);
	border-width: 0 0 1px;
	padding: 20px;
	gap: 20px;
}

.detail .comment .card-control > * {
	display: flex;
}

.detail .comment .card-control > * > * {
	margin: auto 0;
}

.detail .comment .card-control svg {
	min-width: 24px;
	margin: auto 10px auto 0;
}

.detail .comment .card-control .slash {
	margin: auto 5px;
}

.detail .comment .card-content {
	padding: 20px;
}

.detail .comment .card-content > * {
	margin: 0 0 10px;
}

.detail .comment .card-content > *:nth-last-child(1) {
	margin: 0;
}

.detail .comment .card .comment-info {
	font-size: 14px;
	opacity: 0.3;
	transition: opacity 0.2s;
}

.detail .comment .card:hover .comment-info {
	opacity: 1;
}

.detail .comment .card .comment-info a {
	cursor: pointer;
}

/* Tags */

.detail .right {
	position: sticky;
	top: calc(var(--nav-height) + 40px);
	max-width: 300px;
	height: max-content;
	margin: auto;
}

.detail .right .tags-container a {
	display: inline-block;
	border: 1px solid var(--color-border-gray);
	padding: 10px;
	margin: 0 3px 8px 0;
	transition: background 0.2s;
}

.detail .right .tags-container a:hover {
	background: #EEE;
}

.detail .comments-container {
	margin: 40px 0 0;
}

/* Read More section */

.color-primary {
	color: var(--color-primary);
}

.more-container-wrapper {
	border: 1px solid var(--color-border-gray);
	border-width: 1px 0 0;
}

.more-container-wrapper .overflow {
	overflow-x: auto;
}

.more {
	display: flex;
	min-width: max-content;
	justify-content: space-between;	
	padding: 0 40px;
}

.more .img-wrapper {
	height: 180px;
}

.more .author {
	font-size: 14px;
	margin: 0;
	color: #AAA;
}

.more .author span {
	font-weight: 600;
}

.more .card {
	flex: 1;
	max-width: 300px;
	margin: 0 20px 0 0;
}

.more .card:nth-last-child(1) {
	margin: 0;
}

.more .card > * {
	margin: 0 0 20px;
}

.more .card > *:nth-last-child(1) {
	margin: 0;
}

.more .card .title {
	font-weight: 600;
}

.d-prompt a {
	width: 100%;
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	text-align: center;
}

@media only screen and (max-width: 1000px) {
	.detail {
		grid-row-gap: 80px;
	}
}

@media only screen and (max-width: 900px) {
	.detail {
		grid-template-columns: 1fr;
	}
	.detail .right {
		max-width: 700px;
	}
}

@media only screen and (max-width: 700px) {
	.detail .left .title {
		font-size: 2em;
	}
}

@media only screen and (max-width: 650px) {
	.detail .left .title {
		font-size: 2em;
	}
	.detail .post-info .share > * {
		margin: 0;
	}
	.detail .post-info .share p {
		display: none;
	}
}

@media only screen and (max-width: 600px) {
	.more {
		padding: 0 30px;
	}
}

@media only screen and (max-width: 500px) {
	.more {
		padding: 0 20px;
	}
}


