.vg-bd9984b8-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.vg-bd9984b8-item {
	position: relative;
	cursor: pointer;
	overflow: hidden;
	display: block;
	line-height: 0;
	transition: all 0.3s ease;
}

.vg-bd9984b8-item img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	display: block;
	transition: all 0.3s ease;
}

.vg-bd9984b8-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	background: rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	opacity: 0.8;
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.vg-bd9984b8-play-icon svg {
	width: 24px;
	height: 24px;
}

.vg-bd9984b8-item:hover .vg-bd9984b8-play-icon {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1.1);
}

.vg-bd9984b8-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.9);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vg-bd9984b8-modal.vg-active {
	opacity: 1;
	visibility: visible;
}

.vg-bd9984b8-modal-content {
	position: relative;
	width: 90%;
	max-width: 900px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.vg-bd9984b8-media-wrapper {
	width: 100%;
	flex-shrink: 0;
	aspect-ratio: 16/9;
	background: #000;
}

.vg-bd9984b8-modal iframe,
.vg-bd9984b8-modal video {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

.vg-bd9984b8-modal-caption {
	color: #fff;
	margin-top: 15px;
	text-align: center;
	font-size: 18px;
	width: 100%;
	overflow-y: auto;
	padding-right: 10px;
}

/* Paragraph spacing support */
.vg-bd9984b8-modal-caption p {
	margin-bottom: 1em;
}
.vg-bd9984b8-modal-caption p:last-child {
	margin-bottom: 0;
}

.vg-bd9984b8-modal-caption::-webkit-scrollbar {
	width: 6px;
}

.vg-bd9984b8-modal-caption::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
}

.vg-bd9984b8-modal-caption::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.5);
	border-radius: 4px;
}

.vg-bd9984b8-modal-close {
	position: absolute;
	top: -40px;
	right: 0;
	color: #fff;
	font-size: 30px;
	cursor: pointer;
	line-height: 1;
	font-weight: bold;
	z-index: 10;
	background: none;
	border: none;
	padding: 5px;
}
