#photos23 {
	margin-bottom: 3em; }
.phototoc a {
	border-bottom-style: none;
	border-bottom-width: 0;
	display: inline-block;
	white-space:nowrap; }
.phototoc a:hover {
	border-bottom-style: none;
	border-bottom-width: 0; }
#photos23 img {
	vertical-align: middle;
	border: solid 7px #ddd;
	-webkit-box-shadow: #222 2px 2px 12px;
		 -moz-box-shadow: #222 2px 2px 12px;
			box-shadow: #222 2px 2px 12px;
	cursor: -webkit-zoom-in;
	cursor:         zoom-in; }
#photos23 a[href$="1"] img,
#photos23 a[href$="3"] img,
#photos23 a[rand="1"] img,
#photos23 a[rand="3"] img {
	-webkit-transform: rotate(-1deg);
 		 -moz-transform: rotate(-1deg);
	}
#photos23 a[href$="5"] img,
#photos23 a[href$="7"] img,
#photos23 a[rand="5"] img,
#photos23 a[rand="7"] img {
	-webkit-transform: rotate(1.3deg);
		 -moz-transform: rotate(1.3deg);
	}
#photos23 a[href$="2"] img,
#photos23 a[href$="4"] img,
#photos23 a[href$="6"] img,
#photos23 a[href$="8"] img,
#photos23 a[rand="2"] img,
#photos23 a[rand="4"] img,
#photos23 a[rand="6"] img,
#photos23 a[rand="8"] img	{	margin-right: -22px; }
#photos23 a[href$="8"] img,
#photos23 a[href$="0"] img,
#photos23 a[href$="5"] img,
#photos23 a[rand="8"] img,
#photos23 a[rand="0"] img,
#photos23 a[rand="5"] img 	{	margin-top: -11px; }

#photos23 span:nth-child(8n) a img { margin-right: 1em; }

#photos23 img {
	height: auto; max-width: 340px; max-height: 280px;
	border: solid 7px white;

  opacity: 0;

	          -webkit-animation: fadeIn 3s;
		           -moz-animation: fadeIn 3s;
			 	            animation: fadeIn 3s;
	    -webkit-animation-delay: 1.7s;
   	     -moz-animation-delay: 1.7s;
   	          animation-delay: 1.7s;
	-webkit-animation-fill-mode: forwards;
	   -moz-animation-fill-mode: forwards;
	   	    animation-fill-mode: forwards;
}

#photos23 a[href$="1"] img, 
#photos23 a[href$="3"] img,
#photos23 a[rand="1"] img,
#photos23 a[rand="3"] img		{
      -webkit-animation-delay: 0.7s;
   	     -moz-animation-delay: 0.7s;
   	          animation-delay: 0.7s;
 }
#photos23 a[href$="2"] img,
#photos23 a[href$="4"] img,
#photos23 a[href$="6"] img,
#photos23 a[rand="2"] img,
#photos23 a[rand="4"] img,
#photos23 a[rand="6"] img		{
      -webkit-animation-delay: 1.2s;
   	     -moz-animation-delay: 1.2s;
   	          animation-delay: 1.2s;
 }

.phototoc {
	margin-top: 3em; }
.phototoc dl {
	 }
.phototoc dt {
	font-size: 60px;
	text-align: right;
	letter-spacing: -1px;
	vertical-align: -32px;
	width: 212px;
	padding: 0;
	display: inline-block; }
.phototoc dt.xl {
	width: 318px; }
.phototoc dt.xxl {
	width: 424px; }
.phototoc dd {
	margin: 0;
	padding: 0;
	display: inline; }

.phototoc dd img {
	vertical-align: middle;
	border: solid 4px transparent;
	border-radius: 7px;
	-webkit-filter: grayscale(88%) contrast(70%);
	filter: grayscale(88%) contrast(70%);
	filter: gray;
	filter: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='//www.w3.org/2000/svg' height='0'><filter id='greyscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0' /></filter></svg>#greyscale");
	-webkit-transition: -webkit-filter 2.1s linear;
		 -moz-transition: filter 2.1s linear;
	}

.phototoc dd img:hover, .phototoc dd a.here img {
	border: solid 4px yellow;
	-webkit-filter: grayscale(0%) contrast(100%);
					filter: grayscale(0%) contrast(100%);
					filter: none;
	-webkit-transition: -webkit-filter 0.1s linear;
		 -moz-transition: filter 0.1s linear;
	}

.phototoc dd a img {
  opacity: 0;

	          -webkit-animation: fadeIn 3s;
		           -moz-animation: fadeIn 3s;
			 	            animation: fadeIn 3s;
	    -webkit-animation-delay: 1.2s;
   	     -moz-animation-delay: 1.2s;
   	          animation-delay: 1.2s;
	-webkit-animation-fill-mode: forwards;
	   -moz-animation-fill-mode: forwards;
	   	    animation-fill-mode: forwards;
}
.phototoc dd a:nth-child(3n) img {
  opacity: 0;

	          -webkit-animation: fadeIn 3s;
		           -moz-animation: fadeIn 3s;
			 	            animation: fadeIn 3s;
	    -webkit-animation-delay: 0.9s;
   	     -moz-animation-delay: 0.9s;
   	          animation-delay: 0.9s;
	-webkit-animation-fill-mode: forwards;
	   -moz-animation-fill-mode: forwards;
	   	    animation-fill-mode: forwards;
}
.phototoc dd a:nth-child(5n+1) img {
  opacity: 0;

	          -webkit-animation: fadeIn 3s;
		           -moz-animation: fadeIn 3s;
			 	            animation: fadeIn 3s;
	    -webkit-animation-delay: 0.6s;
   	     -moz-animation-delay: 0.6s;
   	          animation-delay: 0.6s;
	-webkit-animation-fill-mode: forwards;
	   -moz-animation-fill-mode: forwards;
	   	    animation-fill-mode: forwards;
}


/* –––– lightbox ––––*/
#lightbox {
	background-color: rgba(17, 17, 17, 0.921569);
	text-align: center;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 111;
	overflow: hidden;
	padding: 1em;
	visibility: hidden;
	display: none;
	opacity: 0;
	transition:visibility 0s ease-in 0.5s,opacity 0.5s ease-in; }

#lightbox.active {
	visibility: visible;
	opacity: 1;
	transition:visibility 0s ease-in 0.5s,opacity 1.5s ease-in;
	}
																										
#lightboxImg {
	max-width: 100%;
	max-height: 100%;
	display: block;
	margin-right: auto;
	margin-left: auto;
	cursor: -webkit-zoom-out;
	cursor:         zoom-out;
	}

#lightboxDetailsA {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 1em;
	border-bottom-style: none !important;
	border-bottom-width: 0 !important;
	display: block;
	cursor: -webkit-help;
	cursor:         help;
	}

#lightboxCaption {
	display: block;
	position: absolute;
	max-width: 33%;
	text-align: left;
	background-color: rgba(17, 17, 17, 0.7);
	left: 1em;
	bottom: 5em;
	padding: 5px 5px 8px; }

#lightboxCaption, #lightboxCaption * {
	color: #909090;
	line-height: 111%;
	margin: 0; }

#lightboxNext, #lightboxPrev {
	font-size: 3em;
	position: fixed;
	top: 66%;
	xwidth: 0.5em;
	z-index: 222;
	border-bottom-style: none !important;
	border-bottom-width: 0 !important;
	}
	
#lightboxNext {
	right: 0;
	width: 29px;
	cursor: -webkit-e-resize;
	cursor:         e-resize;
	}
#lightboxPrev {
	text-align: left;
	left: -19px;
	width: 26px;
	cursor: -webkit-w-resize;
	cursor:         w-resize;
	}


/* iPad */
@media only screen and (max-device-width:1024px) {
	#photos23 img { height: auto; max-width: 240px; border: solid 7px white; }

.phototoc dd img, .phototoc dd img:hover {
	-webkit-filter: grayscale(0%) contrast(100%);
				  filter: grayscale(0%) contrast(100%);
	}
}

/* iPhone */
@media only screen and (max-device-width: 640px)
{
	.phototoc		{ margin-top: 0px; }
	.phototoc dt 	{ width: 334px; }
	
	.phototoc dd img 					{
			width: 108px;
			height: 108px !important; }

	#photos23 img {
		max-width: 42%;
		border-width: 3px; }
}

