/*
 * Artcore2026 "Darkroom"
 *
 * Dark, photo-first chrome with a floating glass menu panel. Everything meant
 * for reading (posts, pages, comments, album descriptions) sits on light
 * paper with dark ink: the .sheet component and its --paper / --ink tokens.
 *
 * Sections: tokens, base, panel and menu, layout, slideshow homepage, page
 * heads and chips, cards, pagination, sheet and prose, comments and forms,
 * widgets, albums and album view, lightbox, responsive, reduced motion.
 */

/* Tokens ----------------------------------------------------------------- */

:root {
	--bg: #121216;
	--bg-2: #19191e;
	--bg-3: #202026;
	--glass: rgba(22, 22, 26, 0.6);
	--tile: rgba(24, 24, 30, 0.52);
	--tile-hover: rgba(30, 30, 37, 0.62);
	--line: rgba(255, 255, 255, 0.09);
	--line-2: rgba(255, 255, 255, 0.18);
	--text: #ecebe8;
	--text-2: #c9c8cd;
	--muted: #9d9ca4;
	--accent: #e7b46a;

	/* Reading surface. */
	--paper: #f6f3ee;
	--paper-2: #ece7df;
	--ink: #1d1b19;
	--ink-2: #3a3733;
	--ink-muted: #7b756c;
	--rule: #e1dbd1;
	--accent-ink: color-mix(in oklab, var(--accent) 50%, #3a1d00);

	--serif: "Cormorant", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

	--panel-w: 272px;
	--measure: 1000px; /* text column on the reading sheet = photo width */
	--edge: 20px;
	--radius: 18px;
	--radius-lg: 28px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Base ------------------------------------------------------------------- */

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

[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scrollbar-color: #3a3a40 var(--bg);
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font: 400 15px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: inherit;
	text-decoration: none;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	vertical-align: middle;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.icon {
	width: 18px;
	height: 18px;
	flex: none;
	vertical-align: -0.2em;
}

.icon-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
	top: 12px;
	left: 12px;
	z-index: 2000;
	padding: 10px 16px;
	border-radius: 10px;
	color: var(--bg);
	background: var(--text);
}

.kicker {
	display: inline-block;
	margin: 0;
	color: var(--accent);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

a.kicker:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	color: var(--muted);
	font-size: 12.5px;
}

.meta span + span::before {
	content: "·";
	margin: 0 10px;
	opacity: 0.7;
}

.meta a:hover {
	color: var(--text);
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--text);
	color: var(--bg);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
	background: #fff;
}

.btn .icon {
	width: 16px;
	height: 16px;
}

.btn--glass {
	border-color: var(--line-2);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.btn--glass:hover {
	background: rgba(255, 255, 255, 0.18);
}

.round {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: background 0.2s, border-color 0.2s;
}

.round:hover {
	border-color: rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.16);
}

.chip {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	color: var(--text-2);
	font-size: 13px;
	line-height: 1.3;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.chip:hover {
	border-color: var(--text-2);
	color: var(--text);
}

.chip.is-on {
	border-color: var(--text);
	background: var(--text);
	color: var(--bg);
}

.chip small {
	color: var(--muted);
	font-size: 11px;
}

.chip.is-on small {
	color: #66656b;
}

/* Panel and menu --------------------------------------------------------- */

.panel {
	position: fixed;
	z-index: 50;
	top: var(--edge);
	bottom: var(--edge);
	left: var(--edge);
	width: var(--panel-w);
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--glass);
	backdrop-filter: blur(22px) saturate(140%);
	-webkit-backdrop-filter: blur(22px) saturate(140%);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.panel__head {
	padding: 30px 26px 0;
}

.panel__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	padding: 30px 26px 22px;
	overflow-y: auto;
	scrollbar-width: thin;
}

/* Inline SVG logo: text in currentColor, aperture in the accent colour. */
.brand {
	display: block;
	color: var(--text);
}

.brand svg {
	display: block;
	width: 100%;
	max-width: 216px;
	height: auto;
}

.menu-toggle {
	display: none;
}

.main-nav .menu {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: nav;
}

.main-nav li {
	position: relative;
}

.main-nav .menu > li > a {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 8px 0;
	color: var(--text-2);
	font-size: 15px;
	transition: color 0.2s;
}

.main-nav .menu > li > a::before {
	counter-increment: nav;
	content: counter(nav, decimal-leading-zero);
	width: 18px;
	flex: none;
	color: var(--muted);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}

.main-nav a:hover,
.main-nav .menu > li:is(.current-menu-item, .current-menu-parent, .current-menu-ancestor, .current_page_item, .current_page_ancestor) > a {
	color: #fff;
}

.main-nav .menu > li:is(.current-menu-item, .current-menu-parent, .current-menu-ancestor, .current_page_item, .current_page_ancestor) > a::before {
	color: var(--accent);
}

.main-nav .menu > li:is(.current-menu-item, .current-menu-parent, .current-menu-ancestor, .current_page_item, .current_page_ancestor) > a::after {
	content: "";
	flex: 1;
	align-self: center;
	height: 1px;
	background: linear-gradient(90deg, var(--accent), transparent);
}

.main-nav :is(.sub-menu, .children) {
	margin: 0 0 6px 32px;
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--line);
}

.main-nav :is(.sub-menu, .children) a {
	display: block;
	padding: 4px 0 4px 14px;
	color: var(--muted);
	font-size: 13px;
	transition: color 0.2s;
}

.main-nav :is(.sub-menu, .children) :is(.current-menu-item, .current_page_item) > a {
	color: var(--accent);
}

.main-nav :is(.sub-menu, .children) :is(.sub-menu, .children) {
	margin-left: 14px;
}

/* Submenus are always open in this design. */
.submenu-toggle {
	display: none;
}

.panel-search {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 26px;
	padding: 0 10px 0 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--muted);
	transition: border-color 0.2s;
}

.panel-search:focus-within {
	border-color: var(--line-2);
	color: var(--text);
}

.panel-search .icon {
	width: 16px;
	height: 16px;
}

.panel-search input {
	flex: 1;
	min-width: 0;
	padding: 10px 0;
	border: 0;
	outline: 0;
	background: none;
	font-size: 13px;
}

.panel-search input::placeholder {
	color: var(--muted);
}

.panel-search input::-webkit-search-cancel-button {
	filter: invert(1);
}

.panel-search__key {
	padding: 1px 7px;
	border: 1px solid var(--line-2);
	border-radius: 6px;
	color: var(--muted);
	font: 500 11px/1.4 var(--sans);
}

/* Pinned to the bottom of the panel, above the social links. */
.panel__widgets {
	margin-top: auto;
	padding-top: 26px;
	font-size: 13px;
}

.panel__widgets .widget {
	padding: 14px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
}

.panel__widgets .widget + .widget {
	margin-top: 10px;
}

.panel__widgets .widget__title {
	margin: 0 0 8px;
	color: var(--accent);
	font: 600 10px/1.4 var(--sans);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.panel__foot {
	margin-top: auto;
	padding-top: 16px;
	color: var(--muted);
	font-size: 11px;
}

/* The widgets above already take the free space. */
.panel__widgets + .panel__foot {
	margin-top: 0;
}

.social {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.social a {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--text-2);
	transition: color 0.2s, border-color 0.2s;
}

.social a:hover {
	border-color: var(--line-2);
	color: #fff;
}

.social .icon {
	width: 15px;
	height: 15px;
}

.copyright {
	margin: 0;
}

/* Ambient backdrop ------------------------------------------------------- */

/*
 * Inner pages sit on a heavily blurred, dimmed copy of their photo instead of
 * flat black: softer on the eyes, and the glass panel and tiles have colour
 * to show through, like the slideshow homepage.
 */
.ambient {
	position: fixed;
	inset: -12%;
	z-index: -1;
	/* Amber and violet glows tint the photo (soft-light), so the backdrop keeps
	   some colour even when the photo is black and white. */
	background:
		radial-gradient(60% 55% at 15% 20%, rgba(231, 180, 106, 0.7), transparent 70%),
		radial-gradient(60% 60% at 85% 85%, rgba(120, 95, 215, 0.7), transparent 70%),
		var(--ambient-image) center / cover no-repeat,
		var(--bg);
	background-blend-mode: soft-light, soft-light, normal, normal;
	filter: blur(80px) saturate(1.5) brightness(0.66);
	transform: translateZ(0);
	pointer-events: none;
}

.ambient::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(120% 90% at 70% 10%, transparent, rgba(14, 14, 18, 0.45)),
		linear-gradient(180deg, rgba(14, 14, 18, 0.15), rgba(14, 14, 18, 0.55));
}

/* Layout ----------------------------------------------------------------- */

.main {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin-left: calc(var(--panel-w) + var(--edge) * 2);
	padding: 56px clamp(24px, 3.5vw, 64px) 32px clamp(16px, 2vw, 32px);
}

.wrap {
	width: 100%;
	max-width: 1480px;
}

.site-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	max-width: 1480px;
	margin-top: auto;
	padding-top: 40px;
	color: var(--muted);
	font-size: 12px;
}

.to-top {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.to-top:hover {
	color: var(--text);
}

.to-top .icon {
	width: 15px;
	height: 15px;
}

/* Slideshow homepage ----------------------------------------------------- */

.layout-slideshow .main {
	min-height: 0;
	margin: 0;
	padding: 0;
}

.show {
	position: fixed;
	inset: 0;
	overflow: hidden;
	background: #000;
}

.slideshow__stage,
.slideshow__slide {
	position: absolute;
	inset: 0;
	margin: 0;
}

.slideshow__slide {
	opacity: 0;
	transition: opacity 1.4s ease;
}

.slideshow__slide.is-active {
	opacity: 1;
}

.slideshow__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transform: scale(1.08);
	transition: transform 9s linear;
}

.slideshow__slide.is-active .slideshow__image {
	transform: scale(1);
}

.show--contain .slideshow__image {
	object-fit: contain;
}

.show__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.15) 40%, transparent 60%),
		linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 40%);
	pointer-events: none;
}

.show__ui {
	position: absolute;
	right: 56px;
	bottom: 30px;
	left: calc(var(--panel-w) + var(--edge) + 56px);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 26px 40px;
	color: #fff;
}

.slideshow__caption {
	max-width: 900px;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.show__title {
	margin: 10px 0 4px;
	font: 500 clamp(45px, 4.96vw, 90px)/0.92 var(--serif);
	letter-spacing: -0.02em;
}

.show__sub {
	margin: 0;
	color: #d8d6d2;
	font: 500 clamp(20px, 1.8vw, 28px)/1.2 var(--serif);
}

.show__text {
	max-width: 560px;
	margin-top: 14px;
	color: #d4d3d0;
	font-size: 15px;
}

.show__text p {
	margin: 0 0 8px;
}

.slideshow__caption .btn {
	margin-top: 14px;
}

.show__count {
	margin: 18px 0 0;
	color: #bdbcb8;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.show__count b {
	color: #fff;
	font-weight: 600;
}

.show__controls {
	display: flex;
	gap: 12px;
}

.show__controls .when-playing,
.show__controls.is-playing .when-paused {
	display: none;
}

.show__controls.is-playing .when-playing {
	display: block;
}

.filmstrip {
	grid-column: 1 / -1;
}

.filmstrip__list {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.filmstrip__list li {
	flex: 1;
}

.filmstrip__thumb {
	position: relative;
	display: block;
	width: 100%;
	height: 16px;
	padding: 0;
	border: 0;
	background: none;
}

.filmstrip__thumb::before,
.filmstrip__thumb::after {
	content: "";
	position: absolute;
	top: 7px;
	left: 0;
	height: 2px;
	border-radius: 2px;
}

.filmstrip__thumb::before {
	right: 0;
	background: rgba(255, 255, 255, 0.24);
	transition: background 0.2s;
}

.filmstrip__thumb:hover::before {
	background: rgba(255, 255, 255, 0.5);
}

.filmstrip__thumb::after {
	width: 0;
	background: #fff;
}

.filmstrip__list li:has(~ li > [aria-current]) .filmstrip__thumb::after {
	width: 100%;
}

.filmstrip__thumb[aria-current]::after {
	width: 100%;
	animation: fill var(--interval, 5s) linear both paused;
}

.show:has(.show__controls.is-playing) .filmstrip__thumb[aria-current]::after {
	animation-play-state: running;
}

@keyframes fill {
	from {
		width: 0;
	}

	to {
		width: 100%;
	}
}

/* Page heads and chips --------------------------------------------------- */

.page-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 40px;
	margin-bottom: 30px;
}

.page-title {
	margin: 8px 0 0;
	font: 500 clamp(52px, 5.4vw, 92px)/0.95 var(--serif);
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}

.page-head__text {
	max-width: 380px;
	color: var(--muted);
}

.page-head__text p {
	margin: 0 0 6px;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 40px;
}

/* Cards ------------------------------------------------------------------ */

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 52px 32px;
}

/* Cards are translucent glass tiles over the ambient backdrop (no
   backdrop-filter needed: the backdrop is already blurred). */
.card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 12px 12px 22px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--tile);
	transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
}

.card:hover {
	border-color: var(--line-2);
	background: var(--tile-hover);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
	transform: translateY(-3px);
}

.card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 0 10px;
}

.card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	margin-bottom: 18px;
	overflow: hidden;
	border-radius: 15px;
	background: var(--bg-2);
}

.card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--ease);
}

.card:hover .card__media img {
	transform: scale(1.04);
}

.card__media--text {
	display: grid;
	place-items: center;
	padding: 28px;
	background:
		radial-gradient(120% 90% at 20% 0%, color-mix(in oklab, var(--accent) 30%, transparent), transparent 60%),
		radial-gradient(90% 90% at 100% 100%, rgba(120, 90, 200, 0.25), transparent 60%),
		var(--bg-3);
	color: var(--text);
	font: 500 clamp(24px, 2vw, 32px)/1.15 var(--serif);
	text-align: center;
	overflow-wrap: anywhere;
}

.card--status .card__media--text {
	font-size: clamp(20px, 1.6vw, 26px);
}

.badge {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 12px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.badge .icon {
	width: 14px;
	height: 14px;
}

.card__title {
	margin: 8px 0 10px;
	font: 500 30px/1.08 var(--serif);
	letter-spacing: -0.005em;
	overflow-wrap: anywhere;
}

.card__title a:hover {
	color: #fff;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
}

.card__excerpt {
	display: -webkit-box;
	margin: 0 0 14px;
	overflow: hidden;
	color: #b9b8be;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.card .meta {
	margin-top: auto;
}

.card--feature {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	align-items: center;
	gap: 40px;
	margin-bottom: 12px;
	padding: 14px;
}

.card--feature .card__body {
	padding: 10px 26px 10px 0;
}

.card--feature .card__media {
	margin: 0;
}

.card--feature .card__title {
	margin: 14px 0 18px;
	font-size: clamp(38px, 3.4vw, 58px);
	line-height: 1.02;
}

.card--feature .card__excerpt {
	color: #c4c3c8;
	font-size: 16px;
	-webkit-line-clamp: 5;
}

/* Pagination ------------------------------------------------------------- */

.pagination {
	margin-top: 56px;
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--text-2);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.pagination a.page-numbers:hover {
	border-color: var(--line-2);
	color: #fff;
}

.pagination .current {
	border-color: var(--text);
	background: var(--text);
	color: var(--bg);
}

.pagination .dots {
	border: 0;
}

.pagination .icon {
	width: 16px;
	height: 16px;
}

/* Sheet: the light reading surface --------------------------------------- */

.sheet {
	container-type: inline-size;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--paper);
	color: var(--ink);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.sheet--small {
	max-width: 760px;
	margin: 0;
}

.sheet ::selection {
	background: color-mix(in oklab, var(--accent) 45%, #fff);
}

.sheet__hero {
	margin: 0;
	background: var(--paper-2);
}

.sheet__hero a {
	display: block;
}

.sheet__hero img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 8;
	object-fit: cover;
}

.sheet__hero--natural img {
	aspect-ratio: auto;
	max-height: 85vh;
	object-fit: contain;
}

.sheet__body {
	padding: clamp(36px, 5cqi, 64px) clamp(20px, 5cqi, 48px) clamp(40px, 6cqi, 72px);
}

.sheet__body > * {
	max-width: var(--measure);
	margin-inline: auto;
}

.entry__head {
	margin-bottom: 40px;
	text-align: center;
}

.entry__head .kicker {
	color: var(--accent-ink);
}

.sheet__title {
	margin: 14px 0 20px;
	color: var(--ink);
	font: 500 clamp(44px, 7cqi, 88px)/0.95 var(--serif);
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}

.sheet__title--small {
	font-size: clamp(32px, 4.5cqi, 52px);
}

.entry__head .meta {
	justify-content: center;
	color: var(--ink-muted);
}

.entry__head .meta a:hover,
.sheet .meta a:hover {
	color: var(--ink);
}

.sheet .lead,
.sheet .lead p {
	color: var(--ink);
	font: 500 26px/1.45 var(--serif);
}

/* Prose: long-form text on the sheet. */
.prose {
	color: var(--ink-2);
	font-size: 18.5px;
	line-height: 1.8;
	overflow-wrap: break-word;
}

.prose > :first-child {
	margin-top: 0;
}

.prose p,
.prose ul,
.prose ol,
.prose dl,
.prose table,
.prose pre,
.prose blockquote,
.prose figure {
	margin: 0 0 1.4em;
}

.prose :is(h2, h3, h4, h5, h6) {
	margin: 1.8em 0 0.6em;
	color: var(--ink);
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.15;
}

.prose h2 {
	font-size: 38px;
}

.prose h3 {
	font-size: 30px;
}

.prose h4 {
	font-size: 24px;
}

.prose :is(h5, h6) {
	font: 600 13px/1.4 var(--sans);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.prose a {
	color: var(--accent-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.prose a:hover {
	color: var(--ink);
}

/* No italic styles on the site (user request): emphasis is a heavier weight. */
.prose :is(em, i, cite, var, dfn),
.comment-item__text :is(em, i) {
	font-style: normal;
	font-weight: 500;
}

.prose strong,
.prose b {
	color: var(--ink);
	font-weight: 600;
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li + li {
	margin-top: 0.35em;
}

.prose li::marker {
	color: var(--ink-muted);
}

.prose blockquote {
	padding: 0.2em 0 0.2em 1.2em;
	border-left: 2px solid var(--accent-ink);
	color: var(--ink);
	font: 500 24px/1.5 var(--serif);
}

.prose blockquote p {
	margin: 0 0 0.6em;
}

.prose hr {
	width: 120px;
	margin: 3em auto;
	border: 0;
	border-top: 1px solid var(--rule);
}

.prose code,
.prose kbd {
	padding: 0.15em 0.4em;
	border-radius: 6px;
	background: var(--paper-2);
	color: var(--ink);
	font: 0.85em/1.4 var(--mono);
}

.prose pre {
	padding: 18px 20px;
	overflow-x: auto;
	border-radius: 12px;
	background: #1d1b19;
	color: #ecebe8;
	font: 14px/1.6 var(--mono);
}

.prose pre code {
	padding: 0;
	background: none;
	color: inherit;
	font: inherit;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.prose :is(th, td) {
	padding: 10px 12px;
	border-bottom: 1px solid var(--rule);
	text-align: left;
}

.prose th {
	color: var(--ink);
}

.prose iframe {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 12px;
}

.prose iframe[src*="youtube"],
.prose iframe[src*="vimeo"] {
	aspect-ratio: 16 / 9;
	height: auto;
}

/* Photos span the text column (old posts set width="630"); tall portraits
   stay inside the screen and are centred. */
.prose :is(img.size-large, img.size-full, img.aligncenter) {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 88vh;
	margin: 2em auto;
	border-radius: 14px;
}

.prose p:has(> img.size-large:only-child, > a:only-child > img.size-large) {
	margin: 0;
}

.prose a:has(> img) {
	text-decoration: none;
}

.prose img.alignleft,
.prose .alignleft {
	float: left;
	margin: 0.4em 1.6em 1em 0;
	border-radius: 10px;
}

.prose img.alignright,
.prose .alignright {
	float: right;
	margin: 0.4em 0 1em 1.6em;
	border-radius: 10px;
}

.prose .aligncenter {
	margin-inline: auto;
}

.prose img {
	border-radius: 10px;
}

.prose .wp-caption {
	width: auto !important;
	max-width: 100%;
}

.prose .wp-caption img.size-large {
	margin-bottom: 0;
}

.prose :is(.wp-caption-text, figcaption) {
	margin-top: 10px;
	color: var(--ink-muted);
	font-size: 13px;
	text-align: center;
}

.prose--status {
	font: 500 30px/1.45 var(--serif);
	color: var(--ink);
	text-align: center;
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 2em;
	color: var(--ink-muted);
	font-size: 14px;
}

.page-links a,
.page-links > span:not(:first-child) {
	display: grid;
	place-items: center;
	min-width: 34px;
	height: 34px;
	border: 1px solid var(--rule);
	border-radius: 999px;
	color: var(--ink);
}

/* [gallery] shortcode (parent markup). */
.prose .gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	margin: 2em 0;
}

.prose .gallery__item {
	margin: 0;
}

.prose .gallery .frame {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 10px;
}

.prose .gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.6s var(--ease);
}

.prose .gallery .frame:hover img {
	transform: scale(1.05);
}

.prose .gallery__caption {
	margin-top: 6px;
	color: var(--ink-muted);
	font-size: 12px;
}

.entry__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid var(--rule);
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sheet .chip {
	border-color: var(--rule);
	color: var(--ink-2);
}

.sheet .chip:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.edit-link {
	color: var(--ink-muted);
	font-size: 13px;
}

.edit-link:hover {
	color: var(--ink);
}

.image-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 32px;
}

.image-nav img {
	border-radius: 8px;
}

.sheet .btn {
	background: var(--ink);
	color: var(--paper);
}

.sheet .btn:hover {
	background: #000;
}

.contact-map {
	margin: 32px auto;
	overflow: hidden;
	border-radius: 16px;
}

.contact-map iframe {
	display: block;
	width: 100%;
	border: 0;
}

/* Comments and forms (on the sheet) -------------------------------------- */

.sheet__comments {
	padding: clamp(32px, 5cqi, 56px) clamp(20px, 5cqi, 48px);
	border-top: 1px solid var(--rule);
	background: color-mix(in oklab, var(--paper) 70%, var(--paper-2));
}

.sheet__comments > * {
	max-width: var(--measure);
	margin-inline: auto;
}

.form-title,
.section-title,
.comment-reply-title {
	margin: 0 0 22px;
	color: var(--ink);
	font: 500 34px/1.1 var(--serif);
}

.form-title small {
	margin-left: 10px;
	font: 400 14px var(--sans);
}

.form-title small a {
	color: var(--accent-ink);
}

.contact {
	margin-top: 48px;
}

.comment-list,
.comment-list .children {
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin: 18px 0 0 clamp(16px, 4cqi, 48px);
	padding-left: 18px;
	border-left: 1px solid var(--rule);
}

.comment-list > li + li {
	margin-top: 26px;
	padding-top: 26px;
	border-top: 1px solid var(--rule);
}

/* Parent markup: article > avatar, header (author, meta), text. */
.comment-item__body {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: start;
	gap: 2px 14px;
}

.comment-item__avatar {
	grid-row: 1 / span 2;
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.comment-item__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 14px;
	min-height: 22px;
}

.comment-item__author {
	margin: 0;
	color: var(--ink);
	font: 600 15px/1.4 var(--sans);
}

.comment-item__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	color: var(--ink-muted);
	font-size: 12.5px;
}

.comment-item__meta a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.comment-item__meta .icon {
	width: 13px;
	height: 13px;
}

/* Pingbacks have no avatar: keep everything else in the text column. */
.comment-item__body > :not(.comment-item__avatar) {
	grid-column: 2;
}

.comment-item__meta a:hover {
	color: var(--ink);
}

.comment-item__text {
	color: var(--ink-2);
	font-size: 16.5px;
	line-height: 1.7;
}

.comment-item__text p {
	margin: 0 0 0.8em;
}

.comment-item__text a {
	color: var(--accent-ink);
	text-decoration: underline;
}

.comment-item__moderation {
	color: var(--accent-ink);
	font-size: 13px;
}

.comment-reply-link {
	color: var(--accent-ink);
	font-size: 13px;
	font-weight: 600;
}

.comments__closed {
	color: var(--ink-muted);
}

.form__hp {
	position: absolute;
	left: -9999px;
}

.form__grid {
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
	gap: 0 20px;
}

.form__fields {
	display: grid;
	align-content: start;
	gap: 14px;
}

.field {
	display: grid;
	gap: 6px;
}

.field__label {
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 500;
}

.field__label span {
	color: var(--accent-ink);
}

.field input,
.field textarea,
.search-form__input,
.post-password-form input[type="password"] {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--rule);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	font-size: 15px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
	min-height: 196px;
	height: 100%;
	resize: vertical;
}

.field input:focus,
.field textarea:focus,
.search-form__input:focus,
.post-password-form input[type="password"]:focus {
	border-color: var(--accent-ink);
	outline: 0;
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent);
}

.field--invalid input,
.field--invalid textarea {
	border-color: #b3261e;
}

.field--message {
	grid-row: span 2;
}

/* Comment form: name, e-mail and website in one row, the message below at
   full width (the contact form keeps its side-by-side layout). */
.comment-form .form__grid {
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

.comment-form .form__fields {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.comment-form .field--message {
	grid-row: auto;
}

.comment-form .field--message textarea {
	min-height: 240px;
}

.field--captcha {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
}

.field--captcha input {
	width: 80px;
}

.form__status:not(:empty) {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--paper-2);
	color: var(--ink);
	font-size: 14px;
}

.form__status.is-success {
	background: #e5efdf;
	color: #2b5a1d;
}

.form__status.is-error {
	background: #f6e1df;
	color: #8c1d16;
}

.form__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 20px;
}

.btn--big {
	padding: 12px 22px;
	border: 0;
	font-size: 15px;
}

.form__clear {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--ink-muted);
	font-size: 13px;
}

.form__clear:hover {
	color: var(--ink);
}

.form__clear .icon {
	width: 12px;
	height: 12px;
}

.form.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

.comment-form .logged-in-as,
.comment-notes {
	color: var(--ink-muted);
	font-size: 13px;
}

.search-form {
	display: grid;
	gap: 6px;
}

.search-form__label {
	color: var(--ink-2);
	font-size: 13px;
}

.search-form__box {
	position: relative;
	display: block;
}

.search-form__input {
	padding-right: 48px;
}

.search-form__submit {
	position: absolute;
	top: 4px;
	right: 4px;
	bottom: 4px;
	display: grid;
	place-items: center;
	width: 40px;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: var(--ink);
	color: var(--paper);
}

.post-password-form {
	display: grid;
	gap: 12px;
}

.post-password-form input[type="submit"] {
	justify-self: start;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	font-weight: 600;
}

/* Widgets: cards under the content --------------------------------------- */

/* Masonry columns: widget heights differ a lot (tag cloud vs. search). */
.widgets {
	columns: 4 280px;
	column-gap: 20px;
	width: 100%;
	max-width: 1480px;
	margin-top: 88px;
	padding-top: 40px;
	border-top: 1px solid var(--line);
}

.widgets .widget {
	break-inside: avoid;
	min-width: 0;
	margin-bottom: 20px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: var(--tile);
	color: var(--text-2);
	font-size: 14px;
}

.widgets .widget__title {
	margin: 0 0 16px;
	color: var(--text);
	font: 500 26px/1.1 var(--serif);
	text-transform: none;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li + li {
	margin-top: 8px;
}

.widget a:hover {
	color: #fff;
}

.widget .post-list__item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.widget .post-list__item + .post-list__item {
	margin-top: 14px;
}

.widget .post-list__thumb {
	flex: none;
}

.widget .post-list__thumb img {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	object-fit: cover;
}

.widget .post-list__title {
	display: block;
	color: var(--text);
	line-height: 1.35;
}

.widget .post-list__comments {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--muted);
	font-size: 12px;
}

.widget .post-list__comments .icon {
	width: 12px;
	height: 12px;
}

.widget .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.widget .tagcloud a {
	padding: 4px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 12.5px !important;
	line-height: 1.4;
}

.widget .tagcloud a:hover {
	border-color: var(--line-2);
}

.widgets .search-form__label {
	display: none;
}

.widgets .search-form__input {
	border-color: var(--line-2);
	background: var(--bg);
	color: var(--text);
}

.widgets .search-form__submit {
	background: var(--text);
	color: var(--bg);
}

.widget .text-photo__image img,
.widget .photo-grid img {
	border-radius: 10px;
}

.widget .photo-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
}

/* Artcore LastFM Covers (plugin, alfm-* markup) ------------------------- */

.alfm__time {
	font-variant-numeric: tabular-nums;
}

/* In the menu panel: the latest track as a card, the history below it. */
.panel__widgets .alfm {
	--alfm-cover: 30px;
	font-size: 12.5px;
}

.panel__widgets .alfm__list {
	gap: 8px;
}

.panel__widgets .alfm__track.is-first {
	--alfm-cover: 44px;
	padding-bottom: 10px;
	margin-bottom: 2px;
	border-bottom: 1px solid var(--line);
}

.panel__widgets .alfm__track.is-first .alfm__name {
	color: #fff;
	font-size: 13.5px;
}

.panel__widgets .alfm__track:not(.is-first) .alfm__cover {
	border-radius: 4px;
}

.panel__widgets .alfm__name {
	color: var(--text);
}

.panel__widgets .alfm__profile {
	margin-top: 10px;
	color: var(--muted);
	font-size: 11px;
	opacity: 1;
}

.panel__widgets .alfm__profile:hover {
	color: var(--text);
}

/* Short screens: fewer history lines, so the panel needs no scrolling. */
@media (max-height: 940px) and (min-width: 1101px) {
	.panel__widgets .alfm__track:nth-child(n + 4) {
		display: none;
	}
}

@media (max-height: 800px) and (min-width: 1101px) {
	.panel__widgets .alfm__track:nth-child(n + 2),
	.panel__widgets .alfm__profile {
		display: none;
	}

	.panel__widgets .alfm__track.is-first {
		padding-bottom: 0;
		border-bottom: 0;
	}
}

/* As a card under the content. */
.widgets .alfm {
	--alfm-cover: 44px;
	font-size: 14px;
}

.widgets .alfm__track.is-first {
	--alfm-cover: 56px;
}

/* Albums ----------------------------------------------------------------- */

.albums {
	columns: 3 320px;
	column-gap: 28px;
}

.album {
	break-inside: avoid;
	margin-bottom: 28px;
}

.album__cover {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--bg-2);
}

.album__cover img {
	display: block;
	width: 100%;
	transition: transform 0.9s var(--ease), filter 0.6s;
}

.album:nth-child(3n + 1) .album__cover img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.album__cover:hover img {
	transform: scale(1.05);
}

.album__info {
	position: absolute;
	inset: auto 0 0;
	display: grid;
	gap: 4px;
	padding: 70px 24px 22px;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
	color: #fff;
}

.album__meta {
	color: #d4d3d0;
	font-size: 11.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.album__title {
	font: 500 clamp(28px, 2.4vw, 38px)/1 var(--serif);
}

.album--protected .album__cover img {
	filter: grayscale(1) brightness(0.55);
}

/* Full-screen album view (built by the parent theme.js). */
body.has-overlay {
	overflow: hidden;
}

.album-view {
	position: fixed;
	inset: 0;
	z-index: 900;
	overflow-y: auto;
	padding: 40px clamp(16px, 4vw, 64px) 64px;
	background: #09090b;
	opacity: 0;
	transition: opacity 0.35s;
	overscroll-behavior: contain;
}

.album-view.is-open {
	opacity: 1;
}

.album-view__head,
.album-view__body,
.album-view__foot {
	max-width: 1560px;
	margin: 0 auto;
}

.album-view__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 24px;
	margin-bottom: 30px;
}

.album-view__title {
	margin: 0;
	font: 500 clamp(36px, 4vw, 64px)/1 var(--serif);
}

.back-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px 9px 10px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s;
}

.back-button:hover {
	background: rgba(255, 255, 255, 0.14);
}

.back-button .icon {
	width: 16px;
	height: 16px;
}

/* The album description is reading text: light paper, dark ink. */
.album-view__intro {
	max-width: 760px;
	margin: 0 0 30px;
	padding: 20px 26px;
	border-radius: 16px;
	background: var(--paper);
	color: var(--ink-2);
	font-size: 16px;
}

.album-view__intro p {
	margin: 0;
}

.album-view__grid {
	columns: 4 260px;
	column-gap: 14px;
}

.album-view__photo {
	position: relative;
	display: block;
	break-inside: avoid;
	margin-bottom: 14px;
	overflow: hidden;
	border-radius: 12px;
	background: var(--bg-2);
}

.album-view__photo img {
	display: block;
	width: 100%;
	transition: transform 0.8s var(--ease), opacity 0.3s;
}

.album-view__photo:hover img {
	transform: scale(1.04);
}

.album-view__password {
	max-width: 480px;
	padding: 26px;
	border-radius: 16px;
	background: var(--paper);
	color: var(--ink);
}

.album-view__foot {
	margin-top: 30px;
}

/* Lightbox (built by the parent theme.js) -------------------------------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	padding: 28px 28px 16px;
	background: rgba(6, 6, 7, 0.96);
	color: var(--text);
	opacity: 0;
	transition: opacity 0.3s;
	touch-action: pan-y;
}

.lightbox.is-open {
	opacity: 1;
}

.lightbox__stage {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 0;
}

.lightbox__figure {
	position: relative;
	display: grid;
	place-items: center;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
}

.lightbox__image {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 120px);
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	transition: opacity 0.25s;
}

.lightbox.is-loading .lightbox__image {
	opacity: 0.2;
}

.lightbox__close {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.lightbox__close:hover {
	background: rgba(255, 255, 255, 0.18);
}

.lightbox__side {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 25%;
	padding: 0 14px;
	border: 0;
	background: none;
	color: #fff;
	opacity: 0;
	transition: opacity 0.2s;
}

.lightbox__side .icon {
	width: 48px;
	height: 48px;
	padding: 12px;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.lightbox__side--prev {
	left: 0;
	text-align: left;
}

.lightbox__side--next {
	right: 0;
	text-align: right;
}

.lightbox__stage:hover .lightbox__side,
.lightbox__side:focus-visible {
	opacity: 1;
}

.lightbox__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 18px;
	padding-top: 14px;
	font-size: 13px;
}

.lightbox__caption {
	flex-basis: 100%;
	margin: 0;
	color: var(--text-2);
	font: 500 20px/1.3 var(--serif);
	text-align: center;
}

.lightbox__caption:empty {
	display: none;
}

.lightbox__controls {
	display: flex;
	gap: 6px;
}

.lightbox__button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
	font-size: 13px;
}

.lightbox__button:hover {
	background: rgba(255, 255, 255, 0.16);
}

.lightbox__button .icon {
	width: 12px;
	height: 12px;
}

.lightbox__counter {
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.lightbox [data-when="playing"],
.lightbox.is-playing [data-when="paused"] {
	display: none;
}

.lightbox.is-playing [data-when="playing"] {
	display: inline;
}

.lightbox.is-single :is(.lightbox__side, .lightbox__controls, .lightbox__counter) {
	display: none;
}

/* Reading progress on posts (assets/js/theme.js). */
.reading-progress {
	position: fixed;
	z-index: 60;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--accent);
	transform: scaleX(var(--progress, 0));
	transform-origin: left;
	pointer-events: none;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1400px) {
	:root {
		--panel-w: 248px;
	}
}

@media (max-width: 1100px) {
	:root {
		--edge: 0px;
	}

	.panel {
		position: sticky;
		top: 0;
		bottom: auto;
		width: auto;
		max-height: 100vh;
		border-width: 0 0 1px;
		border-radius: 0;
		background: rgba(14, 14, 17, 0.82);
	}

	.panel__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 12px 18px;
	}

	.brand svg {
		width: auto;
		height: 34px;
	}

	.menu-toggle {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid var(--line-2);
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.05);
		color: var(--text);
	}

	.panel__body {
		display: none;
		padding: 8px 18px 22px;
	}

	.panel__body.is-open {
		display: flex;
	}

	.panel__foot {
		padding-top: 18px;
	}

	.main {
		margin: 0;
		padding: 32px 18px 28px;
	}

	.layout-slideshow .panel {
		position: fixed;
		top: 0;
		right: 0;
		left: 0;
	}

	.show__ui {
		right: 18px;
		bottom: 22px;
		left: 18px;
		grid-template-columns: 1fr;
	}

	.show__controls {
		position: absolute;
		right: 0;
		bottom: 34px;
	}

	.show__controls .round {
		width: 42px;
		height: 42px;
	}

	.show__count {
		margin-top: 12px;
	}

	.card--feature {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.card--feature .card__media {
		margin-bottom: 18px;
	}

	.widgets {
		margin-top: 56px;
	}
}

@media (max-width: 700px) {
	body {
		font-size: 14.5px;
	}

	.show__title {
		font-size: 38px;
	}

	.show__text {
		display: none;
	}

	.page-title {
		font-size: 48px;
	}

	.sheet {
		border-radius: 20px;
	}

	.prose {
		font-size: 17px;
	}

	.sheet .lead,
	.sheet .lead p {
		font-size: 22px;
	}

	.prose :is(.alignleft, .alignright) {
		float: none;
		margin: 1em auto;
	}

	.form__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.field textarea {
		min-height: 160px;
	}

	.albums {
		columns: 1;
	}

	.album-view__grid {
		columns: 2 140px;
		column-gap: 8px;
	}

	.album-view__photo {
		margin-bottom: 8px;
		border-radius: 8px;
	}

	.lightbox {
		padding: 12px 8px 12px;
	}

	.lightbox__side {
		opacity: 1;
		width: 20%;
	}

	.lightbox__side .icon {
		width: 38px;
		height: 38px;
		padding: 9px;
	}
}

/* Reduced motion --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	.slideshow__image {
		transform: none !important;
	}
}
