.nelio-content-social-message-mastodon-preview {
	background: #fff;
	border: 1px solid;
	border-color: #e5e6e9 #dfe0e4 #d0d1d5;
	border-radius: 8px;
	cursor: default;
	font-family:
		mastodon-font-sans-serif,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Helvetica,
		Arial,
		sans-serif;
	margin: 1em 1.5em;
	padding: 10px 20px;
	user-select: none;

	.nelio-content-social-profile-icon {
		float: left;
		font-size: 42px;
		margin-right: 10px;
	}

	&__name-info {
		height: 42px;
	}

	&__display-name {
		font-size: 16px;
		font-weight: 700;
		line-height: 1.25;
		margin-top: 3px;
		padding-top: 2px;
	}

	&__username,
	&__date {
		color: #536471;
	}

	&__image {
		border-radius: 5px;
		height: 200px;
		object-fit: cover;
		overflow: hidden;
		width: 100%;

		&--left {
			border-top-right-radius: 0;
			border-bottom-right-radius: 0;
		}

		&--right {
			border-top-left-radius: 0;
			border-bottom-left-radius: 0;
		}

		&--top-left {
			border-top-right-radius: 0;
			border-bottom-left-radius: 0;
			border-bottom-right-radius: 0;
		}

		&--top-right {
			border-top-left-radius: 0;
			border-bottom-left-radius: 0;
			border-bottom-right-radius: 0;
		}

		&--bottom-left {
			border-top-right-radius: 0;
			border-top-left-radius: 0;
			border-bottom-right-radius: 0;
		}

		&--bottom-right {
			border-top-right-radius: 0;
			border-top-left-radius: 0;
			border-bottom-left-radius: 0;
		}
	}

	&__media-item {
		height: 100%;
		object-fit: cover;
		width: 100%;
	}

	&__media-pair {
		display: flex;
		flex-direction: row;
		gap: 2px;

		&--vertical {
			flex-direction: column;
			width: 100%;
			gap: 2px;

			> .nelio-content-social-message-mastodon-preview__media-item {
				max-height: 99px;
			}

			img {
				height: 99px;
			}
		}
	}

	&__media-group {
		display: flex;
		flex-direction: row;
		gap: 2px;

		&--vertical {
			flex-direction: column;

			.nelio-content-social-message-mastodon-preview__media-pair {
				max-height: 100px;
			}

			.nelio-content-social-message-mastodon-preview__image {
				height: 100px;
			}
		}

		> .nelio-content-social-message-mastodon-preview__media-item {
			width: 100%;
			height: 200px;
		}
	}
}

/* MESSAGE */

.nelio-content-social-message-mastodon-preview
	.nelio-content-computed-text-preview {
	cursor: auto;
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 22px;
	margin: 10px 0;
	user-select: auto;
	overflow-wrap: break-word;

	&--empty {
		opacity: 0.6;
	}

	&__link,
	&__mention,
	&__hash {
		color: #2ca9e1;
	}
}

/* SHARED POST */

.nelio-content-mastodon-shared-link {
	border: 1px solid #e1e8ed;
	border-radius: 5px;
	margin-bottom: 1em;
	overflow: hidden;

	&__image {
		height: 160px;
		object-fit: cover;
		overflow: hidden;
		width: 100%;
	}

	&__content {
		padding: 1em;
	}

	&__title {
		color: #000;
		font-size: 14px;
		font-weight: 400;
		margin-bottom: 0.2em;
		padding: 0;
	}

	&__domain {
		margin-bottom: 0.2em;
		margin-top: -0.2em;
	}

	&__domain,
	&__excerpt {
		color: #536471;
		font-size: 14px;
	}
}
