div.gallery-space {
	height: 15px;
}

.gallery-icon, .gallery-icon a {
	background: none top left no-repeat;
}

ul.profile-icons li.gallery-icon {
	width: 20px; height: 20px;
}

.gallery-icon, .gallery-icon a {
	background-image: url("./images/icon_contact_gallery.gif");
}

h2.invade-linklist {
	margin-top: -20px;
}

.rtl .icon-gallery {
	background-position: 100% 50%;
	padding: 1px 17px 0 0;
}

fieldset.quickmod {
	padding: 0 0 15px 10px;
	font-weight: 700;
}

fieldset.gallery dd.simulate-dt label {
	margin-left:	0;
	float:			left;
	font-weight:	bold;
	text-align:		left;
	color:			#425067;
}
.rtl fieldset.gallery dd.simulate-dt label {
	text-align:		right;
}

fieldset.gallery dl:hover dd.simulate-dt label {
	color:			#000000;
}

fieldset.gallery dt.simulate-dt {
	width:			22em;
}

fieldset.gallery dt.first {
	min-height:		16em;
}

fieldset.gallery dd.simulate-dt {
	margin-left:	0;
	float:			left;
}

fieldset.gallery dd.simulate-dd {
	margin-left:	35em;
}

fieldset.gallery #format-buttons {
	margin-top: 0;
}

fieldset.gallery input.readonly, fieldset.gallery textarea.readonly {
	background: #DCDCDC;
}

fieldset.fields1 dd {
	margin-left: 17em;
}

dd.g_lastimage {
	padding-left: 5px;
	width: 30%;
}

dd.g_moderation {
	width: 35%;
}

dd.g_rating, dd.g_comments {
	width: 12%;
	text-align: center;
	font-size: 1.1em;
}

dd.g_status {
	width: 15%;
	text-align: center;
	font-size: 1.1em;
}

span.reported-images-number {
	color: red;
}

.g_unapproved {
	background: 100% 0 no-repeat url("./images/icon_gallery_unapproved.gif");
}

.g_locked {
	background: 100% 0 no-repeat url("./images/icon_gallery_locked.gif");
}

.g_reported {
	background: 100% 0 no-repeat url("./images/icon_gallery_reported.gif");
}

input.autowidth-gallery {
	width: 96%;
	max-width: 186px;
}

.polaroid
{
	@extend .forabg ul.topiclist li.row;
	width: 20%;
	min-width: 190px;
	display: block;
	float: left;
	margin: 1%;
	padding: 10px 7px;
	text-align: center;
	text-decoration: none;
	background:transparent url("./images/white_70.png");
	box-shadow: 1px 1px 3px rgba(102, 116, 140, 0.1);
	transition: all .15s linear;
	border-radius: 7px;
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
}

.polaroid p { margin-bottom: 1em; }

.polaroid p a { font-size: 11px; }

.polaroid img {
	max-height: 109px !important;
	max-width: 90%;
	border: 6px solid transparent;
	border-radius: 6px;
	padding: 0;
}

.polaroid a img:hover, div#image.postbody_album a img:hover {
	border-color: #446A67;
	cursor: zoom-in;
}

.polaroid .album-link:hover, .polaroid album-link a:hover {
	border-color: transparent;
	cursor: pointer;
}

div.polaroid div#thumbnail {
	min-height: 128px !important;
	padding-top: 6px;
	border-radius: 7px;
}

div.album-values { font-size: 11px; margin-bottom: 4px; word-wrap: break-word !important; }

div.album-title {
	white-space: nowrap !important;
	overflow: hidden !important;
	width: 100% !important;
	text-overflow: ellipsis !important;
}

div.thumbnail-values {
	font-size: 11px;
	text-align: left;
	margin-left: 6%;
	margin-bottom: 4px;
	word-wrap: break-word;
}

div.thumbnail-values div.dropdown { margin-left: 0 !important; left: 0 !important; }

.polaroid .album-values .dropdown.hidden { margin-left: 70px !important; }

div.thumbnail-values .small-icon.icon-edit::after { margin-top: -6px !important; }

.image_unapproved
{
	display: inline-block !important;
	background: transparent none 0 0 no-repeat;
	margin: 0;
	padding: 0;
	width: 0;
	height: 0;
	overflow: hidden;
	background-image: url("./images/icon_topic_unapproved.png");
	padding-left: 16px;
	padding-top: 14px;
	float: right;
}

.image_locked
{
	display: inline-block !important;
	background: transparent none 0 0 no-repeat;
	margin: 0;
	padding: 0;
	width: 0;
	height: 0;
	overflow: hidden;
	background-image: url("./images/lock.png");
	padding-left: 16px;
	padding-top: 14px;
	float: right;
}

.polaroid .postimage {
	border: 6px solid transparent !important;
}

.image_prev_image
{
	float: left; 
	text-align: left; 
	width: 48%;
}
.image_next_image
{
	float: right; 
	text-align: right; 
	width: 48%;
}

.postbody_album {
	text-align:center;
}
.postbody_album img.postimage {
	margin: 10px auto 10px auto;
	max-width: 100%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

/* Added by The Neverlands */

.fa-navicon::before, .fa-reorder::before, .fa-neverbars::before {
	content: "\f0c9";
}

div.gallery.forumbg { max-width: 98%; margin: 10px auto; }
 
ul.topiclist dl { position: unset !important; }

ul.topiclist dl.row-item.topic_read_mine dd.mark { margin-left: 320px; }

dd.lastpost img.postimage {
	max-width: 100% !important;
	max-height: 47px !important;
	border: 3px solid transparent !important;
	border-radius: 6px;
	padding: 0 !important;
	margin: -2px 0 0 8px !important;
}

dd.lastpost img.postimage:hover {
	border: 3px solid #446A67 !important; 
}

.postbody_album img.postimage { min-width: 600px !important; }

div#recent-comments div.content { width: 65%; float: left; }

div#recent-comments .postprofile { width: 240px; margin-top: -25px; }

div#recent-comments .postprofile dt { margin-top: 10px; }

div#recent-comments .postprofile dt img {
	max-width: 100% !important;
	max-height: 90px !important;
}

div#recent-comments .post-buttons {
	padding-top: 15px;
	position: absolute;
	right: 268px;
}

div#recent-comments p.author {
	padding: 10px 0 5px 0;
	margin-left: -10px;
}

div#phpbb_gallery_user_profile div.polaroid  { width: 210px; margin-bottom: 18px; }

div#phpbb_gallery_user_profile div.polaroid div#thumbnail img.postimage { max-width: 190px !important; }

#ucp_gallery .topiclist li.row dt > span:nth-child(1) { margin: 4px 6px 0 6px; }