/* HOBBYTEC Core — Výroba / galéria výrobných priestorov [hbtc_vyroba] */

.hbtc-vyroba {
	--vyr-green: #78b956;
	--vyr-yellow: #f1bb41;
	--vyr-dark: #221f20;
	width: 100%;
	max-width: 1600px;
	margin-left: auto;
	margin-right: auto;
	font-family: "Gilroy-Regular", system-ui, sans-serif;
	color: #221f20 !important;
}

.hbtc-vyroba *,
.hbtc-vyroba *::before,
.hbtc-vyroba *::after {
	box-sizing: border-box;
}

.hbtc-vyroba__inner {
	width: 100%;
	margin: 0 auto;
	padding: clamp(28px, 5vw, 72px) clamp(16px, 2.4vw, 36px);
}

/* ---------- Reveal ---------- */

.hbtc-vyroba [data-hbtc-vyroba-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.hbtc-vyroba [data-hbtc-vyroba-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ---------- Head ---------- */

.hbtc-vyroba__head {
	max-width: 880px;
	margin-bottom: clamp(26px, 3.4vw, 46px);
}

.hbtc-vyroba__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-family: "Gilroy-Medium", "Gilroy-Regular", system-ui, sans-serif;
	font-size: 14px;
	line-height: 1;
	color: var(--vyr-green) !important;
}

.hbtc-vyroba__kicker::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: var(--vyr-green);
}

.hbtc-vyroba__title {
	margin: 0 0 18px !important;
	font-family: "Gilroy-ExtraBold", "Gilroy-Regular", system-ui, sans-serif;
	font-size: clamp(30px, 4.4vw, 60px) !important;
	font-weight: 800 !important;
	line-height: 0.98;
	letter-spacing: -0.03em;
	color: var(--vyr-dark) !important;
}

.hbtc-vyroba__lead {
	margin: 0;
	max-width: 62ch;
	font-family: "Gilroy-Medium", "Gilroy-Regular", system-ui, sans-serif;
	font-size: 18px;
	line-height: 1.55;
	color: rgba(34, 31, 32, 0.76) !important;
}

/* ---------- Grid ---------- */

.hbtc-vyroba__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(10px, 1.4vw, 18px);
}

.hbtc-vyroba__item {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	border-radius: clamp(14px, 1.8vw, 22px);
	overflow: hidden;
	background: #f4f4f4 !important;
	cursor: zoom-in;
}

.hbtc-vyroba__item:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.hbtc-vyroba [data-hbtc-vyroba-reveal].is-visible .hbtc-vyroba__item {
	animation: hbtc-vyroba-in 0.6s ease both;
	animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes hbtc-vyroba-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hbtc-vyroba__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hbtc-vyroba__item:hover img {
	transform: scale(1.05);
}

.hbtc-vyroba__item-zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: rgba(34, 31, 32, 0.55) !important;
	color: #fff !important;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.hbtc-vyroba__item:hover .hbtc-vyroba__item-zoom {
	opacity: 1;
	transform: translateY(0);
}

.hbtc-vyroba__item-zoom svg {
	width: 18px;
	height: 18px;
}

.hbtc-vyroba__item.is-hidden {
	display: none;
}

/* ---------- Načítať viac ---------- */

.hbtc-vyroba__more-wrap {
	display: flex;
	justify-content: center;
	margin-top: clamp(22px, 3vw, 36px);
}

.hbtc-vyroba__more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 28px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--vyr-dark) !important;
	color: #fff !important;
	font-family: "Gilroy-Medium", "Gilroy-Regular", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease;
}

.hbtc-vyroba__more:hover {
	transform: translateY(-3px);
	background: var(--vyr-green) !important;
}

.hbtc-vyroba__more-count {
	opacity: 0.62;
	font-size: 13px;
}

.hbtc-vyroba__more svg {
	width: 15px;
	height: 15px;
}

/* ---------- Lightbox ---------- */

.hbtc-vyroba-lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(14px, 3vw, 40px);
	background: rgba(34, 31, 32, 0.92) !important;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.hbtc-vyroba-lb.is-open {
	opacity: 1;
}

.hbtc-vyroba-lb__img {
	max-width: min(1400px, 100%);
	max-height: 100%;
	border-radius: clamp(12px, 1.6vw, 20px);
	object-fit: contain;
	display: block;
}

.hbtc-vyroba-lb__btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.25s ease;
}

.hbtc-vyroba-lb__btn:hover {
	background: #78b956 !important;
	transform: scale(1.06);
}

.hbtc-vyroba-lb__btn svg {
	width: 22px;
	height: 22px;
}

.hbtc-vyroba-lb__close {
	top: 18px;
	right: 18px;
}

.hbtc-vyroba-lb__prev {
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
}

.hbtc-vyroba-lb__prev:hover {
	transform: translateY(-50%) scale(1.06);
}

.hbtc-vyroba-lb__next {
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
}

.hbtc-vyroba-lb__next:hover {
	transform: translateY(-50%) scale(1.06);
}

.hbtc-vyroba-lb__count {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	font-family: "Gilroy-Medium", "Gilroy-Regular", system-ui, sans-serif;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8) !important;
}

/* ---------- Responzívne ---------- */

@media (max-width: 900px) {
	.hbtc-vyroba__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hbtc-vyroba__item:first-child {
		grid-column: span 2;
		grid-row: span 1;
	}
}

@media (max-width: 560px) {
	.hbtc-vyroba__grid {
		grid-template-columns: 1fr;
	}

	.hbtc-vyroba__item:first-child {
		grid-column: span 1;
	}

	.hbtc-vyroba-lb__prev,
	.hbtc-vyroba-lb__next {
		width: 42px;
		height: 42px;
	}
}
