/* ====================

Table of Contents

1. Lightbox main
2. Lightbox background canvas
3. Lightbox navigation canvas
4. Lightbox content wrapper
5. Lightbox image
6. Lightbox caption

==================== */



/* 1. Lightbox window */

.lightbox-dg {
  	position: fixed;
  	top: 0;
  	left: 0;
  	right: 0;
  	bottom: 0;
  	overflow: hidden;
}

.lightbox-dg > div {
	position: relative;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	padding-right: 20px;
}



/* 2. Lightbox background canvas */

.lightbox-dg > div > canvas:first-of-type {
	position: fixed;
	z-index: 2;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}



/* 3. Lightbox navigation canvas */

.lightbox-dg > div > canvas:last-of-type {
	position: fixed;
	z-index: 3;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}



/* 4. Lightbox content wrapper */

.lightbox-content-wpr-dg {
	position: absolute;
	z-index: 4;
	will-change: transform;
}

.lightbox-content-dg {
	display: flex;
	align-items: center;
	overflow: hidden;
}



/* 5. Lightbox image */

.lightbox-content-dg > img {
	display: block;
	position: relative;
	z-index: 2;
	margin: 0 auto;
	pointer-events: none;
}



/* 6. Lightbox caption */

.caption-wpr-dg {
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	word-break: break-word;
	overflow: auto;
}