.iwpv-gallery-item {
	position: relative;
}

.iwpv-gallery-fallback {
	margin-top: 16px;
	max-width: 140px;
}

.iwpv-divi-module-fallback {
	margin-top: 16px;
}

.iwpv-gallery-fallback .iwpv-gallery-item {
	display: block;
}

.iwpv-open-video {
	position: relative;
	display: block;
	text-decoration: none;
}

.iwpv-open-video img {
	display: block;
	width: 100%;
	height: auto;
}

.iwpv-play-badge {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 58px;
	height: 58px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.78);
	color: #fff;
	font-size: 24px;
	line-height: 58px;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	pointer-events: none;
}

.iwpv-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
}

.iwpv-modal.is-open {
	display: block;
}

.iwpv-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.86);
}

.iwpv-modal__dialog {
	position: relative;
	z-index: 2;
	width: min(1100px, calc(100% - 30px));
	margin: 5vh auto;
	background: #111;
	border-radius: 14px;
	padding: 20px;
	box-sizing: border-box;
}

.iwpv-modal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

.iwpv-modal__content {
	margin-top: 20px;
}

.iwpv-video-player {
	display: block;
	width: 100%;
	height: auto;
	max-height: 80vh;
	background: #000;
}

.iwpv-embed-wrap {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

.iwpv-embed-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

body.iwpv-modal-open {
	overflow: hidden;
}
