/**
 * Gallery page — hero matches about/blogs; mosaic reuses index.css category grid.
 */

.page-gallery main {
	min-height: 40vh;
}

.gallery-page-hero {
	padding: 72px 56px 40px;
	text-align: center;
}
.gallery-page-hero-label {
	font-family: var(--font-body);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 12px;
}
.gallery-page-hero-title {
	font-family: var(--font-heading);
	font-size: 44px;
	font-weight: 400;
	color: var(--text-main);
	margin: 0 0 10px;
}
.gallery-page-hero-sub {
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 400;
	font-style: italic;
	color: var(--text-muted);
	margin: 0 auto;
	max-width: 32rem;
	line-height: 1.45;
}
@media (max-width: 767px) {
	.gallery-page-hero {
		padding: 56px 20px 28px;
	}
	.gallery-page-hero-title {
		font-size: clamp(26px, 7vw, 44px);
	}
	.gallery-page-hero-sub {
		font-size: 16px;
	}
}

.gallery-page-section-title {
	padding-top: 0;
}

.gallery-page-section.index-special-categories {
	border-top: none;
}

.gallery-extra-section {
	background: var(--off-white, #fafaf8);
	border-top: 1px solid var(--border);
	padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 5vw, 4rem);
}
.gallery-extra-inner {
	max-width: none;
	margin: 0;
	padding: 0;
	width: 100%;
}
.gallery-extra-inner .gallery-page-section-title {
	padding: 0 clamp(1rem, 4vw, 2rem) clamp(1.25rem, 3vw, 2rem);
	text-align: center;
}
.gallery-extra-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 0;
	width: 100%;
}
.gallery-extra-cell {
	grid-column: span 3;
	position: relative;
	display: block;
	min-width: 0;
	aspect-ratio: 1;
	overflow: hidden;
	background: #1a1a1a;
	text-decoration: none;
	color: inherit;
	outline: none;
}
.gallery-extra-cell:focus-visible {
	box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--black);
	z-index: 1;
}
.gallery-extra-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.45s ease;
}
.gallery-extra-cell:hover .gallery-extra-img,
.gallery-extra-cell:focus-visible .gallery-extra-img {
	transform: scale(1.05);
}
@media (max-width: 767px) {
	.gallery-extra-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.gallery-extra-cell {
		grid-column: span 1;
	}
}
