/* --- External appearance settings --- */

html, body {
	margin:0;
	padding:0;
}
body{
	text-align: center;
	font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Helvetica, Arial, sans-serif;
	background-color: #eee;
	color: #444;
	font-size: 75%;
}
a{
	/* color: #27D; */
	text-decoration: none;
}
a:focus, a:hover, a:active {
	text-decoration: underline;
	-webkit-transition: all .4s;
	transition: all .4s;
}
p {
	line-height: 1.8em;
	margin:0.5em 0 0.5em 0;
}
h1, h2 {
	font-family: "Trebuchet MS", Verdana, sans-serif;
	margin: 0 0 8px 0;
	letter-spacing: -1px;
}
h1 {
	padding: 0;
	font-size: 2.5em;
	color: #333;
    display: inline-block;
}
h2 {
	font-size:1.8em;
}
div#page {
	width: 99%;
    max-width: 1660px; /* overridden in-page script based upon maximum image size from lightroom */
    min-width: 294px;
	background-color: #fff;
	text-align: left;
	border-color: #ddd;
	border-style: solid solid solid; /* "none solid solid" if not using header */
	border-width: 1px 1px 1px;
	border-radius: 8px; /* round out edges */
	overflow:hidden;
}
div.pagewidth {
	margin: 0px auto;
}
div#container {
	padding: 20px;
}
div#footer {
	color: #777;
	margin: 0 auto;
	padding: 15px 0 30px;
	text-align: center;
}
.ieLTE8 a img {
	border: none;
	outline: none;
}

/* --- Gallerific internal settings --- */

* {
	box-sizing: border-box;
}
div.group:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}
/* grumpicon svg icons with png fallback */
.icon {
	display: inline-block;
	width: 1.3em;
	height: 1.3em;
	text-align: center;
	vertical-align: top;
	background-size: cover; /* will size to space available */
	background-repeat: no-repeat;
	/* fix buttons height, for twitter bootstrap */
	/* line-height: 1em; */
}
.ie7 .icon, .ie6 .icon, .ie5 .icon {
	display: inline;
	clear: both;
}
.icon img {
	max-width: 100%;
	max-height: 100%;
}
.icon svg {
	max-width: 100%;
	max-height: 100%;
}
.icon path {
	fill: currentColor;
}
.ilg {
	width: 1.6em;
	height: 1.6em;
}
.i2x {
	width: 2em;
	height: 2em;
}
.iNav {
	width: 16px;
	height: 24px;
	line-height: 24px;
	vertical-align: middle;
}
.ie7 .icon img, .ie6 .icon img, .ie5 .icon img {
	width: 1.3em;
	height: 1.3em;
}
.ie7 .icon img, .ie6 .icon .ilg img, .ie5 .icon .ilg img {
	width: 1.6em;
	height: 1.6em;
}
.ie7 .icon img, .ie6 .icon .i2x img, .ie5 .icon .i2x img {
	width: 2em;
	height: 2em;
}
/* fancy tooltip support, see http://codepen.io/anon/pen/YXmoKp */
.tt {
  position: relative;
  cursor: pointer;
}
.tt:after {
  content: attr(data-tt);
  position: absolute;
  left: 1.8em;
  top: -2.1em;
  white-space: nowrap;
  color: #FFF;
  background: rgba(0, 0, 0, 0.8);
  padding: 3px 7px;
  border-radius: 3px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  margin-left: 7px;
  border: 1px solid gray;
  margin-top: -3px;
  transition-delay: 0s;
  visibility: hidden;
  opacity:0.0;
}
.tt:hover:after {
  visibility:visible;
  opacity: 1.0;
  transition-delay: .5s;
  -webkit-transition-delay: .5s;
  transition-duration: .4s;
  -webkit-transition-duration: .4s;
  transition-timing-function: ease-in;
  -webkit-transition-timing-function: ease-in;
}
.tt-lr:after {
  top: 1.8em;  
}
.tt-ll:after {
  top: 2.1em;
  left: auto;
  right: 1.8em;
}
.tt-ul:after {
  left: auto;
  right: 1.8em;
}
/* popups (for facebook, now anyway), see http://jsfiddle.net/zyrm2qop/6/*/
#fbOverlay {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.7);
	transition: opacity 500ms;
	visibility: hidden;
	opacity: 0;
	z-index: -999;
}
.popup {
	margin: 140px auto 0px;
	padding: 18px;
	width: 20%;
	min-width: 265px;
	background: #fff;
	text-align: center;
	border: 2px solid gray;
	border-radius: 5px;
	position: relative;
	transition: all 5s ease-in-out;
}
.popup h2 {
	margin: 5px auto 15px;
	color: #333;
}
.popup .close {
	position: absolute;
	top: 3px;
	right: 3px;
	font-size: 12px;
	opacity: 0.75;
	transition: all 200ms;
}
.popup .close:hover {
	opacity: 1.0;
}
.popup .popupContent {
	margin: 0px auto;
	height: 40px;
	width: 225px;
	color: #555;
}

div.content {
	/* The display of content is enabled using jQuery so that the slideshow content won't display unless javascript is enabled. */
	display: none;
	float: right;
	width: 66%;
	max-width: 1230px;
}
.ieLTE8 div.content{
	width: 62%; /* old IE needs more space between divs */
}
div.content a, div.navigation a {
	text-decoration: none;
	color: #777;
}
div.controls a {
	display: inline-block;
	position: relative;
	padding: 0px 2px;
	margin: 5px;
	opacity: 0.75;
}
/* to underline, including svg bg icon, use this (requires controls a: inline-block and pos'n relative):
div.controls a:focus::after, div.controls a:hover::after, div.controls a:active::after {
	content: '';
	position: absolute;
	left: 0;
	display: inline-block;
	height: 1em;
	width: 100%;
	border-bottom: 1px solid;
	margin-top: 5px;
} */
div.controls a:focus, div.controls a:hover, div.controls a:active { /* for highlighting link including icon using opacity */
	opacity: 1.0;
	text-decoration: none;
	-webkit-transition: all .4s;
	transition: all .4s;
}
div#controls { /* slideshow controls */
	float: left;
}
div#nav { /* navigation controls next/prev */
	float: right;
	margin-right: 10px;
}
div.slideshow-container {
	position: relative;
	clear: both;
	margin-bottom: 0.5em;
	overflow:hidden;
}
div.loader {
	top: 0;
	left: 0;
	width: 100%;
	background-image: url('loader.gif');
	background-position: center center;
	background-repeat: no-repeat;
	opacity: .7; /* Some subtle opacity to help blend with variable background colors */
}
div#image_loading {
	position: absolute;
	min-height: 300px; /* big enough to have loader near center of slide */
	}
div#page_loading {
	position: fixed;
	height: 100%;
	background-color: #EEEEEE;
	opacity: 1;
	z-index: -1; /* changed when javascript enabled */
}
.noflicker { /* prevent flicker on safari/iOS */
	-webkit-backface-visibility: hidden;
	/* -webkit-perspective: 1000; */
	/* -webkit-transform-style: preserve-3d; */
	transform: translate(0,0); /* kick in hardware acceleration on non-iOS, avoiding odd first rendering */
	-webkit-transform:translate3d(0,0,0)
}
div.slideshow {
	width:auto;
}
div.slideshow span.image-wrapper {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
}
div.slideshow a.advance-link {
	display: block;
	width: 100%;
	height: auto;
	line-height: 100%;
	text-align: center;
}
div.slideshow a.advance-link:hover,
div.slideshow a.advance-link:active,
div.slideshow a.advance-link:visited {
	text-decoration: none;
}
div.slideshow a.advance-link:focus {
	outline: none;
}
div.slideshow img {
	vertical-align: middle;
	border: 1px solid #ccc;
	box-sizing: content-box; /* why? */
	box-shadow: 3px 3px 9px #000000;
	-moz-box-shadow: 3px 3px 9px #000000;
	-webkit-box-shadow: 3px 3px 9px #000000;
	-ms-filter: progid:DXImageTransform.Microsoft.Shadow(Strength=7, Direction=135, Color='#000000');
	-filter: progid:DXImageTransform.Microsoft.Shadow(Strength=7, Direction=135, Color='#000000');
}
div.download {
	float: right;
	padding: 0.3em 0.4em 0.3em;
	border: 1px solid #ccc;
}
a.gps {
	float: right;
	margin-left: 4px;
	/* padding: 0.2em 0.4em 0.2em;
	border: 1px solid #ccc; */
}
div.caption-container {
/*	position: relative;	 -- disabled for captionOverlay option to set
	clear: left;
	height: 10em;
	*/
	max-height: 100px;
}
span.image-caption {
	display: inline-block;
	position: absolute;
	max-height: 100px;
/*	width: 100%; -- disabled for captionOverlay option to set
	top: 0;
	left: 0; */
}
div.caption {
	padding: 1em;
}
#captionToggle a {
	float: right;
	display: none; /* enabled in custom.css when overlay captions used*/
	/* margin-top: 5px; */
	padding: 5px 5px 5px 5px;
}
div.image-title {
	font-weight: bold;
	font-size: 1.4em;
}
div.image-desc {
	line-height: 1.3em;
	padding-top: 1em;
}
div.photo-index {
	padding-top: 5px;
}
div.navigation {
	/* Navigation styles are set with javascript so that the javascript-specific styles won't be applied unless javascript is enabled. */
	float: left;
}
div.scrollWrapper {
	width: 96%;
	height: 91px;
	margin-left: 2%;
	/*margin-right: 2%;*/
	position: relative;
	overflow: hidden;
	white-space: nowrap;
}
div.scrollableArea {
	position: relative;
	width: 100%;
	height: 125%; /* show scrollbar (if applicable) outside scrollWrapper, maintaining scrollability */
	white-space: nowrap;
	overflow-x: scroll;
	overflow-y: hidden;
	-webkit-overflow-scrolling:touch;
}
/* Scroller buttons */
div.navigation a.pageLink {
	display: inline-block;
	position: absolute;
	top:0px;
	margin-top: 5px;
	margin-bottom: 5px;
	height: 81px;
	line-height: 81px;
	width: 26px; /* icon is 16x24px */
	text-align: center;
	vertical-align: middle;
	background-color: #444;
	opacity:0.0;
	z-index: 200;
}
div.navigation a.pageLink:focus {
	outline: none;
}
div.navigation a.pageLink.prev {
	left:0px;
}
div.navigation a.pageLink.next {
	right:0px;
}
ul.thumbs {
	clear: both;
	margin: 0;
	padding: 0;
}
ul.thumbs li {
	display: inline-block;
	padding: 0;
	margin: 5px 10px 5px 0;
	list-style: none;
}
.ieLTE8 ul.thumbs li, .noCenterCrop ul.thumbs li {
	width: 81px;
	height: 81px;
	float: left;
	text-align: center;
}
a.thumb {
	padding: 2px;
	display: inline-block;
	border: 1px solid #ccc;
}
ul.thumbs li a.thumb {
	background: #fff;
}
ul.thumbs li.selected a.thumb {
	background: #000;
}
a.thumb:focus {
	outline: none;
}
ul.thumbs img {
	border: none;
/*	display: block; */
}
img.delayload { 
	display: none; /* overriden when javascript enabled */
	background-image: url('imgLoading.gif');
	background-position: center center;
	background-repeat: no-repeat;
}
div#thumbs .noscript li {
	width:31%;
}
/* center-cropped is used to create square thumbnails by cropping; lightroom doesn't support this */
div.center-cropped {
	position: relative;
	width: 75px;
	height: 75px;
	overflow: hidden;
}
div.center-cropped img {
	position: absolute;
	left: 50%;
	top: 50%;
	height: 100%;
	width: auto;
	-webkit-transform: translate(-50%,-50%);
		-ms-transform: translate(-50%,-50%);
			transform: translate(-50%,-50%);
}
div.center-cropped img.portrait {
	width: 100%;
	height: auto;
}
.ieLTE8 div.thumb a , .noCenterCrop div.thumb a {
	text-align: center;
	margin: 0px auto;
}
.ieLTE8 div.center-cropped, .noCenterCrop div.center-cropped {
	text-align: center;
	width: auto;
	height: auto;
}
.ieLTE8 div.center-cropped img, .noCenterCrop div.center-cropped img {
	position: static;
	top: 0px;
	left: 0px;
	-ms-interpolation-mode: bicubic;
	/* margin-top: 12.5%; */
	width: 75px;
	height: auto;
	max-width: 75px;
	-webkit-transform: none;
	    -ms-transform: none;
	        transform: none;
}
.ieLTE8 div.center-cropped img.portrait, .noCenterCrop div.center-cropped img.portrait {
	max-width: none;
	max-height: 75px;
	height: 75px;
	width: auto;
}
div.pagination {
	clear: both;
}
div.navigation div.top {
	margin-top: 5px;
	margin-bottom: 10px;
	min-height: 1.5em;
	display: inline-block;
}
div.navigation div.bottom {
	float: left;
	margin-top: 10px;
	display: inline-block;
}
div.pagination a, div.pagination span.current, div.pagination span.ellipsis {
	/* display: block; */
	float: left;
	margin-right: 2px;
	padding: 4px 7px 2px 7px;
	border: 1px solid #ccc;
}
div.pagination a:hover {
	background-color: #eee;
	text-decoration: none;
}
div.pagination span.current {
	font-weight: bold;
	background-color: #000;
	border-color: #000;
	color: #fff;
}
div.pagination span.ellipsis {
	border: none;
	padding: 5px 0 3px 2px;
}
div.pagination a.next, div.pagination a.prev {
	padding: 3px 5px 2px 5px;
}
div.social {
	float: right;
	margin-right:5px;
}
div.social a {
	margin: 0px 3px;
	opacity:0.8;
	text-decoration: none;
}
.ieLTE8 div.social a {
	float: left;
}
div.social a:hover {
	opacity:1.0;
	-webkit-transition: all .4s;
	transition: all .4s;
}


@media (max-width: 770px) {
	/* small screen or window; display condensed thumbnail bar at bottom */
	div.content {
		/* The display of content is enabled using jQuery so that the slideshow content won't display unless javascript is enabled. */
		float: left;
		width: 100%;
	}
	div.navigation {
		/* changes to thumbnail bar are handled in javascript, so it will work even without javascript */
	}
	div.navigation div.bottom, div.navigation div.top {
		margin: 0px;
		min-height: 0px;
	}
	div#container {
		padding: 5px;
	}
	div#footer {
		padding: 8px 0 16px;
	}
	p.textColor {
		display:none;
	}
	ul.thumbs {
		/*clear: none; */
	}
	div.caption-container {
		max-height:70px
	}
	span.image-caption {
		max-height:70px;
	}
}