/* Gallery: filter tabs + masonry. Lightbox is core (theme.json). */
.gallery-filter { justify-content: center; gap: .7rem !important; margin-bottom: var(--wp--preset--spacing--40) !important; }

.gallery-set { transition: opacity .5s ease; }
.gallery-set.is-hidden { display: none; }
.gallery-set.is-entering { animation: set-in .6s var(--ease-out); }
@keyframes set-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.gallery-set__label {
	font-family: var(--wp--preset--font-family--display);
	letter-spacing: .3em;
	text-transform: uppercase;
	font-size: .8rem;
	color: var(--copper);
	text-align: center;
}

/* Masonry via columns, beats core's cropped grid */
.gallery-set .wp-block-gallery.has-nested-images {
	display: block !important;
	columns: 3 280px;
	column-gap: 1.1rem;
}
.gallery-set .wp-block-gallery.has-nested-images figure.wp-block-image {
	width: 100% !important;
	margin: 0 0 1.1rem !important;
	break-inside: avoid;
	display: block;
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	border: 2px solid rgba(171, 112, 53, .75);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
	transition: border-color .5s ease, box-shadow .5s ease, transform .5s var(--ease-out);
}
.gallery-set .wp-block-gallery.has-nested-images figure.wp-block-image img {
	height: auto !important;
	width: 100%;
	object-fit: contain !important;
	transition: transform 1.2s var(--ease-out), filter .6s ease;
	filter: saturate(.95);
}
.gallery-set .wp-block-gallery figure.wp-block-image:hover {
	border-color: var(--gold);
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, .7), 0 0 26px color-mix(in srgb, var(--aura) 40%, transparent);
}
.gallery-set .wp-block-gallery figure.wp-block-image:hover img { transform: scale(1.04); filter: saturate(1.1); }

/* Lightbox overlay: dark, framed */
.wp-lightbox-overlay .scrim { background-color: rgba(8, 4, 6, .94) !important; }
.wp-lightbox-overlay .wp-block-image img { border: 2px solid var(--copper); border-radius: 6px; }
.wp-lightbox-overlay .close-button { color: var(--gold) !important; }
