
#photo,
.photo_gallery {
	float: left;
	margin: 0 0 0.5em;
	position: relative;
}

.photo_gallery {
	float: none;
}

#photo .photo_container,
.photo_gallery .photo_container {
	position: relative;
	width: 533px;
	min-height: 400px;
}

#current_photo {
	min-height: 400px;
}


#photo .photo_container img,
.photo_gallery .photo_container img {
	display: block;
}

#photo .photo_ad {
	bottom: 0;
	left: 0;
	color: #fff;
	overflow: hidden;
	position: absolute;
	width: 100%;
	visibility: hidden;
}
#photo .photo_ad .photo_ad_plate {
	background: #000;
	position: absolute;
	opacity: 0.4;
	filter: alpha(opacity=40);
	height: 1000px;
	width: 100%;
	left: 0;
}
#photo .photo_ad .photo_ad_close {
	cursor: pointer;
	right: 5px;
	top: 5px;
	position: absolute;
	z-index:100;
}
#photo .photo_ad .photo_ad_content {
	padding: 1em;
	position: relative;
}

#photo .photo_ad a {
	color:#fff;
}

#photo .photo_ad .ad_image {
	float: left;
	margin: 0 10px 10px 0;
	position: relative;
}
#photo .photo_previews ul,
#photo .photo_previews li,
.photo_gallery .photo_previews ul,
.photo_gallery .photo_previews li {
	list-style: none;
	margin: 0;
	padding: 0;
}

#photo .photo_previews,
.photo_gallery .photo_previews {
	left: 100%;
	top: 0;
	position: absolute;
}

#photo .photo_previews ul,
.photo_gallery .photo_previews ul {
	margin: 0 0 0 15px;
}
#photo .photo_previews li,
.photo_gallery .photo_previews li {
	text-align: center;
	min-height: 45px;
	margin-bottom: 3px;
	position: relative;
	--height: 45px;
}

#photo .photo_previews li .init_play,
.photo_gallery .photo_previews li .init_play {
	left:16px;
	position:absolute;
	top:9px;
}

#photo .photo_previews li.more,
.photo_gallery .photo_previews li.more {
	background: #d1cbcb;
}

#photo .photo_previews li img,
.photo_gallery .photo_previews li img {
	display: block;
	margin: 0 auto;
}

#photo .photo_previews .selected a,
.photo_gallery .photo_previews .selected a {
	border: 3px solid #ff0;
	padding: 1px;
	cursor: auto;
}

#photo .photo_previews a:hover,
.photo_gallery .photo_previews a:hover {
	border-color: #d1cbcb !important;
}
#photo .photo_previews .selected a:hover,
.photo_gallery .photo_previews .selected a:hover {
	border-color: #ff0 !important;
}

#photo .photo_previews a,
.photo_gallery .photo_previews a {
	border: 1px solid #d1cbcb;
	outline: none;
	line-height: 18px;
	display: block;
	padding: 3px;
	--width: 60px;
}

.photo_gallery .photo_desc {
	font-size: 87%;
	font-style: italic;
	padding-top: 0.5em;
}
