/* Bioxcin Video Gallery — frontend (inline autoplay-muted-loop) */

.bvg-gallery {
	--bvg-cols-desktop: 4;
	--bvg-cols-mobile: 2;
	--bvg-accent: #000;
	--bvg-radius: 12px;
	--bvg-gap: 16px;
	margin: 40px 0;
	font-family: inherit;
}

.bvg-gallery__title {
	text-align: center;
	font-size: clamp( 20px, 2.4vw, 28px );
	font-weight: 700;
	margin: 0 0 24px;
	color: inherit;
}

.bvg-gallery__grid {
	display: grid;
	grid-template-columns: repeat( var(--bvg-cols-desktop), 1fr );
	gap: var(--bvg-gap);
}

@media ( max-width: 768px ) {
	.bvg-gallery__grid {
		grid-template-columns: repeat( var(--bvg-cols-mobile), 1fr );
		gap: 10px;
	}
}

.bvg-card {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 9 / 16;
	padding: 0;
	margin: 0;
	border: 0;
	background: #000;
	border-radius: var(--bvg-radius);
	overflow: hidden;
	cursor: pointer;
	font: inherit;
	color: inherit;
	text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease;
}
.bvg-card:hover,
.bvg-card:focus-visible {
	transform: translateY( -2px );
	box-shadow: 0 8px 24px rgba( 0, 0, 0, .12 );
	outline: none;
}
.bvg-card:focus-visible {
	box-shadow: 0 0 0 3px var(--bvg-accent), 0 8px 24px rgba( 0, 0, 0, .12 );
}

.bvg-card__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
	background: #000;
	pointer-events: none;
}
.bvg-card__video--empty {
	background: linear-gradient( 135deg, #ddd, #f4f4f4 );
}

/* iframe (YouTube Shorts / Vimeo) — scale up to fill 9:16 container, cropping the 16:9 player chrome. */
.bvg-card__video--iframe {
	position: absolute;
	inset: auto;
	top: 50%;
	left: 50%;
	transform: translate( -50%, -50% );
	width: 300%;
	height: 100%;
	min-width: 100%;
	object-fit: cover;
}

/* Transparent overlay so clicks on iframe propagate to parent <a>. */
.bvg-card__clickshield {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: transparent;
	cursor: pointer;
}

.bvg-card__icon {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba( 255, 255, 255, .92 );
	color: #111;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	box-shadow: 0 2px 6px rgba( 0, 0, 0, .15 );
	z-index: 2;
}

.bvg-card__caption {
	position: absolute;
	left: 12px;
	bottom: 12px;
	right: 12px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	text-shadow: 0 1px 3px rgba( 0, 0, 0, .8 );
	pointer-events: none;
	z-index: 2;
}
