html {
  font-size: 62.5%;
}

.language-control {
  position: relative;
  z-index: 50;
  font-size: 1.25rem;
  color: #666;
}
.language-toggle {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #777;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.translation-icon { width: 2rem; height: 2rem; fill: currentColor; }
.language-toggle:hover, .language-toggle[aria-expanded="true"] {
  background: rgba(51, 51, 51, 0.06);
  color: #333;
}
.language-toggle[aria-busy="true"] { animation: translation-pulse 1.1s ease-in-out infinite; }
@keyframes translation-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
  .language-toggle[aria-busy="true"] { animation: none; opacity: 0.5; }
}
.language-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 16rem;
  padding: 0.6rem;
  border: 1px solid rgba(51, 51, 51, 0.08);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(51, 51, 51, 0.1);
}
.language-options button {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  color: #555;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.language-options button:hover, .language-options button[aria-pressed="true"] { background: #f3f3f3; color: #222; }
.language-control button:focus-visible {
  outline: 2px solid #1a4f8c;
  outline-offset: 3px;
}
.translation-feedback {
  margin: 0.5rem 0.6rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #777;
}
#translation-retry {
  border: 0;
  background: transparent;
  color: #1a4f8c;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}
html:lang(zh-Hant) body {
  font-family: "Noto Serif TC", "Songti TC", "Songti SC", serif;
}
html:lang(ja) body {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
html:lang(en) body {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
}

:root {
  --frame-width: min(84rem, calc(100vw - 8rem));
  --content-width: min(64rem, calc(100vw - 8rem));
  --reading-width: min(84rem, calc(100vw - 6rem));
  --surface-shadow: 0 14px 36px rgba(51, 51, 51, 0.08);
}

body {
  margin: 0;
  background: #f1f1f1;
  color: #333;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 1.5rem;
  line-height: 1.8;
  overflow-x: hidden;
}

body::before {
  background-color: #fff;
  content: "";
  display: block;
  height: 100%;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 25%;
  z-index: 0;
}

body.sidebar-collapsed::before {
  width: 9.6rem;
}

a {
  color: #333;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #000;
}

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

[hidden] {
  display: none !important;
}

.zoomable-image {
  cursor: zoom-in;
}

.image-lightbox {
  align-items: center;
  background: rgba(17, 17, 17, 0.88);
  cursor: zoom-out;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 2.4rem;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.18s ease;
  z-index: 9999;
}

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

.image-lightbox-stage {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  overflow: hidden;
  position: relative;
  touch-action: none;
  width: 100%;
}

.image-lightbox img {
  border-radius: 1.2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backface-visibility: hidden;
  display: block;
  height: auto;
  max-height: none;
  max-width: none;
  transform-origin: center center;
  transition: none;
  user-select: none;
  will-change: transform;
  -webkit-user-drag: none;
  width: auto;
}

.image-lightbox.is-panning,
.image-lightbox.is-zoomed {
  cursor: grab;
}

.image-lightbox.is-panning .image-lightbox-stage,
.image-lightbox.is-zoomed .image-lightbox-stage {
  cursor: grab;
}

.image-lightbox-close,
.image-lightbox-original {
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  padding: 1rem 1.2rem;
  position: absolute;
  top: max(1.6rem, env(safe-area-inset-top));
  z-index: 2;
}

.image-lightbox-close {
  right: max(1.6rem, env(safe-area-inset-right));
}

.image-lightbox-original {
  left: max(1.6rem, env(safe-area-inset-left));
  text-decoration: none;
}

.image-lightbox-original:hover,
.image-lightbox-original:focus {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  left: -9999px;
}

.site {
  position: relative;
  min-height: 100vh;
  padding-bottom: 4.8rem;
}

.sidebar {
  margin: 0 auto;
  max-width: var(--frame-width);
  padding-top: 3.2rem;
  position: relative;
  width: 100%;
  z-index: 1;
}

.site-header {
  padding: 0 0 1.2rem;
}

.site-branding {
  min-height: 5.6rem;
  position: relative;
  text-align: center;
}

.custom-logo-link {
  display: inline-block;
}

.custom-logo {
  display: block;
  margin: 0 auto;
  max-height: 5rem;
  width: auto;
}

.site-title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.4rem 0 0;
}

.site-title a {
  color: #333;
}

.site-title {
  display: none;
}

.site-description {
  color: rgba(51, 51, 51, 0.7);
  font-size: 1.3rem;
  margin: 0.8rem 0 0;
}

body.sidebar-collapsed .site-title,
body.sidebar-collapsed .secondary {
  display: none;
}

body.sidebar-collapsed .site-branding {
  padding-right: 0;
  text-align: center;
}

body.sidebar-collapsed .custom-logo {
  margin: 0 auto;
  max-height: 5.6rem;
}

body.sidebar-collapsed .site-header {
  padding: 2rem 1rem 1.2rem;
}

body.sidebar-collapsed .site-branding {
  min-height: auto;
  padding-bottom: 3rem;
}

body.sidebar-collapsed .secondary {
  display: block;
  padding: 0 1rem 1.4rem;
}

body.sidebar-collapsed .main-navigation a {
  font-size: 1.3rem;
  line-height: 1.4;
  padding: 1rem 0;
  text-align: center;
}

body.sidebar-collapsed .menu-item-row {
  display: block;
}

body.sidebar-collapsed .submenu-toggle,
body.sidebar-collapsed .sub-menu {
  display: none !important;
}

.secondary-toggle {
  appearance: none;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(51, 51, 51, 0.12);
  border-radius: 999px;
  color: transparent;
  cursor: pointer;
  display: block;
  flex: 0 0 auto;
  font-size: 0;
  height: 4.4rem;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 4.4rem;
  backdrop-filter: blur(10px);
}

.secondary-toggle::before,
.secondary-toggle::after {
  background: #333;
  content: "";
  height: 1px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  width: 1.6rem;
}

.secondary-toggle::before {
  box-shadow: 0 -0.5rem 0 #333, 0 0.5rem 0 #333;
}

.secondary-toggle.toggled-on::before {
  box-shadow: none;
  transform: translate(-50%, -50%) rotate(45deg);
}

.secondary-toggle.toggled-on::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.secondary {
  background-color: #fff;
  border-radius: 1.8rem;
  box-shadow: var(--surface-shadow);
  display: none;
  padding: 0 2.4rem 2rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.8rem);
  width: min(26rem, calc(100vw - 4rem));
  z-index: 5;
}

.secondary.toggled-on {
  display: block;
}

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

.main-navigation li {
  border-top: 1px solid rgba(51, 51, 51, 0.1);
  position: relative;
}

.main-navigation li:first-child {
  border-top: 0;
}

.main-navigation a {
  display: block;
  padding: 0.8em 0;
}

.menu-item-row {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.menu-item-row > a {
  flex: 1;
}

.submenu-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(51, 51, 51, 0.55);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 1.2rem;
  height: 3.2rem;
  padding: 0 0.2rem;
  position: relative;
  text-indent: -9999px;
  width: 2.6rem;
}

.submenu-toggle::before {
  content: "+";
  inset: 0;
  line-height: 3.2rem;
  position: absolute;
  text-align: center;
  text-indent: 0;
}

.menu-item-has-children.open .submenu-toggle::before {
  content: "−";
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
  font-weight: 700;
}

.main-navigation .sub-menu {
  border-top: 1px solid rgba(51, 51, 51, 0.1);
  display: none;
  margin: 0 0 0 1.2rem;
  padding-top: 0.8em;
}

.main-navigation .menu-item-has-children.open > .sub-menu {
  display: block;
}

.site-content {
  display: block;
  margin-left: 0;
}

.content-area {
  float: none;
  margin: 0 auto;
  max-width: var(--content-width);
  width: 100%;
}

.site-main {
  padding-top: 3.2rem;
  padding-bottom: 4rem;
}

.hentry,
.page.type-page {
  background-color: #fff;
  border-radius: 1.8rem;
  box-shadow: var(--surface-shadow);
  overflow: hidden;
  position: relative;
}

.layout-home .hentry {
  margin: 0 0 2.6rem;
}

.layout-home .hentry + .hentry {
  border-top: 0;
}

.layout-category_archive .hentry {
  margin: 0 0 2.6rem;
}

.layout-category_archive .hentry + .hentry {
  border-top: 0;
}

.layout-home .entry-header {
  padding-top: 1rem;
}

.layout-category_archive .entry-header {
  padding-top: 1rem;
}

.layout-home .entry-title {
  padding-bottom: 1.6rem;
}

.layout-category_archive .entry-title {
  padding-bottom: 1.6rem;
}

.layout-home .entry-content {
  padding-bottom: 3.2rem;
}

.layout-category_archive .entry-content {
  padding-bottom: 3.2rem;
}

.layout-home .entry-cover {
  display: none;
}

.home-posts {
  display: block;
}

.home-pagination {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 3.2rem auto 0;
  padding: 0.5rem;
  border: 1px solid rgba(51, 51, 51, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(51, 51, 51, 0.035);
}

.home-pagination-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.home-pagination-actions:empty { display: none; }

.home-pagination-list {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-pagination-list .home-pagination-link {
  box-sizing: border-box;
  width: 3.4rem;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}

.home-pagination-link {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(51, 51, 51, 0.82);
  display: inline-flex;
  font-size: 1.15rem;
  justify-content: center;
  line-height: 1;
  min-width: 3.2rem;
  padding: 0.85rem 1rem;
  text-align: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.home-pagination-link:hover,
.home-pagination-link:focus {
  background: #f0f0f0;
  color: #111;
  transform: translateY(-1px);
}

.home-pagination-link.is-current,
.home-pagination-link[aria-current="page"] {
  background: #333;
  border-color: #333;
  color: #fff;
}

.home-pagination-link.is-disabled,
.home-pagination-link[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  color: rgba(51, 51, 51, 0.34);
  pointer-events: none;
  transform: none;
}

.home-pagination-arrow {
  min-width: 5.8rem;
}

.archive-posts {
  display: block;
}

.layout-category_archive .entry-cover {
  display: none;
}

.archive-pagination {
  margin-top: 0.8rem;
}

.layout-post .hentry,
.layout-page .hentry,
.layout-categories .hentry {
  margin: 0 0 2.6rem;
}

.layout-category_archive .archive-empty {
  box-shadow: none;
}

.archive-heading {
  margin: 0 0 2rem;
  padding: 0 0.6rem;
}

.archive-title {
  font-size: 2.8rem;
  line-height: 1.2;
  margin: 0;
}

.layout-gallery .content-area,
.layout-gallery_map .content-area {
  max-width: min(112rem, calc(100vw - 4rem));
}

.gallery-heading {
  margin-bottom: 2.6rem;
}

.gallery-refresh-button {
  appearance: none;
  background: #333;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.28rem;
  line-height: 1;
  padding: 0.95rem 1.35rem;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.gallery-refresh-button:hover,
.gallery-refresh-button:focus {
  background: #111;
  transform: translateY(-1px);
}

.gallery-stats-button,
.gallery-action-link,
.gallery-map-back-link {
  appearance: none;
  background: #333;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 1.14rem;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0.7rem 1rem;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.gallery-stats-button:hover,
.gallery-stats-button:focus,
.gallery-action-link:hover,
.gallery-action-link:focus,
.gallery-map-back-link:hover,
.gallery-map-back-link:focus {
  background: #111;
  transform: translateY(-1px);
}

.gallery-action-button {
  min-height: 3.1rem;
  min-width: 3.1rem;
  padding: 0.7rem;
}

.gallery-action-icon {
  display: block;
  height: 1.55rem;
  width: 1.55rem;
}

.gallery-kicker {
  color: rgba(51, 51, 51, 0.56);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.gallery-stats {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.gallery-stats > * {
  align-items: center;
  box-sizing: border-box;
  justify-content: center;
  min-height: 3.2rem;
  white-space: nowrap;
}

.gallery-stats > span {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(51, 51, 51, 0.12);
  border-radius: 999px;
  color: rgba(51, 51, 51, 0.72);
  display: inline-flex;
  font-size: 1.14rem;
  line-height: 1;
  padding: 0.7rem 1rem;
}

.gallery-mobile-refresh-wrap {
  display: none;
}

.gallery-panel {
  background: #fff;
  border-radius: 2rem;
  box-shadow: var(--surface-shadow);
  overflow: hidden;
  padding: 2.4rem;
}

.gallery-pagination-wrap {
  display: block;
}

/* The photo map is a viewport-sized scene; other pages keep the blog layout. */
body.layout-gallery_map {
  background: #0b111b;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}
body.layout-gallery_map::before,
.layout-gallery_map .sidebar { display: none; }
.layout-gallery_map #page,
.layout-gallery_map .site-content,
.layout-gallery_map .content-area,
.layout-gallery_map .site-main {
  height: 100%;
  margin: 0;
  max-width: none;
  padding: 0;
  width: 100%;
}
.gallery-earth {
  background: #0b111b;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  position: fixed;
}
.gallery-map-stage { inset: 0; position: absolute; }
.layout-gallery_map .gallery-map-canvas {
  background: #0b111b;
  border: 0;
  border-radius: 0;
  height: 100%;
  width: 100%;
}
.gallery-map-canvas .mapboxgl-canvas:focus-visible { outline: 2px solid #a6cadf; outline-offset: -3px; }
.gallery-map-canvas .mapboxgl-ctrl-bottom-left { left: 1.2rem; bottom: 0.8rem; }
.gallery-map-canvas .mapboxgl-ctrl-bottom-right { right: 1.2rem; bottom: 0.8rem; }
.gallery-map-canvas .mapboxgl-ctrl-attrib { font-size: 1rem; }
.gallery-map-canvas .mapboxgl-ctrl-attrib a { color: #315b6b; }

.gallery-earth-back,
.gallery-earth-theme,
.gallery-earth-close {
  align-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  height: 3.8rem;
  justify-content: center;
  padding: 0;
  width: 3.8rem;
}
.gallery-earth-back,
.gallery-earth-theme,
.gallery-earth-overview {
  backdrop-filter: blur(16px);
  background: rgba(16, 24, 35, 0.78);
  border: 1px solid rgba(210, 228, 241, 0.13);
  color: #dce8f2;
  height: 4.4rem;
  position: absolute;
  top: max(2.4rem, env(safe-area-inset-top));
  width: 4.4rem;
  z-index: 10;
}
.gallery-earth-back { left: max(2.4rem, env(safe-area-inset-left)); }
.gallery-earth-actions { align-items: center; display: flex; gap: 0.8rem; position: absolute; right: max(2.4rem, env(safe-area-inset-right)); top: max(2.4rem, env(safe-area-inset-top)); z-index: 10; }
.gallery-earth-actions > button { position: static; }
.gallery-earth-theme { border-radius: 50%; }
.gallery-earth .gallery-earth-icon-sun { display: none; }
.gallery-earth[data-map-theme="dark"] .gallery-earth-icon-sun { display: block; }
.gallery-earth[data-map-theme="dark"] .gallery-earth-icon-moon { display: none; }
.gallery-earth-overview { align-items: center; border-radius: 999px; cursor: pointer; display: flex; font: inherit; font-size: 1.2rem; gap: 0.8rem; padding: 0 1.4rem; width: auto; }
.gallery-earth-back:hover,
.gallery-earth-theme:hover,
.gallery-earth-overview:hover { background: rgba(32, 44, 60, 0.9); color: #fff; }
.gallery-earth-back svg,
.gallery-earth-theme svg,
.gallery-earth-overview svg,
.gallery-earth-close svg {
  fill: none;
  height: 2rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 2rem;
}
.gallery-earth button:focus-visible,
.gallery-earth a:focus-visible { outline: 2px solid #a6cadf; outline-offset: 3px; }

.gallery-map-status {
  background: rgba(16, 24, 35, 0.94);
  border: 1px solid rgba(210, 228, 241, 0.13);
  border-radius: 1.2rem;
  color: #dce8f2;
  font-size: 1.3rem;
  left: 50%;
  line-height: 1.6;
  margin: 0;
  max-width: calc(100% - 4rem);
  padding: 1.2rem 1.6rem;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  z-index: 2;
}
.gallery-map-hover-popup .mapboxgl-popup-content { border-radius: 0.8rem; color: #315b6b; font-size: 1.15rem; padding: 0.6rem 1rem; }

.gallery-map-detail {
  background: rgba(250, 250, 248, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.8rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 12.8rem);
  overflow: hidden;
  position: absolute;
  right: max(2.4rem, env(safe-area-inset-right));
  top: max(8.4rem, calc(env(safe-area-inset-top) + 6rem));
  width: 32rem;
  z-index: 10;
}
.gallery-earth-detail-bar { align-items: center; display: flex; flex-shrink: 0; padding-right: 0.6rem; }
.gallery-map-detail-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #315b6b;
  cursor: pointer;
  display: flex;
  flex: 1;
  font: inherit;
  font-size: 1.2rem;
  gap: 1rem;
  justify-content: space-between;
  min-width: 0;
  padding: 1.4rem 1.6rem;
  text-align: left;
}
.gallery-map-detail-toggle > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-map-chevron { transform: rotate(180deg); }
.gallery-map-detail.is-collapsed .gallery-map-chevron { transform: none; }
.gallery-map-detail.is-collapsed .gallery-map-detail-content { display: none; }
.gallery-earth-close { color: #617680; }
.gallery-earth-close:hover { background: rgba(39, 87, 105, 0.08); }
.gallery-map-detail-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 1.6rem 1.6rem; }
.gallery-map-cover { margin: 0 0 1.6rem; }
.gallery-map-cover img { aspect-ratio: 16 / 10; border-radius: 1.2rem; cursor: zoom-in; display: block; object-fit: cover; width: 100%; }

@media screen and (max-width: 48em) {
  .gallery-earth-back { left: max(1.2rem, env(safe-area-inset-left)); top: max(1.2rem, env(safe-area-inset-top)); }
  .gallery-earth-actions { right: max(1.2rem, env(safe-area-inset-right)); top: max(1.2rem, env(safe-area-inset-top)); }
  .gallery-map-detail { bottom: max(4.4rem, calc(env(safe-area-inset-bottom) + 3.2rem)); left: 1.2rem; max-height: 44dvh; right: 1.2rem; top: auto; width: auto; }
  .gallery-map-detail-content { padding: 0 1.4rem 1.4rem; }
  .gallery-map-cover img { aspect-ratio: 16 / 9; }
}

.gallery-map-detail-header {
  margin-bottom: 1.2rem;
}

.gallery-map-eyebrow {
  color: rgba(51, 51, 51, 0.52);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

.gallery-map-place {
  font-size: 2.3rem;
  line-height: 1.16;
  margin: 0;
}

.gallery-map-place-subtitle {
  align-items: center;
  color: rgba(51, 51, 51, 0.68);
  display: flex;
  flex-wrap: wrap;
  font-size: 1.24rem;
  gap: 0.7rem;
  line-height: 1.6;
  margin: 0.75rem 0 0;
}

.gallery-map-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.gallery-map-summary span {
  background: rgba(246, 248, 250, 0.96);
  border: 1px solid rgba(51, 51, 51, 0.09);
  border-radius: 999px;
  color: rgba(51, 51, 51, 0.72);
  display: inline-flex;
  font-size: 1.12rem;
  line-height: 1;
  padding: 0.7rem 0.95rem;
}

.gallery-map-posts {
  display: grid;
  gap: 0.8rem;
}

.gallery-map-post-link {
  background: rgba(248, 248, 247, 0.95);
  border: 1px solid rgba(51, 51, 51, 0.08);
  border-radius: 1.3rem;
  color: #333;
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
}

.gallery-map-post-link:hover,
.gallery-map-post-link:focus {
  background: rgba(240, 245, 250, 0.98);
}

.gallery-map-post-title {
  font-size: 1.32rem;
  line-height: 1.45;
}

.gallery-map-post-meta {
  color: rgba(51, 51, 51, 0.58);
  font-size: 1.08rem;
  line-height: 1.5;
}

.gallery-map-thumbs {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.4rem;
}

.gallery-map-thumb {
  margin: 0;
}

.gallery-map-thumb img {
  aspect-ratio: 4 / 3;
  border-radius: 1.2rem;
  display: block;
  object-fit: cover;
  width: 100%;
}

.gallery-map-thumb figcaption {
  color: rgba(51, 51, 51, 0.7);
  font-size: 1.08rem;
  line-height: 1.55;
  margin-top: 0.55rem;
}

.gallery-pagination {
  margin-top: 2rem;
}

.layout-gallery .gallery-pagination {
  display: none;
}

.gallery-grid {
  column-gap: 1.6rem;
  columns: 1;
}

.gallery-card {
  background: linear-gradient(180deg, rgba(249, 249, 249, 0.96) 0%, #fff 100%);
  border: 1px solid rgba(51, 51, 51, 0.08);
  border-radius: 1.8rem;
  break-inside: avoid;
  display: flex;
  flex-direction: column;
  margin: 0 0 1.6rem;
  overflow: hidden;
}

.gallery-card img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.gallery-card-caption {
  display: grid;
  gap: 0.5rem;
  padding: 1.2rem 1.4rem 1.4rem;
}

.gallery-card-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
}

.gallery-card-post {
  color: rgba(51, 51, 51, 0.62);
  flex: 1 1 auto;
  font-size: 1.16rem;
  line-height: 1.5;
  min-width: 0;
}

.gallery-card-post:hover,
.gallery-card-post:focus {
  color: #111;
}

.gallery-card-source {
  border: 1px solid rgba(51, 51, 51, 0.12);
  border-radius: 999px;
  color: rgba(51, 51, 51, 0.72);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1;
  margin-top: 0.24rem;
  padding: 0.26rem 0.46rem;
  text-transform: lowercase;
  white-space: nowrap;
}

.gallery-card-source-assets {
  background: rgba(225, 240, 228, 0.88);
}

.gallery-card-source-flickr {
  background: rgba(235, 231, 248, 0.88);
}

.gallery-card-source-r2 {
  background: rgba(231, 240, 248, 0.88);
}

.gallery-card-text {
  color: #222;
  font-size: 1.35rem;
  line-height: 1.6;
}

.entry-header {
  padding: 0 7.6923%;
}

.entry-title {
  font-size: 2.8rem;
  line-height: 1.2;
  margin: 0;
  padding-top: 7.6923%;
  padding-bottom: 2.4rem;
}

.entry-content,
.entry-summary {
  padding: 0 7.6923% 7.6923%;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content pre,
.entry-content figure {
  margin: 0 0 1.6em;
}

.entry-content [align="center"] > a,
.entry-content [align="center"] > img {
  display: block;
  margin: 0 auto 1.2rem;
  max-width: 100%;
}

.entry-content [align="center"] img {
  display: block;
  margin: 0 auto;
}

.post .entry-content img {
  border-radius: 1.5rem;
  box-shadow: 0 16px 32px rgba(33, 37, 41, 0.16);
}

.post .entry-content a,
.page .entry-content a {
  color: #1f5fbf;
}

.post .entry-content a:hover,
.post .entry-content a:focus,
.page .entry-content a:hover,
.page .entry-content a:focus {
  color: #174892;
}

.entry-content ul,
.entry-content ol {
  margin-left: 1.6em;
}

.entry-content blockquote {
  border-left: 4px solid rgba(51, 51, 51, 0.15);
  color: rgba(51, 51, 51, 0.75);
  margin-left: 0;
  padding-left: 1.2em;
}

.entry-content code {
  background: #f7f7f7;
  border-radius: 2px;
  padding: 0.1em 0.35em;
}

.entry-content pre {
  background: #f7f7f7;
  border-radius: 1.2rem;
  font-size: 1.35rem;
  line-height: 1.7;
  overflow-x: auto;
  padding: 1.1em 1.2em;
  position: relative;
}

.entry-content pre code {
  background: transparent;
  display: block;
  padding: 0;
  padding-right: 6.6rem;
}

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

.entry-content th,
.entry-content td {
  border: 1px solid rgba(51, 51, 51, 0.14);
  padding: 0.9rem 1.1rem;
  text-align: left;
}

.entry-content th {
  background: #f7f7f7;
  font-weight: 700;
}

.code-copy-button {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(51, 51, 51, 0.12);
  border-radius: 999px;
  color: #333;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.65rem 1rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.code-copy-button:hover,
.code-copy-button:focus {
  background: #fff;
  border-color: rgba(51, 51, 51, 0.22);
  color: #000;
}

.entry-content .katex-display {
  margin: 1.4em 0;
  overflow-x: auto;
  overflow-y: hidden;
}

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

.audio-block {
  margin: 2.4rem 0;
}

.audio-block audio {
  display: block;
  max-width: 48rem;
  width: 100%;
}

.video-block {
  margin: 2.4rem 0;
}

.video-block video {
  border-radius: 1.2rem;
  display: block;
  max-width: 72rem;
  width: 100%;
}

.entry-footer {
  background-color: #f7f7f7;
  color: rgba(51, 51, 51, 0.7);
  display: flex;
  font-size: 1.2rem;
  gap: 1.2rem;
  justify-content: flex-start;
  line-height: 1.5;
  padding: 3.8461% 7.6923%;
  flex-wrap: wrap;
}

.entry-footer a {
  color: rgba(51, 51, 51, 0.7);
}

.posted-on,
.cat-links {
  align-items: center;
  display: inline-flex;
}

.cat-links {
  white-space: nowrap;
}

.category-section + .category-section {
  margin-top: 3.2rem;
}

.category-section h2 {
  font-size: 2.2rem;
  margin: 0 0 1.4rem;
}

.category-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-posts li {
  border-top: 1px solid rgba(51, 51, 51, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 0;
}

.category-posts li:first-child {
  border-top: 0;
  padding-top: 0;
}

.category-posts span,
.category-empty {
  color: rgba(51, 51, 51, 0.7);
  font-size: 1.3rem;
}

@media screen and (max-width: 48em) {
  body {
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  }

  body::before {
    display: none;
  }

  body.sidebar-collapsed::before {
    display: none;
  }

  .sidebar,
  .site-content {
    margin-left: 0;
    width: 100%;
  }

  .sidebar {
    display: block;
    height: auto;
    max-width: none;
    padding-top: 0;
  }

  .site-branding {
    min-height: 5.6rem;
    padding-right: 0;
    text-align: left;
  }

  .secondary-toggle {
    height: 4.2rem;
    width: 4.2rem;
  }

  .secondary-toggle::before,
  .secondary-toggle::after {
    background: #333;
    content: "";
    height: 1px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    width: 1.6rem;
  }

  .secondary-toggle::before {
    box-shadow: 0 -0.5rem 0 #333, 0 0.5rem 0 #333;
  }

  .secondary-toggle.toggled-on::before {
    box-shadow: none;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .secondary-toggle.toggled-on::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .custom-logo {
    margin: 0;
    max-height: 5.6rem;
  }

  .secondary {
    padding-top: 0;
  }

  .content-area {
    max-width: none;
  }

  .site-main {
    padding-top: 0;
  }

  .layout-home .hentry,
  .layout-category_archive .hentry,
  .layout-post .hentry,
  .layout-page .hentry,
  .layout-categories .hentry {
    margin: 0 0 2rem;
  }

  .layout-home .hentry {
    background: transparent;
    border-bottom: 1px solid rgba(51, 51, 51, 0.1);
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 2.4rem;
    overflow: visible;
    margin-left: 0.8rem;
    margin-right: 0.8rem;
    padding-bottom: 2.4rem;
  }

  .layout-home .hentry:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .layout-home .hentry.has-cover {
    display: flex;
    flex-direction: column;
  }

  .layout-home .hentry.has-cover .entry-cover {
    aspect-ratio: 1.82 / 1;
    background: linear-gradient(180deg, #e7ebee 0%, #d9d4cb 100%);
    display: block;
    margin: 0 0.8rem;
    order: 1;
    overflow: hidden;
  }

  .layout-home .hentry.has-cover .entry-cover img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  .layout-home .hentry.has-cover .entry-header {
    order: 2;
    padding-top: 1.5rem;
  }

  .layout-home .hentry.has-cover .entry-title {
    font-size: 2.2rem;
    line-height: 1.18;
    padding-top: 0;
    padding-bottom: 0.8rem;
  }

  .layout-home .hentry.has-cover .entry-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .layout-home .hentry.has-cover .entry-content {
    order: 3;
    padding-bottom: 1.2rem;
  }

  .layout-home .hentry.has-cover .entry-content p {
    color: rgba(51, 51, 51, 0.78);
    display: -webkit-box;
    font-size: 1.34rem;
    line-height: 1.8;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .layout-home .entry-footer,
  .layout-home .hentry.has-cover .entry-footer {
    background: transparent;
    color: rgba(51, 51, 51, 0.56);
    font-size: 1rem;
    gap: 0.8rem;
    line-height: 1.5;
    margin-top: auto;
    padding-top: 0;
    padding-bottom: 0;
    flex-wrap: nowrap;
  }

  .layout-home .hentry.has-cover .entry-footer {
    order: 4;
  }

  .layout-home .hentry.has-cover .entry-footer a {
    color: inherit;
  }

  .layout-home .entry-header {
    padding-top: 0;
  }

  .layout-home .entry-title {
    font-size: 2rem;
    line-height: 1.2;
    padding-top: 0;
    padding-bottom: 1rem;
  }

  .layout-home .entry-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .layout-home .entry-content {
    padding-bottom: 1.2rem;
  }

  .layout-home .entry-content p {
    color: rgba(51, 51, 51, 0.76);
    display: -webkit-box;
    font-size: 1.32rem;
    line-height: 1.78;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .layout-category_archive .archive-posts {
    display: block;
  }

  .layout-category_archive .hentry {
    background: transparent;
    border-bottom: 1px solid rgba(51, 51, 51, 0.1);
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 2.4rem;
    overflow: visible;
    margin-left: 0.8rem;
    margin-right: 0.8rem;
    padding-bottom: 2.4rem;
  }

  .layout-category_archive .hentry:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .layout-category_archive .hentry.has-cover {
    display: flex;
    flex-direction: column;
  }

  .layout-category_archive .hentry.has-cover .entry-cover {
    aspect-ratio: 1.82 / 1;
    background: linear-gradient(180deg, #e7ebee 0%, #d9d4cb 100%);
    border-radius: 1.6rem;
    display: block;
    margin: 0 0.8rem;
    order: 1;
    overflow: hidden;
  }

  .layout-category_archive .hentry.has-cover .entry-cover img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  .layout-category_archive .hentry.has-cover .entry-header {
    order: 2;
    padding-top: 1.5rem;
  }

  .layout-category_archive .hentry.has-cover .entry-title {
    font-size: 2.2rem;
    line-height: 1.18;
    padding-top: 0;
    padding-bottom: 0.8rem;
  }

  .layout-category_archive .hentry.has-cover .entry-title a,
  .layout-category_archive .entry-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .layout-category_archive .hentry.has-cover .entry-content {
    order: 3;
    padding-bottom: 1.2rem;
  }

  .layout-category_archive .hentry.has-cover .entry-content p,
  .layout-category_archive .entry-content p {
    color: rgba(51, 51, 51, 0.78);
    display: -webkit-box;
    font-size: 1.34rem;
    line-height: 1.8;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .layout-category_archive .entry-footer,
  .layout-category_archive .hentry.has-cover .entry-footer {
    background: transparent;
    color: rgba(51, 51, 51, 0.56);
    font-size: 1rem;
    gap: 0.8rem;
    line-height: 1.5;
    margin-top: auto;
    padding-top: 0;
    padding-bottom: 0;
    flex-wrap: nowrap;
  }

  .layout-category_archive .hentry.has-cover .entry-footer {
    order: 4;
  }

  .layout-category_archive .entry-footer a {
    color: inherit;
  }

  .archive-heading {
    margin: 0 0 2rem;
    padding: 0 7.6923%;
  }

  .layout-gallery .content-area,
  .layout-gallery_map .content-area {
    max-width: none;
  }

  .gallery-heading {
    padding: 0 1.4rem;
  }

  .gallery-refresh-button {
    font-size: 1.18rem;
    padding: 0.9rem 1.2rem;
  }

  .gallery-stats-button {
    font-size: 1.08rem;
    padding: 0.72rem 0.96rem;
  }

  .gallery-stats { gap: 0.6rem; }
  .gallery-stats > * {
    font-size: 1.08rem;
    padding: 0.72rem 0.8rem;
  }

  .gallery-action-button {
    min-height: 3rem;
    min-width: 3rem;
    padding: 0.68rem;
  }

  .gallery-panel {
    border-radius: 1.6rem;
    margin: 0 0.8rem;
    padding: 1.6rem;
    width: calc(100vw - 1.6rem);
    box-sizing: border-box;
  }

  .gallery-card-caption {
    padding: 1rem 1.2rem 1.2rem;
  }

  .gallery-grid {
    column-gap: 1.2rem;
  }

  .gallery-mobile-refresh-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.6rem;
    padding: 0 0.8rem;
  }

  .gallery-refresh-button-bottom {
    width: min(100%, 22rem);
  }

  .gallery-map-thumbs {
    grid-template-columns: 1fr 1fr;
  }

  .image-lightbox {
    padding: 1.2rem;
  }

  .image-lightbox img {
    max-height: none;
    max-width: none;
  }
}

@media screen and (min-width: 48em) {
  body::before,
  body.sidebar-collapsed::before {
    display: none;
  }

  .layout-category_archive .content-area {
    max-width: min(96rem, calc(100vw - 6rem));
  }

  .layout-post .content-area {
    max-width: var(--reading-width);
  }

  .layout-gallery .content-area,
  .layout-gallery_map .content-area {
    max-width: min(118rem, calc(100vw - 10rem));
  }

  .sidebar {
    align-items: center;
    display: flex;
    gap: 3.2rem;
    justify-content: space-between;
    padding-top: 3.2rem;
  }

  .site-header {
    flex: 0 0 auto;
    padding-bottom: 0;
  }

  .site-branding {
    align-items: center;
    display: flex;
    gap: 2.4rem;
    justify-content: flex-start;
    min-height: auto;
    text-align: left;
  }

  .custom-logo-link {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .custom-logo {
    margin: 0;
    max-height: 6.8rem;
  }

  .gallery-grid {
    columns: 2;
  }

  .secondary-toggle {
    display: none;
  }

  .secondary {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: block;
    flex: 1 1 auto;
    padding: 0;
    position: static;
    width: auto;
    z-index: auto;
  }

  .main-navigation .nav-menu {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0 2.4rem;
    justify-content: flex-start;
  }

  .main-navigation li {
    border-top: 0;
  }

  .main-navigation a {
    padding: 0.8rem 0;
  }

  .menu-item-row {
    gap: 0.8rem;
    justify-content: flex-start;
  }

  .menu-item-row > a {
    flex: 0 0 auto;
  }

  .main-navigation .sub-menu {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(51, 51, 51, 0.08);
    border-radius: 1.4rem;
    box-shadow: 0 10px 28px rgba(51, 51, 51, 0.08);
    left: 0;
    margin: 0;
    min-width: 14rem;
    padding: 0.8rem 1.6rem;
    position: absolute;
    top: calc(100% + 0.8rem);
  }

  .main-navigation .sub-menu li {
    border-top: 0;
  }

  .main-navigation .sub-menu a {
    padding: 0.7rem 0;
  }

  .archive-heading {
    margin-bottom: 2.6rem;
    padding: 0 0.8rem;
  }

  .layout-home .sidebar {
    max-width: min(132rem, calc(100vw - 3.6rem));
  }

  .layout-home .content-area {
    max-width: min(132rem, calc(100vw - 3.6rem));
  }

  .layout-home .home-posts {
    --home-card-gap: 2.4rem;
    --home-card-height: 17rem;
    display: grid;
    grid-auto-flow: row dense;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--home-card-gap);
  }

  .layout-category_archive .archive-posts {
    display: grid;
    gap: 2.4rem;
  }

  .layout-home .hentry,
  .layout-category_archive .hentry,
  .layout-post .hentry,
  .layout-page .hentry,
  .layout-categories .hentry {
    margin-left: 0;
    margin-right: 0;
  }

  .layout-home .hentry {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    grid-column: span 2;
    margin-bottom: 0;
    min-height: var(--home-card-height);
  }

  .layout-category_archive .hentry {
    background: #fff;
    border-bottom: 0;
    border-radius: 1.8rem;
    box-shadow: var(--surface-shadow);
    margin-bottom: 0;
    min-height: 0;
    overflow: hidden;
  }

  .layout-category_archive .hentry.has-cover {
    align-items: center;
    column-gap: 2.6rem;
    display: grid;
    grid-template-areas:
      "header cover"
      "content cover"
      "footer cover";
    grid-template-columns: minmax(0, 1fr) clamp(24rem, 29vw, 31rem);
    padding: 2.6rem;
  }

  .layout-category_archive .hentry:not(.has-cover) {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 24rem;
  }

  .layout-home .hentry:only-child {
    grid-column: 1 / -1;
    min-height: 30rem;
  }

  .layout-home .hentry:nth-child(5n + 1) {
    background:
      radial-gradient(circle at top left, rgba(216, 200, 175, 0.16), transparent 42%),
      linear-gradient(180deg, #fffdfa 0%, #f7f2ea 100%);
    grid-column: span 4;
    grid-row: span 2;
    min-height: calc(var(--home-card-height) * 2 + var(--home-card-gap));
  }

  .layout-home .hentry:nth-child(5n + 4),
  .layout-home .hentry:nth-child(5n + 5) {
    grid-column: span 3;
  }

  .layout-home .hentry:nth-child(5n + 4) {
    min-height: calc(var(--home-card-height) + 4rem);
  }

  .layout-home .hentry:last-child:nth-child(5n + 1) {
    grid-column: 1 / -1;
    min-height: 26rem;
  }

  .layout-home .entry-header {
    padding-top: 0.8rem;
  }

  .layout-home .entry-title {
    font-size: 2.4rem;
    line-height: 1.18;
    padding-bottom: 1.4rem;
  }

  .layout-home .entry-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .layout-home .entry-content {
    padding-bottom: 2.2rem;
  }

  .layout-home .entry-content p {
    display: -webkit-box;
    font-size: 1.45rem;
    line-height: 1.9;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .layout-home .entry-footer {
    margin-top: auto;
  }

  .layout-category_archive .entry-header {
    padding-top: 2.8rem;
  }

  .layout-category_archive .entry-title {
    font-size: 2.8rem;
    line-height: 1.16;
    padding-top: 0;
    padding-bottom: 1.2rem;
  }

  .layout-category_archive .entry-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .layout-category_archive .entry-content {
    padding-bottom: 1.8rem;
  }

  .layout-category_archive .entry-content p {
    color: rgba(51, 51, 51, 0.76);
    display: -webkit-box;
    font-size: 1.45rem;
    line-height: 1.88;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .layout-category_archive .entry-footer {
    background: transparent;
    margin-top: auto;
    color: rgba(51, 51, 51, 0.58);
    font-size: 1.12rem;
    gap: 1rem;
    line-height: 1.5;
    padding-top: 0;
    padding-bottom: 2.8rem;
    flex-wrap: nowrap;
  }

  .layout-home .entry-cover {
    display: none;
  }

  .layout-category_archive .entry-cover {
    display: none;
  }

  .layout-category_archive .hentry.has-cover .entry-header {
    grid-area: header;
    padding: 0;
  }

  .layout-category_archive .hentry.has-cover .entry-content {
    grid-area: content;
    padding: 0 0 1.4rem;
  }

  .layout-category_archive .hentry.has-cover .entry-footer {
    grid-area: footer;
    padding: 0;
  }

  .layout-home .hentry:nth-child(5n + 1).has-cover .entry-cover,
  .layout-home .hentry:nth-child(5n + 2).has-cover .entry-cover {
    aspect-ratio: 16 / 9;
    border-radius: 1.6rem;
    display: block;
    margin: 0 7.6923% 2rem;
    overflow: hidden;
  }

  .layout-category_archive .hentry.has-cover .entry-cover {
    align-self: center;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, #e7ebee 0%, #d9d4cb 100%);
    border-radius: 1.6rem;
    display: block;
    grid-area: cover;
    height: auto;
    margin: 0;
    width: 100%;
    overflow: hidden;
  }

  .layout-home .hentry.has-cover .entry-cover img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  .layout-category_archive .hentry.has-cover .entry-cover img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  .layout-home .hentry:nth-child(5n + 1) .entry-title {
    font-size: 3.5rem;
    line-height: 1.12;
    padding-bottom: 1.8rem;
  }

  .layout-home .hentry:nth-child(5n + 1) .entry-title a {
    -webkit-line-clamp: 3;
  }

  .layout-home .hentry:nth-child(5n + 1) .entry-content {
    padding-bottom: 3rem;
  }

  .layout-home .hentry:nth-child(5n + 1) .entry-content p {
    font-size: 1.6rem;
    line-height: 2;
    -webkit-line-clamp: 6;
  }

  .layout-home .hentry:nth-child(5n + 1).has-cover .entry-cover {
    aspect-ratio: 2 / 1;
  }

  .layout-home .hentry:nth-child(5n + 3).has-cover .entry-cover,
  .layout-home .hentry:nth-child(5n + 4).has-cover .entry-cover,
  .layout-home .hentry:nth-child(5n + 5).has-cover .entry-cover {
    border-radius: 1.4rem;
    display: block;
    overflow: hidden;
    position: absolute;
    right: calc(7.6923% + 1.2rem);
    top: 2rem;
  }

  .layout-home .hentry:nth-child(5n + 3).has-cover .entry-cover {
    aspect-ratio: 3 / 2;
    width: 13.6rem;
  }

  .layout-home .hentry:nth-child(5n + 4).has-cover .entry-cover,
  .layout-home .hentry:nth-child(5n + 5).has-cover .entry-cover {
    aspect-ratio: 3 / 2;
    width: 15.2rem;
  }

  .layout-home .hentry:nth-child(5n + 3).has-cover .entry-header,
  .layout-home .hentry:nth-child(5n + 3).has-cover .entry-content,
  .layout-home .hentry:nth-child(5n + 3).has-cover .entry-footer {
    padding-right: calc(7.6923% + 16.3rem);
  }

  .layout-home .hentry:nth-child(5n + 4).has-cover .entry-header,
  .layout-home .hentry:nth-child(5n + 4).has-cover .entry-content,
  .layout-home .hentry:nth-child(5n + 4).has-cover .entry-footer,
  .layout-home .hentry:nth-child(5n + 5).has-cover .entry-header,
  .layout-home .hentry:nth-child(5n + 5).has-cover .entry-content,
  .layout-home .hentry:nth-child(5n + 5).has-cover .entry-footer {
    padding-right: calc(7.6923% + 18.1rem);
  }

  .layout-home .hentry:nth-child(5n + 4) .entry-title,
  .layout-home .hentry:nth-child(5n + 5) .entry-title {
    font-size: 2.7rem;
    line-height: 1.16;
  }

  .layout-home .hentry:nth-child(5n + 4) .entry-content p,
  .layout-home .hentry:nth-child(5n + 5) .entry-content p {
    -webkit-line-clamp: 4;
  }

  .layout-home .home-pagination {
    gap: 0.8rem;
    margin: 3.6rem auto 0;
  }

  .layout-home .home-pagination-link {
    font-size: 1.25rem;
    min-width: 3.8rem;
    padding: 0.9rem 1.2rem;
  }

  .layout-home .home-pagination-arrow {
    min-width: 6.8rem;
  }

  .layout-category_archive .archive-pagination {
    margin-top: 1.2rem;
  }
}

@media screen and (min-width: 80em) {
  .gallery-grid {
    columns: 3;
  }
}

body::before,
body.sidebar-collapsed::before {
  display: none;
}

.sidebar {
  display: block;
  max-width: var(--frame-width);
  padding-top: 2.8rem;
}

.site-header {
  margin: 0 auto 2.2rem;
  max-width: var(--content-width);
  padding: 0;
  width: min(100%, var(--content-width));
}

.site-branding,
.custom-logo-link,
.custom-logo {
  display: none;
}

.secondary,
.secondary-toggle,
.submenu-toggle,
.site-description {
  display: none !important;
}

.main-navigation {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.main-navigation .nav-menu {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: center;
}

.main-navigation li {
  border-top: 0;
  position: relative;
}

.main-navigation .nav-about {
  display: flex;
  align-items: center;
}

.main-navigation a {
  border-radius: 999px;
  display: block;
  padding: 0.95rem 1.8rem;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
  background: rgba(51, 51, 51, 0.06);
  color: #000;
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
  background: #f3f3f3;
  font-weight: 700;
}

.submenu-link {
  display: block;
}

.main-navigation .sub-menu {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(51, 51, 51, 0.08);
  border-radius: 1.6rem;
  border-top: 0;
  box-shadow: 0 16px 34px rgba(51, 51, 51, 0.1);
  display: none;
  left: 50%;
  margin: 0;
  min-width: 16rem;
  padding: 0.8rem;
  position: absolute;
  top: calc(100% + 0.9rem);
  transform: translateX(-50%);
  z-index: 10;
}

.site-header,
.main-navigation,
.main-navigation .menu-item-has-children {
  position: relative;
}

.site-header {
  z-index: 20;
}

.main-navigation .menu-item-has-children.open > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu,
.main-navigation .menu-item-has-children:hover > .sub-menu {
  display: block;
}

.main-navigation .sub-menu li,
.main-navigation .sub-menu li:first-child {
  border-top: 0;
}

.main-navigation .sub-menu a {
  border-radius: 1rem;
  padding: 0.9rem 1.2rem;
  white-space: nowrap;
}

.site-main {
  padding-top: 1.2rem;
}

@media screen and (max-width: 48em) {
  .sidebar {
    max-width: none;
    padding-top: 1.8rem;
  }

  .site-header {
    margin-bottom: 1.8rem;
    max-width: min(32rem, calc(100vw - 3rem));
    width: calc(100vw - 3rem);
  }

  .main-navigation {
    border-radius: 2.2rem;
    padding: 0.6rem 0.8rem;
  }

  .main-navigation a {
    padding: 0.85rem 1.3rem;
  }

  .submenu-link {
    display: block;
  }

  .main-navigation .sub-menu {
    min-width: min(18rem, calc(100vw - 4rem));
  }

  .home-pagination { gap: 0.35rem; }
  .home-pagination-actions { gap: 0.3rem; }
  .home-pagination-list { gap: 0.3rem; }
  .home-pagination-link { font-size: 1rem; padding: 0.85rem 0.6rem; }
  .home-pagination-arrow { min-width: 0; }
  .home-pagination-list .home-pagination-link { width: 2.7rem; }

  .site-main {
    padding-top: 0.6rem;
  }

  .gallery-map-thumbs {
    grid-template-columns: 1fr;
  }
}

/* Cluster places can be selected from the globe without repeated zooming. */
.gallery-map-location-list { display: grid; gap: 0.8rem; }
.gallery-map-location-item { align-items: center; background: #f0f3f4; border: 1px solid rgba(51, 51, 51, 0.08); border-radius: 1.2rem; color: #333; cursor: pointer; display: flex; font: inherit; gap: 1.2rem; padding: 0.8rem; text-align: left; width: 100%; }
.gallery-map-location-item:hover { background: #e4edf1; }
.gallery-map-location-item img { border-radius: 0.7rem; flex-shrink: 0; height: 5.6rem; object-fit: cover; width: 7rem; }
.gallery-map-location-item > span { display: grid; gap: 0.4rem; min-width: 0; }
.gallery-map-location-item strong { font-size: 1.3rem; font-weight: 500; line-height: 1.4; }
.gallery-map-location-item small { font-size: 1.1rem; opacity: 0.65; }
.gallery-earth[data-map-theme="dark"],
.gallery-earth[data-map-theme="dark"] .gallery-map-canvas { background: #05070b; color-scheme: dark; }
.gallery-earth[data-map-theme="dark"] .gallery-map-detail { background: rgba(19, 25, 33, 0.97); border-color: rgba(184, 216, 236, 0.16); color: #e0e9ef; }
.gallery-earth[data-map-theme="dark"] .gallery-map-detail-toggle,
.gallery-earth[data-map-theme="dark"] .gallery-earth-close { color: #b9d7e7; }
.gallery-earth[data-map-theme="dark"] .gallery-map-place { color: #e0e9ef; }
.gallery-earth[data-map-theme="dark"] .gallery-map-eyebrow,
.gallery-earth[data-map-theme="dark"] .gallery-map-place-subtitle,
.gallery-earth[data-map-theme="dark"] .gallery-map-post-meta,
.gallery-earth[data-map-theme="dark"] .gallery-map-thumb figcaption { color: #a2b1bd; }
.gallery-earth[data-map-theme="dark"] .gallery-map-summary span,
.gallery-earth[data-map-theme="dark"] .gallery-map-post-link,
.gallery-earth[data-map-theme="dark"] .gallery-map-location-item { background: #202c37; border-color: rgba(184, 216, 236, 0.12); color: #e0e9ef; }
.gallery-earth[data-map-theme="dark"] .gallery-map-post-link:hover,
.gallery-earth[data-map-theme="dark"] .gallery-map-location-item:hover,
.gallery-earth[data-map-theme="dark"] .gallery-earth-close:hover { background: #2c3e4b; }
.gallery-earth[data-map-theme="dark"] .gallery-map-hover-popup .mapboxgl-popup-content { background: #202c37; color: #e0e9ef; }
.gallery-earth[data-map-theme="dark"] .mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip { border-top-color: #202c37; }
.gallery-earth[data-map-theme="dark"] .mapboxgl-popup-anchor-top .mapboxgl-popup-tip { border-bottom-color: #202c37; }

.page .entry-content a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
