/*
Theme Name: Atime Stack
Theme URI: https://github.com/yourusername/atime-stack
Author: Atime Team
Author URI: https://example.com
Description: 一个简洁优雅的博客主题，灵感来自 Stack 主题。支持深色模式、响应式布局。
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atime-stack
Tags: blog, two-columns, left-sidebar, right-sidebar, custom-logo, dark-mode, responsive-layout, translation-ready

Atime Stack WordPress Theme, (C) 2024 Atime Team
Atime Stack is distributed under the terms of the GNU GPL v2 or later.
*/

/* ===== CSS Variables ===== */
:root {
  --main-top-padding: 35px;
  --body-background: #f5f5fa;
  --accent-color: #34495e;
  --accent-color-darker: #2c3e50;
  --accent-color-text: #fff;
  --body-text-color: #707070;
  --tag-border-radius: 4px;
  --section-separation: 40px;
  --scrollbar-thumb: hsl(0, 0%, 85%);
  --scrollbar-track: var(--body-background);
  --sys-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Droid Sans", "Helvetica Neue";
  --zh-font-family: "PingFang SC", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei";
  --base-font-family: "Lato", var(--sys-font-family), var(--zh-font-family), sans-serif;
  --card-background: #fff;
  --card-background-selected: #eaeaea;
  --card-text-color-main: #000;
  --card-text-color-secondary: #747474;
  --card-text-color-tertiary: #767676;
  --card-separator-color: rgba(218, 218, 218, 0.5);
  --card-border-radius: 10px;
  --card-padding: 20px;
  --small-card-padding: 25px 20px;
  --article-font-family: var(--base-font-family);
  --article-font-size: 1.6rem;
  --article-line-height: 1.85;
  --shadow-l1: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04);
  --shadow-l2: 0px 10px 20px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
  --menu-icon-separation: 40px;
  --container-padding: 15px;
  --widget-separation: var(--section-separation);
  --left-sidebar-max-width: 25%;
  --right-sidebar-max-width: 30%;
}

@media (min-width: 768px) {
  :root {
    --card-padding: 25px;
    --small-card-padding: 25px;
    --main-top-padding: 50px;
    --article-font-size: 1.7rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --card-padding: 30px;
    --left-sidebar-max-width: 20%;
    --right-sidebar-max-width: 30%;
  }
}

@media (min-width: 1536px) {
  :root {
    --left-sidebar-max-width: 15%;
    --right-sidebar-max-width: 25%;
  }
}

/* Dark Mode */
:root[data-scheme="dark"] {
  --body-background: #303030;
  --accent-color: #ecf0f1;
  --accent-color-darker: #bdc3c7;
  --accent-color-text: #000;
  --body-text-color: rgba(255, 255, 255, 0.7);
  --scrollbar-thumb: hsl(0, 0%, 40%);
  --card-background: #424242;
  --card-background-selected: rgba(255, 255, 255, 0.16);
  --card-text-color-main: rgba(255, 255, 255, 0.9);
  --card-text-color-secondary: rgba(255, 255, 255, 0.7);
  --card-text-color-tertiary: rgba(255, 255, 255, 0.5);
  --card-separator-color: rgba(255, 255, 255, 0.12);
}

/* ===== Base ===== */
html { font-size: 62.5%; overflow-y: scroll; }
* { box-sizing: border-box; }
body {
  background: var(--body-background);
  margin: 0;
  font-family: var(--base-font-family);
  font-size: 1.6rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease;
}

* { scrollbar-width: auto; scrollbar-color: var(--scrollbar-thumb) transparent; }
::-webkit-scrollbar { height: auto; }
::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb); }
::-webkit-scrollbar-track { background-color: transparent; }

a { text-decoration: none; color: var(--accent-color); }
a:hover { color: var(--accent-color-darker); }
a.link {
  box-shadow: 0 -2px rgba(189, 195, 199, 0.5) inset;
  transition: all 0.3s ease;
}
a.link:hover {
  box-shadow: 0 calc(-1rem * var(--article-line-height)) rgba(189, 195, 199, 0.7) inset;
}

/* ===== Layout ===== */
.container {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  align-items: flex-start;
  padding: 0 var(--container-padding);
  gap: var(--section-separation);
  padding-top: var(--main-top-padding);
}

@media (min-width: 768px) {
  .container { padding: 0 20px; }
}

.container .left-sidebar { order: -3; max-width: var(--left-sidebar-max-width); }
.container .right-sidebar { order: -1; max-width: var(--right-sidebar-max-width); }

@media (min-width: 1024px) {
  .container .right-sidebar { display: flex; }
}

@media (min-width: 768px) {
  .container.extended { max-width: 1024px; --left-sidebar-max-width: 25%; --right-sidebar-max-width: 30%; }
}
@media (min-width: 1024px) {
  .container.extended { max-width: 1280px; --left-sidebar-max-width: 20%; --right-sidebar-max-width: 30%; }
}
@media (min-width: 1280px) {
  .container.extended { max-width: 1536px; --left-sidebar-max-width: 15%; --right-sidebar-max-width: 25%; }
}

main.main {
  order: -2;
  min-width: 0;
  max-width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: var(--section-separation);
}

@media (min-width: 768px) {
  main.main { padding-top: var(--main-top-padding); }
}

/* ===== Hamburger Menu ===== */
.hamburger {
  padding-top: 10px;
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.15s linear;
  background-color: transparent;
  border: 0;
  margin: 0;
  overflow: visible;
}
.hamburger:hover { opacity: 0.7; }
.hamburger-box { width: 30px; height: 24px; display: inline-block; position: relative; }
.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
  width: 30px;
  height: 2px;
  background-color: var(--card-text-color-main);
  border-radius: 4px;
  position: absolute;
  transition: transform 0.15s ease;
}
.hamburger-inner::before, .hamburger-inner::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--card-text-color-main);
  border-radius: 4px;
  position: absolute;
  transition: transform 0.15s ease;
}
.hamburger-inner::before { top: -10px; }
.hamburger-inner::after { bottom: -10px; }

.hamburger--spin .hamburger-inner { transition-duration: 0.22s; }
.hamburger--spin .hamburger-inner::before { transition: top 0.1s 0.25s ease-in, opacity 0.1s ease-in; }
.hamburger--spin .hamburger-inner::after { transition: bottom 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19); }

.hamburger--spin.is-active .hamburger-inner {
  transform: rotate(225deg);
  transition-delay: 0.12s;
}
.hamburger--spin.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
  transition: top 0.1s ease-out, opacity 0.1s 0.12s ease-out;
}
.hamburger--spin.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
  transition: bottom 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}

#toggle-menu {
  background: transparent;
  border: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
  cursor: pointer;
  outline: none;
}
@media (min-width: 768px) { #toggle-menu { display: none; } }

#toggle-menu.is-active .hamburger-inner,
#toggle-menu.is-active .hamburger-inner::before,
#toggle-menu.is-active .hamburger-inner::after { background-color: var(--accent-color); }

/* ===== Left Sidebar ===== */
.left-sidebar {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-self: stretch;
  gap: var(--sidebar-element-separation, 20px);
  max-width: none;
  width: 100%;
  position: relative;
  --sidebar-avatar-size: 100px;
  --sidebar-element-separation: 20px;
}

@media (min-width: 768px) {
  .left-sidebar {
    width: auto;
    padding-top: var(--main-top-padding);
    padding-bottom: var(--main-top-padding);
    max-height: 100vh;
  }
}

@media (min-width: 1536px) {
  .left-sidebar {
    --sidebar-avatar-size: 120px;
    --sidebar-element-separation: 25px;
  }
}

.left-sidebar.sticky { top: 0; }

.sidebar header {
  z-index: 1;
  transition: box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
  gap: var(--sidebar-element-separation);
}

@media (min-width: 768px) { .sidebar header { padding: 0; } }

.sidebar header .site-avatar {
  position: relative;
  margin: 0;
  width: var(--sidebar-avatar-size);
  height: var(--sidebar-avatar-size);
  flex-shrink: 0;
}

.sidebar header .site-avatar .site-logo {
  width: 100%;
  height: 100%;
  border-radius: 100%;
  box-shadow: var(--shadow-l1);
  object-fit: cover;
}

.sidebar header .site-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.sidebar header .site-name {
  color: var(--accent-color);
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

@media (min-width: 1536px) { .sidebar header .site-name { font-size: 1.8rem; } }

.sidebar header .site-description {
  color: var(--body-text-color);
  font-weight: 400;
  margin: 0;
  font-size: 1.4rem;
}

@media (min-width: 1536px) { .sidebar header .site-description { font-size: 1.6rem; } }

/* ===== Menu ===== */
#main-menu {
  list-style: none;
  overflow-y: auto;
  flex-grow: 1;
  font-size: 1.4rem;
  background-color: var(--card-background);
  box-shadow: var(--shadow-l1);
  display: none;
  margin: 0 calc(var(--container-padding) * -1);
  padding: 30px;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 1280px) { #main-menu { padding: 15px 0; } }

#main-menu.show { display: flex; }

@media (min-width: 768px) {
  #main-menu {
    align-items: flex-end;
    display: flex;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    margin: 0;
  }
}

#main-menu li {
  position: relative;
  vertical-align: middle;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) { #main-menu li { width: 100%; } }

#main-menu li svg {
  stroke: currentColor;
  stroke-width: 1.33;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

#main-menu li a {
  height: 100%;
  display: inline-flex;
  align-items: center;
  color: var(--body-text-color);
  gap: var(--menu-icon-separation);
  transition: color 0.3s ease;
}

#main-menu li a:hover { color: var(--accent-color); }

#main-menu li span { flex: 1; }

#main-menu li.current a,
#main-menu li.current-menu-item a {
  color: var(--accent-color);
  font-weight: 700;
}

#main-menu li.menu-bottom-section { margin-top: auto; }
#main-menu li.menu-bottom-section ol,
#main-menu li.menu-bottom-section ul {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.menu-social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.menu-social svg {
  width: 24px;
  height: 24px;
  stroke: var(--body-text-color);
  stroke-width: 1.33;
}

/* ===== Dark Mode Toggle ===== */
[data-scheme="dark"] #dark-mode-toggle { color: var(--accent-color); font-weight: 700; }
[data-scheme="dark"] #dark-mode-toggle .icon-tabler-toggle-left { display: none; }
[data-scheme="dark"] #dark-mode-toggle .icon-tabler-toggle-right { display: unset; }

#dark-mode-toggle {
  margin-top: auto;
  color: var(--body-text-color);
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: var(--menu-icon-separation);
  font-size: 1.4rem;
}

#dark-mode-toggle .icon-tabler-toggle-right { display: none; }

/* ===== Right Sidebar ===== */
.right-sidebar {
  width: 100%;
  display: none;
  flex-direction: column;
  gap: var(--widget-separation);
}

.right-sidebar.sticky { top: 0; }

@media (min-width: 1024px) {
  .right-sidebar {
    display: flex;
    padding-top: var(--main-top-padding);
    padding-bottom: var(--main-top-padding);
  }
}

/* ===== Widgets ===== */
.widget {
  display: flex;
  flex-direction: column;
}

.widget .widget-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.6;
  color: var(--body-text-color);
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-title,
.widget-title {
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 10px;
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--body-text-color);
}

/* Search Widget */
.search-form { position: relative; --button-size: 80px; }
.search-form.widget { --button-size: 60px; }
.search-form.widget label { font-size: 1.3rem; top: 10px; }
.search-form.widget input { font-size: 1.5rem; padding: 30px 20px 15px; }

.search-form p,
.search-form div { position: relative; margin: 0; }
.search-form label {
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 1.4rem;
  color: var(--card-text-color-tertiary);
}

.search-form input {
  padding: 40px 20px 20px;
  border-radius: var(--card-border-radius);
  background-color: var(--card-background);
  box-shadow: var(--shadow-l1);
  color: var(--card-text-color-main);
  width: 100%;
  border: 0;
  -webkit-appearance: none;
  transition: box-shadow 0.3s ease;
  font-size: 1.8rem;
  font-family: inherit;
}

.search-form input:focus { outline: 0; box-shadow: var(--shadow-l2); }

.search-form button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: var(--button-size);
  cursor: pointer;
  background-color: transparent;
  border: 0;
  padding: 0 10px;
}

.search-form button:focus { outline: 0; }
.search-form button:focus svg { stroke-width: 2; color: var(--accent-color); }
.search-form button svg {
  color: var(--card-text-color-secondary);
  stroke-width: 1.33;
  transition: all 0.3s ease;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Archives Widget */
.widget.archives .widget-archive--list,
.widget_archive ul,
.widget_categories ul {
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-l1);
  background-color: var(--card-background);
  padding: 0;
  margin: 0;
  list-style: none;
}

.widget.archives .archives-year:not(:last-of-type),
.widget_archive ul li:not(:last-of-type),
.widget_categories ul li:not(:last-of-type) {
  border-bottom: 1.5px solid var(--card-separator-color);
}

.widget.archives .archives-year a,
.widget_archive ul li a,
.widget_categories ul li a {
  font-size: 1.4rem;
  padding: 18px 25px;
  display: flex;
  color: var(--card-text-color-main);
  text-decoration: none;
}

.widget.archives .archives-year a span.year,
.widget_archive ul li a span.year { flex: 1; color: var(--card-text-color-main); font-weight: 700; }
.widget.archives .archives-year a span.count,
.widget_archive ul li a span.count { color: var(--card-text-color-tertiary); }

.widget_archive ul li a,
.widget_categories ul li a {
  color: var(--card-text-color-main);
  font-size: 1.4rem;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
}

.widget_archive ul li a:hover,
.widget_categories ul li a:hover {
  color: var(--accent-color);
}

/* TagCloud Widget */
.tagCloud .tagCloud-tags,
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tagCloud .tagCloud-tags a,
.tagcloud a {
  background: var(--card-background);
  box-shadow: var(--shadow-l1);
  border-radius: var(--tag-border-radius);
  padding: 8px 20px;
  color: var(--card-text-color-main);
  font-size: 1.4rem;
  transition: box-shadow 0.3s ease;
  text-decoration: none;
}

.tagCloud .tagCloud-tags a:hover,
.tagcloud a:hover { box-shadow: var(--shadow-l2); }

/* ===== Article List ===== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: var(--section-separation);
}

.article-list article,
.article-list .post {
  display: flex;
  flex-direction: column;
  background-color: var(--card-background);
  box-shadow: var(--shadow-l1);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.article-list article:hover,
.article-list .post:hover { box-shadow: var(--shadow-l2); }

.article-list article .article-image img,
.article-list .post .article-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .article-list article .article-image img,
  .article-list .post .article-image img { height: 200px; }
}
@media (min-width: 1280px) {
  .article-list article .article-image img,
  .article-list .post .article-image img { height: 250px; }
}

.article-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--card-padding);
  gap: 15px;
}

.article-title {
  font-family: var(--article-font-family);
  font-weight: 600;
  margin: 0;
  color: var(--card-text-color-main);
  font-size: 2.2rem;
}

@media (min-width: 1280px) { .article-title { font-size: 2.4rem; } }

.article-title a { color: var(--card-text-color-main); text-decoration: none; }
.article-title a:hover { color: var(--card-text-color-main); }

.article-subtitle {
  font-weight: 400;
  color: var(--card-text-color-secondary);
  line-height: 1.5;
  margin: 0;
  font-size: 1.75rem;
}

@media (min-width: 1280px) { .article-subtitle { font-size: 2rem; } }

.article-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-time {
  display: flex;
  color: var(--card-text-color-tertiary);
  gap: 15px;
  flex-wrap: wrap;
}

.article-time svg {
  vertical-align: middle;
  width: 20px;
  height: 20px;
  stroke-width: 1.33;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-time time { font-size: 1.4rem; color: var(--card-text-color-tertiary); }

.article-category, .article-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-category a,
.cat-links a {
  color: var(--accent-color-text);
  background-color: var(--accent-color);
  padding: 8px 16px;
  border-radius: var(--tag-border-radius);
  display: inline-block;
  font-size: 1.4rem;
  transition: background-color 0.5s ease;
  text-decoration: none;
}

.article-category a:hover,
.cat-links a:hover {
  color: var(--accent-color-text);
  background-color: var(--accent-color-darker);
}

/* Category Colors - alternating */
.article-list article:nth-child(5n+1) .article-category a,
.article-list .post:nth-child(5n+1) .article-category a,
.article-list article:nth-child(5n+1) .cat-links a,
.article-list .post:nth-child(5n+1) .cat-links a { background: #8ea885; color: #fff; }
.article-list article:nth-child(5n+2) .article-category a,
.article-list .post:nth-child(5n+2) .article-category a,
.article-list article:nth-child(5n+2) .cat-links a,
.article-list .post:nth-child(5n+2) .cat-links a { background: #df7988; color: #fff; }
.article-list article:nth-child(5n+3) .article-category a,
.article-list .post:nth-child(5n+3) .article-category a,
.article-list article:nth-child(5n+3) .cat-links a,
.article-list .post:nth-child(5n+3) .cat-links a { background: #0177b8; color: #fff; }
.article-list article:nth-child(5n+4) .article-category a,
.article-list .post:nth-child(5n+4) .article-category a,
.article-list article:nth-child(5n+4) .cat-links a,
.article-list .post:nth-child(5n+4) .cat-links a { background: #ffb900; color: #fff; }
.article-list article:nth-child(5n+5) .article-category a,
.article-list .post:nth-child(5n+5) .article-category a,
.article-list article:nth-child(5n+5) .cat-links a,
.article-list .post:nth-child(5n+5) .cat-links a { background: #6b69d6; color: #fff; }

/* ===== Single Post ===== */
.single-post .article-details {
  padding: var(--card-padding);
}

.entry-content {
  color: var(--card-text-color-main);
  line-height: var(--article-line-height);
  font-size: var(--article-font-size);
  font-family: var(--article-font-family);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--card-border-radius);
}

.entry-content pre {
  background: var(--body-background);
  padding: 20px;
  border-radius: var(--card-border-radius);
  overflow-x: auto;
}

.entry-content blockquote {
  border-left: 4px solid var(--accent-color);
  margin-left: 0;
  padding-left: 20px;
  color: var(--card-text-color-secondary);
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
}

.pagination .page-numbers {
  background: var(--card-background);
  box-shadow: var(--shadow-l1);
  border-radius: var(--tag-border-radius);
  padding: 10px 18px;
  color: var(--card-text-color-main);
  font-size: 1.4rem;
  text-decoration: none;
  transition: box-shadow 0.3s ease;
}

.pagination .page-numbers:hover { box-shadow: var(--shadow-l2); }
.pagination .page-numbers.current {
  background: var(--accent-color);
  color: var(--accent-color-text);
  font-weight: 700;
}

/* ===== Comments ===== */
.comments-area {
  background: var(--card-background);
  box-shadow: var(--shadow-l1);
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
}

/* ===== Footer ===== */
footer.site-footer {
  padding: 20px 0 var(--section-separation);
  font-size: 1.4rem;
  line-height: 1.75;
}

footer.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  width: 50px;
  background: var(--body-text-color);
  margin-bottom: 20px;
}

footer.site-footer .copyright {
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 5px;
}

footer.site-footer .powerby {
  color: var(--body-text-color);
  font-weight: 400;
  font-size: 1.2rem;
}

footer.site-footer .powerby a { color: var(--body-text-color); }

/* ===== 404 Page ===== */
.error404 .article-details {
  text-align: center;
  padding: 60px var(--card-padding);
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .container { flex-direction: column; }
  .left-sidebar { max-width: 100%; }
  .right-sidebar { max-width: 100%; }
  main.main { padding-top: 0; }
}

@media (min-width: 768px) {
  .sidebar.sticky { position: sticky; }
  .left-sidebar.sticky { position: sticky; top: 0; }
  .right-sidebar.sticky { position: sticky; top: 0; }
}

/* ===== WordPress Core Alignments ===== */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter { display: block; margin: 5px auto 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
.wp-caption { background: var(--card-background); border-radius: var(--card-border-radius); padding: 5px; max-width: 100%; }
.wp-caption img { display: block; margin: 0 auto; }
.wp-caption-text { text-align: center; font-size: 1.2rem; color: var(--card-text-color-tertiary); padding: 5px 0; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.gallery-caption { display: block; }
.bypostauthor { display: block; }
