html body .blueimp-gallery.painting-gallery > .slides
{
	position: absolute;
	top: 40px;
	right: 40px;
	bottom: 40px;
	left: 40px;
	height: auto;
}

html body .blueimp-gallery.painting-gallery > .slides > .slide > .slide-content
{
	position: relative;
	max-width: 100%;
	max-height: calc( 100% - 70px );
	width: auto;
	height: auto;
	margin: auto;
}

html body .blueimp-gallery.painting-gallery > .slides > .slide
{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

content#content .painting-album-thumbnails a.album-item figure span[data-image-hugger]
{
	background-size: contain;
}

@media screen and (max-width: 640px)
{
	html body .blueimp-gallery.painting-gallery > .slides
	{
		top: 10px;
		right: 10px;
		bottom: 10px;
		left: 10px;
	}

	html body .blueimp-gallery.painting-gallery > .slides > .slide
	{
		width: calc( 100vw - 20px );
	}
}

html body .blueimp-gallery.painting-gallery .painting-caption
{
	display: none;
	position: relative;
	z-index: 1;
	max-width: 90%;
	margin: 12px auto 0;
	padding: 0.45em 0.7em;
	background: rgba( 0, 0, 0, 0.62 );
	border-radius: 2px;
	text-align: center;
	font-size: 16px;
	line-height: 1.35;
	color: #eee;
	text-shadow: 0 1px 2px #000;
	pointer-events: none;
}

html body .blueimp-gallery.painting-gallery .painting-caption.is-visible
{
	display: block;
}
