/**
 * Project Gallery Template Styles — Willus Infrastructure
 * Scoped to .willus-project-gallery
 */

.willus-project-gallery {
	background-color: var(--willus-surface);
	color: var(--willus-ink);
	overflow-x: hidden;
}

/* ==========================================================================
   1. Hero Header Section
   ========================================================================== */
.wg-hero {
	background: radial-gradient(circle at 80% 20%, rgb(var(--willus-secondary-rgb) / 0.08) 0%, transparent 50%),
	            linear-gradient(135deg, var(--willus-primary) 0%, var(--willus-primary) 100%);
	color: #ffffff;
	padding: clamp(3.5rem, 6vw, 5.5rem) 0 3.5rem;
	position: relative;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wg-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
	                  linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 40px 40px;
	pointer-events: none;
}

.wg-hero-content {
	max-width: 840px;
	margin: 0 auto 3rem;
	text-align: center;
	position: relative;
	z-index: 1;
}

.wh-eyebrow.wg-hero-eyebrow {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--willus-accent, var(--willus-secondary));
	margin-bottom: 1rem;
	padding: 0.35rem 1.1rem;
	background: rgb(var(--willus-secondary-rgb) / 0.12);
	border: 1px solid rgb(var(--willus-secondary-rgb) / 0.32);
	border-radius: 999px;
}

.wg-hero-title {
	font-family: var(--willus-font, 'Barlow', sans-serif);
	font-size: clamp(2.25rem, 4.5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.15;
	color: #ffffff;
	margin: 0 0 1.25rem;
	letter-spacing: -0.02em;
}

.wg-hero-desc {
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.82);
	margin: 0 auto;
	max-width: 720px;
}

/* Stats Matrix */
.wg-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
	position: relative;
	z-index: 1;
}

.wg-stat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	padding: 1.5rem 1.25rem;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.wg-stat-card:hover {
	transform: translateY(-4px);
	background: rgba(255, 255, 255, 0.08);
	border-color: rgb(var(--willus-secondary-rgb) / 0.45);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.wg-stat-val {
	font-family: var(--willus-font, 'Barlow', sans-serif);
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--willus-accent, var(--willus-secondary));
	margin-bottom: 0.35rem;
}

.wg-stat-lbl {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.78);
}

/* ==========================================================================
   2. Filter Navigation Bar
   ========================================================================== */
.wg-filter-section {
	background: #ffffff;
	border-bottom: 1px solid var(--willus-border);
	padding: 1.25rem 0;
	position: relative;
	z-index: 20;
	box-shadow: 0 4px 16px rgb(var(--willus-primary-rgb) / 0.04);
}

.wg-filter-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	flex-wrap: wrap;
}

.wg-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--willus-font, 'Barlow', sans-serif);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--willus-muted);
	background: var(--willus-surface);
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 0.55rem 1.15rem;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	user-select: none;
}

.wg-filter-btn:hover {
	color: var(--willus-navy, var(--willus-primary));
	background: var(--willus-border);
}

.wg-filter-btn.active {
	background: var(--willus-navy, var(--willus-primary));
	color: #ffffff;
	border-color: var(--willus-navy, var(--willus-primary));
	box-shadow: 0 4px 14px rgb(var(--willus-primary-rgb) / 0.22);
}

.wg-filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	font-size: 0.75rem;
	font-weight: 700;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.08);
	color: inherit;
	transition: background-color 0.25s ease;
}

.wg-filter-btn.active .wg-filter-count {
	background: var(--willus-accent, var(--willus-secondary));
	color: var(--willus-navy, var(--willus-primary));
}

/* ==========================================================================
   3. Projects Gallery Grid
   ========================================================================== */
.wg-grid-section {
	padding: clamp(3rem, 5vw, 5rem) 0 clamp(4rem, 6vw, 6rem);
}

.wg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
	gap: 2rem;
}

.wg-card {
	background: #ffffff;
	border: 1px solid var(--willus-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgb(var(--willus-primary-rgb) / 0.05);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
	            box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
	            border-color 0.3s ease,
	            opacity 0.3s ease;
	outline: none;
}

.wg-card:focus-visible {
	border-color: var(--willus-accent, var(--willus-secondary));
	box-shadow: 0 0 0 3px rgb(var(--willus-secondary-rgb) / 0.35);
}

.wg-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 36px rgb(var(--willus-primary-rgb) / 0.12);
	border-color: rgb(var(--willus-secondary-rgb) / 0.5);
}

/* Card Media */
.wg-card-media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--willus-primary);
}

.wg-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.wg-card:hover .wg-card-img {
	transform: scale(1.06);
}

.wg-card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--willus-primary), var(--willus-primary));
	color: rgba(255, 255, 255, 0.4);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.wg-card-cat-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: rgba(11, 21, 40, 0.78);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Card Info */
.wg-card-info {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.wg-card-meta {
	margin-bottom: 0.5rem;
}

.wg-card-loc {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--willus-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.wg-icon-pin {
	width: 14px;
	height: 14px;
	color: var(--willus-accent, var(--willus-secondary));
	flex-shrink: 0;
}

.wg-card-title {
	font-family: var(--willus-font, 'Barlow', sans-serif);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--willus-navy, var(--willus-primary));
	margin: 0 0 0.6rem;
	letter-spacing: -0.01em;
}

.wg-card-specs {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--willus-muted);
	margin: 0 0 1.25rem;
	flex-grow: 1;
}

.wg-card-action {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid var(--willus-surface);
}

.wg-view-btn {
	display: inline-flex;
	align-items: center;
	font-family: var(--willus-font, 'Barlow', sans-serif);
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--willus-navy, var(--willus-primary));
	padding: 0.4rem 0.9rem;
	background: var(--willus-surface);
	border: 1px solid var(--willus-border);
	border-radius: 6px;
	transition: all 0.25s ease;
}

.wg-card:hover .wg-view-btn {
	background: var(--willus-navy, var(--willus-primary));
	color: #ffffff;
	border-color: var(--willus-navy, var(--willus-primary));
}

/* Empty State */
.wg-empty-state {
	text-align: center;
	padding: 5rem 1.5rem;
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid var(--willus-border);
	max-width: 520px;
	margin: 2rem auto;
}

.wg-empty-state h3 {
	font-family: var(--willus-font, 'Barlow', sans-serif);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--willus-navy, var(--willus-primary));
	margin: 0 0 0.5rem;
}

.wg-empty-state p {
	font-size: 0.95rem;
	color: var(--willus-muted);
	margin: 0;
}

/* ==========================================================================
   4. Interactive Lightbox Modal (Strictly Zero Arrows)
   ========================================================================== */
.wg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wg-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.wg-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(9, 17, 34, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.wg-lightbox-dialog {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1040px;
	max-height: 94vh;
	display: flex;
	flex-direction: column;
	background: var(--willus-primary);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
	animation: wgModalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wgModalScale {
	from {
		transform: scale(0.95);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

/* Lightbox Header */
.wg-lightbox-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
}

.wg-lightbox-tags {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.wg-lightbox-cat-badge {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--willus-accent, var(--willus-secondary));
	background: rgb(var(--willus-secondary-rgb) / 0.12);
	border: 1px solid rgb(var(--willus-secondary-rgb) / 0.28);
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
}

.wg-lightbox-counter {
	font-size: 0.8125rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.6);
	font-variant-numeric: tabular-nums;
}

.wg-lightbox-close {
	font-family: var(--willus-font, 'Barlow', sans-serif);
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 6px;
	padding: 0.4rem 0.95rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.wg-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.35);
}

/* Lightbox Stage */
.wg-lightbox-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem 1.5rem;
	min-height: 380px;
	max-height: 64vh;
	background: var(--willus-primary);
	overflow: hidden;
}

.wg-lightbox-frame {
	position: relative;
	width: 100%;
	height: 100%;
	max-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wg-lightbox-img {
	max-width: 100%;
	max-height: 58vh;
	object-fit: contain;
	display: block;
	border-radius: 8px;
	transition: opacity 0.25s ease;
}

.wg-lightbox-spinner {
	position: absolute;
	width: 38px;
	height: 38px;
	border: 3px solid rgba(255, 255, 255, 0.15);
	border-top-color: var(--willus-accent, var(--willus-secondary));
	border-radius: 50%;
	animation: wgSpin 0.8s linear infinite;
	display: none;
}

@keyframes wgSpin {
	to { transform: rotate(360deg); }
}

/* Prev / Next Nav Buttons — ZERO ARROWS */
.wg-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	font-family: var(--willus-font, 'Barlow', sans-serif);
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #ffffff;
	background: rgba(15, 28, 51, 0.75);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding: 0.75rem 1.15rem;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	user-select: none;
}

.wg-lightbox-prev {
	left: 1.25rem;
}

.wg-lightbox-next {
	right: 1.25rem;
}

.wg-lightbox-nav:hover {
	background: var(--willus-accent, var(--willus-secondary));
	color: var(--willus-navy, var(--willus-primary));
	border-color: var(--willus-accent, var(--willus-secondary));
	transform: translateY(-50%) scale(1.04);
}

/* Lightbox Footer Details */
.wg-lightbox-footer {
	padding: 1.25rem 1.5rem;
	background: rgba(255, 255, 255, 0.03);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wg-lightbox-details {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.wg-lightbox-title {
	font-family: var(--willus-font, 'Barlow', sans-serif);
	font-size: 1.25rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
	letter-spacing: -0.01em;
}

.wg-lightbox-meta {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.7);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.wg-lightbox-loc {
	font-weight: 600;
	color: var(--willus-accent, var(--willus-secondary));
}

.wg-lightbox-sep {
	opacity: 0.4;
}

.wg-lightbox-specs {
	color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================================
   5. Consultation & Feasibility CTA Section (Strictly Zero Arrows)
   ========================================================================== */
.wg-cta-section {
	padding: 0 0 clamp(4rem, 7vw, 6.5rem);
	background: var(--willus-surface);
}

.wg-cta-box {
	background: radial-gradient(circle at 90% 10%, rgb(var(--willus-secondary-rgb) / 0.12) 0%, transparent 60%),
	            linear-gradient(135deg, var(--willus-primary) 0%, var(--willus-primary) 100%);
	border-radius: 24px;
	padding: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 4rem);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2.5rem;
	box-shadow: 0 20px 50px rgb(var(--willus-primary-rgb) / 0.18);
	border: 1px solid rgba(255, 255, 255, 0.08);
	position: relative;
	overflow: hidden;
}

.wg-cta-box::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
	                  linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
	background-size: 32px 32px;
	pointer-events: none;
}

.wg-cta-content {
	max-width: 620px;
	position: relative;
	z-index: 1;
}

.wh-eyebrow.wg-cta-eyebrow {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--willus-accent, var(--willus-secondary));
	margin-bottom: 0.85rem;
	padding: 0.3rem 0.95rem;
	background: rgb(var(--willus-secondary-rgb) / 0.12);
	border: 1px solid rgb(var(--willus-secondary-rgb) / 0.3);
	border-radius: 999px;
}

.wg-cta-title {
	font-family: var(--willus-font, 'Barlow', sans-serif);
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	font-weight: 800;
	line-height: 1.2;
	color: #ffffff;
	margin: 0 0 1rem;
	letter-spacing: -0.01em;
}

.wg-cta-desc {
	font-size: 1rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
}

.wg-cta-actions {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
	min-width: 260px;
}

/* Primary CTA Button */
.wg-cta-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--willus-font, 'Barlow', sans-serif);
	font-size: 1rem;
	font-weight: 700;
	color: var(--willus-navy, var(--willus-primary));
	background: var(--willus-accent, var(--willus-secondary));
	border: 1px solid var(--willus-accent, var(--willus-secondary));
	border-radius: 8px;
	padding: 0.9rem 1.75rem;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px 14px rgb(var(--willus-secondary-rgb) / 0.28);
	text-align: center;
}

.wg-cta-btn-primary:hover {
	background: var(--willus-secondary);
	border-color: var(--willus-secondary);
	box-shadow: 0 8px 22px rgb(var(--willus-secondary-rgb) / 0.38);
	color: var(--willus-navy, var(--willus-primary));
}

/* Secondary CTA Button */
.wg-cta-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--willus-font, 'Barlow', sans-serif);
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding: 0.9rem 1.75rem;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	text-align: center;
}

.wg-cta-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.4);
	color: #ffffff;
}

/* ==========================================================================
   6. Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
	.wg-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.wg-grid {
		grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
		gap: 1.5rem;
	}

	.wg-cta-box {
		flex-direction: column;
		text-align: center;
		align-items: center;
	}

	.wg-cta-content {
		max-width: 100%;
	}

	.wg-cta-actions {
		width: 100%;
		max-width: 360px;
	}
}

@media (max-width: 768px) {
	.wg-stats-grid {
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem;
	}

	.wg-stat-card {
		padding: 1.1rem 0.85rem;
	}

	.wg-filter-nav {
		justify-content: flex-start;
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 0.5rem;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.wg-filter-nav::-webkit-scrollbar {
		display: none;
	}

	.wg-filter-btn {
		white-space: nowrap;
		flex-shrink: 0;
	}

	.wg-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.wg-lightbox {
		padding: 0.75rem;
	}

	.wg-lightbox-dialog {
		max-height: 98vh;
	}

	.wg-lightbox-stage {
		min-height: 280px;
		padding: 0.75rem;
	}

	.wg-lightbox-nav {
		padding: 0.55rem 0.85rem;
		font-size: 0.75rem;
	}

	.wg-lightbox-prev {
		left: 0.75rem;
	}

	.wg-lightbox-next {
		right: 0.75rem;
	}

	.wg-lightbox-header,
	.wg-lightbox-footer {
		padding: 0.85rem 1rem;
	}
}

/* Architectural refinement: shared editorial foundation, template-specific composition. */

.willus-premium.willus-project-gallery { background:#fff; }
.willus-premium.willus-project-gallery .wg-filter-section { background:var(--willus-paper); border-bottom:1px solid var(--willus-line); }
.willus-premium.willus-project-gallery .wg-filter-nav { justify-content:start; gap:10px; }
.willus-premium.willus-project-gallery .wg-filter-btn { border-radius:2px; border:1px solid var(--willus-line); font-size:12px; padding:12px 16px; box-shadow:none; }
.willus-premium.willus-project-gallery .wg-filter-btn.active { background:var(--willus-dark); border-color:var(--willus-dark); color:#fff; }
.willus-premium.willus-project-gallery .wg-filter-count { border-radius:2px; }
.willus-premium.willus-project-gallery .wg-grid { gap:24px; }
.willus-premium.willus-project-gallery .wg-card { border:0; border-bottom:1px solid var(--willus-line); }
.willus-premium.willus-project-gallery .wg-card-media { aspect-ratio:4/3; }
.willus-premium.willus-project-gallery .wg-card-info { padding:24px 0; }
.willus-premium.willus-project-gallery .wg-card-title { font-size:24px; }
.willus-premium.willus-project-gallery .wg-card-cat-badge { border-radius:2px; background:var(--willus-dark); color:#fff; font-size:10px; }
.willus-premium.willus-project-gallery .wg-card-action { border-radius:50%; }
.willus-premium.willus-project-gallery .wg-lightbox-dialog { border-radius:3px; }
.willus-premium.willus-project-gallery .wg-cta-section { background:var(--willus-paper); }
.willus-premium.willus-project-gallery .wg-card[hidden] { display:none; }
.willus-premium.willus-project-gallery .wg-filter-status { margin:20px 0 0; color:var(--willus-muted); font-size:12px; letter-spacing:.04em; }

/* Gallery hero illustration: a moving editorial frame with a project-viewfinder motif. */
.willus-premium.willus-project-gallery .wg-hero { min-height:440px; display:flex; align-items:center; overflow:hidden; }
.willus-premium.willus-project-gallery .wg-hero > .willus-container { position:relative; }
.willus-premium.willus-project-gallery .wg-hero-content { max-width:56%; margin:0; text-align:left; }
.willus-premium.willus-project-gallery .wg-hero-title { max-width:780px; }
.willus-premium.willus-project-gallery .wg-hero-desc { margin:0; max-width:610px; }
.willus-premium.willus-project-gallery .wg-gallery-art { position:absolute; z-index:1; top:50%; right:max(var(--willus-gutter),calc((100vw - var(--willus-container))/2)); width:min(36vw,490px); height:360px; color:var(--willus-secondary); pointer-events:none; transform:translateY(-50%); }
.willus-premium.willus-project-gallery .wg-gallery-art svg { display:block; width:100%; height:100%; overflow:visible; }
.willus-premium.willus-project-gallery .wg-art-orbit { stroke:rgb(var(--willus-secondary-rgb) / .24); stroke-width:1; stroke-dasharray:2 8; transform-box:fill-box; transform-origin:center; animation:wg-art-orbit 34s linear infinite; }
.willus-premium.willus-project-gallery .wg-art-orbit--inner { stroke:rgb(var(--willus-secondary-rgb) / .12); stroke-dasharray:1 7; animation-direction:reverse; animation-duration:25s; }
.willus-premium.willus-project-gallery .wg-art-route { stroke:rgb(var(--willus-secondary-rgb) / .48); stroke-width:1.1; stroke-dasharray:3 8; stroke-linecap:round; }
.willus-premium.willus-project-gallery .wg-art-frame { stroke:rgb(var(--willus-secondary-rgb) / .58); stroke-width:1.3; stroke-linejoin:round; }
.willus-premium.willus-project-gallery .wg-art-frame--back { opacity:.45; transform-box:fill-box; transform-origin:center; animation:wg-art-back-float 8s ease-in-out infinite; }
.willus-premium.willus-project-gallery .wg-art-card { fill:rgb(var(--willus-primary-rgb) / .58); }
.willus-premium.willus-project-gallery .wg-art-image { fill:rgb(var(--willus-secondary-rgb) / .08); stroke:rgb(var(--willus-secondary-rgb) / .4); }
.willus-premium.willus-project-gallery .wg-art-landscape { stroke:rgb(var(--willus-secondary-rgb) / .72); stroke-width:1.3; stroke-linecap:round; stroke-linejoin:round; }
.willus-premium.willus-project-gallery .wg-art-sun { fill:rgb(var(--willus-secondary-rgb) / .58); stroke:none; }
.willus-premium.willus-project-gallery .wg-art-caption { stroke:rgb(var(--willus-secondary-rgb) / .5); stroke-width:1.2; stroke-linecap:round; }
.willus-premium.willus-project-gallery .wg-art-frame--front { animation:wg-art-frame-float 7s ease-in-out infinite; }
.willus-premium.willus-project-gallery .wg-art-viewfinder { stroke:rgb(var(--willus-secondary-rgb) / .8); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; animation:wg-art-viewfinder-float 6s ease-in-out infinite; }
.willus-premium.willus-project-gallery .wg-art-focus { stroke:rgb(var(--willus-secondary-rgb) / .9); stroke-width:1.3; }
.willus-premium.willus-project-gallery .wg-art-point { fill:var(--willus-secondary); animation:wg-art-point-pulse 3s ease-in-out infinite; }
.willus-premium.willus-project-gallery .wg-art-point--two { animation-delay:.7s; }
.willus-premium.willus-project-gallery .wg-art-point--three { animation-delay:1.4s; }
@keyframes wg-art-orbit { to { rotate:360deg; } }
@keyframes wg-art-frame-float { 0%,100% { translate:0 0; rotate:0deg; } 50% { translate:0 -5px; rotate:-.7deg; } }
@keyframes wg-art-back-float { 0%,100% { translate:0 0; } 50% { translate:0 6px; } }
@keyframes wg-art-viewfinder-float { 0%,100% { translate:0 0; rotate:0deg; } 50% { translate:4px -5px; rotate:2deg; } }
@keyframes wg-art-point-pulse { 0%,100% { scale:.75; opacity:.55; } 50% { scale:1.3; opacity:1; } }
@media(max-width:1050px) {
	.willus-premium.willus-project-gallery .wg-gallery-art { width:min(38vw,420px); height:320px; }
}
@media(max-width:800px) {
	.willus-premium.willus-project-gallery .wg-hero { min-height:0; display:flex; flex-direction:column; align-items:stretch; padding-block:48px 36px; }
	.willus-premium.willus-project-gallery .wg-hero-content { max-width:100%; padding-bottom:0; }
	.willus-premium.willus-project-gallery .wg-gallery-art { position:relative; top:auto; right:auto; width:min(100%,460px); height:245px; margin:18px auto 0; transform:none; opacity:.88; }
}
@media(prefers-reduced-motion:reduce) {
	.willus-premium.willus-project-gallery .wg-gallery-art * { animation:none!important; }
}

/* Keep both hero columns inside the same centered site container. */
.willus-premium.willus-project-gallery .wg-hero { display:block; min-height:0; padding-block:48px; }
.willus-premium.willus-project-gallery .wg-hero > .willus-container { position:relative; display:flex; align-items:center; min-height:350px; }
.willus-premium.willus-project-gallery .wg-hero-content { width:56%; max-width:640px; margin:0; text-align:left; }
.willus-premium.willus-project-gallery .wg-hero-desc { margin:0; }
.willus-premium.willus-project-gallery .wg-gallery-art { top:50%; right:0; width:min(42%,490px); height:340px; }

/* Sharper editorial project cards. */
.willus-premium.willus-project-gallery .wg-card,
.willus-premium.willus-project-gallery .wg-card-media,
.willus-premium.willus-project-gallery .wg-card-cat-badge,
.willus-premium.willus-project-gallery .wg-view-btn,
.willus-premium.willus-project-gallery .wg-empty-state { border-radius:0; }
.willus-premium.willus-project-gallery .wg-card { background:transparent; border:0; border-bottom:1px solid var(--willus-line); box-shadow:none; }
.willus-premium.willus-project-gallery .wg-card:hover { transform:translateY(-3px); box-shadow:none; border-color:var(--willus-secondary); }
.willus-premium.willus-project-gallery .wg-card-media { aspect-ratio:1.48; background:var(--willus-paper); }
.willus-premium.willus-project-gallery .wg-card-img { transition:transform .7s cubic-bezier(.16,1,.3,1),filter .4s ease; }
.willus-premium.willus-project-gallery .wg-card:hover .wg-card-img { transform:scale(1.035); filter:saturate(.9); }
.willus-premium.willus-project-gallery .wg-card-cat-badge { top:12px; left:12px; padding:7px 9px; background:var(--willus-dark); border:0; font-size:9px; letter-spacing:.1em; }
.willus-premium.willus-project-gallery .wg-card-info { padding:18px 0 20px; }
.willus-premium.willus-project-gallery .wg-card-meta { margin-bottom:9px; }
.willus-premium.willus-project-gallery .wg-card-loc { font-size:10px; letter-spacing:.11em; }
.willus-premium.willus-project-gallery .wg-icon-pin { width:13px; height:13px; }
.willus-premium.willus-project-gallery .wg-card-title { margin-bottom:7px; font-size:22px; line-height:1.25; letter-spacing:-.035em; }
.willus-premium.willus-project-gallery .wg-card-specs { margin-bottom:10px; font-size:13px; line-height:1.65; }
.willus-premium.willus-project-gallery .wg-card-action { padding-top:8px; border-top:0; }
.willus-premium.willus-project-gallery .wg-view-btn { gap:14px; padding:0; background:none; border:0; color:var(--willus-primary); font-size:10px; letter-spacing:.12em; }
.willus-premium.willus-project-gallery .wg-view-btn::after { content:'↗'; color:var(--willus-secondary); font-size:16px; transition:transform .2s ease; }
.willus-premium.willus-project-gallery .wg-card:hover .wg-view-btn { background:none; color:var(--willus-primary); border:0; }
.willus-premium.willus-project-gallery .wg-card:hover .wg-view-btn::after { transform:translate(2px,-2px); }

/* A tighter viewer frame leaves the image most of the available viewport. */
.willus-premium.willus-project-gallery .wg-lightbox { padding:12px; }
.willus-premium.willus-project-gallery .wg-lightbox-dialog { width:min(1280px,100%); max-height:calc(100dvh - 24px); border-radius:0; }
.willus-premium.willus-project-gallery .wg-lightbox-header { min-height:48px; padding:6px 14px; }
.willus-premium.willus-project-gallery .wg-lightbox-cat-badge { border-radius:0; padding:4px 7px; font-size:9px; }
.willus-premium.willus-project-gallery .wg-lightbox-counter { font-size:11px; }
.willus-premium.willus-project-gallery .wg-lightbox-close,
.willus-premium.willus-project-gallery .wg-lightbox-nav { display:grid; place-items:center; width:40px; height:40px; padding:0; border-radius:0; }
.willus-premium.willus-project-gallery .wg-lightbox-close { background:transparent; }
.willus-premium.willus-project-gallery .wg-control-icon { width:20px; height:20px; display:block; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.willus-premium.willus-project-gallery .wg-lightbox-stage { flex:1 1 auto; min-height:0; max-height:calc(100dvh - 145px); padding:8px 56px; }
.willus-premium.willus-project-gallery .wg-lightbox-frame { min-height:0; max-height:calc(100dvh - 160px); }
.willus-premium.willus-project-gallery .wg-lightbox-img { max-height:calc(100dvh - 166px); border-radius:0; }
.willus-premium.willus-project-gallery .wg-lightbox-nav { top:50%; width:42px; height:42px; background:rgb(var(--willus-primary-rgb) / .76); border-color:#ffffff35; }
.willus-premium.willus-project-gallery .wg-lightbox-prev { left:8px; }
.willus-premium.willus-project-gallery .wg-lightbox-next { right:8px; }
.willus-premium.willus-project-gallery .wg-lightbox-footer { padding:9px 14px 10px; }
.willus-premium.willus-project-gallery .wg-lightbox-details { gap:2px; }
.willus-premium.willus-project-gallery .wg-lightbox-title { font-size:16px; }
.willus-premium.willus-project-gallery .wg-lightbox-meta { font-size:11px; }

@media(max-width:800px) {
	.willus-premium.willus-project-gallery .wg-hero { padding-block:40px 30px; }
	.willus-premium.willus-project-gallery .wg-hero > .willus-container { display:block; min-height:0; }
	.willus-premium.willus-project-gallery .wg-hero-content { width:100%; max-width:none; }
	.willus-premium.willus-project-gallery .wg-gallery-art { top:auto; right:auto; width:min(100%,440px); height:230px; margin:10px auto 0; }
	.willus-premium.willus-project-gallery .wg-lightbox { padding:6px; }
	.willus-premium.willus-project-gallery .wg-lightbox-dialog { max-height:calc(100dvh - 12px); }
	.willus-premium.willus-project-gallery .wg-lightbox-stage { max-height:calc(100dvh - 118px); padding:6px 42px; }
	.willus-premium.willus-project-gallery .wg-lightbox-frame { max-height:calc(100dvh - 130px); }
	.willus-premium.willus-project-gallery .wg-lightbox-img { max-height:calc(100dvh - 138px); }
	.willus-premium.willus-project-gallery .wg-lightbox-close,
	.willus-premium.willus-project-gallery .wg-lightbox-nav { width:36px; height:36px; }
	.willus-premium.willus-project-gallery .wg-lightbox-prev { left:3px; }
	.willus-premium.willus-project-gallery .wg-lightbox-next { right:3px; }
	.willus-premium.willus-project-gallery .wg-lightbox-footer { padding:8px 10px; }
}

/* Each card opens one independent, editor-managed gallery. */
.willus-project-gallery .wg-gallery-photo-count { position:absolute; bottom:12px; right:12px; padding:5px 9px; background:var(--willus-primary); color:#fff; font-size:11px; letter-spacing:.04em; }
.willus-project-gallery .wg-card-loc > svg { width:14px; height:14px; flex-shrink:0; }
.willus-premium.willus-project-gallery .wg-lightbox-nav[hidden] { display:none; }
.willus-project-gallery .wg-lightbox-sep { display:none; }

.willus-project-gallery .wg-lightbox-footer[hidden],
.willus-project-gallery .wg-lightbox-meta[hidden],
.willus-project-gallery .wg-lightbox-title[hidden],
.willus-project-gallery .wg-lightbox-loc[hidden],
.willus-project-gallery .wg-lightbox-specs[hidden] { display:none; }
