/* Inspiration Gallery ------------------------------------------------------- */
.inspiration-gallery {
	padding: 64px 0;
	/* Paging scrolls the section back into view — clear the fixed header. */
	scroll-margin-top: var(--headerHeight, 0);
}
@media (min-width: 768px) {
	.inspiration-gallery {
		padding: 96px 0;
	}
}

.inspiration-gallery-content {
	max-width: 820px;
	margin: 0 auto 40px;
	text-align: center;
}
.inspiration-gallery-content h1,
.inspiration-gallery-content h2 {
	font-family: var(--font-serif);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 300;
	margin: 0 0 1rem;
}
.inspiration-gallery-content p {
	font-size: 1.05rem;
	font-weight: 300;
	color: var(--color-muted);
}
.inspiration-gallery-content p:last-child {
	margin-bottom: 0;
}

/* Filter bar */
.gallery-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: center;
	gap: 16px;
	margin: 0 0 40px;
}
.gallery-filter {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 260px;
}
.gallery-filter-label {
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-muted);
	text-align: center;
}
.gallery-filter-select {
	text-align: center;
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	padding: 12px 40px 12px 16px;
	font-family: var(--font-sans);
	font-size: 0.95rem;
	color: var(--color-text);
	background-color: #fff;
	/* Chevron, inlined so the section needs no image asset. */
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23111' stroke-width='1.5' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 999px;
	cursor: pointer;
	transition: border-color 0.3s ease;
}
.gallery-filter-select:hover,
.gallery-filter-select:focus {
	border-color: var(--color-text);
	outline: 0;
}

/* Result count — for screen readers only; the grid itself is the visual answer. */
.gallery-status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Grid */
.inspiration-gallery-results {
	transition: opacity 0.3s ease;
}
.inspiration-gallery-results.loading {
	opacity: 0.4;
	pointer-events: none;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
@media (max-width: 991px) {
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 575px) {
	.gallery-grid {
		grid-template-columns: 1fr;
	}
}

.gallery-item {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.05);
	cursor: pointer;
}
.gallery-item-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s ease;
}
.gallery-item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.15);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-item-img,
.gallery-item:focus .gallery-item-img {
	transform: scale(1.05);
}
.gallery-item:hover::after,
.gallery-item:focus::after {
	opacity: 1;
}

.gallery-empty {
	text-align: center;
	color: var(--color-muted);
	margin: 0;
}

/* Pagination */
.gallery-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 48px 0 0;
}
.gallery-pagination .page-numbers {
	font-family: var(--font-sans);
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--color-muted);
	min-width: 40px;
	padding: 10px 12px;
	text-align: center;
	border-radius: 999px;
	transition: all 0.3s ease;
}
.gallery-pagination a.page-numbers:hover,
.gallery-pagination a.page-numbers:focus {
	color: var(--color-text);
	background: rgba(0, 0, 0, 0.05);
}
.gallery-pagination .page-numbers.current {
	color: #fff;
	background: var(--color-text);
}
.gallery-pagination .page-numbers.dots {
	min-width: 0;
	padding: 10px 4px;
}
.gallery-pagination .prev,
.gallery-pagination .next {
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 11px;
}