.gallery ul {	margin: 0 -30px;
				padding: 0;
				text-align: center;
}

.gallery li {	display: inline-block;
				position: relative;
				height: 165px;
				width: 165px;
				margin: 12px clamp(0px, 0.7vw, 8px);
				padding: 5px;
				top: 0;
				border: 1px solid #DDD;
				background: white;
				z-index: 1;
				
				-webkit-box-shadow: 0 0 0 rgba(0,0,0,0.5);
				-moz-box-shadow: 0 0 0 rgba(0,0,0,0.5);
				box-shadow: 0 0 0 rgba(0,0,0,0.5);
				
				-webkit-transition: 300ms ease-in-out;
				-moz-transition: 300ms ease-in-out;
				transition: 300ms ease-in-out;
}

.gallery li img {	position: absolute;
					top: 0; bottom: 0;
					left: 0; right: 0;
					margin: auto;
					max-width: 165px;
					max-height: 165px;
}

.gallery li span.caption {	display: block;
					position: absolute;
					top: 200px;
					left: -100px; right: -100px;
					width: 150px;
					margin: 0 auto;
					padding: 4px 6px 6px 6px;
					text-align: center;
					font-family: 'afta serif';
					font-size: 6px;
					letter-spacing: 0.5px;
					background-color: rgba(0,0,0,0);
					color: rgba(255,255,255,0);
					
					-webkit-box-shadow: 3px 3px 4px rgba(0,0,0,0);
					-moz-box-shadow: 3px 3px 4px rgba(0,0,0,0);
					box-shadow: 3px 3px 4px rgba(0,0,0,0);
					
					-webkit-border-radius: 2px;
					-moz-border-radius: 2px;
					border-radius: 2px;
					
					-webkit-transition: 300ms;
					-moz-transition: 300ms;
					transition: 300ms;			
}

.gallery a {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 2;
}

.gallery li img,
.gallery li span.caption,
.gallery .capMark {
	pointer-events: none;
}


.gallery .capMark {
	display: block;
	position: absolute;
	bottom: 3px;
	right: 3px;
	width: 9px; height: 9px;
	margin: 0 auto;
	background-image: url(capMark.png);
	
	
	-webkit-transition: 300ms;
	-moz-transition: 300ms;
	transition: 300ms;
}


.gallery h3 {margin-bottom: 5px}

.gallery:first-of-type {margin-top: 2em}

.gallery p {	margin: 0; padding: 0;
				text-align: center;
				text-indent: 0;
				
				-webkit-text-align-last: center;
				-webkit-moz-align-last: center;
				text-align-last: center;
}

hr {
	height: 1px;
	width: 90%;
	margin: auto;
	margin-top: clamp(15px, 2vw, 30px);
	margin-bottom: clamp(20px, 3vw, 45px);
	border: 0;
	background: #333;
	background-image: -webkit-linear-gradient(left, #ccc, #333, #ccc);
	background-image:    -moz-linear-gradient(left, #ccc, #333, #ccc);
}

hr.break {
	height: 35px;
	width: 200px;
	margin: clamp(20px, 3vw, 45px) auto;
	background: url(divider_black.png) no-repeat;
	border: 0;
}

.gallery:first-of-type hr {display: none}


p#instructions {
	text-align: center;
	margin: 0; padding: 0;
	font-size: clamp(10px, 3vw, 24px);
	text-indent: 0;
}
p#instructions img {
	width: clamp(7px, 1.5vw, 14px);
}

/* Standalone images */

.standalone {text-align: center}

.standalone img {
	margin: 0; padding: 3px;
	border: 3px solid #ddd;
	width: calc(100% - 12px);
	
	-webkit-box-shadow: 0 0 0 rgba(0,0,0,0.5);
	-moz-box-shadow: 0 0 0 rgba(0,0,0,0.5);
	box-shadow: 0 0 0 rgba(0,0,0,0.5);
	
	-webkit-transform-origin: center 75%;
	-moz-transform-origin: center 75%;
	transform-origin: center 75%;
	
	-webkit-transition: 300ms;
	-moz-transition: 300ms;
	transition: 300ms;	
}

.standalone p {
	margin: 0 0 1em 0;
	font-family: 'afta serif', serif;
	font-size: 15px;
}

div.imageNumber {
	position: relative;
	display: block;
	text-align: center;
	font-family: 'afta serif', serif;
	font-size: 12px;
	top: 7px;
}

.book {
	display: flex;
	width: 100%;
	align-items: center;
	margin-bottom: 25px;
}
.book::after {
	content: "";
	display: block;
	clear: both;
}


.bookText h2, .bookText h3, .bookText p {
	display: block;
	text-align: left !important;
	text-indent: 0 !important;
}
.bookText h3 {
	font-size: clamp(18px, 3vw, 36px);
}
.bookText p {
	font-size: clamp(10px, 2vw, 24px);
}

#cover {
	float: left;
	height: auto;
	
	text-align: center;
	
	
	-webkit-transform: scale(0.75,0.75) rotate(-5deg);
	-moz-transform: scale(0.75,0.75) rotate(-5deg);
	transform: scale(0.75,0.75) rotate(-5deg);
	
	-webkit-transition: 200ms ease-in-out;
	-moz-transition: 200ms ease-in-out;
	transition: 200ms ease-in-out;
}

#cover img {
	width: clamp(150px, 25vw, 300px);
	border: 1px solid #aaa;
	-webkit-box-shadow: 0 0 10px rgba(0,0,0,0.6);
	-moz-box-shadow: 0 0 10px rgba(0,0,0,0.6);
	box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

#cover:hover {
	-webkit-transform: scale(0.85,0.85) rotate(0);
	-moz-transform: scale(0.85,0.85) rotate(0);
	transform: scale(0.85,0.85) rotate(0);
}
#cover:hover img {
	border: 1px solid #a00;
	-webkit-box-shadow: 0 0 20px rgba(0,0,0,0.6);
	-moz-box-shadow: 0 0 20px rgba(0,0,0,0.6);
	box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

span + div.gallery h3 {display: none}

@media (max-width: 600px) {
  .gallery br, #hoverInstruction {
    display: none !important;
  }
  .gallery li {
  	margin: 12px 1px;
}
}

@media (any-hover: hover) and (any-pointer: fine) {
	.gallery li:hover {
		border: 1px solid #541515;
		z-index: 50;

		-webkit-transform: scale(2.5);
		-moz-transform: scale(2.5);
		transform: scale(2.5);

		-webkit-box-shadow: 10px 10px 8px rgba(0,0,0,0.25);
		-moz-box-shadow: 10px 10px 8px rgba(0,0,0,0.25);
		box-shadow: 10px 10px 8px rgba(0,0,0,0.25);
	}

	.gallery li:hover span.caption {
		background-color: rgba(0,0,0,0.8);
		color: rgba(255,255,255,0.9);
		box-shadow: 3px 3px 4px rgba(0,0,0,0.25);
	}

	.gallery li:hover .capMark {
		opacity: 0;
	}
}

@media (hover: none), (pointer: coarse) {
	.gallery li,
	.gallery li:hover,
	.gallery li:active,
	.gallery li:focus,
	.gallery li:focus-within {
		-webkit-transform: none !important;
		-moz-transform: none !important;
		transform: none !important;

		-webkit-box-shadow: 0 0 0 rgba(0,0,0,0.5) !important;
		-moz-box-shadow: 0 0 0 rgba(0,0,0,0.5) !important;
		box-shadow: 0 0 0 rgba(0,0,0,0.5) !important;

		border: 1px solid #DDD !important;
		z-index: 1 !important;
	}

	.gallery li span.caption,
	.gallery li:hover span.caption,
	.gallery li:active span.caption,
	.gallery li:focus span.caption,
	.gallery li:focus-within span.caption {
		background-color: rgba(0,0,0,0) !important;
		color: rgba(255,255,255,0) !important;

		-webkit-box-shadow: 3px 3px 4px rgba(0,0,0,0) !important;
		-moz-box-shadow: 3px 3px 4px rgba(0,0,0,0) !important;
		box-shadow: 3px 3px 4px rgba(0,0,0,0) !important;
	}

	.gallery .capMark,
	.gallery li:hover .capMark,
	.gallery li:active .capMark,
	.gallery li:focus .capMark,
	.gallery li:focus-within .capMark {
		opacity: 1 !important;
	}
}