.trx_addons_video_player video {
	max-height: calc(100vh - var(--fixed-rows-height));
}

.sc_layouts_popup .trx_addons_video_player video {
	max-height: 80vh;
}

.trx_addons_video_player .mejs-container:not(.mejs-container-fullscreen), .trx_addons_video_player .mejs-container:not(.mejs-container-fullscreen) .mejs-layers > .mejs-layer {
	max-height: calc(100vh - var(--fixed-rows-height));
}

.trx_addons_video_player .mejs-container.mejs-container-fullscreen .mejs-overlay {
	width: 100% !important;
	height: 100% !important;
}

.trx_addons_video_player .mejs-container .mejs-overlay {
	text-align: center;
}

.trx_addons_video_player iframe {
	max-height: 100%;
}

.trx_addons_video_player.video_play .video_mask {
	opacity: 1;
	background-color: #000;
}

.trx_addons_video_player.video_play .video_embed {
	opacity: 1;
	z-index: 10;
}

.trx_addons_video_player.video_play .video_hover {
	display: none;
}

.trx_addons_video_hover .trx_addons_video_media {
	position: relative;
	overflow: hidden;
}

.trx_addons_video_hover .trx_addons_video_media[data-ratio] {
	display: block;
}

.trx_addons_video_hover .trx_addons_video_media[data-ratio]:before {
	content: " ";
	width: 0;
	height: 0;
	display: inline-block;
	vertical-align: top;
	margin-right: -.3em;
}

.trx_addons_video_hover .trx_addons_video_media[data-ratio][data-ratio="2:1"]:before {
	padding-top: 50%;
}

.trx_addons_video_hover .trx_addons_video_media[data-ratio][data-ratio="17:9"]:before {
	padding-top: 52.94%;
}

.trx_addons_video_hover .trx_addons_video_media[data-ratio][data-ratio="16:9"]:before {
	padding-top: 56.25%;
}

.trx_addons_video_hover .trx_addons_video_media[data-ratio][data-ratio="4:3"]:before {
	padding-top: 75%;
}

.trx_addons_video_hover .trx_addons_video_media[data-ratio][data-ratio="1:1"]:before {
	padding-top: 100%;
}

.trx_addons_video_hover .trx_addons_video_media[data-ratio][data-ratio="3:4"]:before {
	padding-top: 133.33%;
}

.trx_addons_video_hover .trx_addons_video_media[data-ratio][data-ratio="9:16"]:before {
	padding-top: 177.77%;
}

.trx_addons_video_hover .trx_addons_video_media[data-ratio][data-ratio="9:17"]:before {
	padding-top: 188.88%;
}

.trx_addons_video_hover .trx_addons_video_media[data-ratio][data-ratio="1:2"]:before {
	padding-top: 200%;
}

.trx_addons_video_hover .trx_addons_video_video {
	object-fit: cover;
}

.trx_addons_video_hover.with_cover .trx_addons_video_video {
	position: absolute;
	z-index: 1;
	top: 1px;
	right: 1px;
	bottom: 1px;
	left: 1px;
	width: calc(100% - 2px);
	height: calc(100% - 2px);
}

.trx_addons_video_hover.without_cover .trx_addons_video_video {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
}

.trx_addons_video_hover .trx_addons_video_cover {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.trx_addons_video_hover .trx_addons_video_cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.trx_addons_video_hover .trx_addons_video_subtitle {
	white-space: nowrap;
	overflow: hidden;
	padding-top: 1em;
}

.trx_addons_video_hover .trx_addons_video_subtitle .trx_addons_video_subtitle_text {
	display: block;
	opacity: 0;
	will-change: transform, opacity;
	-webkit-transform-origin: top left;
	-ms-transform-origin: top left;
	transform-origin: top left;
	-webkit-transform: rotate(10deg) translate(0, 100%);
	-ms-transform: rotate(10deg) translate(0, 100%);
	transform: rotate(10deg) translate(0, 100%);
	-webkit-transition: -webkit-transform .3s ease, opacity .3s ease;
	-ms-transition: -ms-transform .3s ease, opacity .3s ease;
	transition: transform .3s ease, opacity .3s ease;
	-webkit-transition-duration: .8s;
	-ms-transition-duration: .8s;
	transition-duration: .8s;
}

.trx_addons_video_hover.trx_addons_video_hover_play.with_cover .trx_addons_video_video {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
}

.trx_addons_video_hover.trx_addons_video_hover_play .trx_addons_video_cover {
	position: absolute;
	z-index: 1;
	top: 1px;
	right: 1px;
	bottom: 1px;
	left: 1px;
}

.trx_addons_video_hover.trx_addons_video_hover_play .trx_addons_video_cover img {
	width: calc(100% - 2px);
	height: calc(100% - 2px);
}

.trx_addons_video_hover.trx_addons_video_hover_play .trx_addons_video_subtitle .trx_addons_video_subtitle_text {
	opacity: 1;
	-webkit-transform: none;
	-ms-transform: none;
	transform: none;
}

.trx_addons_video_hover.trx_addons_video_hover_pause .trx_addons_video_subtitle .trx_addons_video_subtitle_text {
	opacity: 0;
	-webkit-transform: rotate(-7deg) translate(0, -100%);
	-ms-transform: rotate(-7deg) translate(0, -100%);
	transform: rotate(-7deg) translate(0, -100%);
	-webkit-transition-duration: .3s;
	-ms-transition-duration: .3s;
	transition-duration: .3s;
}