/* IUSTI Video Manager: player. */

.iusti-vm-player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin: 0 0 1.5em;
	background: #10131f;
	color: #fff;
	overflow: hidden;
	border-radius: 4px;
}

.iusti-vm-player mux-player {
	display: block;
	width: 100%;
	height: 100%;
	--media-object-fit: contain;
}

.iusti-vm-player__message {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 1em;
	text-align: center;
	font-size: 16px;
	line-height: 1.4;
}

.iusti-vm-player__message:empty {
	display: none;
}

.iusti-vm-player__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.45);
}

.iusti-vm-player__lock {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 1em;
	text-align: center;
}

.iusti-vm-player__lock-text {
	margin: 0;
	max-width: 32em;
	font-size: 17px;
	line-height: 1.4;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.iusti-vm-player__button {
	display: inline-block;
	padding: 10px 22px;
	border: 0;
	border-radius: 4px;
	background: #b8001e;
	color: #fff !important;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
}

.iusti-vm-player__button:hover,
.iusti-vm-player__button:focus-visible {
	background: #93001a;
}

.iusti-vm-player__button:focus-visible,
.iusti-vm-player__password input:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.iusti-vm-player__button[disabled] {
	opacity: 0.7;
	cursor: wait;
}

.iusti-vm-player__password {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.iusti-vm-player__password input {
	min-width: 0;
	width: 220px;
	max-width: 100%;
	padding: 9px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	color: #1d2327;
	font-size: 16px;
}

.iusti-vm-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 480px) {
	.iusti-vm-player__lock-text {
		font-size: 15px;
	}
}

/* In the Divi module, follow the module's rounded corners (Design → Border). */
.iusti_vm_video .iusti-vm-player {
	margin-bottom: 0;
	border-radius: inherit;
}
