.furpaw-workshop-gallery {
	--furpaw-gallery-accent: var(--theme-palette-color-1, #2872fa);
	--furpaw-gallery-text: var(--theme-text-color, #1f2933);
	--furpaw-gallery-muted: rgba(31, 41, 51, 0.62);
	--furpaw-gallery-border: rgba(44, 62, 80, 0.13);
	--furpaw-gallery-surface: #fff;
	width: min(1180px, calc(100vw - 32px));
	margin: 0 auto 56px;
	color: var(--furpaw-gallery-text);
}

.furpaw-workshop-gallery__bar {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 28px;
	padding: 4px 0;
}

.furpaw-workshop-gallery__tab {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 42px;
	padding: 0 10px;
	border: 2px solid #fff;
	border-radius: 16px;
	background: #f0f0f0;
	color: #999999;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
	transition: color 0.18s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.furpaw-workshop-gallery__tab::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 14px;
	background: var(--furpaw-gallery-accent);
	opacity: 0;
	transform: scale(0.985);
	transition: opacity 0.2s ease, transform 0.22s ease;
	pointer-events: none;
}

.furpaw-workshop-gallery__tab::after {
	content: "";
	position: absolute;
	inset: -65% -25%;
	background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.48), transparent 65%);
	opacity: 0;
	transform: translateX(-58%) rotate(8deg);
	transition: opacity 0.22s ease, transform 0.58s ease;
	pointer-events: none;
}

.furpaw-workshop-gallery__tab:hover,
.furpaw-workshop-gallery__tab:focus-visible,
.furpaw-workshop-gallery__tab.is-active {
	color: #fff;
	outline: none;
	transform: translateY(-2px) scale(1.015);
}

.furpaw-workshop-gallery__tab:hover::before,
.furpaw-workshop-gallery__tab:focus-visible::before,
.furpaw-workshop-gallery__tab.is-active::before {
	opacity: 1;
	transform: scale(1);
}

.furpaw-workshop-gallery__tab:hover::after,
.furpaw-workshop-gallery__tab:focus-visible::after {
	opacity: 1;
	transform: translateX(55%) rotate(8deg);
}

.furpaw-workshop-gallery__tab span {
	position: relative;
	z-index: 1;
}

.furpaw-workshop-gallery__count {
	opacity: 0.72;
	font-size: 12px;
}

.furpaw-workshop-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	min-height: 300px;
}

.furpaw-workshop-gallery__card {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 2px solid #fff;
	border-radius: 16px;
	background: transparent;
	color: inherit;
	text-decoration: none;
	line-height: 0;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 12px 32px rgba(15, 23, 42, 0.07);
	animation: furpaw-workshop-card-in 0.34s ease both;
	transition: border-color 0.18s ease, box-shadow 0.24s ease, transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.furpaw-workshop-gallery__card:hover,
.furpaw-workshop-gallery__card:focus-visible {
	border-color: #fff;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 18px 42px rgba(15, 23, 42, 0.12);
	outline: none;
	transform: translateY(-3px) !important;
}

.furpaw-workshop-gallery__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 14px;
	background: #eef3f8;
}

.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__hover-image {
	position: absolute;
	inset: 0;
	z-index: 4;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease;
}

.furpaw-workshop-gallery__card:hover .furpaw-workshop-gallery__hover-image,
.furpaw-workshop-gallery__card:focus-visible .furpaw-workshop-gallery__hover-image {
	opacity: 1;
}

.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__media::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(circle at 74% 37%, rgba(255, 255, 255, 0.2), transparent 28%),
		linear-gradient(125deg, rgba(5, 8, 18, 0.26), rgba(18, 28, 48, 0.1) 46%, rgba(40, 114, 250, 0.3));
	pointer-events: none;
}

.furpaw-workshop-gallery__card--ost.furpaw-workshop-gallery__card--has-image .furpaw-workshop-gallery__media::before {
	display: none;
}

.furpaw-workshop-gallery__card--ost .furpaw-workshop-gallery__body {
	z-index: 3;
	background:
		radial-gradient(circle at var(--furpaw-glow-x) var(--furpaw-glow-y), rgba(255, 255, 255, 0.18), transparent 34%),
		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));
}

.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: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 4px 12px 2px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 0;
	overflow: hidden;
	background:
		radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.22), transparent 30%),
		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));
	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: 0.28;
	pointer-events: none;
}

.furpaw-workshop-gallery__card:hover .furpaw-workshop-gallery__body,
.furpaw-workshop-gallery__card:focus-visible .furpaw-workshop-gallery__body {
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.3),
		inset 0 -1px 0 rgba(255, 255, 255, 0.08),
		0 -12px 34px rgba(15, 23, 42, 0.08);
}

.furpaw-workshop-gallery__title {
	position: relative;
	z-index: 1;
	margin: 0;
	color: rgba(255, 255, 255, 0.94);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.24), 0 0 1px rgba(0, 0, 0, 0.16);
	filter: brightness(var(--furpaw-title-brightness));
	transform: translateY(7px) 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__empty {
	grid-column: 1 / -1;
	padding: 48px 18px;
	border: 1px dashed var(--furpaw-gallery-border);
	border-radius: 8px;
	color: var(--furpaw-gallery-muted);
	text-align: center;
}

.furpaw-workshop-gallery__pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 34px auto 0;
}

.furpaw-workshop-gallery__pager-pages {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 142px;
	min-height: 44px;
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: transparent;
	box-shadow: none;
}

.furpaw-workshop-gallery__pager a,
.furpaw-workshop-gallery__pager span:not(.furpaw-workshop-gallery__pager-pages) {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 2px solid #fff;
	border-radius: 16px;
	background: #f0f0f0;
	color: #999999;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	isolation: isolate;
	transition: color 0.18s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.furpaw-workshop-gallery__pager a::before,
.furpaw-workshop-gallery__pager span:not(.furpaw-workshop-gallery__pager-pages)::before {
	content: none;
	position: absolute;
	inset: 0;
	border-radius: 14px;
	background: var(--furpaw-gallery-accent);
	opacity: 0;
	transform: scale(0.985);
	transition: opacity 0.2s ease, transform 0.22s ease;
	pointer-events: none;
	z-index: 0;
}

.furpaw-workshop-gallery__pager a::after {
	content: none;
	position: absolute;
	inset: -65% -25%;
	background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.48), transparent 65%);
	opacity: 0;
	transform: translateX(-58%) rotate(8deg);
	transition: opacity 0.22s ease, transform 0.58s ease;
	pointer-events: none;
	z-index: 1;
}

.furpaw-workshop-gallery__pager a:hover::before,
.furpaw-workshop-gallery__pager a:focus-visible::before,
.furpaw-workshop-gallery__pager span:not(.furpaw-workshop-gallery__pager-pages):hover::before,
.furpaw-workshop-gallery__pager span:not(.furpaw-workshop-gallery__pager-pages):focus-visible::before,
.furpaw-workshop-gallery__pager .current::before {
	opacity: 1;
	transform: scale(1);
}

.furpaw-workshop-gallery__pager a:hover::after,
.furpaw-workshop-gallery__pager a:focus-visible::after {
	opacity: 1;
	transform: translateX(55%) rotate(8deg);
}

.furpaw-workshop-gallery__pager-arrow {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 44px;
	height: 44px;
	padding: 0 !important;
	font-size: 25px !important;
	color: #999999 !important;
}

.furpaw-workshop-gallery__pager a:hover,
.furpaw-workshop-gallery__pager a:focus-visible,
.furpaw-workshop-gallery__pager span:not(.furpaw-workshop-gallery__pager-pages):hover,
.furpaw-workshop-gallery__pager span:not(.furpaw-workshop-gallery__pager-pages):focus-visible {
	background: var(--furpaw-gallery-accent) !important;
	color: #fff !important;
	outline: none;
	transform: translateY(-2px);
}

.furpaw-workshop-gallery__pager .current {
	background: var(--furpaw-gallery-accent) !important;
	color: #fff !important;
	transform: none;
}

.furpaw-workshop-gallery__pager-arrow:hover,
.furpaw-workshop-gallery__pager-arrow:focus-visible {
	background: var(--furpaw-gallery-accent) !important;
	color: #fff !important;
}

.furpaw-workshop-gallery__pager .is-disabled {
	opacity: 0.45;
	color: #999999 !important;
	transform: none;
}

.furpaw-workshop-gallery__pager .is-disabled:hover {
	opacity: 1;
	background: var(--furpaw-gallery-accent) !important;
	color: #fff !important;
}

@keyframes furpaw-workshop-card-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes furpaw-workshop-ost-bar {
	0%,
	100% {
		transform: scaleY(0.68);
		opacity: 0.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;
	}
}

@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 - 24px));
	}

	.furpaw-workshop-gallery__bar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		margin-bottom: 20px;
	}

	.furpaw-workshop-gallery__tab {
		min-height: 40px;
		font-size: 13px;
	}

	.furpaw-workshop-gallery__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

