.furpaw-workshop-gallery {
	--furpaw-gallery-accent: var(--fps-accent, #0162b3);
	--furpaw-gallery-text: var(--fps-ink, #101114);
	--furpaw-gallery-muted: var(--fps-muted, #667085);
	--furpaw-gallery-border: var(--fur-divider, #dfe3e8);
	--furpaw-gallery-surface: var(--fur-surface, #fff);
	--furpaw-gallery-subtle: var(--fur-surface-muted, #f2f2f2);
	--furpaw-gallery-radius: var(--fps-radius-lg, 24px);
	--fur-ripple-duration: 520ms;
	--fur-ripple-easing: cubic-bezier(.16, 1, .3, 1);
	--fur-ripple-opacity-start: .10;
	--fur-ripple-opacity-mid: .04;
	--fur-button-press-rebound-scale: 1.006;
	width: min(1180px, calc(100vw - 32px));
	margin: 0 auto 56px;
	color: var(--furpaw-gallery-text);
}

.furpaw-workshop-gallery *,
.furpaw-workshop-gallery *::before,
.furpaw-workshop-gallery *::after {
	box-sizing: border-box;
}

.furpaw-workshop-gallery .fur-button-press-rebounding {
	animation-duration: 300ms;
}

.furpaw-workshop-gallery :is(a, [tabindex]):focus-visible {
	outline: 2px solid var(--fps-link, var(--furpaw-gallery-accent));
	outline-offset: 4px;
}

.furpaw-workshop-gallery__bar {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 24px;
	padding: 4px 0;
}

.furpaw-workshop-gallery__tab {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 12px;
	overflow: hidden;
	border: 1px solid var(--furpaw-gallery-border);
	border-radius: var(--fps-radius-sm, 14px);
	background: var(--furpaw-gallery-subtle);
	color: var(--furpaw-gallery-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, scale 100ms ease;
}

.furpaw-workshop-gallery__tab.is-active {
	border-color: var(--furpaw-gallery-accent);
	background: var(--furpaw-gallery-accent);
	color: #fff;
	box-shadow: 0 2px 8px rgb(1 98 179 / 14%);
}

:where(html:not([data-fp-theme="dark"])) .furpaw-workshop-gallery__tab:not(.is-active) {
	color: var(--theme-text-color, #1f2933);
}

.furpaw-workshop-gallery__count {
	flex-shrink: 0;
	min-width: 20px;
	padding: 0 5px;
	border-radius: 6px;
	background: rgb(127 127 127 / 10%);
	font-size: 12px;
	font-weight: 500;
	line-height: 20px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.furpaw-workshop-gallery__tab.is-active .furpaw-workshop-gallery__count {
	background: rgb(255 255 255 / 12%);
}

.furpaw-workshop-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	min-height: 300px;
}

.furpaw-workshop-gallery__card {
	--furpaw-gallery-caption-height: 36px;
	--fur-button-press-scale: .995;
	--fur-button-press-rebound-scale: 1.002;
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 0;
	align-self: start;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--furpaw-gallery-border);
	border-radius: var(--furpaw-gallery-radius);
	background: var(--furpaw-gallery-surface);
	color: inherit;
	text-decoration: none;
	line-height: 0;
	box-shadow: 0 4px 16px rgb(15 23 42 / 4%);
	transition: translate 200ms cubic-bezier(.2, .8, .2, 1), scale 100ms ease, border-color 200ms ease, box-shadow 220ms ease;
}

.furpaw-workshop-gallery__card.fur-button-pressing {
	translate: 0;
	box-shadow: 0 6px 18px rgb(15 23 42 / 8%);
}

.furpaw-workshop-gallery__media {
	z-index: 0;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: calc(var(--furpaw-gallery-radius) - 1px);
	background: var(--furpaw-gallery-subtle);
	/* Keep entrance separate from the shared press/rebound animation on the card. */
	animation: furpaw-workshop-card-in 0.32s ease-out backwards;
}

.furpaw-workshop-gallery__media img,
.furpaw-workshop-gallery__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.furpaw-workshop-gallery__card:hover .furpaw-workshop-gallery__media img:not(.furpaw-workshop-gallery__hover-image),
.furpaw-workshop-gallery__card:focus-visible .furpaw-workshop-gallery__media img:not(.furpaw-workshop-gallery__hover-image) {
	transform: scale(1.045);
}

.furpaw-workshop-gallery__media .furpaw-workshop-gallery__hover-image {
	position: absolute;
	inset: 0;
	z-index: 4;
	padding-bottom: var(--furpaw-gallery-caption-height);
	object-fit: contain;
	background: var(--furpaw-gallery-accent);
	opacity: 0;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity 180ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.furpaw-workshop-gallery__card:hover .furpaw-workshop-gallery__hover-image,
.furpaw-workshop-gallery__card:focus-visible .furpaw-workshop-gallery__hover-image {
	opacity: 1;
	transform: none;
}

.furpaw-workshop-gallery__placeholder {
	background: linear-gradient(135deg, rgba(40, 114, 250, 0.13), rgba(31, 41, 51, 0.08));
}

.furpaw-workshop-gallery__card--ost .furpaw-workshop-gallery__media {
	background: linear-gradient(135deg, #111827, #2872fa);
}

.furpaw-workshop-gallery__card--ost .furpaw-workshop-gallery__body {
	z-index: 3;
	background:
		linear-gradient(105deg, rgba(20, 28, 44, 0.18), rgba(255, 255, 255, 0.07) 52%, rgba(40, 114, 250, 0.14)),
		linear-gradient(180deg, rgba(6, 10, 18, 0.03), rgba(6, 10, 18, 0.24));
	background-color: rgba(6, 10, 18, 0.08);
}

.furpaw-workshop-gallery__ost-ui {
	position: absolute;
	inset: 0;
	z-index: 2;
	line-height: 1;
	pointer-events: none;
}

.furpaw-workshop-gallery__ost-label {
	position: absolute;
	top: 13px;
	left: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 24px;
	padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.52);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(12px) saturate(1.25);
	-webkit-backdrop-filter: blur(12px) saturate(1.25);
	color: rgba(255, 255, 255, 0.92);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}

.furpaw-workshop-gallery__ost-disc {
	position: absolute;
	right: 18px;
	top: 50%;
	width: 72px;
	aspect-ratio: 1;
	border-radius: 50%;
	background:
		radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 7px, rgba(40, 114, 250, 0.9) 8px 12px, transparent 13px),
		repeating-radial-gradient(circle, rgba(255, 255, 255, 0.32) 0 2px, rgba(255, 255, 255, 0.08) 2px 6px),
		linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08));
	opacity: 0.72;
	transform: translateY(-54%);
	box-shadow: 0 14px 32px rgba(6, 10, 18, 0.22);
	transition: opacity 0.24s ease, transform 0.32s ease;
}

.furpaw-workshop-gallery__card--ost.furpaw-workshop-gallery__card--has-image .furpaw-workshop-gallery__ost-disc {
	display: none;
}

.furpaw-workshop-gallery__ost-bars {
	position: absolute;
	left: 18px;
	bottom: 42px;
	display: inline-flex;
	align-items: end;
	gap: 4px;
	height: 22px;
}

.furpaw-workshop-gallery__ost-bars i {
	display: block;
	width: 4px;
	height: 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.78);
	box-shadow: 0 0 12px rgba(255, 255, 255, 0.28);
	transform-origin: bottom;
	animation: furpaw-workshop-ost-bar 1.5s ease-in-out infinite;
}

.furpaw-workshop-gallery__ost-bars i:nth-child(2) {
	height: 18px;
	animation-delay: -0.28s;
}

.furpaw-workshop-gallery__ost-bars i:nth-child(3) {
	height: 9px;
	animation-delay: -0.56s;
}

.furpaw-workshop-gallery__ost-bars i:nth-child(4) {
	height: 15px;
	animation-delay: -0.84s;
}

.furpaw-workshop-gallery__card--ost:hover .furpaw-workshop-gallery__ost-disc,
.furpaw-workshop-gallery__card--ost:focus-visible .furpaw-workshop-gallery__ost-disc {
	opacity: 0.88;
	transform: translateY(-54%) rotate(10deg) scale(1.035);
}

.furpaw-workshop-gallery__body {
	--furpaw-glow-x: 50%;
	--furpaw-glow-y: 50%;
	--furpaw-glow-opacity: 0;
	--furpaw-title-shift: 0px;
	--furpaw-title-brightness: 1;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--furpaw-gallery-caption-height);
	padding: 6px 12px;
	color: #fff;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 0;
	overflow: hidden;
	background:
		linear-gradient(105deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025) 48%, rgba(255, 255, 255, 0.08)),
		linear-gradient(180deg, rgba(8, 14, 28, 0.03), rgba(8, 14, 28, 0.18));
	background-color: rgba(6, 10, 18, 0.32);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.24),
		inset 0 -1px 0 rgba(255, 255, 255, 0.06),
		0 -10px 30px rgba(15, 23, 42, 0.06);
	backdrop-filter: blur(14px) saturate(1.45) contrast(1.08);
	-webkit-backdrop-filter: blur(14px) saturate(1.45) contrast(1.08);
	transition: box-shadow 0.22s ease;
}

.furpaw-workshop-gallery__body::before {
	content: "";
	position: absolute;
	left: var(--furpaw-glow-x);
	top: var(--furpaw-glow-y);
	z-index: 0;
	width: 96px;
	height: 56px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08) 42%, transparent 70%);
	opacity: var(--furpaw-glow-opacity);
	transform: translate(-50%, -50%);
	transition: opacity 0.28s ease;
	pointer-events: none;
}

.furpaw-workshop-gallery__body::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.11), transparent 36px);
	mix-blend-mode: screen;
	opacity: calc(var(--furpaw-glow-opacity) * .28);
	transition: opacity 220ms ease;
	pointer-events: none;
}

.furpaw-workshop-gallery__title {
	min-width: 0;
	position: relative;
	z-index: 1;
	margin: 0;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-shadow: 0 1px 2px rgb(0 0 0 / 42%), 0 0 1px rgb(0 0 0 / 24%);
	filter: brightness(var(--furpaw-title-brightness));
	transform: translateX(var(--furpaw-title-shift));
	transform-origin: center;
	transition: filter 0.18s ease, transform 0.18s ease;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.furpaw-workshop-gallery__tab:not(.is-active) > .fur-button-ripple,
.furpaw-workshop-gallery__pager a > .fur-button-ripple {
	background: var(--fps-link, var(--furpaw-gallery-accent));
}

.furpaw-workshop-gallery__empty {
	grid-column: 1 / -1;
	padding: 48px 24px;
	border: 1px dashed var(--furpaw-gallery-border);
	border-radius: var(--furpaw-gallery-radius);
	color: var(--furpaw-gallery-muted);
	text-align: center;
}

.furpaw-workshop-gallery__pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 32px auto 0;
}

.furpaw-workshop-gallery__pager-pages {
	display: contents;
}

.furpaw-workshop-gallery__pager a,
.furpaw-workshop-gallery__pager > .furpaw-workshop-gallery__pager-arrow,
.furpaw-workshop-gallery__pager-pages > :is(.current, .dots) {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	overflow: hidden;
	border: 1px solid var(--furpaw-gallery-border);
	border-radius: var(--fps-radius-sm, 14px);
	background: var(--furpaw-gallery-surface);
	color: var(--furpaw-gallery-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, scale 100ms ease;
}

.furpaw-workshop-gallery__pager .furpaw-workshop-gallery__pager-arrow {
	width: 44px;
	padding: 0;
	font-size: 18px;
}

.furpaw-workshop-gallery__pager .current {
	border-color: var(--furpaw-gallery-accent);
	background: var(--furpaw-gallery-accent);
	color: #fff;
	box-shadow: 0 2px 8px rgb(1 98 179 / 14%);
}

.furpaw-workshop-gallery__pager .is-disabled {
	opacity: .55;
	color: var(--furpaw-gallery-muted);
}

.furpaw-workshop-gallery.is-navigated .furpaw-workshop-gallery__media {
	animation: none;
}

html[data-fp-theme="dark"] .furpaw-workshop-gallery {
	--furpaw-gallery-text: var(--fps-ink, #f3f5f7);
	--furpaw-gallery-muted: var(--fps-muted, #aab2bf);
	--furpaw-gallery-border: var(--fur-divider, rgb(255 255 255 / 12%));
	--furpaw-gallery-surface: var(--fur-surface, #15171b);
	--furpaw-gallery-subtle: var(--fur-surface-muted, #1e2126);
}

@keyframes furpaw-workshop-card-in {
	from { opacity: 0; translate: 0 8px; }
	to { opacity: 1; translate: 0; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.furpaw-workshop-gallery__card:hover:not(.fur-button-pressing) {
		translate: 0 -1px;
		border-color: rgb(1 98 179 / 28%);
		box-shadow: 0 12px 32px rgb(15 23 42 / 9%);
	}

	.furpaw-workshop-gallery__card:hover .furpaw-workshop-gallery__body {
		box-shadow: inset 0 1px 0 rgb(255 255 255 / 30%), inset 0 -1px 0 rgb(255 255 255 / 8%), 0 -12px 34px rgb(15 23 42 / 8%);
	}

	.furpaw-workshop-gallery__tab:not(.is-active):hover,
	.furpaw-workshop-gallery__pager a:hover {
		border-color: rgb(1 98 179 / 28%);
		background: var(--furpaw-gallery-subtle);
		color: var(--fps-link, var(--furpaw-gallery-accent));
	}
}

@keyframes furpaw-workshop-ost-bar {
	0%, 100% { transform: scaleY(.68); opacity: .58; }
	50% { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.furpaw-workshop-gallery *,
	.furpaw-workshop-gallery *::before,
	.furpaw-workshop-gallery *::after {
		animation: none !important;
		transition: none !important;
	}
	.furpaw-workshop-gallery__card { translate: none !important; }
	.furpaw-workshop-gallery__title { transform: none; filter: none; }
	.furpaw-workshop-gallery__media img { transform: none !important; }
	.furpaw-workshop-gallery__ost-disc { transform: translateY(-54%) !important; }
}

@media (max-width: 1099.98px) {
	.furpaw-workshop-gallery__bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 999.98px) {
	.furpaw-workshop-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 689.98px) {
	.furpaw-workshop-gallery { width: min(100%, calc(100vw - (var(--fur-page-padding, clamp(24px, 5vw, 80px)) * 2))); }
	.furpaw-workshop-gallery__bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.furpaw-workshop-gallery__tab { font-size: 13px; }
	.furpaw-workshop-gallery__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
