.dlp-preview-modal {
	display: none;

	&.is-open {
		display: block;
	}
}

body.dlp-preview-modal-open {
	overflow: hidden !important;
}

.dlp-preview-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999999999;
	background: #000;
	display: flex;
	justify-content: center;
	align-items: center;

}

.dlp-preview-modal-container {
	position: relative;
	max-height: 100vh;
	box-sizing: border-box;
	background-color: transparent;
	z-index: 2;
}

.dlp-preview-modal-footer {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	min-height: 44px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 13px;
	padding: 10px;
	line-height: 20px;
	color: #ccc;
}

.dlp-preview-modal-close {
	cursor: pointer;
	position: absolute;
	z-index: 3;
	top: 10px;
	right: 10px;
	display: block;
	width: 24px;
	height: 24px;

	.dlp-icon {
		color: #fff;
		opacity: .5;
		transition: opacity .2s;

		&:hover {
			opacity: 1;
		}
	}
}

.dlp-preview-modal-content {
	position: relative;

	.dlp-preview-spinner {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	> img {
		max-height: calc(100vh - 90px);
	}

	iframe,
	audio,
	video {
		display: block;
	}

	video {
		max-height: calc(100vh - 90px);
	}

	iframe {
		width: 65vw;
		height: 70vh;
	}

	@media only screen and (max-width: 500px) {
		iframe {
			width: 80vw;
			height: 80vh;
		}
	}
}