.home2-section--gallery {
	background:
		radial-gradient(ellipse at center top, rgba(255, 236, 200, 0.06), transparent 55%),
		#14110d !important;
	padding: clamp(3rem, 6vh, 4.5rem) 0 !important;
	justify-content: flex-start;
	align-items: stretch;
	overflow: hidden;
}

.home2-gallery__head {
	padding: 0 clamp(1.5rem, 5vw, 3rem);
	margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

/* --- Stage: the track + the side arrows --- */
.home2-gallery__stage {
	position: relative;
	width: 100%;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	min-height: 0;
}

.home2-gallery__track {
	display: flex;
	gap: clamp(0.75rem, 1.5vw, 1.25rem);
	padding: 1rem clamp(2.5rem, 8vw, 6rem);
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.home2-gallery__track::-webkit-scrollbar {
	display: none;
}

/* --- Tile --- */
.home2-gallery__tile {
	flex: 0 0 auto;
	width: clamp(240px, 24vw, 340px);
	height: clamp(340px, 56vh, 520px);
	position: relative;
	padding: 0;
	margin: 0;
	border: 0;
	background: #2a241d;
	border-radius: 2px;
	overflow: hidden;
	cursor: pointer;
	scroll-snap-align: center;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	transition: transform 0.6s cubic-bezier(.2,.8,.2,1), box-shadow 0.6s cubic-bezier(.2,.8,.2,1);
	color: #f2ede6;
	text-align: left;
	font-family: inherit;
}

.home2-gallery__tile:hover,
.home2-gallery__tile:focus-visible {
	transform: translateY(-6px);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
	outline: none;
}

.home2-gallery__tile:focus-visible::before {
	content: '';
	position: absolute;
	inset: 0;
	border: 2px solid rgba(255, 255, 255, 0.85);
	pointer-events: none;
	z-index: 3;
}

.home2-gallery__tile-image {
	display: block;
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 3s cubic-bezier(.2,.8,.2,1), filter 0.6s ease;
	will-change: transform;
	filter: saturate(0.95) contrast(1.02);
}

.home2-gallery__tile:hover .home2-gallery__tile-image {
	transform: scale(1.06);
	filter: saturate(1.05) contrast(1.05);
}

/* Hover caption: gradient overlay that slides up with artist + title */
.home2-gallery__tile-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	/* Generous bottom padding so descenders on the artist line never touch the edge. */
	padding: 3rem 1.25rem 1.5rem;
	background: linear-gradient(180deg, rgba(20, 17, 13, 0) 0%, rgba(20, 17, 13, 0.55) 45%, rgba(20, 17, 13, 0.94) 100%);
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	opacity: 1;
	transition: background 0.45s cubic-bezier(.2,.8,.2,1);
	pointer-events: none;
}

/* On hover the gradient deepens and the tile lifts — but the caption text
   stays fully on-card and readable at all times. */
.home2-gallery__tile:hover .home2-gallery__tile-caption,
.home2-gallery__tile:focus-visible .home2-gallery__tile-caption {
	background: linear-gradient(180deg, rgba(20, 17, 13, 0.1) 0%, rgba(20, 17, 13, 0.7) 45%, rgba(20, 17, 13, 0.98) 100%);
}

.home2-gallery__tile-title {
	font-family: 'DM Serif Display', Georgia, serif;
	font-style: italic;
	font-size: var(--wp--preset--font-size--prose);
	font-weight: 400;
	line-height: 1.2;
	color: #f8f3ea;
}

.home2-gallery__tile-artist {
	font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
	font-size: var(--wp--preset--font-size--cap);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #d9cfbf;
	margin-top: 0.35rem;
}

/* "+" icon in the top-right of each tile — mirrors the home2-card + icon. */
.home2-gallery__tile-plus {
	position: absolute;
	top: 0.875rem;
	right: 0.875rem;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	background: rgba(20, 17, 13, 0.55);
	color: #f2ede6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: background 0.2s ease, transform 0.3s cubic-bezier(.2,.8,.2,1);
	pointer-events: none;
}

.home2-gallery__tile:hover .home2-gallery__tile-plus {
	background: rgba(20, 17, 13, 0.78);
	transform: rotate(90deg) scale(1.05);
}

/* --- Arrows --- */
.home2-gallery__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(20, 17, 13, 0.6);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #f2ede6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	transition: background 0.2s ease, border-color 0.2s ease, opacity 0.3s ease;
	padding: 0;
}

.home2-gallery__arrow:hover,
.home2-gallery__arrow:focus-visible {
	background: rgba(20, 17, 13, 0.85);
	border-color: rgba(255, 255, 255, 0.7);
	outline: none;
}

.home2-gallery__arrow:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

.home2-gallery__arrow--prev { left: clamp(0.75rem, 2vw, 1.5rem); }
.home2-gallery__arrow--next { right: clamp(0.75rem, 2vw, 1.5rem); }

.home2-gallery__arrow[aria-disabled="true"] {
	opacity: 0.3;
	pointer-events: none;
}

/* --- Bottom hint: a thin gold-on-black label with flanking rules --- */
.home2-gallery__hint {
	margin: clamp(1rem, 2.5vh, 1.5rem) auto 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	color: #9c9688;
	font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.home2-gallery__hint-line {
	display: inline-block;
	width: clamp(40px, 8vw, 80px);
	height: 1px;
	background: rgba(201, 194, 182, 0.3);
}

/* ============================================================
   Filterable square grid (PR16 — replaces horizontal scroller)
   ============================================================ */

.home2-gallery__head--split {
	max-width: 1320px;
	margin: 0 auto clamp(2rem, 4vh, 3rem);
	padding: 0 clamp(1.5rem, 5vw, 3rem);
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem 2rem;
	border-bottom: 1px solid rgba(242, 237, 230, 0.18);
	padding-bottom: 1.25rem;
}

.home2-gallery__head-text {
	flex: 1 1 auto;
	min-width: 0;
}

.home2-gallery__eyebrow {
	margin: 0 0 0.5rem;
	color: #c9c2b6;
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	font-size: var(--wp--preset--font-size--cap);
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.home2-gallery__heading {
	margin: 0;
	color: #f2ede6;
	font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-weight: 400;
	font-size: clamp(2.25rem, 4vw, 3.5rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
	max-width: 14ch;
}

.home2-gallery__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	flex-shrink: 0;
}

.home2-gallery__chip {
	background: transparent;
	color: #c9c2b6;
	border: 1px solid rgba(242, 237, 230, 0.22);
	border-radius: 999px;
	padding: 0.45rem 0.95rem;
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	font-size: var(--wp--preset--font-size--cap);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.home2-gallery__chip:hover,
.home2-gallery__chip:focus-visible {
	color: #f2ede6;
	border-color: rgba(242, 237, 230, 0.45);
	outline: none;
}

.home2-gallery__chip.is-active {
	background: #f2ede6;
	color: #14110d;
	border-color: #f2ede6;
}

.home2-gallery__grid {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 clamp(1.5rem, 5vw, 3rem);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

@media (max-width: 800px) {
	.home2-gallery__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.home2-gallery__grid {
		grid-template-columns: 1fr;
	}
}

.home2-gallery__cell {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 2px;
	background: #2a2520;
	color: #fff;
	text-decoration: none;
	transition: transform 0.25s ease;
}

.home2-gallery__cell:focus-visible {
	outline: 2px solid #f2ede6;
	outline-offset: 2px;
}

.home2-gallery__cell-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 1.4s cubic-bezier(.2,.8,.2,1), opacity 0.25s ease;
}

.home2-gallery__cell:hover .home2-gallery__cell-img {
	transform: scale(1.04);
	opacity: 0.85;
}

.home2-gallery__cell-plus {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	border: 1px solid rgba(242, 237, 230, 0.35);
	background: rgba(20, 17, 13, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #f2ede6;
	transition: background-color 0.2s ease;
}

.home2-gallery__cell:hover .home2-gallery__cell-plus {
	background: rgba(242, 237, 230, 0.92);
	color: #14110d;
}

.home2-gallery__cell-label {
	position: absolute;
	left: 14px;
	right: 56px;
	bottom: 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.home2-gallery__cell:hover .home2-gallery__cell-label,
.home2-gallery__cell:focus-visible .home2-gallery__cell-label {
	opacity: 1;
}

.home2-gallery__cell-title {
	font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-size: var(--wp--preset--font-size--prose);
	line-height: 1.2;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.home2-gallery__cell-artist {
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(242, 237, 230, 0.85);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.home2-gallery__empty {
	text-align: center;
	padding: 4rem 1.5rem;
	color: #c9c2b6;
	font-style: italic;
	font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
}
