/*
Theme Name: Latvijai Futura
Theme URI: https://latvijai.lv
Author: Latvijai.lv
Author URI: https://latvijai.lv
Description: Futūristiska, tumša WordPress tēma Latvijai.lv sabiedrisko projektu platformai. Kinētiska tipogrāfija, stikla paneļi, Latvijas karoga sarkanā akcents, projektu satura tips un pilnībā pielāgojama sākumlapa.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: latvijai-futura
Tags: dark, futuristic, custom-colors, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks, editor-style, blog, portfolio, news
*/

/* ==========================================================================
   01. Design tokens
   ========================================================================== */

:root {
	--bg: #06060a;
	--bg-elevated: #0a0a11;
	--bg-deep: #030305;
	/* Colour channels (used as rgba(var(--x-rgb), alpha)) so a whole
	   colour scheme can be swapped by redefining a handful of tokens. */
	--hi-rgb: 255, 255, 255;
	--fg-rgb: 244, 241, 234;
	--bg-rgb: 6, 6, 10;
	--elev-rgb: 10, 10, 17;
	--shadow-rgb: 0, 0, 0;
	--panel: rgba(var(--hi-rgb), 0.035);
	--panel-strong: rgba(var(--hi-rgb), 0.065);
	--line: rgba(var(--fg-rgb), 0.1);
	--line-strong: rgba(var(--fg-rgb), 0.2);
	--text: #f4f1ea;
	--text-soft: rgba(var(--fg-rgb), 0.78);
	--text-max: #fff;
	--preloader-default-bg: linear-gradient(135deg, #0a0a11, #12050a);
	color-scheme: dark;
	--muted: #9696a6;
	--red: #e11d3f;
	--red-bright: #ff3358;
	--red-deep: #8f1226;
	--flag-red: #9e1b32;
	--ice: #9fe8ff;
	--violet: #e3a23f;
	--amber: #ffb45c;
	--font-display: "Unbounded", "Space Grotesk", system-ui, sans-serif;
	--font-body: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
	--font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
	--container: 1280px;
	--gutter: clamp(1.25rem, 4vw, 2.75rem);
	--radius: 22px;
	--radius-lg: 32px;
	--header-h: 86px;
	--flag-h: 0px;
	--header-offset: calc(var(--header-h) + var(--flag-h));
	--latvian-flag-red: #9d2235;
	--latvian-flag-white: #ffffff;
	--ease: cubic-bezier(0.22, 0.68, 0.28, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--glow-red: 0 0 60px rgba(225, 29, 63, 0.28);
}

/* --------------------------------------------------------------------------
   Light colour scheme
   data-theme="light"  → always light
   data-theme="auto"   → follows the visitor's operating system setting
   -------------------------------------------------------------------------- */

:root[data-theme="light"] {
	--bg: #f6f3ee;
	--bg-elevated: #ffffff;
	--bg-deep: #ebe6de;
	--hi-rgb: 23, 20, 28;
	--fg-rgb: 23, 20, 28;
	--bg-rgb: 246, 243, 238;
	--elev-rgb: 255, 255, 255;
	--shadow-rgb: 60, 34, 44;
	--line: rgba(var(--fg-rgb), 0.13);
	--line-strong: rgba(var(--fg-rgb), 0.24);
	--text: #17141c;
	--text-max: #000;
	--muted: #5d5967;
	--red: #c8102e;
	--red-bright: #e11d3f;
	--red-deep: #8f1226;
	--ice: #0b7493;
	--violet: #9a5800;
	--amber: #a35d00;
	--glow-red: 0 0 50px rgba(200, 16, 46, 0.16);
	--preloader-default-bg: linear-gradient(135deg, #f6f3ee, #f3e4e6);
	color-scheme: light;
}

@media (prefers-color-scheme: light) {
	:root[data-theme="auto"] {
		--bg: #f6f3ee;
		--bg-elevated: #ffffff;
		--bg-deep: #ebe6de;
		--hi-rgb: 23, 20, 28;
		--fg-rgb: 23, 20, 28;
		--bg-rgb: 246, 243, 238;
		--elev-rgb: 255, 255, 255;
		--shadow-rgb: 60, 34, 44;
		--line: rgba(var(--fg-rgb), 0.13);
		--line-strong: rgba(var(--fg-rgb), 0.24);
		--text: #17141c;
		--text-max: #000;
		--muted: #5d5967;
		--red: #c8102e;
		--red-bright: #e11d3f;
		--red-deep: #8f1226;
		--ice: #0b7493;
		--violet: #9a5800;
		--amber: #a35d00;
		--glow-red: 0 0 50px rgba(200, 16, 46, 0.16);
		--preloader-default-bg: linear-gradient(135deg, #f6f3ee, #f3e4e6);
		color-scheme: light;
	}
}

/* Feature panels and card media stay dark in light mode ("dark islands"):
   they carry the theme's atmospheric artwork, so they re-declare the dark
   tokens and everything inside them renders exactly as in dark mode. */
:root[data-theme="light"] .latvia-panel,
:root[data-theme="light"] .spotlight-panel,
:root[data-theme="light"] .cta-panel,
:root[data-theme="light"] .project-media,
:root[data-theme="light"] .post-card-media {
	--bg: #06060a;
	--bg-elevated: #0a0a11;
	--bg-deep: #030305;
	--hi-rgb: 255, 255, 255;
	--fg-rgb: 244, 241, 234;
	--bg-rgb: 6, 6, 10;
	--elev-rgb: 10, 10, 17;
	--shadow-rgb: 0, 0, 0;
	--panel: rgba(255, 255, 255, 0.035);
	--panel-strong: rgba(255, 255, 255, 0.065);
	--line: rgba(244, 241, 234, 0.1);
	--line-strong: rgba(244, 241, 234, 0.2);
	--text: #f4f1ea;
	--text-soft: rgba(244, 241, 234, 0.78);
	--text-max: #fff;
	--muted: #9696a6;
	--red: #e11d3f;
	--red-bright: #ff3358;
	--ice: #9fe8ff;
	--violet: #e3a23f;
	--amber: #ffb45c;
	color-scheme: dark;
	color: var(--text);
}

@media (prefers-color-scheme: light) {
	:root[data-theme="auto"] .latvia-panel,
	:root[data-theme="auto"] .spotlight-panel,
	:root[data-theme="auto"] .cta-panel,
	:root[data-theme="auto"] .project-media,
	:root[data-theme="auto"] .post-card-media {
		--bg: #06060a;
		--bg-elevated: #0a0a11;
		--bg-deep: #030305;
		--hi-rgb: 255, 255, 255;
		--fg-rgb: 244, 241, 234;
		--bg-rgb: 6, 6, 10;
		--elev-rgb: 10, 10, 17;
		--shadow-rgb: 0, 0, 0;
		--panel: rgba(255, 255, 255, 0.035);
		--panel-strong: rgba(255, 255, 255, 0.065);
		--line: rgba(244, 241, 234, 0.1);
		--line-strong: rgba(244, 241, 234, 0.2);
		--text: #f4f1ea;
		--text-soft: rgba(244, 241, 234, 0.78);
		--text-max: #fff;
		--muted: #9696a6;
		--red: #e11d3f;
		--red-bright: #ff3358;
		--ice: #9fe8ff;
		--violet: #e3a23f;
		--amber: #ffb45c;
		color-scheme: dark;
		color: var(--text);
	}
}

/* ==========================================================================
   02. Reset
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-offset) + 1rem);
}

body {
	margin: 0;
	background-color: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	font-weight: 400;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(var(--fg-rgb), 0.028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(var(--fg-rgb), 0.028) 1px, transparent 1px);
	background-size: 88px 88px;
	-webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 20%, transparent 100%);
	mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 20%, transparent 100%);
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 45% 38% at 82% 4%, rgba(225, 29, 63, 0.13), transparent 70%),
		radial-gradient(ellipse 40% 35% at 8% 32%, rgba(227, 162, 63, 0.09), transparent 70%),
		radial-gradient(ellipse 50% 40% at 50% 108%, rgba(225, 29, 63, 0.08), transparent 70%);
}

img,
svg,
video,
canvas {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

figure {
	margin: 0;
}

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

button {
	cursor: pointer;
}

ul,
ol {
	margin: 0 0 1.5rem;
	padding-left: 1.25rem;
}

::selection {
	background: var(--red);
	color: #fff;
}

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

/* ==========================================================================
   03. Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 1rem;
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.025em;
	color: var(--text);
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.5rem, 5.4vw, 4.6rem);
	font-weight: 800;
}

h2 {
	font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

h4 {
	font-size: 1.2rem;
}

h5 {
	font-size: 1rem;
}

h6 {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

p {
	margin: 0 0 1.5rem;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--text);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	transition: color 0.25s var(--ease);
}

a:hover {
	color: var(--red-bright);
}

strong,
b {
	font-weight: 700;
	color: var(--text);
}

em,
i {
	font-style: italic;
}

small {
	font-size: 0.82rem;
}

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 3rem 0;
}

blockquote {
	margin: 2.5rem 0;
	padding: 0 0 0 1.75rem;
	border-left: 2px solid var(--red);
	font-family: var(--font-display);
	font-size: clamp(1.2rem, 2vw, 1.55rem);
	line-height: 1.5;
	color: var(--text);
}

blockquote cite {
	display: block;
	margin-top: 1rem;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	font-style: normal;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

code,
kbd,
pre,
samp {
	font-family: var(--font-mono);
	font-size: 0.88em;
}

code {
	padding: 0.15em 0.45em;
	background: rgba(var(--hi-rgb), 0.07);
	border: 1px solid var(--line);
	border-radius: 5px;
	color: var(--ice);
}

pre {
	margin: 2rem 0;
	padding: 1.5rem;
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow-x: auto;
	line-height: 1.7;
	color: var(--text-soft);
}

pre code {
	padding: 0;
	background: none;
	border: 0;
	color: inherit;
}

/* ==========================================================================
   04. Layout helpers
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: 900px;
}

.section {
	padding-block: clamp(4.5rem, 9vw, 8.5rem);
}

.section--tight {
	padding-block: clamp(3rem, 6vw, 5rem);
}

.section-head {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-line {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--line-strong), transparent);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	font-family: var(--font-mono);
	font-size: 0.66rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
}

.eyebrow-index {
	color: var(--red-bright);
}

.eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--red);
	box-shadow: 0 0 12px rgba(225, 29, 63, 0.9);
	flex: none;
}

.eyebrow--plain::before {
	display: none;
}

.accent {
	color: var(--red-bright);
}

.text-outline {
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(var(--fg-rgb), 0.62);
}

.text-gradient {
	background: linear-gradient(100deg, var(--text-max) 10%, var(--red-bright) 60%, var(--red) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.lead {
	font-size: clamp(1.15rem, 1.8vw, 1.42rem);
	line-height: 1.6;
	color: var(--text-soft);
}

.section-title {
	font-size: clamp(2.1rem, 4.8vw, 4.2rem);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.02;
	margin: 0;
}

.section-title .text-outline {
	-webkit-text-stroke-width: 1.2px;
}

/* ==========================================================================
   05. Buttons and links
   ========================================================================== */

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	padding: 1rem 1.65rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: var(--text);
	font-family: var(--font-mono);
	font-size: 0.68rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	transition:
		transform 0.35s var(--ease),
		background-color 0.35s var(--ease),
		border-color 0.35s var(--ease),
		color 0.35s var(--ease),
		box-shadow 0.35s var(--ease);
}

.btn .icon {
	width: 1rem;
	height: 1rem;
	flex: none;
	transition: transform 0.35s var(--ease);
}

.btn:hover {
	transform: translateY(-2px);
	color: var(--text);
}

.btn:hover .icon {
	transform: translate(2px, -2px);
}

.btn-primary {
	background: linear-gradient(135deg, var(--red-bright), var(--red) 55%, var(--red-deep));
	color: #fff;
	box-shadow: 0 10px 38px rgba(225, 29, 63, 0.24);
}

.btn-primary::after {
	content: "";
	position: absolute;
	top: 0;
	left: -120%;
	width: 55%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
	transform: skewX(-20deg);
	transition: left 0.65s var(--ease);
}

.btn-primary:hover::after {
	left: 150%;
}

.btn-primary:hover {
	color: #fff;
	box-shadow: 0 16px 48px rgba(225, 29, 63, 0.38);
}

.btn-ghost {
	border-color: var(--line-strong);
	background: rgba(var(--hi-rgb), 0.025);
	backdrop-filter: blur(10px);
	color: var(--text-soft);
}

.btn-ghost:hover {
	border-color: rgba(225, 29, 63, 0.6);
	background: rgba(225, 29, 63, 0.08);
	color: var(--text);
}

.btn-light {
	background: var(--text);
	color: var(--bg);
}

.btn-light:hover {
	background: var(--text-max);
	color: var(--bg);
}

.btn-sm {
	padding: 0.72rem 1.1rem;
	font-size: 0.6rem;
}

.btn-lg {
	padding: 1.15rem 2rem;
	font-size: 0.72rem;
}

.btn-block {
	width: 100%;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--font-mono);
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--text);
}

.link-arrow .icon {
	width: 0.95rem;
	height: 0.95rem;
	color: var(--red-bright);
	transition: transform 0.3s var(--ease);
}

.link-arrow:hover .icon {
	transform: translate(3px, -3px);
}

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: rgba(var(--hi-rgb), 0.025);
	color: var(--text-soft);
	transition:
		background-color 0.3s var(--ease),
		border-color 0.3s var(--ease),
		color 0.3s var(--ease),
		transform 0.3s var(--ease);
}

.icon-btn:hover {
	border-color: rgba(225, 29, 63, 0.55);
	background: rgba(225, 29, 63, 0.1);
	color: var(--text);
	transform: translateY(-2px);
}

.icon-btn .icon {
	width: 1.05rem;
	height: 1.05rem;
}

.icon {
	width: 1.25rem;
	height: 1.25rem;
	flex: none;
}

/* ==========================================================================
   06. Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
	width: 100%;
	padding: 0.9rem 1.1rem;
	background: rgba(var(--hi-rgb), 0.035);
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--text);
	font-family: var(--font-body);
	font-size: 0.95rem;
	transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

input::placeholder,
textarea::placeholder {
	color: rgba(150, 150, 166, 0.7);
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: rgba(225, 29, 63, 0.7);
	background: rgba(var(--hi-rgb), 0.055);
}

label {
	font-family: var(--font-mono);
	font-size: 0.65rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ==========================================================================
   07. Accessibility helpers
   ========================================================================== */

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

.screen-reader-text:focus {
	display: block;
	width: auto;
	height: auto;
	top: 1rem;
	left: 1rem;
	padding: 0.9rem 1.2rem;
	clip: auto;
	z-index: 100000;
	background: var(--text);
	color: var(--bg);
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-decoration: none;
	border-radius: 8px;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 100000;
	padding: 0.9rem 1.2rem;
	background: var(--text);
	color: var(--bg);
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 8px;
	transition: top 0.25s var(--ease);
}

.skip-link:focus {
	top: 1rem;
	color: var(--bg);
}

/* ==========================================================================
   08. Scroll reveal
   ========================================================================== */

/* 2.0: saturs vairs netiek slēpts līdz ritināšanai. Sākumlapas varonis
   ienāk vienreiz ielādē (assets/css/v2.css); pārējais ir redzams uzreiz. */
:where(.js .reveal) {
	opacity: 1;
}

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

@keyframes spin-reverse {
	to {
		transform: rotate(-360deg);
	}
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

@keyframes pulse-dot {
	0%,
	100% {
		opacity: 1;
		box-shadow: 0 0 0 0 rgba(225, 29, 63, 0.55);
	}
	60% {
		opacity: 0.7;
		box-shadow: 0 0 0 6px rgba(225, 29, 63, 0);
	}
}

/* ==========================================================================
   09. WordPress core classes
   ========================================================================== */

.alignleft {
	float: left;
	margin: 0.5rem 2rem 1.5rem 0;
}

.alignright {
	float: right;
	margin: 0.5rem 0 1.5rem 2rem;
}

.aligncenter {
	display: block;
	margin: 2rem auto;
}

.alignwide {
	width: min(1100px, calc(100vw - 2 * var(--gutter)));
	max-width: none;
	margin-inline: calc(50% - min(550px, calc(50vw - var(--gutter))));
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.5rem;
}

.wp-caption-text,
.wp-caption figcaption {
	margin-top: 0.75rem;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	color: var(--muted);
}

.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.gallery-item {
	margin: 0;
}

.gallery-item img {
	width: 100%;
	border-radius: 12px;
}

.sticky {
	position: relative;
}

.sticky .post-card-title::before {
	content: "★ ";
	color: var(--red-bright);
}

.bypostauthor {
	position: relative;
}

.wp-block-image img {
	border-radius: 16px;
}

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 1rem 1.65rem;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--red-bright), var(--red));
	color: #fff;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--line-strong);
	color: var(--text);
}

.wp-block-separator {
	border-color: var(--line);
}

.wp-block-quote {
	border-left-color: var(--red);
}

.wp-block-pullquote {
	border-block: 1px solid var(--line);
	padding: 2.5rem 0;
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
	padding: 0.85rem 1rem;
	border: 1px solid var(--line);
}

.wp-block-table th {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ==========================================================================
   10. Motion preferences
   ========================================================================== */

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 782px) {
	:root {
		--header-h: 74px;
	}

	.alignleft,
	.alignright {
		float: none;
		margin: 1.5rem auto;
	}

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