.catalogue-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 1rem;
	margin: 2rem 0 1rem;
	padding: 1.2rem;
}
.catalogue-tools label {
	flex: 1 1 14rem;
	display: grid;
	gap: 0.45rem;
	font-size: 0.95rem;
	color: var(--site-muted);
}
.catalogue-tools input,
.catalogue-tools select {
	width: 100%;
	min-height: 46px;
	padding: 0.65rem 0.8rem;
	background: rgba(9, 7, 11, 0.85);
	border: 0;
	box-shadow: inset 0 0 0 1px rgba(196, 163, 90, 0.28), inset 0 -2px 0 rgba(201, 155, 71, 0.6);
	color: var(--lot-cream);
	font: inherit;
	transition: box-shadow 0.2s ease;
}
.catalogue-tools input:focus,
.catalogue-tools select:focus {
	box-shadow: inset 0 0 0 1px rgba(236, 208, 138, 0.6), inset 0 -2px 0 var(--lot-gold-light);
}
.catalogue-tools input::placeholder {
	color: #8d8576;
}
.catalogue-tools > button {
	--cut: 8px;
	min-height: 46px;
	padding: 0.6rem 1.3rem;
	font-family: var(--lot-font-ui);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
}
.artwork-item[hidden],
.artwork-list-item[hidden],
.catalogue-tools[hidden] {
	display: none;
}
@media (prefers-reduced-motion: reduce) {
	.artwork-item {
		animation: none !important;
		transition: none !important;
	}
}

/* Keep portrait titles and complete compositions visible in the artwork grid. */
.artwork-img-wrap img {
	object-fit: contain;
}

.artwork-list-item img {
	object-fit: contain;
}
.artwork-item:hover img {
	transform: none;
}
.artwork-item .artwork-img-wrap::after,
.artwork-item:hover .artwork-img-wrap::after {
	box-shadow: none;
}

/* Related characters run together under a set heading that spans the grid. */
.artwork-set {
	flex: 0 0 100%;
	margin: 1.6rem 0 0.2rem;
	color: var(--lot-gold-light);
	font-family: var(--lot-font-display);
	font-size: 1.35rem;
	font-weight: 400;
	letter-spacing: 0.05em;
	text-align: center;
}
.artwork-set[hidden] {
	display: none;
}
.artwork-item figcaption .artwork-lore {
	display: block;
	width: fit-content;
	margin: 0.35rem auto 0;
	color: var(--site-muted);
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-decoration: none;
}
.artwork-item figcaption .artwork-lore:hover,
.artwork-item figcaption .artwork-lore:focus-visible {
	color: var(--lot-gold-light);
	text-decoration: underline;
}
.lot-lightbox-caption .artwork-lore {
	display: block;
	margin-top: 0.6rem;
	font-family: var(--lot-font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	color: var(--lot-gold-light);
	-webkit-text-fill-color: var(--lot-gold-light);
}
