.painting-breadcrumb {
	padding: 1rem clamp(1.5rem, 6vw, 5rem);
	border-bottom: 1px solid rgba(26, 23, 20, 0.11);
	background: #f0ece3;
}

.painting-breadcrumb a,
.painting-breadcrumb span {
	font-family: Cinzel, serif;
	font-size: 0.5rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	color: #7a7774;
}

.painting-breadcrumb a:hover,
.painting-breadcrumb__current {
	color: #b89a5a;
}

.painting-breadcrumb__sep {
	margin: 0 0.5rem;
	color: rgba(26, 23, 20, 0.18);
}

.painting-detail {
	--painting-ink: #1a1714;
	--painting-parchment: #f5f1eb;
	--painting-gold: #b89a5a;
	--painting-gold-light: #d4b678;
	--painting-rule: rgba(26, 23, 20, 0.11);
	--painting-muted: #7a7774;
	--painting-pad: clamp(1.5rem, 6vw, 5rem);
	max-width: 1160px;
	width: 100%;
	margin: 0 auto;
	padding: 4rem var(--painting-pad) 5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem 6rem;
	align-items: start;
	background: var(--painting-parchment);
	color: var(--painting-ink);
	font-family: "Cormorant Garamond", serif;
	line-height: 1.7;
}

.site-main:has(.painting-detail) {
	background: #f5f1eb;
}

.painting-detail *,
.painting-detail *::before,
.painting-detail *::after {
	box-sizing: border-box;
}

.painting-detail__frame {
	position: relative;
	margin: 0;
	line-height: 0;
	background: var(--painting-ink);
	box-shadow: 0 0 0 1px rgba(184, 154, 90, 0.18), 0 4px 8px rgba(26, 23, 20, 0.18), 0 16px 48px rgba(26, 23, 20, 0.24);
}

.painting-detail__frame::before {
	content: "";
	position: absolute;
	inset: 14px;
	z-index: 1;
	border: 1px solid rgba(184, 154, 90, 0.14);
	pointer-events: none;
}

.painting-detail__frame img {
	display: block;
	width: 100%;
	height: auto;
	filter: saturate(0.95) brightness(0.97);
	transition: filter 0.4s ease;
}

.painting-detail__frame:hover img {
	filter: saturate(1) brightness(1);
}

.painting-detail__nav {
	display: flex;
	justify-content: space-between;
	gap: 0.8rem;
	margin-top: 1.6rem;
}

.painting-detail__nav-button,
.painting-detail__return,
.painting-detail__share-button,
.painting-detail__enquire span,
.painting-detail__enquire a,
.painting-detail__share span,
.painting-detail__meta dt {
	font-family: Cinzel, serif;
	text-transform: uppercase;
}

.painting-detail__nav-button {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 1rem;
	border: 1px solid var(--painting-rule);
	color: var(--painting-muted);
	font-size: 0.48rem;
	letter-spacing: 0.16em;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.painting-detail__nav-button:hover {
	border-color: var(--painting-gold);
	color: var(--painting-gold);
}

.painting-detail__content {
	padding-top: 0.5rem;
}

.painting-detail h1 {
	margin: 0 0 0.5rem;
	font-size: clamp(2.2rem, 4.5vw, 3.6rem);
	font-weight: 300;
	line-height: 1.05;
	color: var(--painting-ink);
}

.painting-detail__rule {
	width: 48px;
	height: 1px;
	margin: 1.3rem 0 1.8rem;
	background: var(--painting-gold);
}

.painting-detail__meta {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin: 0 0 2rem;
}

.painting-detail__meta div {
	display: flex;
	align-items: baseline;
	gap: 0.7rem;
	font-size: 0.82rem;
	color: var(--painting-muted);
}

.painting-detail__meta dt {
	min-width: 5rem;
	flex-shrink: 0;
	font-size: 0.46rem;
	letter-spacing: 0.18em;
	color: rgba(26, 23, 20, 0.32);
}

.painting-detail__meta dd {
	margin: 0;
	font-style: italic;
}

.painting-detail__description {
	margin-bottom: 2.5rem;
	padding-left: 1.2rem;
	border-left: 2px solid var(--painting-gold);
	font-size: clamp(1rem, 1.5vw, 1.12rem);
	font-style: italic;
	line-height: 1.85;
	color: #3a3733;
}

.painting-detail__description p {
	margin: 0 0 1em;
}

.painting-detail__description p:last-child {
	margin-bottom: 0;
}

.painting-detail__enquire {
	margin-bottom: 1.6rem;
	padding: 1.8rem 2rem;
	background: var(--painting-ink);
}

.painting-detail__enquire span {
	display: block;
	margin-bottom: 0.7rem;
	font-size: 0.48rem;
	letter-spacing: 0.2em;
	color: var(--painting-gold);
}

.painting-detail__enquire h2 {
	margin: 0 0 1.2rem;
	font-size: clamp(1rem, 1.8vw, 1.35rem);
	font-weight: 300;
	line-height: 1.25;
	color: var(--painting-parchment);
}

.painting-detail__enquire a {
	display: inline-block;
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid rgba(245, 241, 235, 0.3);
	color: var(--painting-parchment);
	font-size: 0.52rem;
	letter-spacing: 0.2em;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.painting-detail__enquire a:hover {
	border-color: var(--painting-gold);
	background: rgba(184, 154, 90, 0.12);
}

.painting-detail__share {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	flex-wrap: wrap;
	margin-bottom: 1.8rem;
}

.painting-detail__share span {
	flex-shrink: 0;
	font-size: 0.46rem;
	letter-spacing: 0.18em;
	color: var(--painting-muted);
}

.painting-detail__share-button {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--painting-rule);
	background: transparent;
	color: var(--painting-muted);
	font-size: 0.46rem;
	letter-spacing: 0.14em;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.painting-detail__share-button svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	fill: currentColor;
}

.painting-detail__share-button:hover {
	border-color: var(--painting-gold);
	background: rgba(184, 154, 90, 0.1);
	color: var(--painting-gold);
}

.painting-detail__share-button--facebook {
	border-color: #1877f2;
	background: rgba(24, 119, 242, 0.08);
	color: var(--painting-ink);
}

.painting-detail__share-button--facebook:hover {
	background: #1877f2;
	color: #fff;
}

.painting-detail__return {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--painting-muted);
	font-size: 0.48rem;
	letter-spacing: 0.16em;
	text-decoration: none;
	transition: color 0.2s ease;
}

.painting-detail__return:hover {
	color: var(--painting-gold);
}

@media (max-width: 760px) {
	.painting-detail {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
}

@media (max-width: 520px) {
	.painting-detail__nav {
		flex-direction: column;
	}

	.painting-detail__nav-button {
		justify-content: center;
	}

	.painting-detail__meta div {
		display: block;
	}

	.painting-detail__meta dt {
		margin-bottom: 0.15rem;
	}
}
