#sidebar {
	width: 224px;
	line-height: 1.33em;
	font-size: 90%;
}

.post-type-image img,
.post-type-video video {
	max-width: 100%;
}

.post-type-youtube iframe {
	width: 800px;
	height: 600px;
	border: 0;
}

#sidebar .relations ul,
#sidebar .tags ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
#sidebar .tags .tag-wrapper {
	max-width: 100%;
	position: relative;
	display: inline-block;
}
#sidebar .tags li a {
	padding-right: 2.75em;
	box-sizing: border-box;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: inline-block;
	width: 100%;
	vertical-align: text-bottom;
}
#sidebar .tags li .count {
	position: absolute;
	width: 2em;
	right: 0;
	top: 0;
	color: silver;
	vertical-align: text-bottom;
}

#around {
	margin-bottom: 2em;
}
#around .text {
	font-size: 90%;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
	margin-top: 0.75em;
}
#around .left {
	float: left;
}
#around .right {
	float: right;
}
#around a.disabled {
	color: silver;
}
#around a.disabled i[class*='icon-'] {
	background-color: silver;
}

#sidebar .uploader .date {
	font-size: 9pt !important;
	color: gray;
	display: inline-block;
	position: relative;
	top: -5px;
}
#sidebar .uploader img {
	vertical-align: text-top;
	float: left;
	margin: 3px 8px 0 0;
	width: 25px;
	height: 25px;
	background-image: url('http://www.gravatar.com/avatar/0?f=y&d=mm&s=25');
}

#sidebar .unit.details { margin-bottom: 1.5em; }
#sidebar .unit.hl-options { margin-top: 1.5em; }

#sidebar .safety-safe {
	color: #43aa43;
}
#sidebar .safety-sketchy {
	color: #d4a627;
}
#sidebar .safety-unsafe {
	color: #df4b0d;
}

#sidebar .score .selected {
	font-weight: bold;
}
#sidebar .score a:first-of-type:before {
	content: '[';
	color: black;
}
#sidebar .score a:last-of-type:after {
	content: ']';
	color: black;
}

#sidebar .permalink {
	display: inline-block;
	margin: 1em 0 0 -1px;
	width: 100%;
	font-size: 85%;
	line-height: 150%;
	height: auto;
	padding: 0.2em 0.5em;
	cursor: text;
	color: dimgray;
	border: 1px solid #e0e0e0;
	box-sizing: border-box;
	text-overflow: ellipsis;
	white-space: pre;
	overflow: hidden;
}

#sidebar .left a,
#sidebar .right a {
	display: inline-block;
}
i.icon-prev {
	background-position: -12px -1px;
	margin-left: 8px;
}
i.icon-next {
	background-position: -1px -1px;
	margin-right: 8px;
}
i.icon-prev,
i.icon-next {
	vertical-align: middle;
	width: 8px;
	height: 20px;
}

i.icon-dl {
	margin: 0;
	width: 20px;
	height: 20px;
	background-position: -22px -1px;
}

i.icon-edit {
	margin: 0;
	width: 20px;
	height: 20px;
	background-position: -43px -22px;
}

i.icon-fav {
	margin: 0;
	width: 20px;
	height: 20px;
}
.add-fav i.icon-fav {
	background-position: -1px -22px;
}
.rem-fav i.icon-fav {
	background-position: -22px -22px;
}

.hl-option {
	margin: 0.4em 0;
}
.hl-option i[class^='icon'] {
	vertical-align: middle;
}
.hl-option span {
	padding-left: 0.4em;
	vertical-align: middle;
}
.permalink .ext:after {
	content: ', ';
}

.options ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.favorites p {
	margin: 0;
}
.favorites ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
.favorites li {
	display: inline-block;
}
.favorites a {
	margin: 2px;
}

#inner-content {
	position: relative;
}
.unit.edit-post {
	position: absolute;
	margin-top: 0;
	padding: 1em;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 0 1em 1em rgba(255, 255, 255, 0.8);
	z-index: 99;
	top: 0;
	left: 0;
	right: 0;
	display: none;
}
.unit.edit-post ul.tagit,
.unit.edit-post input:not([type=file]) {
	background: rgba(255, 255, 255, 0.75);
}
.unit.edit-post ul.tagit input {
	background: transparent;
}
ul.tagit {
	display: block;
	vertical-align: middle;
	margin: 0;
	font-size: 1em;
}