/* RMS Hero Banners 0.1.1. Applies only to containers that use the RMS banner settings (class "rmshb"). */

.rmshb > .rmshb-phone {
	display: none;
}

@media (max-width: 767px) {
	.rmshb.rmshb-is-phone > .elementor-background-video-container {
		display: none;
	}

	.rmshb.rmshb-is-phone > .rmshb-phone {
		display: block;
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 0;
		overflow: hidden;
		background-position: center center;
		background-size: cover;
		background-repeat: no-repeat;
		pointer-events: none;
	}

	/* Optional soft shade behind the text on phones (setting "Shade behind the text on phones"). Brand navy #002b59. */
	.rmshb.rmshb-shade.rmshb-is-phone > .rmshb-phone::after {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		background-image: linear-gradient(180deg, rgba(0, 43, 89, 0) 30%, rgba(0, 43, 89, 0.45) 55%, rgba(0, 43, 89, 0.6) 100%);
	}

	.rmshb-phone video {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

/* Visitors who have asked their device to reduce motion see the still images, not the videos. */
@media (prefers-reduced-motion: reduce) {
	.rmshb > .elementor-background-video-container,
	.rmshb-phone video {
		display: none;
	}
}
