.vcpg-gallery,
.vcpg-gallery * {
	box-sizing: border-box;
}

.vcpg-gallery {
	--vcpg-thumb-size: 86px;
	--vcpg-thumb-space: 10px;
	--vcpg-gap: 16px;
	--vcpg-border: rgba(0, 0, 0, 0.18);
	--vcpg-active: #111;
	position: relative;
	width: 100%;
	max-width: 100%;
}


.vcpg-layout {
	display: grid;
	grid-template-columns: var(--vcpg-thumb-size) minmax(0, 1fr);
	gap: var(--vcpg-gap);
	align-items: start;
	width: 100%;
}

.vcpg-main,
.vcpg-main-swiper,
.vcpg-slide,
.vcpg-slide__inner {
	width: 100%;
	min-width: 0;
}

.vcpg-main {
	position: relative;
}

.vcpg-main-swiper {
	overflow: hidden;
}

.vcpg-main-swiper .swiper-wrapper {
	align-items: flex-start;
}

.vcpg-slide {
	height: auto;
}

.vcpg-slide__inner {
	display: block;
	line-height: 0;
}

.vcpg-slide__image,
.vcpg-slide__video {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border: 0;
}

.vcpg-slide__video {
	background: #000;
}

.vcpg-thumbs {
	width: var(--vcpg-thumb-size);
	height: 374px;
	max-height: none;
	margin: 0;
	overflow: hidden;
}

.vcpg-thumb-slide {
	width: 100%;
	height: auto;
}

.vcpg-thumb {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 1px solid var(--vcpg-border);
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	overflow: hidden;
	line-height: 0;
}

.vcpg-thumb.is-active,
.vcpg-thumb-slide.swiper-slide-thumb-active .vcpg-thumb,
.vcpg-thumb:hover,
.vcpg-thumb:focus-visible {
	border-color: var(--vcpg-active);
	outline: none;
}

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

.vcpg-thumb__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.62);
	transform: translate(-50%, -50%);
}

.vcpg-thumb__play::after {
	content: "";
	position: absolute;
	left: 13px;
	top: 9px;
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 12px solid #fff;
}

.vcpg-nav {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	top: 50%;
	z-index: 5;
	width: 42px;
	height: 54px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.74);
	color: #111;
	font-size: 40px;
	font-weight: 300;
	line-height: 46px;
	text-align: center;
	cursor: pointer;
	transform: translateY(-50%);
}

.vcpg-nav:hover,
.vcpg-nav:focus-visible {
	background: #fff;
	outline: none;
}

.vcpg-nav--prev {
	left: 0;
}

.vcpg-nav--next {
	right: 0;
}

.vcpg-gallery[data-vcpg-count="1"] .vcpg-nav,
.vcpg-gallery[data-vcpg-count="1"] .vcpg-thumbs {
	display: none;
}

.vcpg-gallery[data-vcpg-count="1"] .vcpg-layout {
	grid-template-columns: minmax(0, 1fr);
}

.vcpg-swiper-missing::before {
	content: "Swiper library could not be loaded.";
	display: block;
	padding: 12px;
	border: 1px solid rgba(0, 0, 0, 0.16);
	background: #fff8e5;
	color: #111;
}

@media (max-width: 767px) {
	.vcpg-gallery {
		--vcpg-thumb-size: 72px;
		--vcpg-thumb-space: 8px;
	}

	.vcpg-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.vcpg-main {
		order: 1;
	}

	.vcpg-thumbs {
		order: 2;
		width: 312px;
		height: var(--vcpg-thumb-size);
		max-width: 100%;
		max-height: none;
	}

	.vcpg-thumb-slide {
		width: auto;
		height: 100%;
	}

	.vcpg-nav {
		width: 38px;
		height: 50px;
		font-size: 36px;
		line-height: 42px;
	}
}
