/*
Theme Name: Zhivio Russian
Author: Zhivio
Description: Быстрая адаптивная русскоязычная новостная тема Zhivio с главной страницей журнала, рекламными позициями и категориями News, Photo и Video.
Version: 1.2.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zhivio
Tags: blog, news, grid-layout, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
	--sm-accent: #3f7d34;
	--sm-accent-dark: #2f6427;
	--sm-ink: #17151f;
	--sm-muted: #77747d;
	--sm-border: #e8e7eb;
	--sm-soft: #f6f6f8;
	--sm-white: #fff;
	--sm-container: 1410px;
	--sm-reading: 900px;
	--sm-radius: 2px;
	--sm-shadow: 0 10px 30px rgba(20, 18, 28, 0.06);
	--sm-font: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--sm-white);
	color: var(--sm-ink);
	font-family: var(--sm-font);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.55;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

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

img {
	display: block;
	height: auto;
}

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

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

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

button,
a {
	-webkit-tap-highlight-color: transparent;
}

:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--sm-accent) 72%, white);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.7em;
	font-weight: 750;
	line-height: 1.16;
	letter-spacing: -0.025em;
}

p {
	margin: 0 0 1.35em;
}

ul,
ol {
	margin-top: 0;
}

.site-container {
	width: min(calc(100% - 48px), var(--sm-container));
	margin-inline: auto;
}

.narrow-container {
	width: min(calc(100% - 48px), var(--sm-reading));
	margin-inline: auto;
}

.site-main {
	min-height: 58vh;
}

.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,
.skip-link:focus {
	top: 12px;
	left: 12px;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	background: var(--sm-ink);
	color: var(--sm-white);
	font-weight: 700;
}

/* Header */
.site-header {
	position: relative;
	z-index: 50;
	background: var(--sm-white);
	border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.site-header__inner {
	display: grid;
	grid-template-columns: minmax(150px, 210px) minmax(0, 1fr) minmax(250px, 320px);
	align-items: center;
	gap: 34px;
	min-height: 112px;
}

.site-branding {
	display: flex;
	align-items: center;
	min-width: 0;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	width: auto;
	max-width: 180px;
	max-height: 88px;
}

.site-title {
	color: var(--sm-accent);
	font-size: clamp(25px, 2.1vw, 36px);
	font-weight: 850;
	letter-spacing: -0.045em;
	line-height: 1;
	word-break: break-word;
}

.site-description {
	display: none;
}

.primary-navigation {
	min-width: 0;
}

.primary-navigation ul,
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: clamp(24px, 3vw, 48px);
}

.primary-menu > li {
	position: relative;
}

.primary-menu a {
	display: block;
	padding: 18px 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.15;
}

.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current-cat > a {
	color: var(--sm-accent);
}

.primary-menu .sub-menu {
	position: absolute;
	top: calc(100% - 4px);
	left: -20px;
	min-width: 220px;
	padding: 10px 20px;
	background: var(--sm-white);
	box-shadow: var(--sm-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.primary-menu .sub-menu a {
	padding: 10px 0;
	font-size: 15px;
}

.header-search {
	justify-self: end;
	width: 100%;
}

.search-form {
	position: relative;
	display: flex;
	width: 100%;
	max-width: 320px;
}

.search-form label {
	display: block;
	width: 100%;
}

.search-field {
	width: 100%;
	height: 58px;
	padding: 0 58px 0 18px;
	border: 1px solid transparent;
	border-radius: 0;
	background: #f0eff3;
	color: var(--sm-ink);
	font-size: 16px;
	outline: none;
}

.search-field:focus {
	border-color: var(--sm-accent);
	background: var(--sm-white);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--sm-accent) 15%, transparent);
}

.search-submit {
	position: absolute;
	top: 0;
	right: 0;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--sm-ink);
	cursor: pointer;
}

.search-submit svg {
	width: 27px;
	height: 27px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 9px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.menu-toggle > span[aria-hidden] {
	display: block;
	width: 26px;
	height: 2px;
	margin: 5px auto;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Advertising */
.ad-slot {
	width: min(calc(100% - 48px), var(--sm-container));
	min-height: 90px;
	margin: 32px auto;
	overflow: hidden;
	text-align: center;
}

.ad-slot__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: inherit;
	overflow: hidden;
}

.ad-slot iframe,
.ad-slot img,
.ad-slot ins {
	max-width: 100% !important;
}

.ad-slot--header,
.ad-slot--article_top,
.ad-slot--archive_top {
	margin-top: 26px;
	margin-bottom: 44px;
}

.ad-slot--home_after_hero,
.ad-slot--home_feed,
.ad-slot--archive_feed,
.ad-slot--footer {
	margin-top: 60px;
	margin-bottom: 60px;
}

.ad-slot--article_inline,
.ad-slot--article_bottom {
	width: 100%;
	min-height: 250px;
	margin: 42px auto;
}

.ad-slot--sidebar {
	width: 100%;
	min-height: 280px;
	margin: 0 0 34px;
}

/* Homepage hero */
.featured-section {
	padding-top: 56px;
}

.featured-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(480px, 0.95fr);
	gap: 30px;
	align-items: start;
}

.post-thumbnail {
	display: block;
	overflow: hidden;
	background: var(--sm-soft);
}

.post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.post-thumbnail:hover img,
.post-thumbnail:focus img {
	transform: scale(1.018);
}

.post-thumbnail__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f3f5f1, #e9eee6);
}

.post-thumbnail__placeholder svg {
	width: 50px;
	fill: #a9b8a4;
}

.featured-lead__image {
	aspect-ratio: 16 / 9;
}

.featured-lead__content {
	padding-top: 14px;
}

.entry-date {
	display: block;
	margin-bottom: 8px;
	color: var(--sm-muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
}

.featured-lead__title {
	max-width: 900px;
	margin-bottom: 8px;
	font-size: clamp(26px, 2vw, 36px);
	font-weight: 800;
	line-height: 1.18;
}

.featured-lead__excerpt {
	max-width: 860px;
	color: #48454e;
	font-size: 17px;
	line-height: 1.58;
}

.featured-lead__excerpt p {
	margin-bottom: 0;
}

.featured-side {
	display: grid;
	gap: 18px;
}

.featured-side__item {
	display: grid;
	grid-template-columns: minmax(190px, 0.88fr) minmax(0, 1fr);
	gap: 28px;
	align-items: center;
}

.featured-side__image {
	aspect-ratio: 16 / 9;
}

.featured-side__item h2 {
	margin: 0;
	font-size: clamp(17px, 1.25vw, 21px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
}

/* Story feeds */
.feed-section {
	padding-top: 72px;
	padding-bottom: 90px;
}

.section-title {
	margin-bottom: 32px;
	font-size: clamp(30px, 3vw, 48px);
	font-weight: 850;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 58px 36px;
}

.story-card {
	min-width: 0;
	text-align: left;
	content-visibility: auto;
	contain-intrinsic-size: auto 410px;
}

.story-card__image {
	aspect-ratio: 16 / 9;
}

.story-card__content {
	padding-top: 14px;
}

.story-card__title {
	margin: 0;
	font-size: clamp(17px, 1.22vw, 20px);
	font-weight: 700;
	line-height: 1.42;
	letter-spacing: -0.012em;
}

/* Archives */
.archive-main {
	padding-bottom: 90px;
}

.archive-header {
	max-width: 860px;
	margin: 72px auto 54px;
	text-align: center;
}

.archive-title {
	margin: 22px 0 0;
	font-size: clamp(42px, 5.2vw, 70px);
	font-weight: 850;
	line-height: 1.05;
}

.archive-description {
	margin-top: 18px;
	color: var(--sm-muted);
}

.archive-description p:last-child {
	margin-bottom: 0;
}

.archive-main .story-card {
	text-align: center;
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	color: #5f5b65;
	font-size: 15px;
	line-height: 1.4;
}

.archive-header .breadcrumb {
	justify-content: center;
}

.navigation.pagination {
	margin-top: 72px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 43px;
	height: 43px;
	padding: 0 10px;
	border: 1px solid transparent;
	font-size: 16px;
}

.page-numbers.current {
	background: var(--sm-accent);
	color: var(--sm-white);
}

a.page-numbers:hover,
a.page-numbers:focus {
	border-color: var(--sm-accent);
	color: var(--sm-accent);
}

/* Article */
.single-main {
	padding-bottom: 90px;
}

.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 930px) minmax(260px, 330px);
	justify-content: space-between;
	gap: clamp(48px, 6vw, 100px);
	padding-top: 68px;
}

.single-layout--wide {
	grid-template-columns: minmax(0, 930px);
	justify-content: center;
}

.single-article,
.page-article {
	min-width: 0;
}

.entry-header {
	margin-bottom: 42px;
}

.entry-header .breadcrumb {
	margin-bottom: 26px;
}

.entry-title {
	margin-bottom: 22px;
	font-size: clamp(40px, 4.2vw, 66px);
	font-weight: 850;
	line-height: 1.08;
	letter-spacing: -0.04em;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--sm-muted);
	font-size: 15px;
}

.single-featured-image {
	margin: 0 0 34px;
}

.single-featured-image img {
	width: 100%;
}

.single-featured-image figcaption,
.wp-caption-text,
.blocks-gallery-caption {
	margin-top: 8px;
	color: var(--sm-muted);
	font-size: 13px;
	line-height: 1.45;
}

.entry-content {
	font-size: clamp(17px, 1.22vw, 20px);
	line-height: 1.75;
}

.entry-content > * {
	max-width: 100%;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin-bottom: 1.45em;
}

.entry-content h2 {
	margin-top: 1.75em;
	margin-bottom: 0.7em;
	font-size: clamp(29px, 2.7vw, 40px);
}

.entry-content h3 {
	margin-top: 1.6em;
	font-size: clamp(24px, 2.1vw, 31px);
}

.entry-content a {
	color: var(--sm-accent-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content img,
.entry-content figure,
.entry-content .wp-block-image {
	margin-top: 2em;
	margin-bottom: 2em;
}

.entry-content blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 26px;
	border-left: 5px solid var(--sm-accent);
	font-size: 1.18em;
	font-weight: 600;
	line-height: 1.55;
}

.entry-content table {
	display: block;
	width: 100%;
	margin: 2em 0;
	overflow-x: auto;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 12px 14px;
	border: 1px solid var(--sm-border);
	text-align: left;
}

.entry-content .alignwide {
	width: min(1100px, calc(100vw - 48px));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 48px;
	padding-top: 22px;
	border-top: 1px solid var(--sm-border);
	font-size: 14px;
}

.tag-label {
	font-weight: 700;
}

.tag-links a {
	display: inline-block;
	margin: 0 7px 7px 0;
	padding: 4px 9px;
	background: var(--sm-soft);
}

.article-sidebar__sticky {
	position: sticky;
	top: 24px;
}

.widget {
	margin-bottom: 34px;
	padding: 22px;
	background: var(--sm-soft);
}

.widget-title {
	font-size: 21px;
}

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

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

.post-navigation {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	margin-top: 54px;
	padding-top: 28px;
	border-top: 1px solid var(--sm-border);
}

.post-navigation__next {
	text-align: right;
}

.post-navigation span {
	display: block;
	margin-bottom: 6px;
	color: var(--sm-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.post-navigation a {
	font-weight: 700;
}

.related-stories {
	margin-top: 100px;
	padding-top: 58px;
	border-top: 1px solid var(--sm-border);
}

/* Pages, errors, forms, and comments */
.page-main {
	padding: 82px 0 100px;
}

.error-main {
	display: grid;
	place-items: center;
	padding: 90px 0;
	text-align: center;
}

.error-code {
	margin: 0;
	color: var(--sm-accent);
	font-size: clamp(80px, 14vw, 180px);
	font-weight: 900;
	letter-spacing: -0.08em;
	line-height: 0.9;
}

.error-404 h1 {
	font-size: clamp(32px, 4vw, 52px);
}

.error-404 .search-form,
.no-results .search-form {
	margin: 30px auto;
}

.button-link,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	background: var(--sm-accent);
	color: var(--sm-white);
	font-weight: 700;
	cursor: pointer;
}

.button-link:hover,
.button-link:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
	background: var(--sm-accent-dark);
	color: var(--sm-white);
}

.no-results {
	grid-column: 1 / -1;
	padding: 50px 0;
	text-align: center;
}

.comments-wrap {
	margin-top: 80px;
}

.comments-area {
	max-width: 930px;
}

.comments-title,
.comment-reply-title {
	font-size: 30px;
}

.comment-list {
	list-style: none;
	margin: 32px 0;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin-left: 34px;
}

.comment-body {
	margin-bottom: 24px;
	padding: 24px;
	background: var(--sm-soft);
}

.comment-meta {
	font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cbc9d0;
	background: var(--sm-white);
}

textarea {
	min-height: 150px;
	resize: vertical;
}

/* Footer */
.site-footer {
	background: #f7f7f8;
}

.site-footer__accent {
	height: 24px;
	background: var(--sm-accent);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 1.05fr 1.1fr 0.9fr 1fr;
	gap: 50px;
	padding-top: 64px;
	padding-bottom: 70px;
}

.footer-column h2 {
	margin-bottom: 14px;
	color: var(--sm-accent);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: 0;
}

.footer-column p {
	margin-bottom: 12px;
	font-size: 15px;
}

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

.footer-column li + li {
	margin-top: 7px;
}

.footer-column a {
	font-size: 15px;
}

.footer-menu {
	margin-top: 16px;
}

/* Responsive */
@media (max-width: 1180px) {
	.site-header__inner {
		grid-template-columns: 170px minmax(0, 1fr) 250px;
		gap: 24px;
	}

	.primary-menu {
		gap: 24px;
	}

	.primary-menu a {
		font-size: 16px;
	}

	.featured-layout {
		grid-template-columns: minmax(0, 1fr) minmax(400px, 0.92fr);
	}

	.featured-side__item {
		grid-template-columns: 165px minmax(0, 1fr);
		gap: 18px;
	}

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

	.single-layout {
		grid-template-columns: minmax(0, 1fr) 280px;
		gap: 54px;
	}
}

@media (max-width: 920px) {
	.site-header__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		min-height: 88px;
	}

	.site-branding {
		grid-column: 1;
		grid-row: 1;
	}

	.menu-toggle {
		position: relative;
		z-index: 2;
		display: block;
		grid-column: 2;
		grid-row: 1;
	}

	.menu-toggle[aria-expanded="true"] > span:nth-of-type(2) {
		transform: translateY(7px) rotate(45deg);
	}

	.menu-toggle[aria-expanded="true"] > span:nth-of-type(3) {
		opacity: 0;
	}

	.menu-toggle[aria-expanded="true"] > span:nth-of-type(4) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.primary-navigation {
		position: fixed;
		inset: 0;
		display: none;
		padding: 115px 28px 40px;
		overflow-y: auto;
		background: var(--sm-white);
	}

	.primary-navigation.is-open {
		display: block;
	}

	.primary-menu {
		display: block;
	}

	.primary-menu a {
		padding: 13px 0;
		font-size: 24px;
	}

	.primary-menu .sub-menu {
		position: static;
		display: block;
		padding: 0 0 0 18px;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.primary-menu .sub-menu a {
		font-size: 17px;
	}

	.header-search {
		position: fixed;
		z-index: 52;
		top: 26px;
		right: 82px;
		display: none;
		width: min(300px, calc(100vw - 170px));
	}

	.menu-open .header-search {
		display: block;
	}

	.featured-layout {
		grid-template-columns: 1fr;
		gap: 42px;
	}

	.featured-side {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px;
	}

	.featured-side__item {
		display: block;
	}

	.featured-side__content {
		padding-top: 12px;
	}

	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 44px 28px;
	}

	.single-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 64px;
	}

	.article-sidebar__sticky {
		position: static;
	}

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

@media (max-width: 600px) {
	.site-container,
	.narrow-container,
	.ad-slot {
		width: min(calc(100% - 32px), var(--sm-container));
	}

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

	.custom-logo {
		max-width: 140px;
		max-height: 64px;
	}

	.site-title {
		font-size: 26px;
	}

	.featured-section {
		padding-top: 30px;
	}

	.featured-lead__title {
		font-size: 26px;
	}

	.featured-lead__excerpt {
		display: none;
	}

	.featured-side {
		grid-template-columns: 1fr;
	}

	.featured-side__item {
		display: grid;
		grid-template-columns: 132px minmax(0, 1fr);
		gap: 15px;
	}

	.featured-side__content {
		padding-top: 0;
	}

	.featured-side__item h2 {
		font-size: 16px;
		line-height: 1.28;
	}

	.featured-side .entry-date {
		font-size: 12px;
	}

	.feed-section {
		padding-top: 52px;
		padding-bottom: 68px;
	}

	.section-title {
		font-size: 32px;
	}

	.post-grid {
		grid-template-columns: 1fr;
		gap: 38px;
	}

	.story-card__title {
		font-size: 19px;
	}

	.archive-header {
		margin-top: 46px;
		margin-bottom: 38px;
	}

	.archive-title {
		font-size: 43px;
	}

	.single-layout {
		padding-top: 46px;
	}

	.entry-header {
		margin-bottom: 30px;
	}

	.entry-title {
		font-size: 38px;
	}

	.entry-content {
		font-size: 17px;
		line-height: 1.7;
	}

	.entry-content .alignwide {
		width: calc(100vw - 32px);
	}

	.post-navigation {
		grid-template-columns: 1fr;
	}

	.post-navigation__next {
		text-align: left;
	}

	.related-stories {
		margin-top: 70px;
	}

	.ad-slot {
		min-height: 70px;
		margin-top: 28px;
		margin-bottom: 36px;
	}

	.ad-slot--article_inline,
	.ad-slot--article_bottom,
	.ad-slot--sidebar {
		min-height: 220px;
	}

	.site-footer__accent {
		height: 14px;
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
		gap: 34px;
		padding-top: 46px;
		padding-bottom: 50px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* WordPress core alignment helpers */
.alignleft {
	float: left;
	margin-right: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

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

.sticky,
.bypostauthor,
.gallery-caption {
	display: block;
}


/* Zhivio v1.2: latest news + tags */
.home-tags {
	padding-top: 46px;
}

.section-title--compact {
	margin-bottom: 22px;
	font-size: clamp(26px, 3vw, 38px);
}

.tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tag-cloud a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 7px 13px;
	border: 1px solid var(--sm-border);
	border-radius: 999px;
	background: var(--sm-white);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.tag-cloud a:hover,
.tag-cloud a:focus-visible {
	border-color: var(--sm-accent);
	color: var(--sm-accent);
}

.sidebar-block + .sidebar-block,
.sidebar-block + .widget,
.widget + .sidebar-block {
	margin-top: 38px;
}

.sidebar-latest__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: zhivio-latest;
}

.sidebar-latest__list li {
	position: relative;
	padding: 15px 0 15px 34px;
	border-bottom: 1px solid var(--sm-border);
	counter-increment: zhivio-latest;
}

.sidebar-latest__list li::before {
	position: absolute;
	top: 15px;
	left: 0;
	color: var(--sm-accent);
	font-weight: 800;
	content: counter(zhivio-latest, decimal-leading-zero);
}

.sidebar-latest__list a {
	display: block;
	font-weight: 750;
	line-height: 1.35;
	text-decoration: none;
}

.sidebar-latest__list time {
	display: block;
	margin-top: 6px;
	color: var(--sm-muted);
	font-size: 12px;
}

.tag-cloud--sidebar {
	gap: 8px;
}

.tag-cloud--sidebar a {
	min-height: 34px;
	padding: 6px 10px;
	font-size: 13px;
}

@media (max-width: 600px) {
	.home-tags {
		padding-top: 34px;
	}
}
