/* EnduroTurf Gallery */
.etg,
.etg-lb {
	--etg-green: #209e2e;
	--etg-green-dark: #14691f;
	--etg-deep: #0f3d13;
	--etg-title: #252525;
	--etg-text: #666666;
	--etg-font: 'Nunito', inherit;
}

.etg {
	--etg-gap: 16px;
	width: 100%;
}

/* Tabs */
.etg-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 32px;
	padding: 0;
}

.etg-tab {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	border: 2px solid #dfe6df;
	background: #fff;
	color: var(--etg-title);
	font-family: var(--etg-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.2px;
	padding: 12px 22px;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.etg-tab:hover {
	border-color: var(--etg-green);
	color: var(--etg-green);
}

.etg-tab[aria-selected="true"] {
	background: var(--etg-green);
	border-color: var(--etg-green);
	color: #fff;
	box-shadow: 0 6px 16px rgba(32, 158, 46, 0.25);
}

.etg-tab:focus-visible {
	outline: 3px solid var(--etg-deep);
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.etg-tabs {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin: 0 -4px 22px;
		padding: 4px 4px 8px;
		scroll-snap-type: x proximity;
	}
	.etg-tabs::-webkit-scrollbar {
		display: none;
	}
	.etg-tab {
		flex: 0 0 auto;
		font-size: 14px;
		padding: 11px 18px;
		scroll-snap-align: start;
	}
}

/* Grid */
.etg-grid {
	display: grid;
	grid-template-columns: repeat(var(--etg-cols, 4), minmax(0, 1fr));
	gap: var(--etg-gap);
}

@media (max-width: 980px) {
	.etg-grid {
		grid-template-columns: repeat(var(--etg-cols-t, 3), minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.etg {
		--etg-gap: 10px;
	}
	.etg-grid {
		grid-template-columns: repeat(var(--etg-cols-m, 2), minmax(0, 1fr));
	}
}

.etg-item {
	margin: 0 !important;
	padding: 0 !important;
	min-width: 0;
}

.etg-item.is-hidden {
	display: none;
}

.etg-item.is-in {
	animation: etg-in 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes etg-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.etg-link {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 8px;
	background: #eef2ee;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.etg-link .etg-img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.etg-link::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 61, 19, 0.6), rgba(15, 61, 19, 0) 60%);
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
}

.etg-zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 1;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	color: var(--etg-green);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.3s, transform 0.3s;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.etg-link:hover .etg-img,
.etg-link:focus-visible .etg-img {
	transform: scale(1.06);
}

.etg-link:hover::after,
.etg-link:focus-visible::after,
.etg-link:hover .etg-zoom,
.etg-link:focus-visible .etg-zoom {
	opacity: 1;
	transform: none;
}

.etg-link:focus-visible {
	outline: 3px solid var(--etg-deep);
	outline-offset: 2px;
}

.etg-caption {
	margin: 8px 0 0;
	padding: 0;
	font-family: var(--etg-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--etg-text);
	text-align: center;
}

/* Show more / empty */
.etg-more-wrap {
	text-align: center;
	margin-top: 30px;
}

.etg-more {
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	background: var(--etg-green);
	color: #fff;
	font-family: var(--etg-font);
	font-size: 15px;
	font-weight: 700;
	padding: 14px 30px;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.etg-more:hover {
	background: var(--etg-green-dark);
}

.etg-more[hidden],
.etg-empty[hidden] {
	display: none;
}

.etg-empty {
	text-align: center;
	color: var(--etg-text);
	padding: 30px 0;
}

/* Lightbox */
.etg-lb {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(8, 22, 10, 0.94);
	opacity: 0;
	transition: opacity 0.25s ease;
	-webkit-tap-highlight-color: transparent;
}

.etg-lb[hidden] {
	display: none;
}

.etg-lb.is-open {
	opacity: 1;
}

.etg-lb-figure {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 90vw;
}

.etg-lb-img {
	display: block;
	max-width: 90vw;
	max-height: 80vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	transition: opacity 0.2s ease, transform 0.25s ease;
	user-select: none;
}

.etg-lb.is-loading .etg-lb-img {
	opacity: 0.25;
	transform: scale(0.985);
}

.etg-lb-caption {
	margin: 14px 0 0;
	color: #fff;
	font-family: var(--etg-font);
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	line-height: 1.4;
}

.etg-lb-caption:empty {
	display: none;
}

.etg-lb-counter {
	position: absolute;
	top: 26px;
	left: 26px;
	color: rgba(255, 255, 255, 0.7);
	font-family: var(--etg-font);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.etg-lb-btn {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.2s;
}

.etg-lb-btn:hover {
	background: var(--etg-green);
}

.etg-lb-btn:focus-visible {
	outline: 3px solid #8fe39a;
	outline-offset: 2px;
}

.etg-lb-btn[hidden] {
	display: none;
}

.etg-lb-close {
	top: 16px;
	right: 16px;
}

.etg-lb-prev,
.etg-lb-next {
	top: 50%;
	transform: translateY(-50%);
}

.etg-lb-prev {
	left: 20px;
}

.etg-lb-next {
	right: 20px;
}

@media (max-width: 767px) {
	.etg-lb-img {
		max-width: 100vw;
		max-height: 72vh;
		border-radius: 0;
	}
	.etg-lb-figure {
		max-width: 100vw;
	}
	.etg-lb-caption {
		padding: 0 16px;
		font-size: 15px;
	}
	.etg-lb-prev,
	.etg-lb-next {
		top: auto;
		bottom: 20px;
		transform: none;
		width: 48px;
		height: 48px;
	}
	.etg-lb-prev {
		left: calc(50% - 60px);
	}
	.etg-lb-next {
		right: calc(50% - 60px);
	}
	.etg-lb-counter {
		top: 30px;
		left: 20px;
	}
}

html.etg-lb-lock,
html.etg-lb-lock body {
	overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
	.etg-item.is-in {
		animation: none;
	}
	.etg-link .etg-img,
	.etg-lb,
	.etg-lb-img {
		transition: none;
	}
}
