/* OHQ product gallery */
.ohq-gal {
	--g-yellow: #ffec00;
	--g-border: #262626;
	--g-radius: 14px;
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 14px;
	width: 100%;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ohq-gal *, .ohq-gal *::before, .ohq-gal *::after { box-sizing: border-box; }
.ohq-gal.is-single { grid-template-columns: minmax(0, 1fr); }
.ohq-gal.is-single .ohq-gal__thumbs,
.ohq-gal.is-single .ohq-gal__nav,
.ohq-gal.is-single .ohq-gal__count { display: none !important; }

/* Stage */
.ohq-gal__stage {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #fff;
	border: 1px solid var(--g-border);
	border-radius: var(--g-radius);
	overflow: hidden;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.ohq-gal__track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	outline: none;
}
.ohq-gal__track::-webkit-scrollbar { display: none; }
.ohq-gal__track.is-swapping { opacity: .4; }
.ohq-gal__track:focus-visible { box-shadow: inset 0 0 0 3px var(--g-yellow); }
.ohq-gal__slide {
	flex: 0 0 100%;
	height: 100%;
	margin: 0 !important;
	padding: 6%;
	display: flex;
	align-items: center;
	justify-content: center;
	scroll-snap-align: start;
	overflow: hidden;
}
.ohq-gal__slide img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: contain;
	border-radius: 0 !important;
	cursor: zoom-in;
	transition: transform .25s ease;
	-webkit-user-drag: none;
	user-select: none;
}
.ohq-gal__slide img.is-zoomed { transform: scale(2); }

/* Badge, counter, buttons */
.ohq-gal__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
	padding: 6px 10px;
	background: var(--g-yellow);
	color: #000;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
	border-radius: 4px;
	line-height: 1;
	pointer-events: none;
}
.ohq-gal__count {
	position: absolute;
	left: 14px;
	bottom: 14px;
	z-index: 3;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(10, 10, 10, .78);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	pointer-events: none;
}
.ohq-gal button { font: inherit; }
.ohq-gal__nav,
.ohq-gal__zoom {
	position: absolute;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	cursor: pointer;
	transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ohq-gal__nav svg,
.ohq-gal__zoom svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ohq-gal__nav {
	top: 50%;
	width: 46px;
	height: 46px;
	margin-top: -23px !important;
	border-radius: 8px !important;
	background: var(--g-yellow) !important;
	color: #000 !important;
	box-shadow: 0 4px 0 #b3a500, 0 0 18px rgba(255, 236, 0, .45);
	opacity: 0;
}
.ohq-gal__nav--prev { left: 14px; }
.ohq-gal__nav--next { right: 14px; }
.ohq-gal__stage:hover .ohq-gal__nav,
.ohq-gal__nav:focus-visible { opacity: 1; }
.ohq-gal__nav:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #b3a500, 0 0 26px rgba(255, 236, 0, .7); }
.ohq-gal__nav:active { transform: translateY(3px); box-shadow: 0 1px 0 #b3a500, 0 0 12px rgba(255, 236, 0, .45); }
.ohq-gal__zoom {
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	border-radius: 8px !important;
	background: rgba(10, 10, 10, .78) !important;
	color: #fff !important;
}
.ohq-gal__zoom svg { width: 18px; height: 18px; }
.ohq-gal__zoom:hover { background: #000 !important; color: var(--g-yellow) !important; }

/* Thumbnails: vertical rail on desktop */
.ohq-gal__thumbs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 0;
	min-height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: none;
	padding: 2px;
}
.ohq-gal__thumbs::-webkit-scrollbar { display: none; }
.ohq-gal__thumb {
	flex: 0 0 auto;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 6px !important;
	margin: 0 !important;
	background: #fff !important;
	border: 2px solid transparent !important;
	border-radius: 10px !important;
	box-shadow: 0 0 0 1px var(--g-border);
	cursor: pointer;
	opacity: .6;
	transition: opacity .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ohq-gal__thumb img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	border-radius: 4px !important;
}
.ohq-gal__thumb:hover { opacity: 1; }
.ohq-gal__thumb.is-active {
	opacity: 1;
	border-color: var(--g-yellow) !important;
	box-shadow: 0 0 0 1px var(--g-yellow), 0 0 14px rgba(255, 236, 0, .4);
}
.ohq-gal__thumb:focus-visible { outline: 2px solid var(--g-yellow); outline-offset: 2px; }

/* Dots (phones only) */
.ohq-gal__dots { display: none; }

@media (max-width: 1024px) {
	.ohq-gal { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.ohq-gal__stage { order: 1; }
	.ohq-gal__thumbs {
		order: 2;
		flex-direction: row;
		height: auto;
		min-height: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}
	.ohq-gal__thumb { width: 72px; }
}

@media (max-width: 767px) {
	.ohq-gal__stage { border-radius: 12px; }
	.ohq-gal__slide { padding: 4%; }
	.ohq-gal__nav { display: none; }
	.ohq-gal__thumb { width: 62px; border-radius: 8px !important; padding: 4px !important; }
	.ohq-gal__count { display: none; }
	.ohq-gal__dots {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 10px;
		z-index: 3;
		display: flex;
		justify-content: center;
		gap: 6px;
		pointer-events: none;
	}
	.ohq-gal__dots span {
		width: 7px;
		height: 7px;
		border-radius: 999px;
		background: rgba(0, 0, 0, .22);
		transition: width .2s ease, background .2s ease;
	}
	.ohq-gal__dots span.is-active { width: 20px; background: #000; }
	.ohq-gal__zoom { width: 36px; height: 36px; top: 10px; right: 10px; }
	.ohq-gal__badge { top: 10px; left: 10px; }
}

/* Fullscreen viewer */
html.ohq-lb-open { overflow: hidden; }
.ohq-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(6, 6, 6, .97);
	opacity: 0;
	transition: opacity .2s ease;
	font-family: "Inter", system-ui, sans-serif;
}
.ohq-lb.is-open { opacity: 1; }
.ohq-lb__bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .06em;
}
.ohq-lb__track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.ohq-lb__track::-webkit-scrollbar { display: none; }
.ohq-lb__slide {
	flex: 0 0 100%;
	height: 100%;
	margin: 0;
	padding: 64px 16px 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	scroll-snap-align: start;
}
.ohq-lb__slide img {
	max-width: min(100%, 1100px);
	max-height: 100%;
	object-fit: contain;
	background: #fff;
	border-radius: 12px;
}
.ohq-lb button {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	cursor: pointer;
}
.ohq-lb button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ohq-lb__close { width: 44px; height: 44px; border-radius: 8px; background: #1c1c1c; color: #fff; }
.ohq-lb__close:hover { color: #ffec00; }
.ohq-lb__nav {
	position: absolute;
	top: 50%;
	width: 52px;
	height: 52px;
	margin-top: -26px;
	border-radius: 8px;
	background: #ffec00;
	color: #000;
	box-shadow: 0 4px 0 #b3a500, 0 0 22px rgba(255, 236, 0, .5);
}
.ohq-lb__nav--prev { left: 20px; }
.ohq-lb__nav--next { right: 20px; }
@media (max-width: 767px) {
	.ohq-lb .ohq-lb__nav { display: none; }
	.ohq-lb__slide { padding: 60px 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.ohq-gal *, .ohq-lb { transition: none !important; }
}
