.tome-gallery {
	margin-bottom: 2em;
	position: relative;
}
.tome-gallery.half-column {
	width: 50%;
	float: left;
	margin-right: 25px;
}
.tome-gallery.full-column {
}
.tome-gallery img {
	width: 100%;
}
.tome-gallery .dashicons {
	position: absolute;
	font-size: 34px;
	color: white;
	top: 50%;
	margin-top: -17px;
	left: 50%;
	text-align: center;
	display: block;
	margin-left: -25px;
	opacity: 0;
}
.tome-gallery .hidden-list { display: none; }
.tome-gallery p { display: none; }
.tome-gallery > a .title {
	font-size: 24px;
	font-style: italic;
	font-family: "Lora";
	position: absolute;
	top: 50%;
	left: 25px;
	right: 25px;
	margin-top: -10px;
	color: white;
	font-weight: 100;
	text-align: center;
	opacity: 0.9;
	-webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
}
.tome-gallery > a:before {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: black;
	content: " ";
	opacity: 0.3;
}
.tome-gallery > a:after {
	position: absolute;
	top: 15px;
	left: 15px;
	right: 15px;
	bottom: 15px;
	content: " ";
	border: 1px solid hsla(0, 0%, 100%, 0.4);
}
.tome-gallery a:before,
.tome-gallery .title,
.tome-gallery .dashicons {
	transition: all ease-in 300ms;
}
.tome-gallery:hover a:before,
.tome-gallery:hover .title {
	opacity: 0;
}
.tome-gallery:hover .dashicons {
	opacity: 1;
}

#lightbox, #lightboxOverlay {
	position: fixed;
	bottom: 0;
}
#lightboxOverlay { opacity: 0.975; }
#lightbox {
	top: 0 !important;
	padding-right: 300px;
}
#lightbox .lb-outerContainer {
	position: absolute;
	top: 180px;
	bottom: calc(180px + 25vh);
	left: 0;
	right: 0;
	margin: auto;
	background-color: transparent;
	width: calc(100vw - 72px) !important;
	height: calc(100vh - 220px) !important;
	display: flex;
	align-items: center;
	justify-content: center;
}
#lightbox .lb-container {
	padding: 0;
}
#lightbox .lb-image {
	max-width: calc(100vw - 72px);
	max-height: calc(100vh - 230px);
	width: auto !important;
	height: auto !important;
	border: 4px solid white;
	background-color: white;
	object-fit: contain;
}
#lightbox .lb-dataContainer {
	position: absolute;
	bottom: 98px;
	right: 0;
	left: 0;
	width: calc(100vw - 72px) !important;
	padding: 10px 0;
}
#lightbox .lb-data {
	overflow: auto;
}
#lightbox .lb-details {
	float: none;
	width: auto;
	line-height: 2.3;
}
#lightbox .lb-caption {
	font: 0.8em 'Noto Sans',sans-serif;
	color: #444;
	margin-right: auto;
	overflow: auto;
	display: block !important;
	padding-right: 1em;
}
#lightbox .lb-caption small {
	display: block;
	font-size: 0.9em;
	margin-top: 0.5em;
	color: #666;
}
#lightbox .lb-number {
	text-align: right;
	font-size: 1em;
	padding-bottom: 0;
	white-space: nowrap;
	line-height: 40px;
	position: absolute;
	top: calc(100% + 1.6em);
	right: 110px;
}
#lightbox .lb-nav {
	width: 96px;
	height: auto;
	position: fixed;
	right: 36px;
	z-index: 200000;
	bottom: 38px;
	top: auto;
	left: auto;
	display: flex;
	justify-content: space-between;
}
#lightbox[data-image-count="1"] .lb-nav {
	display: none !important;
}
#lightbox .lb-prev, #lightbox .lb-next {
	display: block !important;
	opacity: 1;
	float: none;
	background-position: right center;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="gray" stroke="none" d="M11.67 3.87L9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"/><path fill="none" d="M0 0h24v24H0z"/></svg>');
}
#lightbox .lb-prev {
}
#lightbox .lb-next {
	transform: rotate(180deg);
}
#lightbox .lb-close, #lightbox .lb-prev, #lightbox .lb-next {
	width: 40px;
	height: 40px;
	background-size: 26px;
	background-color: transparent;
	border: 2px solid gray;
	border-radius: 50%;
	transition-property: background-color, border-color;
	transition-duration: 0.2s;
}
#lightbox .lb-close:hover, #lightbox .lb-prev:hover, #lightbox .lb-prev:hover, #lightbox .lb-next:hover {
	background-color: white;
	border-color: white;
}
#lightbox .lb-close {
	width: 36px;
	height: 36px;
	background-size: 30px;
	float: none;
	box-sizing: content-box;
	background-position: center;
	position: fixed;
	top: 26px;
	right: 36px;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="gray" stroke="none" d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
}
@media (max-width: 979px) {
	.admin-bar #lightbox .lb-close {
		top: 46px;
	}
}
@media (min-width: 980px) {
	#lightbox .lb-outerContainer {
		top: 0;
		bottom: 0;
		right: 300px;
		width: calc(100vw - 398px) !important;
		height: calc(100vh - 100px) !important;
	}
	#lightbox .lb-image {
		max-width: calc(100vw - 398px);
		max-height: calc(100vh - 100px);
	}
	#lightbox .lb-dataContainer {
		top: 48px;
		bottom: 18px;
		padding: 46px 36px 10px 0;
		width: 300px !important;
		left: auto;
	}
	#lightbox .lb-close {
		top: -4px;
		position: absolute;
	}
	#lightbox .lb-details {
		display: flex;
		justify-content: flex-end;
		align-items: flex-end;
	}
	#lightbox .lb-caption {
		width: calc(100% - 50px);
		max-height: calc(100vh - 170px);
	}
	#lightbox .lb-number {
		top: auto;
		bottom: 0.5em;
		right: 156px;
		margin-right: 0;
	}
	#lightbox .lb-nav {
		bottom: 26px;
	}
}

