section#comments {
	#qrcode {
		float: right;
		margin: 3rem 0 0 1rem;
		background-color: white;
		padding: 12.5px;
		width: 150px;
		height: 150px;

		@media only screen and (max-width: 720px) {
			display: none;
		}
	}

	#load-comments {
		cursor: pointer;
	}

	#comments-wrapper {
		display: flex;
		flex-direction: column;
		gap: 2rem;
		margin-top: 2rem;
	}

	.comment {
		display: grid;
		grid-template-columns: min-content;
		grid-template-areas:
			"avatar name        "
			"avatar time        "
			"avatar post        "
			"...... interactions";
		column-gap: 1rem;
		justify-items: start;

		&.comment-reply {
			border-left: 0.25rem solid var(--fg-muted-2);
			padding-left: 1rem;
		}

		.avatar-link {
			position: relative;
			grid-area: avatar;
			width: 4rem;
			height: 4rem;

			.avatar {
				all: unset;
				transition: var(--transition);
				box-shadow: var(--edge-highlight), var(--shadow);
				border-radius: var(--rounded-corner);
				background-position: 50%;
				background-size: cover;
				background-color: var(--fg-muted-1);
				width: 100%;
				height: 100%;
				overflow: hidden;

				&:hover {
					transform: rotate(10deg) scale(1.1);
					box-shadow: var(--edge-highlight), var(--shadow-raised);
				}

				&:active {
					transform: scale(var(--active));
					box-shadow: var(--edge-highlight), var(--shadow);
				}
			}
		}

		.author {
			display: flex;
			grid-area: name;
			align-items: center;
			gap: 0.25rem;
			font-weight: bold;

			.instance {
				transition: var(--transition);
				box-shadow: var(--edge-highlight);
				border-radius: 999px;
				background-color: var(--fg-muted-1);
				padding: 0.25rem 0.75rem;
				color: var(--fg-color);
				font-size: 0.8rem;
				text-decoration: none;

				&:hover {
					background-color: var(--fg-muted-2);
					text-decoration: none;
				}

				&:active {
					transform: scale(var(--active));
				}

				&.op {
					-webkit-backdrop-filter: unset;
					backdrop-filter: unset;
					box-shadow: none;
					background-color: transparent;
					color: var(--primary-color);

					&:hover {
						box-shadow: var(--edge-highlight);
						background-color: var(--primary-color-alpha);
					}

					&::before {
						margin-inline-end: 0.25rem;
						content: "✔";
					}
				}
			}
		}

		.emoji {
			all: unset;
			display: inline;
			vertical-align: middle;
			width: 1.5em;
			height: 1.5em;
		}

		time {
			grid-area: time;
			color: var(--fg-muted-5);
			font-size: 0.8rem;
		}

		main {
			grid-area: post;

			p:last-child {
				margin-bottom: 0;
			}
		}

		footer {
			grid-area: interactions;
			margin-top: 1rem;

			.boosts,
			.faves {
				display: inline-block;
				transition: var(--transition);
				margin-right: 0.25rem;
				border-radius: 999px;
				background-color: transparent;
				padding: 0.25rem 0.75rem;
				font-variant-numeric: tabular-nums;
				text-decoration: none;

				svg {
					vertical-align: -0.125em;
					transition: var(--transition-longer);
					margin-inline-end: 0.25rem;
				}

				&:hover {
					box-shadow: var(--edge-highlight);
					text-decoration: none;
				}

				&:active {
					transform: scale(var(--active));
				}
			}

			.boosts {
				color: var(--boosts-fg);

				&:hover {
					background-color: var(--boosts-bg);

					svg {
						transform: rotate(180deg);
					}
				}
			}

			.faves {
				color: var(--faves-fg);

				&:hover {
					background-color: var(--faves-bg);

					svg {
						transform: rotate(72deg);
					}
				}
			}
		}
	}
}
