.vpt-portfolio {
	--vpt-font-size: 16px;
	--vpt-text-color: #333333;
	--vpt-tab-bg: #f2f2f2;
	--vpt-tab-text: #333333;
	--vpt-tab-active-bg: #111111;
	--vpt-tab-active-text: #ffffff;
	--vpt-btn-bg: #111111;
	--vpt-btn-text: #ffffff;
	--vpt-title-bg: rgba(0, 0, 0, 0.65);
	--vpt-title-text: #ffffff;
	--vpt-columns: 3;
	--vpt-zoom: 1.15;
	font-size: var(--vpt-font-size);
	color: var(--vpt-text-color);
}

.vpt-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-bottom: 30px;
}

.vpt-tab-btn {
	font-size: var(--vpt-font-size);
	background: var(--vpt-tab-bg);
	color: var(--vpt-tab-text);
	border: none;
	padding: 10px 22px;
	border-radius: 30px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.vpt-tab-btn:hover {
	opacity: 0.85;
}

.vpt-tab-btn.is-active {
	background: var(--vpt-tab-active-bg);
	color: var(--vpt-tab-active-text);
}

.vpt-grid {
	display: grid;
	grid-template-columns: repeat(var(--vpt-columns), 1fr);
	gap: 24px;
}

@media (max-width: 900px) {
	.vpt-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.vpt-grid {
		grid-template-columns: 1fr;
	}
}

.vpt-item {
	display: none; /* JS reveals items belonging to the active tab */
}

.vpt-item.vpt-visible {
	display: block;
}

.vpt-item.vpt-collapsed {
	display: none !important;
}

.vpt-thumb-wrap {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 */
	background: #000;
	overflow: hidden;
	border-radius: 4px;
}

.vpt-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	z-index: 1;
}

.vpt-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vpt-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
}

.vpt-play-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 55%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent #ffffff;
}

.vpt-thumb-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.vpt-crop .vpt-thumb-wrap iframe {
	width: calc(var(--vpt-zoom) * 100%);
	height: calc(var(--vpt-zoom) * 100%);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.vpt-title-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--vpt-title-bg);
	color: var(--vpt-title-text);
	font-size: var(--vpt-font-size);
	font-weight: 600;
	line-height: 1.3;
	padding: 12px 16px;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
	z-index: 2;
}

.vpt-show-all-wrap {
	text-align: center;
	margin-top: 36px;
}

.vpt-show-all-btn {
	font-size: var(--vpt-font-size);
	background: var(--vpt-btn-bg);
	color: var(--vpt-btn-text);
	border: none;
	padding: 12px 32px;
	border-radius: 30px;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.vpt-show-all-btn:hover {
	opacity: 0.85;
}
