.p-modal 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: left;
	width: 620px;
	min-width: 620px;
	position: relative;
}

.p-modal div.controls a {
	font-size: 20px;
	opacity: .85;
}

.p-modal div.nav-controls {
	display: flex;
	justify-content: space-between;
	position: absolute;
	top: 55%;
	left: 50%;
	width: 100%;
	z-index: 9999999;
	transform: translate(-50%, -55%);
}
.p-modal div.slideshow-container {
	position: relative;
	clear: both;
	width: 100%;
	height: 465px; /* This should be set to be at least the height of the largest image in the slideshow */
}
.p-modal div.loader {
	position: absolute;
	top: 0;
	left: 0;
	background-image: url('loader.gif');
	background-repeat: no-repeat;
	background-position: center;
	width: 620px;
	height: 465px; /* This should be set to be at least the height of the largest image in the slideshow */
}
.p-modal div.slideshow {

}
.p-modal div.slideshow span.image-wrapper {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
}
.p-modal div.slideshow a.advance-link {
	display: block;
	overflow: hidden;
	width: 620px;
	height: 465px; /* This should be set to be at least the height of the largest image in the slideshow */
}
.p-modal div.slideshow a.advance-link:hover, .p-modal div.slideshow a.advance-link:active, .p-modal div.slideshow a.advance-link:visited {
	text-decoration: none;
}
.p-modal div.slideshow img {
	vertical-align: middle;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.p-modal div.caption-container {
	position: relative;
	clear: left;
	min-height: 28px;
}
.p-modal span.image-caption {
	display: block;
}
.p-modal div.caption {
	margin-bottom: 8px;
}
.p-modal div.image-title {
	font-weight: 600;
	font-size: 16px;
	color: #FFFFFF;
	line-height: 20px;
	text-align: left;
}
.p-modal div.number-list {
	position: absolute;
	bottom: 0;
	right: 0;
	font-size: 12px;
	color: #FFFFFF;
	padding: 2px 6px;
	background: #2C2B2B;
	opacity: .75;
}
.p-modal div.navigation {
	/* The navigation style is set using jQuery so that the javascript specific styles won't be applied unless javascript is enabled. */
}
#thumbs {
	position: relative;
}

.p-modal ul.thumbs {
	margin: 0;
	padding: 0;
	min-height: 620px;
}
.p-modal ul.thumbs li {
	display: inline-block;
	padding: 0;
	margin: 1px;
	list-style: none;
}
.p-modal a.thumb {
	display: block;
}
.p-modal ul.thumbs li.selected a.thumb {
	background: #000;
	outline: 3px solid #F7DA3E;
}
.p-modal a.thumb:focus {
	outline: 3px solid #F7DA3E;
}
.p-modal ul.thumbs img {
	border: none;
	display: block;
	width: 147px;
	height: 147px;
	object-fit: cover;
}
.p-modal div.pagination {
	clear: both;
}
.p-modal div.navigation div.bottom {
	position: absolute;
	bottom: 5px;
	left: 50%;
	transform: translate(-50%, 0);
}

.p-modal div.pagination a:not(:last-child), .p-modal div.pagination a:not(:first-child), .p-modal div.pagination span.current, .p-modal div.pagination span.ellipsis {
	display: none;
}
.p-modal div.pagination a:last-child, .p-modal div.pagination a:first-child {
	padding: 0 4px 4px;
	font-size: 20px;
	opacity: .85;
}