.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.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;
}

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: 480px;
}

.polaroid {
	min-width: 152px;
    width: 26vw;
    max-width: 245px;
	height: 242px;
	/*width: 245px;*/
	background: var(--grey2);
	display: block;
	float: left;
	margin: 9px;
	padding: 10px;
	text-align: center;
	text-decoration: none;
	transition: all .15s linear;
	box-shadow: 0 4px 6px var(--shadow2);
	border: 0px solid #EFEFEF;
	border-radius: 5px;
}
.polaroid img, .polaroid-index img, .polaroid-user img {
	/*max-height: 120px;
	max-width: 230px;*/
	height: auto;
	width: 100%;
	transition: transform .6s;
}
.polaroid img:hover, .polaroid-index img:hover, .polaroid-user img:hover {
	transform: scale(1.1);
}
.polaroid-index {
	width: 192px;
	height: 242px;
	background: var(--grey2);
	display: block;
	float: left;
	margin: 9px;
	padding: 10px;
	text-align: center;
	text-decoration: none;
	transition: all .15s linear;
	box-shadow: 0 4px 6px var(--shadow2);
	border: 0px solid #EFEFEF;
	border-radius: 5px;
}

.polaroid-user {
	min-width: 152px;
    width: 26vw;
    max-width: 245px;
	/*width: 245px;*/
	/*height: 202px;*/
	background: var(--grey2);
	display: block;
	float: left;
	margin: 9px;
	padding: 10px;
	text-align: center;
	text-decoration: none;
	transition: all .15s linear;
	box-shadow: 0 4px 6px var(--shadow2);
	border: 0px solid #EFEFEF;
	border-radius: 5px;
}

#thumbnail>a {
    width: 100%;
    height: 140px;
    display: inline-flex;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}
.ellipsis {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: -webkit-fill-available;
}

.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;
}



/*.image_prev_image
{
	float: left; 
	text-align: left; 
	width: 48%;
	clip-path: url(#left_arrow);
}
.image_next_image
{
	float: right; 
	text-align: right; 
	width: 48%;
	clip-path: url(#right_arrow);
}*/

.image_next_image {
    text-align: right;
    flex: 2;
}
.image_prev_image img, .image_next_image img {
	border-radius: 5px;
	border: 1px solid #ffffff;
	transition: all .4s;
    position: relative;
	top: 0;
	right: 0;
	left: 0;
}
.image_prev_image img:hover, .image_next_image img:hover {
	transform: scale(1.5);
	top: 10px;
	right: 17px;
}
.image_next_image img:hover {
	top: 10px;
	right: 17px;
}
.image_prev_image img:hover {
	top: 10px;
	left: 17px;
}
.postbody_album {
	text-align:center;
	position: relative;
}
.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;
	box-shadow: 0 5px 10px #0000003d;
	border: 3px solid #ffffff;
}
.postbody_album a {
	position: relative;
}
.album_prev_next {
	position: absolute;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    height: 100%;
	top: 12px;
}


.trophy-container
{
	position: relative;
	float: right;
	margin-left: -100%;
	font-size: 3em;
	color: #f2f2f2;
	top: -20px;
	left: -10px;
}

.trophy-icon
{
	margin-left: -22px;
	margin-top: -6px;
	display: inline-block;
	font-weight: normal;
	font-style: normal;
	font-variant: normal;
	font-family: FontAwesome;
	font-size: 2em;
	line-height: 1;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-shadow: 1px 1px 1px #b7b7b7;

}

.trophy-text
{
	font-size: 0.8em;
}

.trophy-color-1
{
	color: #FFD700;
}
.trophy-color-2
{
	color: silver;
}
.trophy-color-3
{
	color: #CD7f32;
}

.pic-details {
	text-align: left;
}


.iconify-inline {
	vertical-align: -0.3em !important;
}

.polaroid>div#thumbnail, .polaroid-user>div#thumbnail, .polaroid-index>div#thumbnail {
    height: 145px;
}
.polariod-dropdown {
    position: absolute;
}

.gallery-forum {
	display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

@media (max-width: 1200px) {
	.album_prev_next {
		position: relative;
		top: unset;
	}
}

@media (max-width: 600px) {
	.polaroid-index {
		height: 188px;
		width: 135px;
	}

	.polaroid, .polaroid-user {
		/*width: 152px;*/
		margin: 6px 4px;
		padding: 7px;
	}
	.polaroid {
		height: 188px;
	}
	
	#thumbnail>a {
		width: 100%;
		height: 100px;
		display: inline-flex;
		overflow: hidden;
		justify-content: center;
		align-items: center;
	}
	.iconify-inline {
		height: 16px !important;
		width: 16px !important;
	}
	.polaroid>div#thumbnail, .polaroid-user>div#thumbnail, .polaroid-index>div#thumbnail {
		height: 105px;
	}
	
}

.gallery-manage {
	padding: 2px 6px;
    margin: 3px;
    line-height: 2rem;
    border: 1px solid #00000017;
    border-radius: 14px;
    background: #00ffff5e;
}