
#page.img-page {
	padding-top: 20px;
}
#img-title {
	text-align: center;
	font-size: 20px;
	padding: 0;
	margin: 0 0 20px;
	color: #333;
	word-wrap: break-word;
}
.darkmode #img-title {
	color: #ccc;
}
.img-pane {
	margin: 0 0 20px;
}

#img-primary {
	float: left;
	position: relative;
	width: 740px;
}
#img-secondary {
	max-width: 300px;
	margin-left: 760px;
}
#img-source {
	color: #666;
	font-size: 12px;
	word-wrap: break-word;
}
#img-source p {
	margin: 10px 0 0;
}
.img-added-imgs-msg {
	font-size: 9px;
	color: #444;
	margin: 10px 0 0;
	word-wrap: break-word;
}
.img-desc {
	font-size: 10px;
	color: #666;
	margin: 10px 0 0;
	word-wrap: break-word;
}
.darkmode #img-source,
.darkmode .img-desc,
.darkmode .img-added-imgs-msg {
	color: #999;
}
.img-desc-label {
	font-size: 9px;
	margin-bottom: 2px;
}
#img-wrap-wrap {
	margin: 0 auto;
	max-width: 100%;
}
#img-wrap {
	position: relative;
	height: 0;
	overflow: hidden;
}
#im, #vid {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.img-page .recaption {
	display: block;
	margin: 20px auto;
	max-width: 300px;
}
.img-page .recaption img, .gif-icon {
	display: inline-block;
	vertical-align: middle;
	width: 50px;
	height: 50px;
	margin: 10px 12px 10px 10px;
	position: relative;
}
.gif-icon {
	width: 60px;
	height: 60px;
	margin: 5px 12px 5px 5px;
}
.gif-icon1, .gif-icon2, .gif-icon3 {
	position: absolute;
	width: 30px;
	height: 30px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 2px;
}
.darkmode .gif-icon1,
.darkmode .gif-icon2,
.darkmode .gif-icon3 {
	background: #333;
	border-color: #666;
}
.gif-icon1 {
	left: 10px;
	bottom: 10px;
}
.gif-icon2 {
	left: 15px;
	bottom: 15px;
}
.gif-icon3 {
	left: 20px;
	bottom: 20px;
}
.gif-icon-play {
	position: absolute;
	left: 20px;
	bottom: 18px;
	border: 8px solid transparent;
	border-left: 13px solid #ccc;
}
.darkmode .gif-icon-play {
	border-left-color: #777;
}
#img-main .recaption {
	display: none;
	margin: 10px auto;
}
.img-sidebar-ad {
	margin: 20px 0 20px;
}

/*** Comment Section ***/

#c-area {
	position: relative;
	width: 100%;
	min-height: 66px;
	margin: 0 auto 30px;
	text-align: left;
}
.c-new-wrap {
	margin: 10px 0;
	position: relative;
}
.c-new-text {
	display: block;
	width: 100%;
	min-height: 50px;
	padding: 5px;
}
.has-pending-img .c-new-text {
	padding-left: 57px;
}
.c-new-btn-wrap {
	text-align: right;
	margin-top: -1px;
}
.c-add-btn {
	border-radius: 0 0 3px 0;
}
.c-add-btn:hover,
.c-meme-btn:hover,
.c-add-img-btn:hover {
	position: relative;
}
.c-meme-btn {
	margin-right: -1px;
	border-radius: 0 0 0 3px;
}
.c-add-img-btn {
	margin-right: -1px;
	border-radius: 0;
}
.c-add-img-popup {
	padding: 20px;
	max-width: 260px;
}
input.c-add-img-input {
	width: 100%;
	margin: 20px 0 0;
}
.c-add-img-preview-label {
	margin: 20px 0 10px;
}
.c-add-img-popup img {
	display: block;
	margin: 0 auto;
	max-height: 200px;
	max-width: 100%;
}
.c-add-img-submit-btn {
	width: 100%;
	margin: 20px 0 0;
}
.c-pending-img {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 44px;
	height: 44px;
	background: #ccc; /* so the user knows an image is loading, instead of seeing nothing until it loads */
}
#img-coms.collapsed,
.collapsed + #c-more-btn {
	display: none;
}
#img-coms-header {
	margin: 20px 0 10px;
}
#img-coms-title {
	display: inline-block;
	font-size: 20px;
	font-weight: 300;
	line-height: 30px;
	color: #333;
	padding-left: 2px;
	cursor: pointer;
}
.darkmode #img-coms-title {
	color: #ccc;
}
#img-coms-disabled-title {
	font-size: 20px;
	font-weight: 300;
	line-height: 30px;
	color: #999;
	text-align: center;
}
#img-coms-title-msg {
	font-size: 11px;
	color: #999;
	padding-left: 10px;
	vertical-align: middle;
}
#img-coms-sort-wrap {
	float: right;
}
.bad-com {
	color: #999;
	font-size: 13px;
	margin: 10px 0 10px 30px;
}
.bad-com-btn {
	cursor: pointer;
}
.bad-com-btn:hover {
	text-decoration: underline;
}
.com {
	margin-bottom: 5px;
	transition: margin-left .2s;
}
/* add hack margin above comments so hash links don't put content underneath fixed header */
.com:before {
	display: block;
	content: " ";
	margin-top: -56px;
	height: 56px;
	visibility: hidden;
	pointer-events: none;
}
.com.child-of-bad {
	display: none;
}
.com.hidden .c-vote, .com.hidden .c-right {
	display: none;
}
.com.collapsed .c-right {
	border-bottom-style: dashed;
	border-bottom-width: 2px;
}
.c-vote {
	float: left;
	width: 27px;
	height: 40px; /* lower than actual height to ensure clearfix in .c-text will work */
}
.c-up, .c-down {
	position: relative; /* To ensure hover effect z-index takes effect over other elements */
	display: inline-block;
	vertical-align: top;
	width: 28px;
	height: 28px;
}
.c-up {
	border-radius: 3px 0 0 0;
}
.c-down {
	border-radius: 0 0 0 3px;
	margin-top: -1px;
}
.c-right {
	position: relative;
	min-height: 55px;
	padding: 5px;
	border: 1px solid #ccc;
	background: #fff;
	margin-left: 27px;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}
.darkmode .c-right {
	background: #333;
	border-color: #666;
}
.c-linked .c-right {
	border-color: #00bff3;
}
.c-title {
	display: inline-block;
	vertical-align: top;
	font-size: 13px;
}
.c-title .ico {
	display: inline-block;
	vertical-align: top;
	margin: -2px 3px 0 -1px;
}
.c-title .ico.ico-custom {
	margin-bottom: -1px;
	margin-left: -2px;
}
.c-title a {
	color: #666;
}
.darkmode .c-title a {
	color: #999;
}
.c-title a.c-img-owner {
	color: #4b4;
}
.c-mod-stream {
	color: #999;
	padding-left: 5px;
}
.c-mod-3 {
	color: #4b4;
	padding-left: 5px;
}
.c-mod-5 {
	color: #96f;
	padding-left: 5px;
}
.c-text {
	margin: 6px 0 0;
	word-wrap: break-word;
	line-height: 18px;
	/* ensure content, including css padding of imgs, cannot reach outside div and affect page width causing horizontal scroll */
	overflow: hidden;
	max-height: 252px; /* keep in sync with updateCommentShowFullButtons in javascript */
}
.c-show-full .c-text {
	max-height: initial;
	padding-bottom: 32px;
}
.c-img-wrap-wrap {
	float: left;
	margin: 0 10px 0 0;
	max-width: 100%;
}
.c-img-wrap {
	height: 0;
	position: relative;
}
.c-img-wrap img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.c-img {
	float: left;
	max-height: 210px;
	max-width: 100%;
	padding: 0 10px 0 0;
}
.c-img video {
	max-height: 210px;
	max-width: 100%;
}
.c-img-wrap-wrap + .c-textonly {
	display: inline-block;
	min-width: 80px;
	max-width: 100%;
	margin: 5px 0 0;
}
.c-img-deleted {
	color: #999;
}
.c-stats {
	display: inline-block;
	margin: 0 0 0 10px;
	color: #666;
}
.darkmode .c-stats {
	color: #999;
}
.c-reply-count {
	cursor: pointer;
	display: inline;
}
.c-reply-count:hover {
	text-decoration: underline;
}
.c-stats, .c-delete, .c-reply, .c-flag {
	font: 400 12px/16px helvetica, arial;
	vertical-align: top;
}
.c-delete, .c-reply, .c-flag {
	float: right;
	margin-left: 5px;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}
.l1 .c-right,
.l2 .c-right,
.l3 .c-right,
.l4 .c-right,
.l5 .c-right,
.l6 .c-right,
.l7 .c-right,
.l8 .c-right,
.l9 .c-right,
.l10 .c-right {
	padding-left: 10px;
}
.l1 .c-right:after,
.l2 .c-right:after,
.l3 .c-right:after,
.l4 .c-right:after,
.l5 .c-right:after,
.l6 .c-right:after,
.l7 .c-right:after,
.l8 .c-right:after,
.l9 .c-right:after,
.l10 .c-right:after {
	content: ' ';
	position: absolute;
	top: 0;
	left: 0;
	width: 5px;
	height: 100%;
}
.l1 {
	margin-left: 10px;
}
.l2 {
	margin-left: 20px;
}
.l3 {
	margin-left: 30px;
}
.l4 {
	margin-left: 40px;
}
.l5 {
	margin-left: 50px;
}
.l6 {
	margin-left: 60px;
}
.l7 {
	margin-left: 70px;
}
.l8 {
	margin-left: 80px;
}
.l9 {
	margin-left: 90px;
}
.l10 {
	margin-left: 100px;
}
.l1 .c-right:after {
	background: #f80;
}
.l2 .c-right:after {
	background: #f33;
}
.l3 .c-right:after {
	background: #955;
}
.l4 .c-right:after {
	background: #d0c;
}
.l5 .c-right:after {
	background: #00bff3;
}
.l6 .c-right:after {
	background: #33f;
}
.l7 .c-right:after {
	background: #2e2;
}
.l8 .c-right:after {
	background: #ee0;
}
.l9 .c-right:after {
	background: #f80;
}
.l10 .c-right:after {
	background: #f33;
}
.c-show-full-btn {
	width: 100%;
	position: absolute;
	bottom: 0;
	left: 0;
	opacity: 0.85;
	border-radius: 0;
}
.c-show-full-btn.but.l {
	border: none;
	height: 30px;
}
#c-more-btn {
	display: block;
	margin: 20px 0;
	height: 40px;
	line-height: 38px;
}
#com-delete-popup {
	max-width: 300px;
	padding: 20px;
}
#com-delete-popup .select,
#com-delete-note,
#com-delete-submit-btn {
	display: block;
	margin-top: 20px;
}
#com-delete-note {
	margin-top: 5px;
}

.img-is-nsfw {
	display: inline-block;
	margin-bottom: 10px;
	color: #f44;
}

.img-claim-msg {
	margin: 20px 0;
	border-color: #f70;
	background-color: #fff7f0;
	text-align: center;
}


/* Image Panel beneath image */

.img-ad {
	margin: 20px 0;
}
#img-panel {
	margin: 20px 0 10px;
	padding: 10px;
}
.img-info {
	font-size: 13px;
	margin: 10px 0 0;
}
.img-views, .img-votes, .img-private {
	white-space: nowrap;
}
.img-tags {
	margin: 7px 0 -3px;
}
.img-tags .img-tag {
	margin-left: 0;
	margin-right: 6px;
}
.img-vote-wrap {
	float: left;
}
.img-date-info {
	white-space: nowrap;
}
.img-date-info.more {
	border-bottom: 1px dotted #ccc;
	cursor: help;
}


#miniGenerator {
	width: 1060px;
	max-width: 100%;
	padding: 30px 20px;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}

/*** Image Admin on flip page ***/

#img-title-edit, #img-tags-edit, #img-reddit-title {
	display: block;
	margin: 10px 0;
	width: 100%;
}
#img-nsfw-edit {
	margin-top: 4px;
}
#img-admin .my-submit-status {
	margin-bottom: 15px;
}
.img-admin-btns {
	margin: -5px;
}
.img-admin-btns .but {
	margin: 5px;
	width: 125px;
}
.img-admin-btns + p {
	margin-top: 20px;
}
.img-admin-btns .my-submit-btn {
	width: 260px;
}
#img-update-wrap {
	margin: 20px 0 0;
}
#img-update {
	width: 100%;
}
.history-table {
	margin: 20px;
	text-align: left;
}
.img-stats-chart {
	position: relative;
	width: 600px;
	padding: 20px;
	max-width: 100%;
	min-height: 340px;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}
.img-stats-chart .load {
	position: absolute;
	left: 50%;
	top: 50%;
	margin: -25px 0 0 -25px;
}

@media (max-width: 1000px) {

	#page.img-page {
		padding-top: 10px;
	}
	.img-pane {
		box-sizing: border-box;
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
		width: 100%;
	}
	#img-primary {
		float: none;
		width: 100%;
		max-width: 740px;
		margin: 0 auto 20px;
	}
	#img-title {
		margin: 0 0 10px;
	}
	#img-wrap-wrap-wrap-lol {
		margin: 0 -3px;
	}
	#im {
		max-width: 100%;
		height: auto;
	}
	#img-panel, .img-claim-msg {
		margin: 10px auto;
	}
	#c-area {
		margin: 0 auto;
		padding: 0;
	}
	#img-secondary {
		width: 100%;
		max-width: 740px;
		margin: 20px auto;
	}
	#img-admin {
		margin-bottom: 10px;
	}
	#img-secondary .recaption {
		display: none;
	}
	#img-main .recaption {
		display: block;
	}
}