.mxxl-bavw-wall {
	display: grid;
	grid-template-columns: repeat(var(--mxxl-bavw-columns, 4), minmax(0, 1fr));
	gap: 14px;
	width: 100%;
}

.mxxl-bavw-card {
	min-width: 0;
	margin: 0;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 10px;
	overflow: hidden;
}

.mxxl-bavw-media {
	position: relative;
	width: 100%;
	background: #000;
	overflow: hidden;
}

.mxxl-bavw-video,
.mxxl-bavw-poster-link,
.mxxl-bavw-poster-link img {
	display: block;
	width: 100%;
	height: 100%;
}

.mxxl-bavw-video,
.mxxl-bavw-poster-link img {
	object-fit: contain;
	object-position: center center;
}

.mxxl-bavw-video {
	background: #000;
}

.mxxl-bavw-text {
	padding: 10px 12px 12px;
	font-size: .92rem;
	line-height: 1.4;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.mxxl-bavw-empty {
	padding: 14px 16px;
	border: 1px dashed rgba(0, 0, 0, .25);
	border-radius: 8px;
}


@media (max-width: 900px) {
	.mxxl-bavw-wall {
		grid-template-columns: repeat(var(--mxxl-bavw-tablet-columns, 2), minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.mxxl-bavw-wall {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.mxxl-bavw-card {
		width: 94%;
		margin-left: auto;
		margin-right: auto;
		border-radius: 8px;
	}
}

/* Keep native fullscreen playback inside the desktop viewport. */
.mxxl-bavw-video:fullscreen,
.mxxl-bavw-video:-webkit-full-screen {
	width: 100vw !important;
	height: 100vh !important;
	max-width: 100vw !important;
	max-height: 100vh !important;
	margin: 0 !important;
	object-fit: contain !important;
	background: #000;
}
