/* Gallery notes panel (design notes in Canon, developer notes in Concept). JS: gallery-filter.js builds .gallery-layout. */
.gallery-layout__notes { min-width: 0; }
@media (min-width: 1440px) {
	.gallery-layout {
		--set-w: min(1840px, calc(100vw - 6rem));
		width: var(--set-w);
		max-width: none !important;
		margin-inline: calc((100% - var(--set-w)) / 2) !important;
	}
	.gallery-layout .gallery-set { width: auto; margin-inline: 0 !important; }
}
.gallery-layout .alignwide { max-width: none !important; }
.gallery-layout.has-notes { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--30); }
.gallery-layout.has-notes .gallery-layout__notes { order: -1; }
@media (min-width: 1100px) {
	.gallery-layout.has-notes { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
	.gallery-layout.has-notes .gallery-layout__notes {
		order: 0;
		position: sticky;
		top: calc(var(--header-h) + 1.5rem);
		max-height: calc(100vh - var(--header-h) - 3rem);
		overflow-y: auto;
		scrollbar-width: thin;
	}
}

.dev-notes {
	padding: 1.1rem 1.2rem 1.3rem;
	background: linear-gradient(180deg, rgba(53, 8, 8, .45), rgba(11, 7, 9, .85));
	border: 1px solid rgba(171, 112, 53, .55);
	border-left: 3px solid var(--gold);
	border-radius: 12px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
	animation: notes-in .45s var(--ease-out);
}
@keyframes notes-in { from { opacity: 0; transform: translateX(8px); } }
.dev-notes__eyebrow {
	margin: 0 0 .3rem !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: .65rem;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: var(--copper);
}
.dev-notes__title {
	margin: 0 0 .7rem !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.15rem;
	color: var(--gold-light);
}
.dev-notes__entry p { margin: 0 0 .65rem !important; font-size: .9rem; line-height: 1.5; color: var(--parchment); }
.dev-notes__entry p:last-child { margin-bottom: 0 !important; }
.dev-notes__trait { padding-left: .7rem; border-left: 2px solid rgba(171, 112, 53, .55); }
.dev-notes__trait strong { display: block; font-family: var(--wp--preset--font-family--display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.dev-notes__label {
	margin: 1rem 0 .4rem !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: .62rem !important;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--copper) !important;
}
.dev-notes__spoiler {
	position: relative;
	padding: .45rem .6rem;
	border: 1px dashed rgba(217, 162, 61, .55);
	border-radius: 8px;
	cursor: pointer;
}
.dev-notes__spoiler:not(.is-revealed) { color: transparent !important; text-shadow: 0 0 9px rgba(234, 219, 192, .75); user-select: none; }
.dev-notes__spoiler:not(.is-revealed)::after {
	content: "Spoiler · tap to reveal";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--display);
	font-size: .62rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--gold-light);
	text-shadow: none;
}
.dev-notes__spoiler:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
html:not(.js) .dev-notes { display: none; }
@media (prefers-reduced-motion: reduce) { .dev-notes { animation: none; } }
