/* Preserve each imported gallery's frame and dimensions; replace its Wix motion. */
.po-gallery [data-testid="slider-gallery-visible-items-container"] {
	overflow-x: auto !important;
	overflow-y: hidden !important;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
}
.po-gallery [data-testid="slider-gallery-visible-items-container"]::-webkit-scrollbar { display: none; }
.po-gallery [data-testid="slider-gallery-all-items-container"] {
	position: relative !important;
	display: flex !important;
	align-items: center;
	width: max-content !important;
	min-width: 100%;
	height: 100% !important;
	left: 0 !important;
	transform: none !important;
	transition: none !important;
}
.po-gallery .wixui-gallery__item:not([hidden]) {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	transform: none !important;
	flex: 0 0 var(--po-gallery-item-size, 200px) !important;
	width: var(--po-gallery-item-size, 200px) !important;
	height: var(--po-gallery-item-size, 200px) !important;
	margin-right: var(--spacing, 30px);
	scroll-snap-align: start;
	scroll-snap-stop: normal;
}
.po-gallery .wixui-gallery__item.po-gallery-last { margin-right: 0; }
.po-gallery [data-testid="gallery-item-click-action-image-zoom"] {
	display: block !important;
	width: 100%;
	height: 100%;
	visibility: visible !important;
	opacity: 1 !important;
	cursor: zoom-in;
}
.po-gallery [data-testid="gallery-item-click-action-image-zoom"] > svg { display: none !important; }
.po-gallery [hidden], .po-gallery-dialog [hidden] { display: none !important; }
.po-gallery [role="button"]:focus-visible,
.po-gallery button:focus-visible,
.po-gallery [data-testid="slider-gallery-visible-items-container"]:focus-visible {
	outline: 3px solid #075c92 !important;
	outline-offset: -3px;
}
.po-gallery-dialog {
	position: fixed;
	inset: 0;
	box-sizing: border-box;
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 54px 70px 36px;
	border: 0;
	color: #fff;
	background: rgba(12, 16, 19, .97);
	font: 16px/1.4 Arial, sans-serif;
	z-index: 2147483647;
}
.po-gallery-dialog:not([open]) { display: none; }
.po-gallery-dialog[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.po-gallery-dialog::backdrop { background: rgba(0, 0, 0, .9); }
.po-gallery-dialog figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-width: 0;
	min-height: 0;
	margin: 0;
}
.po-gallery-dialog .po-gallery-full-image {
	display: block;
	flex: 0 1 auto;
	min-height: 0;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100dvh - 158px);
	object-fit: contain;
}
.po-gallery-dialog figcaption { max-width: 900px; margin: 0; text-align: center; overflow-wrap: anywhere; }
.po-gallery-dialog button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0 0 4px;
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: 50%;
	background: rgba(30, 30, 30, .7);
	color: #fff;
	font: 40px/1 Arial, sans-serif;
	cursor: pointer;
}
.po-gallery-dialog button:hover { background: #fff; color: #111; }
.po-gallery-dialog button:focus-visible { outline: 3px solid #ffee00; outline-offset: 4px; }
.po-gallery-dialog .po-gallery-close { top: 10px; right: 12px; font-size: 34px; }
.po-gallery-dialog .po-gallery-previous { top: calc(50% - 24px); left: 10px; }
.po-gallery-dialog .po-gallery-next { top: calc(50% - 24px); right: 10px; }
.po-gallery-count { margin: 12px 0 0; text-align: center; font-size: 14px; color: #eee; }
.po-gallery-error { margin: 1em; text-align: center; }
@media (max-width: 600px) {
	.po-gallery-dialog { padding: 66px 12px 76px; }
	.po-gallery-dialog .po-gallery-full-image { max-height: calc(100dvh - 205px); }
	.po-gallery-dialog .po-gallery-previous, .po-gallery-dialog .po-gallery-next { top: auto; bottom: 12px; }
	.po-gallery-dialog .po-gallery-previous { left: calc(50% - 60px); }
	.po-gallery-dialog .po-gallery-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) {
	.po-gallery [data-testid="slider-gallery-visible-items-container"] { scroll-behavior: auto !important; }
}
