/**
 * For the front-end
 */

.scf-component {
	margin: 0;
	padding: 0;
}

.scf-component p { margin-top: 0; }

.scf-component .photo-image img { width: 100%; margin-bottom: 0; }

.photo {}

.photo-left { float: left; margin: 5px; }

.photo-right { float: right; margin: 5px; }

.photo-title {
	margin: 0;
	padding: .5em 0; /*padding: .5em;*/
	color: #333;
	font-weight: bold;
	line-height: 1.1em;
}
.photo-title p { margin: 0; }

.photo-image {
	display: inline-block; /*new*/
	position: relative;
	margin-bottom: .5em;
	border: 3px solid #AAA;
	background-color: #EFEFEF;
	text-align: center;
}

.photo-image img { margin-bottom: 0; }

.photo-caption {
	margin: 0;
	/*padding: 0 .5em;*/
}

.photo-caption p { margin-top: 0em; }

.photo-links {
	display: none;
	position: absolute;
	bottom: 0;
	right: 0;
	width: auto;
	background-color: #AAA;
}

.photo-links a {
	margin: 2px 2px 0 2px;
	padding: 2px 5px 0 5px;
	text-decoration: none;
}

.photo-image:hover .photo-links,
.photo-image:focus .photo-links { display: block; }

.photo-links .link,
.photo-links .enlarge {
	display: inline-block;
	margin-top: 2px;
	height: 14px;
	width: 14px;
	background: transparent url('img/icon-enlarge.gif') no-repeat 50% 50%;
	text-indent: 100px;
	line-height: 14px;
	white-space: nowrap;
	overflow: hidden;
}

.photo-links .link { background-image: url('img/icon-record.gif'); }

.photo-caption .link {
	display: block;
	margin-top: 5px;
	padding: 0 0 0 20px;
	background: transparent url('/sites/all/themes/nmah/img/green_arrow.gif') no-repeat 10px 50%;
}
