/* ── Thumbnail ── */
.vgw-thumb {
	position: relative;
	cursor: pointer;
	display: block;
	overflow: hidden;
	outline: none;
	line-height: 0;
}

.vgw-thumb:focus-visible {
	box-shadow: 0 0 0 3px rgba(0, 120, 255, 0.6);
}

.vgw-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.vgw-thumb:hover img,
.vgw-thumb:focus-visible img {
	transform: scale(1.05);
}

/* ── Overlay (widoczny tylko na hover) ── */
.vgw-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.vgw-thumb:hover .vgw-overlay,
.vgw-thumb:focus-visible .vgw-overlay {
	opacity: 1;
}

/* ── Play button ── */
.vgw-play-btn {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.vgw-play-btn svg {
	width: 100%;
	height: 100%;
	fill: #fff;
	filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* ── Modal ── */
.vgw-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
}

.vgw-modal.is-open {
	display: flex;
}

.vgw-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	cursor: pointer;
}

.vgw-modal-inner {
	position: relative;
	z-index: 1;
	width: 90vw;
	max-width: 1024px;
}

.vgw-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 4px;
	line-height: 0;
}

.vgw-modal-close svg {
	width: 28px;
	height: 28px;
}

.vgw-modal-video {
	position: relative;
	padding-bottom: 56.25%;
	background: #000;
}

.vgw-modal-video iframe,
.vgw-modal-video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

@media (max-width: 767px) {
	.vgw-modal-inner {
		width: 95vw;
	}

}
