body { overflow-x:hidden; }
#photos23
	{
	margin-bottom: 3em; }
.phototoc a
	{
	border-bottom-style: none !important;
	border-bottom-width: 0 !important;
	display: inline-block;
	white-space:nowrap;
	}

.phototoc a:hover, #photos23 a:hover, #photos23:hover a,
*:hover a#lightboxImgA, a.lightboxImgA:hover
	{
	border-bottom-style: none !important;
	border-bottom-width: 0 !important;
	}

#photos23 img, ul.kacheln img
	{
	vertical-align: middle;
	border: solid 7px #ddd;
	-webkit-box-shadow: #444 2px 2px 12px;
	-moz-box-shadow: #444 2px 2px 12px;
	box-shadow: #444 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;
 }


#photos23 span img {
	transition: transform 3s ease-in-out;
	-webkit-transition-delay: 0.30s;
	}
#photos23 span:hover img {										/* no translateZ */
	-moz-transform: scale(1.1) rotate(-1deg);
	-webkit-transform: scale(1.1) rotate(-1deg);
	transform: scale(1.1) rotate(-1deg);
	transition: all 0.33s ease-in-out;
	}
#photos23 span:nth-child(3n):hover img {
	-moz-transform: scale(1.1) rotate(1deg);
	-webkit-transform: scale(1.1) rotate(1deg);
	transform: scale(1.1) rotate(1deg);
	}
#photos23 span:nth-child(5n):hover img {
	-moz-transform: scale(1.1) rotate(2deg);
	-webkit-transform: scale(1.1) rotate(2deg);
	transform: scale(1.1) rotate(2deg);
	}

.phototoc 			{ margin-top: 3em; }
.phototoc dl 		{}
.phototoc dt 		{
	display: inline-block;
	text-align: right;
	vertical-align: bottom;
	width: 200px;
	margin-right: 4px !important;
	margin-left: 4px !important;
	margin-bottom:8px !important;
	padding: 0;
	}
.phototoc dt:after	{ content:""; }
.phototoc dt, .phototoc dt a {
	font-size: 60px;
	letter-spacing: -1px;
	line-height:0.6em;
	}	
	
.phototoc dt.xl		{
	width: 310px;
	margin-left: 6px; }
.phototoc dt.xxl 	{
	width: 414px;
	margin-left: 8px; }
.phototoc dd {
	margin: 0;
	padding: 0;
	display: inline;
	}

.phototoc dd img 	{
	vertical-align: abs-bottom;/*middle;*/
	margin: 1px;
	border: solid 3px transparent;
	border-radius: 18px;
	-webkit-filter: grayscale(88%) contrast(70%);
	-webkit-transition: -webkit-filter 2.1s linear;
	-xmoz-transition: filter 2.1s linear;
	transition: filter 2.1s linear;
	}

.phototoc dd img:hover {
	border-color: yellow !important;
	}

.phototoc dd img:hover, .phototoc dd a.here img
	{
	-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 	{
	position: relative;
	}
	
.phototoc dd a.new:before {
	content:"";
	position:absolute;
	top:2px;
	left:2px;
	z-index: 11;
	border-style: solid;
    xborder-radius: 0.4em;
    border-width: 16px;
    border-color: transparent;
    border-left-color: lime;
    border-top-color: lime;
	}

.phototoc dd a.here:before {
	content:"";
	position:absolute;
	top:inherit;
	left:inherit;
	bottom:2px;
	right:2px;
	z-index: 11;
	border-style: solid;
    xborder-radius: 0.4em;
    border-width: 16px;
    border-color: transparent;
    border-right-color: yellow;
    border-bottom-color: yellow;
	}

.phototoc dd a.folder img {
	-webkit-box-shadow: #222 2px -2px 0px;
	-moz-box-shadow: #222 2px -2px 0px;
	box-shadow: #222 2px -2px 0px; }	

/* –––– initial fade in on thumbnails ––––*/
.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);

	position: fixed;
	z-index: 111;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	padding: 1em;
	overflow: hidden;

	text-align: center;
	flex-direction: column;
	justify-content: center;

	display: none;
	visibility: hidden;
  	opacity: 0;
	transition:visibility 0s ease-in 0.5s,opacity 0.5s ease-in;
	}
#lightboxImg[src^="http://www.23hq"] { /* https://stackoverflow.com/questions/9994493/scale-image-to-fit-a-bounding-box */
	min-height: 100%;
	object-fit: contain;
	}
#lightbox.mode {
	visibility: visible;
	opacity: 1;
	transition:visibility 0s ease-in 0.5s,opacity 1.5s ease-in;
	}

#lightbox > a {
	xflex-basis: fit-content;
	}
																									
#lightboxImg {
	max-width : 100%;
	max-height: 96vh;
	display: inline-block;
	cursor: -webkit-zoom-out;
	xtop: 0;
	xbottom: 0;
	xmargin: auto;
	xmargin-top: calc(50% - 12.5%);
	}

#lightboxCaption {
	display: block;
	position: absolute;
	max-width: 33%;
	text-align: left;
	background-color: rgba(17, 17, 17, 0.7);
	left: 1em;
	bottom: 5em;
	overflow: auto;
	max-height: 33vh;
	padding: 5px 5px 8px;
	border-top-right-radius:11px;
	border-bottom-right-radius:11px;
	}

#lightboxCaption, #lightboxCaption *, #lightboxDetails a {
	color: #909090;
	font-size: 0.9em;
	line-height: 111%;
	margin: 0;
	}

#lightboxActions {
	position: absolute;
	right: 0;
	bottom: -2px;
	padding-top: 1em;
	padding-right: 1em;
	padding-left: 1em;
	display: block; }

#lightboxActions a, a[onclick^="document.getElementById('chronoFrame')"] {
	font-size: 0.9em;
	margin-bottom: 22px;
	border-bottom-style: solid !important;
	border-bottom-width: 1px !important;
	padding: 2px 11px;
	border-color: #909090;
	border-top-style: solid;
	border-top-width: 1px;
	border-right-style: solid;
	border-right-width: 1px;
	border-left-style: solid;
	border-left-width: 1px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	border-radius: 4px;
	background-color: rgba(17, 17, 17, 0.7);
	}

#lightboxActions a:hover, a[onclick^="document.getElementById('chronoFrame')"]:hover, .btn:hover, .btn.active {
	color: #fff;
	background-color: #2e7dac;
	}

#lightboxActions a.selected {
	color: #fff;
	background-color: #19455f;
	}
	
.navbtn, .closebtn {
	font-size: 3em;
	position: fixed;
	top: 55%;
	z-index: 222;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	border-bottom-style: none !important;
	border-bottom-width: 0 !important;
	}
	
.closebtn {
	font-weight: 100;
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	padding: 0 0.5em 0.5em 11px; }
		
.navnext {
	right: 0;
	width: 29px;
	padding-left: 0.5em;
	}
.navprev {
	left: -19px;
	width: 26px;
	padding-right: 0.5em;
	}
.navpending{
	color: yellow; }
.gear1:after{
	content:" \203A";
	}
.gear2:after{
	content:" »";
	}


@-moz-document url-prefix() { /* Firefox only */
	.navprev { left: 3px; }
	}

/* desktop only */
@media only screen and (min-device-width : 1224px) {
	.navbtn:hover, .closebtn:hover {
		background-color: rgba(55, 55, 55, 0.7);
	}
	.navnext:hover {
		-moz-border-top-left-radius: 2.5em;
		-webkit-border-top-left-radius: 2.5em;
		border-radius-top-left: 2.5em;
		-moz-border-bottom-left-radius: 2.5em;
		-webkit-border-bottom-left-radius: 2.5em;
		border-radius-bottom-left: 2.5em;
	}
	.navprev:hover {
		-moz-border-top-right-radius: 2.5em;
		-webkit-border-top-right-radius: 2.5em;
		border-radius-top-right: 2.5em;
		-moz-border-bottom-right-radius: 2.5em;
		-webkit-border-bottom-right-radius: 2.5em;
		border-radius-bottom-right: 2.5em;
	}
	.closebtn:hover{
		-webkit-border-bottom-right-radius: 2.5em;
		border-radius-bottom-right: 2.5em;
	}
}

/* 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%);
		}
	#lightboxCaption {
		max-width: 66%; }
}

/* iPhone */
@media only screen and (max-device-width: 640px)
{
	.phototoc		{ margin-top: 0px; }
	.phototoc dt 	{ width: 220px; }
	.phototoc dt.xl	{
		width: 334px;
		margin-left: 6px; }
	.phototoc dt.xxl 	{
		width: 448px;
		max-width:100%;
		margin-left: 12px; }
	
	.phototoc dd img {
			width: 108px;
			height: 108px !important; }

	#photos23 img {
		max-width: 42%;
		border-width: 3px; }
	#lightboxCaption {
		bottom: 1.5em;
		max-width: 88%; }
}

.imgCache {
	position: absolute;
	top: 0;
	left: 0;
	width: 111px;
	height: auto;
	z-index: 555;
	}
