.rpg-product-gallery {
	--rpg-slide-width: 69%;
	--rpg-slide-ratio: 1 / 1;
	--rpg-gap: 20px;
	--rpg-radius: 12px;
	--rpg-arrow-color: #2e211a;
	--rpg-line-color: #d4c9c0;
	--rpg-object-fit: cover;
	--rpg-object-position: center center;
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.rpg-product-gallery *,
.rpg-product-gallery *::before,
.rpg-product-gallery *::after {
	box-sizing: border-box;
}

.rpg-product-gallery__track {
	display: flex;
	align-items: stretch;
	gap: var(--rpg-gap);
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 0;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
	touch-action: pan-x pan-y pinch-zoom;
	outline-style: solid;
	outline-width: 2px;
	outline-color: transparent;
	outline-offset: 4px;
}

.rpg-product-gallery__track::-webkit-scrollbar {
	display: none;
}

.rpg-product-gallery__track.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.rpg-product-gallery__track.is-programmatic {
	scroll-snap-type: none;
}

.rpg-product-gallery--direction-ltr .rpg-product-gallery__track {
	direction: ltr;
}

.rpg-product-gallery--direction-rtl .rpg-product-gallery__track {
	direction: rtl;
}

.rpg-product-gallery--direction-auto .rpg-product-gallery__track {
	direction: inherit;
}

.rpg-product-gallery--touch-disabled .rpg-product-gallery__track {
	touch-action: pan-y pinch-zoom;
}

.rpg-product-gallery__slide {
	position: relative;
	flex: 0 0 var(--rpg-slide-width);
	width: var(--rpg-slide-width);
	aspect-ratio: var(--rpg-slide-ratio);
	height: auto !important;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	background: #eeece7;
	border-radius: var(--rpg-radius);
	scroll-snap-align: start;
	scroll-snap-stop: always;
	isolation: isolate;
}

.rpg-product-gallery__figure,
.rpg-product-gallery__media,
.rpg-product-gallery__media-link {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	margin: 0;
}

.rpg-product-gallery__media,
.rpg-product-gallery__media-link {
	overflow: hidden;
	border-radius: inherit;
}

.rpg-product-gallery__media-link {
	outline-style: solid;
	outline-width: 2px;
	outline-color: transparent;
	outline-offset: -4px;
}

.rpg-product-gallery .rpg-product-gallery__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0;
	object-fit: cover !important;
	object-position: 50% 50% !important;
	transition: transform 280ms ease, filter 280ms ease, opacity 280ms ease;
	user-select: none;
	-webkit-user-drag: none;
}

.rpg-product-gallery__caption {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 2;
	margin: 0;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.88);
	color: #573a2c;
	line-height: 1.4;
	text-align: start;
}

.rpg-product-gallery__navigation {
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
	margin-top: 18px;
	gap: 26px;
}

.rpg-product-gallery__buttons {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	flex: 0 0 auto;
	gap: 18px;
	direction: ltr;
}

.rpg-product-gallery__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	min-width: 24px;
	min-height: 24px;
	margin: 0;
	padding: 0;
	border: 0 solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--rpg-arrow-color);
	font: inherit;
	line-height: 1;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: color 180ms ease, background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
	outline-style: solid;
	outline-width: 2px;
	outline-color: transparent;
	outline-offset: 2px;
}

.rpg-product-gallery__button:hover {
	transform: translateY(-1px);
}

.rpg-product-gallery__button:active {
	transform: translateY(0);
}

.rpg-product-gallery__button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
	transform: none;
}

.rpg-product-gallery__button i {
	display: block;
	font-size: 44px;
	line-height: 1;
}

.rpg-product-gallery__button svg {
	display: block;
	width: 44px;
	height: 18px;
	fill: currentColor;
	overflow: visible;
}

.rpg-product-gallery__line {
	position: relative;
	flex: 1 1 auto;
	min-width: 24px;
	height: 1px;
	max-width: 100%;
	overflow: hidden;
	background: var(--rpg-line-color);
}

.rpg-product-gallery__line-progress {
	display: block;
	width: 0;
	height: 100%;
	background: #573a2c;
	transition: width 260ms ease;
}

.rpg-product-gallery--direction-rtl .rpg-product-gallery__line-progress,
.rpg-product-gallery--direction-auto[dir="rtl"] .rpg-product-gallery__line-progress {
	margin-inline-start: auto;
}

.rpg-product-gallery__counter {
	display: inline-flex;
	align-items: baseline;
	gap: 0.25em;
	flex: 0 0 auto;
	color: #573a2c;
	font-size: 14px;
	line-height: 1;
	direction: ltr;
}

.rpg-product-gallery__editor-notice {
	padding: 14px 16px;
	border: 1px dashed #b9aaa0;
	background: #faf7f3;
	color: #573a2c;
	font-size: 14px;
	line-height: 1.6;
}

.rpg-product-gallery .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
	.rpg-product-gallery__image,
	.rpg-product-gallery__button,
	.rpg-product-gallery__line-progress {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
