.arqis-pv {
	--arqis-pv-thumb-columns: 2;
	width: 100%;
}

.arqis-pv *,
.arqis-pv *::before,
.arqis-pv *::after {
	box-sizing: border-box;
}

.arqis-pv-layout {
	display: grid;
	grid-template-columns: minmax(120px, 32%) minmax(0, 1fr);
	align-items: start;
	gap: 20px;
}

.arqis-pv-thumbnails-wrap {
	width: 100%;
}

.arqis-pv-thumbnails {
	display: grid;
	grid-template-columns: repeat(var(--arqis-pv-thumb-columns), minmax(0, 1fr));
	gap: 10px;
}

.arqis-pv-thumbnails[hidden] {
	display: none !important;
}

.arqis-pv-thumb {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid rgba(48, 42, 36, 0.18);
	background: #f6f3ee;
	cursor: pointer;
	opacity: 0.82;
	transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.arqis-pv-thumb:hover,
.arqis-pv-thumb:focus-visible,
.arqis-pv-thumb.is-selected {
	opacity: 1;
}

.arqis-pv-thumb:focus-visible,
.arqis-pv-option:focus-visible,
.arqis-pv-media-button:focus-visible,
.arqis-pv-image-open:focus-visible,
.arqis-pv-lightbox button:focus-visible {
	outline: 2px solid #b89048;
	outline-offset: 3px;
}

.arqis-pv-thumb img,
.arqis-pv-main img,
.arqis-pv-video-poster img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.arqis-pv-thumb-play,
.arqis-pv-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.64);
}

.arqis-pv-thumb-play {
	width: 28px;
	height: 28px;
}

.arqis-pv-thumb-play::before,
.arqis-pv-play::before {
	content: "";
	display: block;
	width: 0;
	height: 0;
	margin-left: 3px;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 11px solid #fff;
}

.arqis-pv-thumb-play::before {
	border-top-width: 5px;
	border-bottom-width: 5px;
	border-left-width: 8px;
}

.arqis-pv-stage {
	display: grid;
	gap: 14px;
	min-width: 0;
}

.arqis-pv-main {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #f6f3ee;
	aspect-ratio: 4 / 5;
}

.arqis-pv-image-open {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.arqis-pv-expand {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.64);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.arqis-pv-expand::before,
.arqis-pv-expand::after {
	content: "";
	position: absolute;
	border: 2px solid #fff;
}

.arqis-pv-expand::before {
	top: 10px;
	right: 10px;
	width: 10px;
	height: 10px;
	border-bottom: 0;
	border-left: 0;
}

.arqis-pv-expand::after {
	bottom: 10px;
	left: 10px;
	width: 10px;
	height: 10px;
	border-top: 0;
	border-right: 0;
}

.arqis-pv-main iframe,
.arqis-pv-main video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #111;
}

.arqis-pv-video-poster {
	position: relative;
	width: 100%;
	height: 100%;
}

.arqis-pv-media-button {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.arqis-pv-media-button::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.16);
}

.arqis-pv-play {
	z-index: 1;
	width: 54px;
	height: 54px;
}

.arqis-pv-selector {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.arqis-pv-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 7px 12px;
	border: 1px solid rgba(48, 42, 36, 0.2);
	border-radius: 999px;
	background: #fff;
	color: #302a24;
	cursor: pointer;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.arqis-pv-option.is-selected {
	border-color: #b89048;
	box-shadow: 0 3px 12px rgba(48, 42, 36, 0.12);
}

.arqis-pv-swatch {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 1px solid rgba(17, 17, 17, 0.18);
	border-radius: 50%;
}

.arqis-pv-empty {
	padding: 16px;
	border: 1px dashed rgba(48, 42, 36, 0.28);
	background: #f8f6f2;
	color: #302a24;
}

.arqis-pv-lightbox-lock {
	overflow: hidden;
}

.arqis-pv-lightbox {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	grid-template-columns: minmax(44px, 8vw) minmax(0, 1fr) minmax(44px, 8vw);
	align-items: center;
	gap: 10px;
	padding: 28px;
	background: rgba(12, 10, 8, 0.92);
}

.arqis-pv-lightbox-figure {
	grid-column: 2;
	display: grid;
	justify-items: center;
	gap: 12px;
	max-width: 100%;
	max-height: calc(100vh - 56px);
	margin: 0;
}

.arqis-pv-lightbox-image {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 96px);
	object-fit: contain;
	background: #111;
}

.arqis-pv-lightbox-caption {
	min-height: 1.2em;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

.arqis-pv-lightbox-close,
.arqis-pv-lightbox-nav {
	border: 0;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	cursor: pointer;
}

.arqis-pv-lightbox-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	border-radius: 999px;
}

.arqis-pv-lightbox-close::before,
.arqis-pv-lightbox-close::after {
	content: "";
	position: absolute;
	top: 21px;
	left: 12px;
	width: 20px;
	height: 2px;
	background: #fff;
}

.arqis-pv-lightbox-close::before {
	transform: rotate(45deg);
}

.arqis-pv-lightbox-close::after {
	transform: rotate(-45deg);
}

.arqis-pv-lightbox-nav {
	position: relative;
	width: 48px;
	height: 64px;
	border-radius: 999px;
	justify-self: center;
}

.arqis-pv-lightbox-nav[hidden] {
	display: none !important;
}

.arqis-pv-lightbox-prev {
	grid-column: 1;
}

.arqis-pv-lightbox-next {
	grid-column: 3;
}

.arqis-pv-lightbox-nav::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
}

.arqis-pv-lightbox-prev::before {
	transform: translate(-35%, -50%) rotate(-135deg);
}

.arqis-pv-lightbox-next::before {
	transform: translate(-65%, -50%) rotate(45deg);
}

@media (max-width: 1024px) {
	.arqis-pv-layout {
		display: flex;
		flex-direction: column;
	}

	.arqis-pv-stage {
		display: contents;
	}

	.arqis-pv-main {
		order: 1;
	}

	.arqis-pv-thumbnails-wrap {
		order: 2;
	}

	.arqis-pv-selector {
		order: 3;
		width: 100%;
	}
}

@media (max-width: 767px) {
	.arqis-pv-selector {
		order: 2;
	}

	.arqis-pv-thumbnails-wrap {
		order: 3;
	}

	.arqis-pv-lightbox {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr auto;
		padding: 16px;
	}

	.arqis-pv-lightbox-figure {
		grid-column: 1 / -1;
		grid-row: 1;
		max-height: calc(100vh - 112px);
	}

	.arqis-pv-lightbox-image {
		max-height: calc(100vh - 150px);
	}

	.arqis-pv-lightbox-prev,
	.arqis-pv-lightbox-next {
		grid-row: 2;
		width: 56px;
		height: 48px;
	}

	.arqis-pv-lightbox-prev {
		grid-column: 1;
		justify-self: end;
	}

	.arqis-pv-lightbox-next {
		grid-column: 2;
		justify-self: start;
	}
}
