:root {
	--color-ink: #19201d;
	--color-muted: #66716a;
	--color-paper: #fffdfa;
	--color-panel: #f4f1eb;
	--color-line: #ddd8cf;
	--color-accent: #1f6f66;
	--color-warm: #b45239;
	--color-soft: #eaf2ef;
	--shadow: 0 16px 40px rgba(25, 32, 29, .08);
	--layout: min(1120px, calc(100vw - 32px));
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-paper);
	color: var(--color-ink);
	font-size: 16px;
	line-height: 1.7;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

#cookie-notice,
.cookie-notice-container {
	display: none !important;
}

a {
	color: inherit;
	text-decoration-thickness: .08em;
	text-underline-offset: .18em;
}

a:hover,
a:focus-visible {
	color: var(--color-accent);
}

.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	z-index: 1000;
	top: 12px;
	left: 12px;
	background: var(--color-ink);
	color: #fff;
	padding: 10px 14px;
}

.layout {
	width: var(--layout);
	margin-inline: auto;
}

.site-header {
	position: sticky;
	z-index: 100;
	top: 0;
	background: rgba(255, 253, 250, .96);
	border-bottom: 1px solid var(--color-line);
	backdrop-filter: blur(12px);
}

.admin-bar .site-header {
	top: 32px;
}

.site-header.is-stuck {
	box-shadow: 0 8px 24px rgba(25, 32, 29, .08);
}

.site-header__inner {
	width: var(--layout);
	min-height: 70px;
	margin-inline: auto;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
}

.brand__text {
	display: grid;
	text-decoration: none;
	line-height: 1.1;
}

.brand__text span,
.footer-brand {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 0;
}

.brand__text small {
	max-width: 280px;
	color: var(--color-muted);
	font-size: .78rem;
}

.primary-nav ul,
.site-footer ul {
	display: flex;
	gap: clamp(8px, .85vw, 14px);
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav {
	min-width: 0;
	overflow: hidden;
}

.primary-nav li {
	white-space: nowrap;
}

.primary-nav a,
.site-footer a {
	text-decoration: none;
	font-weight: 700;
	font-size: .86rem;
	line-height: 1.15;
}

.site-search {
	display: flex;
	align-items: center;
	border: 1px solid var(--color-line);
	background: #fff;
}

.site-search input {
	width: 140px;
	border: 0;
	padding: 10px 12px;
	background: transparent;
	color: var(--color-ink);
}

.site-search button {
	min-height: 42px;
	border: 0;
	border-left: 1px solid var(--color-line);
	background: var(--color-ink);
	color: #fff;
	padding: 0 14px;
	font-weight: 700;
}

@media (min-width: 961px) and (max-width: 1180px) {
	.site-header__inner {
		gap: 12px;
	}

	.brand__text span {
		font-size: 1.55rem;
	}

	.primary-nav ul {
		gap: 8px;
	}

	.primary-nav a {
		font-size: .78rem;
	}

	.site-search input {
		width: 118px;
	}

	.site-search button {
		padding-inline: 12px;
	}
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--color-line);
	background: #fff;
}

.nav-toggle__line,
.nav-toggle__line::before,
.nav-toggle__line::after {
	display: block;
	width: 20px;
	height: 2px;
	margin: auto;
	background: var(--color-ink);
	content: "";
}

.nav-toggle__line::before {
	transform: translateY(-7px);
}

.nav-toggle__line::after {
	transform: translateY(5px);
}

.home-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 34px;
	padding: 42px 0 46px;
	align-items: center;
}

.featured-story {
	display: grid;
	grid-template-columns: minmax(360px, 1.15fr) minmax(280px, .85fr);
	gap: 30px;
	align-items: center;
	min-width: 0;
}

.featured-story__media,
.story-card__media {
	display: block;
	overflow: hidden;
	background: var(--color-panel);
	aspect-ratio: 4 / 3;
}

.featured-story__media {
	aspect-ratio: 16 / 11;
}

.featured-story__media picture,
.featured-story__media img,
.story-card__media picture,
.story-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.featured-story:hover img,
.story-card:hover img {
	transform: scale(1.025);
}

.featured-story h1 {
	margin: 8px 0 12px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.15rem, 3.35vw, 3.35rem);
	line-height: 1.05;
	overflow-wrap: normal;
	hyphens: auto;
}

.eyebrow,
.story-card .post-categories a,
.article-header .post-categories a {
	color: var(--color-warm);
	font-size: .73rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
}

.story-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	color: var(--color-muted);
	font-size: .85rem;
}

.content-flag {
	color: #7a351f;
	background: #ffe7dc;
	padding: 2px 7px;
	font-weight: 800;
}

.section-band {
	padding: 46px 0 52px;
	background: var(--color-soft);
	border-block: 1px solid #d5e3dd;
}

.section-heading {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: end;
	margin-bottom: 22px;
}

.section-heading h2,
.archive-header h1,
.rail-module h2,
.key-points h2,
.author-box h2,
.content-audit h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.1;
}

.story-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 34px 30px;
}

.story-card {
	display: grid;
	gap: 14px;
	min-width: 0;
}

.story-card h3 {
	margin: 5px 0 8px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.28rem;
	line-height: 1.2;
}

.story-card h3 a,
.featured-story h1 a {
	text-decoration: none;
}

.story-card p {
	margin: 0 0 10px;
	color: var(--color-muted);
}

.story-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e7dfd3, #c8dcd4 55%, #efe7de);
}

.split-section {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 42px;
	padding: 52px 0;
}

.story-list {
	display: grid;
	gap: 26px;
}

.story-list .story-card {
	grid-template-columns: 210px minmax(0, 1fr);
	align-items: start;
}

.rail-module,
.key-points,
.author-box,
.content-audit,
.ad-slot {
	border: 1px solid var(--color-line);
	background: #fff;
	padding: 20px;
}

.ranked-list {
	margin: 12px 0 0;
	padding-left: 24px;
}

.ranked-list li {
	padding: 13px 0;
	border-top: 1px solid var(--color-line);
}

.ranked-list a {
	display: block;
	font-weight: 800;
	text-decoration: none;
	line-height: 1.25;
}

.ranked-list span {
	color: var(--color-muted);
	font-size: .84rem;
}

.ad-slot {
	display: none;
	width: min(100%, var(--layout));
	min-height: 92px;
	margin: 20px auto;
	display: grid;
	place-items: center;
	color: var(--color-muted);
	background: repeating-linear-gradient(45deg, #fff, #fff 12px, #f6f2eb 12px, #f6f2eb 24px);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.archive-header {
	padding: 38px 0 22px;
}

.archive-header h1 {
	font-size: clamp(2.2rem, 4vw, 4.2rem);
}

.archive-grid {
	padding-bottom: 42px;
}

.pagination {
	padding: 0 0 48px;
}

.article-layout {
	width: min(1080px, calc(100vw - 32px));
	margin: 0 auto;
	padding: 38px 0 24px;
}

.article-header {
	max-width: 820px;
	margin: 0 auto 30px;
	text-align: center;
}

.article-category-badge {
	margin-bottom: 14px;
}

.article-category-badge a {
	display: inline-block;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #0f172a;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	padding: 5px 14px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.article-category-badge a:hover {
	background: #0f172a;
	color: #fff;
	border-color: #0f172a;
}

.article-header h1 {
	margin: 0 0 16px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 3.8vw, 3.2rem);
	font-weight: 700;
	line-height: 1.14;
	color: var(--color-ink);
	letter-spacing: -0.02em;
}

.article-header .story-meta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 0.86rem;
	color: var(--color-muted);
	font-weight: 500;
	margin-top: 4px;
}

.story-meta .meta-author {
	font-weight: 700;
	color: var(--color-ink);
}

.story-meta .meta-dot {
	opacity: 0.4;
	font-size: 0.8rem;
}

.article-featured-image {
	max-width: 960px;
	margin: 0 auto 40px;
}

.magazine-photo-stage {
	position: relative;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	overflow: visible;
	box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.photo-viewport {
	overflow: hidden;
	border-radius: 20px 20px 0 0;
	background: #0f172a;
	display: flex;
	justify-content: center;
	align-items: center;
}

.photo-viewport img {
	width: 100%;
	max-height: 640px;
	object-fit: cover;
	display: block;
	margin: 0 auto;
}

.photo-action-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 22px;
	background: #ffffff;
	border-top: 1px solid #f1f5f9;
	border-radius: 0 0 20px 20px;
	gap: 14px;
	flex-wrap: wrap;
}

.photo-meta-info {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.photo-meta-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #0f172a;
	color: #f8fafc;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
}

.photo-meta-dim {
	font-size: 0.8rem;
	color: #64748b;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.photo-action-buttons {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.photo-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #1e293b;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.photo-action-btn:hover {
	background: #0f172a;
	color: #ffffff;
	border-color: #0f172a;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.view-gallery-btn {
	background: #f8fafc;
	border-color: #e2e8f0;
	color: #334155;
}

.view-gallery-btn:hover {
	background: #0f172a;
	color: #ffffff;
	border-color: #0f172a;
}

/* Download Dropdown UI */
.photo-download-dropdown-wrap {
	position: relative;
	display: inline-block;
}

.download-photo-btn {
	background: #0284c7;
	border-color: #0284c7;
	color: #ffffff;
}

.download-photo-btn:hover {
	background: #0369a1;
	border-color: #0369a1;
	color: #ffffff;
}

.dropdown-caret {
	font-size: 0.7rem;
	margin-left: 2px;
	transition: transform 0.2s ease;
	display: inline-block;
}

.photo-download-dropdown-wrap.is-open .dropdown-caret {
	transform: rotate(180deg);
}

.photo-download-menu {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 240px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
	padding: 8px;
	z-index: 999;
}

.photo-download-dropdown-wrap.is-open .photo-download-menu {
	display: flex;
	flex-direction: column;
	gap: 4px;
	animation: slideMenuDown 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideMenuDown {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

.photo-download-menu .download-opt {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	border-radius: 8px;
	text-decoration: none;
	color: #1e293b;
	font-size: 0.82rem;
	transition: background 0.15s ease, color 0.15s ease;
}

.photo-download-menu .download-opt:hover {
	background: #f1f5f9;
	color: #0284c7;
}

.photo-download-menu .opt-label {
	font-weight: 700;
}

.photo-download-menu .opt-desc {
	font-size: 0.72rem;
	color: #64748b;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 2px 7px;
	border-radius: 6px;
	font-weight: 600;
}

/* Upscale 2x Button */
.upscale-photo-btn {
	background: #0f172a;
	color: #38bdf8;
	border-color: #1e293b;
}

.upscale-photo-btn:hover {
	background: #1e293b;
	color: #7dd3fc;
	border-color: #334155;
}

.upscale-photo-btn.is-processing {
	pointer-events: none;
	opacity: 0.9;
	background: #1e293b;
	color: #fbbf24;
	border-color: #d97706;
}

.upscale-photo-btn.is-success {
	background: #064e3b;
	color: #6ee7b7;
	border-color: #059669;
}

.upscale-photo-btn.is-error {
	background: #7f1d1d;
	color: #fca5a5;
	border-color: #dc2626;
}

.upscale-spinner {
	display: inline-block;
	animation: spin 1.2s linear infinite;
}

@keyframes spin {
	100% { transform: rotate(360deg); }
}

.magazine-photo-stage figcaption {
	padding: 8px 18px 12px;
	color: var(--color-muted);
	font-size: 0.82rem;
	text-align: center;
	border-top: 1px dashed #f1f5f9;
}

.article-featured-image picture {
	display: block;
}

.article-featured-image figcaption {
	color: var(--color-muted);
	font-size: .86rem;
	margin-top: 8px;
}

.article-shell {
	display: grid;
	grid-template-columns: 220px minmax(0, 720px);
	gap: 44px;
	justify-content: center;
	align-items: start;
}

.article-aside {
	position: sticky;
	top: 96px;
	display: grid;
	gap: 18px;
}

.toc h2 {
	font-size: 1rem;
}

.toc ol {
	margin: 10px 0 0;
	padding-left: 18px;
}

.toc a {
	color: var(--color-muted);
	font-size: .9rem;
	text-decoration: none;
}

.key-points {
	margin-bottom: 24px;
	background: #f7fbf9;
}

.key-points ul,
.content-audit ul {
	margin-bottom: 0;
	padding-left: 22px;
}

.article-content {
	font-size: 1.06rem;
	line-height: 1.78;
}

.article-content h2,
.article-content h3 {
	margin-top: 1.8em;
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.15;
}

.article-content p,
.article-content ul,
.article-content ol {
	margin-bottom: 1.25em;
}

.article-content a {
	color: var(--color-accent);
}

.article-content img {
	margin: 28px auto;
	border-radius: 2px;
}

.article-content .gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	gap: 14px;
	margin: 30px 0;
}

.article-content .legacy-image-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
	margin: 24px 0 36px;
}

.post-gallery-section {
	margin: 44px 0 52px;
	padding: 28px 24px;
	background: linear-gradient(180deg, rgba(248, 246, 242, 0.7) 0%, rgba(255, 255, 255, 0.95) 100%);
	border: 1px solid var(--color-line);
	border-radius: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.gallery-section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	border-bottom: 2px solid var(--color-line);
	padding-bottom: 16px;
	margin-bottom: 22px;
	gap: 16px;
}

.post-gallery-section h2 {
	margin: 4px 0 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.4rem, 2.2vw, 1.85rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--color-ink);
}

.post-gallery-section .eyebrow {
	margin: 0;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--color-muted);
	font-weight: 700;
}

.gallery-counter-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: var(--color-ink);
	color: #fff;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.gallery-counter-badge span {
	background: var(--color-accent);
	color: var(--color-ink);
	padding: 1px 7px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 800;
}

.magazine-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 16px;
	width: 100%;
}

.magazine-gallery-item {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 0;
	border: 1px solid var(--color-line);
	border-radius: 14px;
	margin: 0;
	overflow: hidden;
	background: #fff;
	cursor: zoom-in;
	text-align: left;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.magazine-gallery-item:hover,
.magazine-gallery-item:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
	border-color: rgba(0, 0, 0, 0.25);
}

.thumb-media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f0ede6;
}

.thumb-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease, filter 0.3s ease;
}

.magazine-gallery-item:hover .thumb-media img,
.magazine-gallery-item:focus-visible .thumb-media img {
	transform: scale(1.06);
	filter: saturate(1.08);
}

.gallery-zoom-pill {
	position: absolute;
	right: 8px;
	bottom: 8px;
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	background: rgba(18, 22, 26, 0.75);
	backdrop-filter: blur(6px);
	color: #fff;
	border-radius: 50%;
	opacity: 0;
	transform: scale(0.85);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.magazine-gallery-item:hover .gallery-zoom-pill,
.magazine-gallery-item:focus-visible .gallery-zoom-pill {
	opacity: 1;
	transform: scale(1);
}

.gallery-caption-strip {
	display: flex;
	flex-direction: column;
	padding: 10px 12px;
	gap: 2px;
	background: #fff;
}

.gallery-caption-title {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--color-ink);
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gallery-caption-meta {
	font-size: 0.7rem;
	color: var(--color-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.legacy-gallery-thumb,
.article-content #g p {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 0;
	border: 1px solid var(--color-line);
	margin: 0;
	overflow: hidden;
	background: var(--color-panel);
	cursor: zoom-in;
	float: none !important;
	text-align: center;
}

.article-content .legacy-image-gallery img,
.article-content #g img {
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	object-fit: cover;
	transition: transform .25s ease, filter .25s ease;
}

.legacy-gallery-thumb:hover img,
.legacy-gallery-thumb:focus-visible img,
.article-content #g p:hover img,
.article-content #g p:focus-visible img {
	transform: scale(1.035);
	filter: saturate(1.08);
}

.legacy-gallery-thumb:focus-visible,
.article-content #g p:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 3px;
}

.article-content #g .clear,
.article-content #image-gallery,
.article-content .share,
.article-content #social,
.article-content p.s {
	display: none !important;
}

.article-content .legacy-rating-card {
	float: none !important;
	clear: both;
	width: 100% !important;
	min-height: 0;
	margin: 22px 0 30px !important;
	padding: 16px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border: 1px solid var(--color-line);
	background: #f7fbf9;
}

.article-content .legacy-rating-card > div {
	width: auto !important;
	padding: 0 !important;
	text-align: left !important;
}

.article-content .legacy-rating-card .sg {
	position: relative;
	display: block;
	width: 180px;
	height: 8px;
	margin: 0;
	overflow: hidden;
	border-radius: 999px;
	background: #dfe9e5;
}

.article-content .legacy-rating-card .sy {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--color-accent);
}

.legacy-rating-card__score {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 8px 0 0 !important;
	color: var(--color-ink);
	white-space: nowrap;
}

.legacy-rating-card__score strong {
	font-size: 1.1rem;
	line-height: 1;
}

.legacy-rating-card__score strong span {
	color: var(--color-muted);
	font-size: .9rem;
	font-weight: 700;
}

.legacy-rating-card__score small {
	color: var(--color-muted);
	font-size: .86rem;
}

.article-content .centel {
	margin: -14px auto 24px;
	color: var(--color-muted);
	font-size: .9rem;
	text-align: center;
}

.article-content .clear {
	clear: both;
}

.article-content p:has(> img:only-child) {
	margin: 32px auto;
	text-align: center;
}

.article-content p:has(> img:only-child) img {
	width: min(100%, 680px);
	margin: 0 auto;
}

.article-content .gallery br {
	display: none;
}

.article-content .gallery-item {
	position: relative;
	float: none !important;
	width: auto !important;
	aspect-ratio: 1 / 1;
	margin: 0 !important;
	overflow: hidden;
	background: var(--color-panel);
	cursor: zoom-in;
}

.article-content .gallery-item::before {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, transparent 58%, rgba(25, 32, 29, .42));
	content: "";
	opacity: .75;
}

.article-content .gallery img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	border: 0 !important;
	transition: transform .25s ease, filter .25s ease;
}

.article-content .gallery-item:hover img {
	transform: scale(1.04);
	filter: saturate(1.06);
}

.article-content .gallery-caption {
	position: absolute;
	z-index: 2;
	right: 10px;
	bottom: 10px;
	left: 10px;
	color: #fff;
	font-size: .78rem;
	line-height: 1.35;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.article-content figure.wp-block-gallery,
.article-content .wp-block-gallery {
	margin: 30px 0;
}

.article-content .wp-block-gallery img {
	margin: 0;
}

.article-content .wp-block-image a {
	pointer-events: none;
	text-decoration: none;
}

.article-content .wp-caption {
	max-width: 100%;
}

.article-content .wp-caption-text,
.article-content figcaption {
	color: var(--color-muted);
	font-size: .86rem;
	text-align: left;
}

.image-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: block;
	padding: 24px;
	background: rgba(0, 0, 0, .68);
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease;
}

.image-lightbox.is-open {
	opacity: 1;
	pointer-events: auto;
}

.has-lightbox-open {
	overflow: hidden;
}

.image-lightbox__shell {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 0;
	width: min(1296px, calc(100vw - 48px));
	height: min(760px, calc(100vh - 48px));
	margin: 0 auto;
	overflow: hidden;
	border-radius: 18px;
	background: #151514;
	color: #f5f2ed;
	box-shadow: 0 26px 80px rgba(0, 0, 0, .48);
}

.image-lightbox__stage {
	position: relative;
	display: grid;
	place-items: center;
	min-width: 0;
	padding: 72px 72px 118px;
	background: #111;
}

.image-lightbox img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	margin: 0;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .34);
	object-fit: contain;
}

.image-lightbox__close {
	position: absolute;
	z-index: 4;
	top: 22px;
	right: 22px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.image-lightbox__close:hover,
.image-lightbox__nav:hover {
	background: rgba(255, 255, 255, .2);
}

.image-lightbox__nav {
	position: absolute;
	z-index: 3;
	top: 50%;
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 3rem;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

.image-lightbox__nav--prev {
	left: 26px;
}

.image-lightbox__nav--next {
	right: 386px;
}

.image-lightbox__details {
	display: grid;
	align-content: start;
	gap: 18px;
	min-width: 0;
	padding: 72px 28px 28px;
	overflow: auto;
	background: #1e1e1c;
	border-left: 1px solid rgba(255, 255, 255, .08);
}

.image-lightbox__source {
	margin: 0;
	color: #85d4c8;
	font-size: .83rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.image-lightbox__details h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.55rem;
	line-height: 1.12;
}

.image-lightbox__caption {
	margin: 0;
	color: #d7d3ca;
	font-size: .95rem;
	line-height: 1.55;
}

.image-lightbox__details dl {
	display: grid;
	gap: 0;
	margin: 4px 0 0;
}

.image-lightbox__details dl div {
	padding: 13px 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.image-lightbox__details dt {
	color: #99958d;
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.image-lightbox__details dd {
	margin: 4px 0 0;
	color: #f5f2ed;
	font-size: .94rem;
	overflow-wrap: anywhere;
}

.image-lightbox__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 6px;
}

.image-lightbox__action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.88rem;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-lightbox__btn-download {
	background: #fff;
	color: #111;
	border-color: #fff;
}

.image-lightbox__btn-download:hover {
	background: #f3f4f6;
	color: #000;
	transform: translateY(-1px);
}

.lightbox-download-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lightbox-res-options {
	display: flex;
	gap: 6px;
}

.lightbox-res-pill {
	flex: 1;
	text-align: center;
	padding: 6px 10px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #e5e7eb;
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.15s ease;
}

.lightbox-res-pill:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.image-lightbox__btn-upscale {
	background: #0f172a;
	color: #38bdf8;
	border-color: #0284c7;
}

.image-lightbox__btn-upscale:hover {
	background: #1e293b;
	color: #7dd3fc;
}

.image-lightbox__btn-upscale.is-processing {
	pointer-events: none;
	background: #1f2937;
	color: #fbbf24;
	border-color: #d97706;
}

.image-lightbox__btn-upscale.is-success {
	background: #064e3b;
	color: #6ee7b7;
	border-color: #059669;
}

.image-lightbox__btn-upscale.is-error {
	background: #7f1d1d;
	color: #fca5a5;
	border-color: #dc2626;
}

.image-lightbox__counter {
	color: #aaa59c;
	font-size: .85rem;
}

.author-box {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 18px;
	margin-top: 26px;
}

.author-box__mark {
	width: 88px;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: #fff;
	background:
		radial-gradient(circle at 32% 22%, rgba(255, 255, 255, .38), transparent 28%),
		linear-gradient(135deg, #16362f 0%, #0f1916 52%, #bd6b42 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 14px 32px rgba(15, 25, 22, .18);
}

.author-box__mark span {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: .04em;
}

.author-box img {
	border-radius: 50%;
}

.expert-note {
	color: var(--color-muted);
	font-size: .9rem;
}

.reviewer-box {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--color-line);
}

.content-audit {
	margin-bottom: 24px;
	border-color: #e3b7a8;
	background: #fff5ef;
}

.related-section {
	padding: 36px 0 64px;
}

.related-section__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 34px;
	align-items: start;
}

.related-section__grid .story-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reader-ideas {
	border: 1px solid var(--color-line);
	background: var(--color-soft);
	padding: 22px;
}

.reader-ideas h3 {
	margin: 6px 0 10px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25rem;
	line-height: 1.2;
}

.reader-ideas p,
.reader-ideas li {
	color: var(--color-muted);
	font-size: .95rem;
	line-height: 1.6;
}

.reader-ideas ul {
	padding-left: 18px;
	margin: 12px 0 18px;
}

.reader-ideas__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.reader-ideas__links a {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 7px 10px;
	border: 1px solid var(--color-line);
	background: #fff;
	color: var(--color-ink);
	font-size: .82rem;
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
}

.site-footer {
	background: #efefed;
	color: var(--color-ink);
	padding: 46px 0 38px;
	border-top: 1px solid var(--color-line);
}

.site-footer__inner {
	width: var(--layout);
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1.2fr .9fr .9fr;
	gap: 64px;
	align-items: start;
}

.site-footer p {
	max-width: 520px;
	color: var(--color-muted);
}

.site-footer__brand {
	display: grid;
	gap: 18px;
	align-content: start;
}

.newsletter-link {
	display: inline-grid;
	width: min(300px, 100%);
	min-height: 48px;
	place-items: center;
	border: 3px solid var(--color-accent);
	color: var(--color-ink);
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
}

.newsletter-link:hover,
.newsletter-link:focus-visible {
	background: var(--color-accent);
	color: #fff;
}

.subscribe-panel {
	display: grid;
	gap: 20px;
	max-width: 760px;
	padding: 30px;
	border: 1px solid var(--color-line);
	background: var(--color-soft);
}

.subscribe-panel h2 {
	margin: 0 0 8px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	line-height: 1.08;
}

.subscribe-form {
	display: grid;
	gap: 10px;
}

.subscribe-form label {
	font-weight: 800;
}

.subscribe-form__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	border: 1px solid var(--color-line);
	background: #fff;
}

.subscribe-form input[type="email"] {
	width: 100%;
	min-height: 50px;
	border: 0;
	padding: 0 14px;
	background: transparent;
	font: inherit;
}

.subscribe-form button {
	min-height: 50px;
	border: 0;
	border-left: 1px solid var(--color-line);
	background: var(--color-ink);
	color: #fff;
	padding: 0 18px;
	font-weight: 800;
	cursor: pointer;
}

.subscribe-form button:hover,
.subscribe-form button:focus-visible {
	background: var(--color-accent);
}

.contact-form {
	display: grid;
	gap: 16px;
}

.contact-form p {
	margin: 0;
}

.contact-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.contact-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
	width: 100%;
	border: 1px solid var(--color-line);
	background: #fff;
	padding: 12px 14px;
	color: var(--color-ink);
	font: inherit;
}

.contact-form textarea {
	resize: vertical;
}

.contact-form button {
	justify-self: start;
	min-height: 48px;
	border: 0;
	background: var(--color-ink);
	color: #fff;
	padding: 0 20px;
	font-weight: 800;
	cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus-visible {
	background: var(--color-accent);
}

.subscribe-form__note,
.subscribe-rss-link,
.subscribe-notice {
	margin: 0;
	color: var(--color-muted);
	font-size: .94rem;
}

.subscribe-notice {
	padding: 12px 14px;
	border: 1px solid var(--color-line);
	background: #fff;
	color: var(--color-ink);
}

.subscribe-notice--success {
	border-color: rgba(31, 111, 102, .45);
}

.subscribe-notice--error {
	border-color: rgba(180, 82, 57, .5);
}

.subscribe-form__trap {
	position: absolute;
	left: -9999px;
	opacity: 0;
}

.footer-column h2 {
	margin: 0 0 18px;
	font-size: .86rem;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.footer-column ul,
.site-footer .menu {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-column a {
	font-weight: 900;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.built-by {
	font-weight: 800;
}

@media (max-width: 960px) {
	.site-header__inner {
		grid-template-columns: 1fr auto;
		gap: 12px;
		padding-block: 8px;
	}

	.nav-toggle {
		display: inline-grid;
		place-items: center;
	}

	.primary-nav,
	.site-search {
		grid-column: 1 / -1;
		display: none;
	}

	.primary-nav.is-open,
	.primary-nav.is-open + .site-search {
		display: block;
	}

	.primary-nav ul {
		display: grid;
		gap: 0;
	}

	.primary-nav li {
		border-top: 1px solid var(--color-line);
		padding: 10px 0;
	}

	.site-search {
		margin-bottom: 14px;
	}

	.site-search input {
		width: 100%;
	}

	.home-hero,
	.featured-story,
	.split-section,
	.article-shell,
	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.home-hero {
		gap: 26px;
		align-items: stretch;
	}

	.featured-story {
		gap: 20px;
	}

	.featured-story__body {
		max-width: 720px;
	}

	.home-rail,
	.article-aside {
		position: static;
	}

	.story-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.related-section__grid,
	.related-section__grid .story-grid {
		grid-template-columns: 1fr;
	}

	.article-header,
	.article-shell {
		max-width: 760px;
		margin-inline: auto;
	}

	.article-aside {
		order: 2;
	}

	.toc {
		display: none;
	}

	.article-content .gallery,
	.article-content .legacy-image-gallery {
		grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
	}

	.image-lightbox {
		padding: 14px;
	}

	.image-lightbox__shell {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(0, 58vh) minmax(220px, 1fr);
		width: calc(100vw - 28px);
		height: calc(100vh - 28px);
		border-radius: 14px;
	}

	.image-lightbox__stage {
		padding: 58px 52px 28px;
	}

	.image-lightbox__details {
		padding: 22px;
		border-top: 1px solid rgba(255, 255, 255, .08);
		border-left: 0;
	}

	.image-lightbox__nav--next {
		right: 18px;
	}

	.image-lightbox__nav--prev {
		left: 18px;
	}
}

@media (max-width: 640px) {
	:root {
		--layout: min(100vw - 28px, 1120px);
	}

	.site-header__inner {
		min-height: 64px;
	}

	.brand__text span,
	.footer-brand {
		font-size: 1.5rem;
	}

	.brand__text small {
		display: none;
	}

	.home-hero,
	.section-band,
	.split-section,
	.article-layout {
		padding-block: 26px;
	}

	.featured-story h1,
	.article-header h1 {
		font-size: clamp(2rem, 11vw, 2.85rem);
		line-height: 1.08;
	}

	.featured-story__media {
		aspect-ratio: 4 / 3;
	}

	.story-card h3 {
		font-size: 1.2rem;
	}

	.story-grid,
	.story-list .story-card,
	.author-box {
		grid-template-columns: 1fr;
	}

	.article-content .gallery,
	.article-content .legacy-image-gallery,
	.magazine-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.post-gallery-section {
		padding: 20px 16px;
	}

	.gallery-section-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.article-content .gallery img,
	.article-content .legacy-image-gallery img {
		height: 100%;
		min-height: 0;
	}

	.image-lightbox__close {
		top: 8px;
		right: 8px;
	}

	.image-lightbox__stage {
		padding-inline: 18px;
	}

	.image-lightbox__nav {
		width: 42px;
		height: 42px;
		font-size: 2.35rem;
	}

	.image-lightbox__details h2 {
		font-size: 1.25rem;
	}

	.admin-bar .site-header {
		top: 46px;
	}

	.site-footer {
		padding: 34px 0;
	}

	.section-heading {
		display: grid;
		align-items: start;
	}

	.article-content {
		font-size: 1rem;
	}

	.subscribe-panel {
		padding: 22px;
	}

	.subscribe-form__row {
		grid-template-columns: 1fr;
	}

	.subscribe-form button {
		border-top: 1px solid var(--color-line);
		border-left: 0;
	}

	.contact-form__grid {
		grid-template-columns: 1fr;
	}
}
