:root:not([data-theme="dark"]) {
  --global-bg: #f5f7fa;
  --card-bg: rgba(255, 255, 255, 0.92);
  --font-color: #334155;
  --hr-border: #dbe4ec;
  --hr-before-color: #94a3b8;
  --text-bg-hover: #e8eef5;
}

@font-face {
  font-family: "Snowsky Serif";
  src: url("../fonts/LiberationSerif-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Snowsky Serif";
  src: url("../fonts/LiberationSerif-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Snowsky Serif";
  src: url("../fonts/LiberationSerif-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Snowsky Serif";
  src: url("../fonts/LiberationSerif-BoldItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 700;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Snowsky Chinese";
  src: url("../fonts/LXGWWenKai-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Snowsky Chinese";
  src: url("../fonts/LXGWWenKai-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: "Snowsky Mono";
  src: url("../fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Snowsky Mono";
  src: url("../fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: "Snowsky Mono";
  src: url("../fonts/JetBrainsMono-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: block;
}

body,
.article-container,
.post-content,
.recent-post-item {
  font-family: "Snowsky Serif", "Snowsky Chinese";
}

#nav .site-name,
#nav .site-page,
#site-subtitle {
  font-family: "Snowsky Chinese";
}

body {
  background: transparent;
  background-attachment: fixed;
}

#page-header {
  background-color: transparent;
}

#page-header.post-bg {
  background-image: none !important;
}

#web_bg.bg-animation {
  animation: none;
  opacity: 1;
}

html:not([data-theme="dark"]) #web_bg::before {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.2);
  content: "";
}

#footer {
  background: transparent;
}

code,
pre,
kbd,
samp {
  font-family: "Snowsky Mono";
}

figure.highlight .highlight-tools .code-lang,
figure.highlight .highlight-tools .code-lang * {
  text-transform: none;
  font-family: "Snowsky Mono";
  font-weight: 400;
  font-style: normal;
}

#nav {
  background: transparent;
  box-shadow: none;
  transition: background 0.25s ease, box-shadow 0.25s ease,
    backdrop-filter 0.25s ease;
}

html:not([data-theme="dark"]) #page-header.nav-fixed #nav,
html:not([data-theme="dark"]) #page-header.nav-visible #nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.08);
}

#page-header:not(.nav-fixed):not(.nav-visible) #nav {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

#page-header.full_page:not(.nav-fixed):not(.nav-visible) #nav #blog_name a,
#page-header.full_page:not(.nav-fixed):not(.nav-visible) #nav #menus a,
#page-header.full_page:not(.nav-fixed):not(.nav-visible) #nav #toggle-menu,
#page-header.full_page:not(.nav-fixed):not(.nav-visible) #nav .site-name,
#page-header.full_page:not(.nav-fixed):not(.nav-visible) #nav .site-page {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.35);
}

#page-header.full_page:not(.nav-fixed):not(.nav-visible) #nav a:hover,
#page-header.full_page:not(.nav-fixed):not(.nav-visible) #nav .site-page:hover,
#page-header.full_page:not(.nav-fixed):not(.nav-visible) #nav #toggle-menu:hover {
  color: #ffffff;
}

html:not([data-theme="dark"]) #page-header.nav-fixed #nav #blog_name a,
html:not([data-theme="dark"]) #page-header.nav-fixed #nav #menus a,
html:not([data-theme="dark"]) #page-header.nav-fixed #nav #toggle-menu,
html:not([data-theme="dark"]) #page-header.nav-visible #nav #blog_name a,
html:not([data-theme="dark"]) #page-header.nav-visible #nav #menus a,
html:not([data-theme="dark"]) #page-header.nav-visible #nav #toggle-menu {
  color: #1e293b;
  text-shadow: none;
}

#nav .site-name {
  font-weight: 400;
}

html:not([data-theme="dark"]) #nav #blog_name a,
html:not([data-theme="dark"]) #nav #menus a {
  color: #1e293b;
  font-weight: 400;
}

#page-header.full_page {
  background-position: center;
  background-size: cover;
}

#site-title {
  text-shadow: 0 4px 16px rgba(15, 23, 42, 0.35);
  letter-spacing: 0.02em;
}

#site-subtitle {
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.35);
}

#aside-content .card-widget,
.layout > div:first-child:not(.recent-posts) {
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

@media (max-width: 768px) {
  html:not([data-theme="dark"]) #nav #menus,
  html:not([data-theme="dark"]) #nav #toggle-menu {
    background: transparent;
  }
}

.gallery-page {
  color: var(--font-color);
}

.gallery-filters,
.gallery-batch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gallery-filters {
  justify-content: center;
  margin: 0 auto 2rem;
}

.gallery-filter {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--hr-border);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--font-color);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gallery-filter:hover {
  transform: translateY(-1px);
}

.gallery-filter[aria-pressed="true"] {
  border-color: #7c93ad;
  background: #7c93ad;
  color: #fff;
}

.gallery-year {
  margin: 0 0 3rem;
}

.gallery-year-heading {
  margin: 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--hr-border);
  font-size: 1.8rem;
}

.gallery-month {
  margin: 0.7rem 0 0.85rem;
}

.gallery-month[open] {
  margin-bottom: 1.8rem;
}

.gallery-month-heading {
  margin: 0;
  padding: 0.3rem 0 0.45rem;
  font-size: 1.12rem;
  font-weight: 600;
  opacity: 0.82;
}

.gallery-year-heading,
.gallery-month-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.gallery-year-heading::-webkit-details-marker,
.gallery-month-heading::-webkit-details-marker {
  display: none;
}

.gallery-year-heading::before,
.gallery-month-heading::before {
  content: "›";
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.gallery-year[open] > .gallery-year-heading::before,
.gallery-month[open] > .gallery-month-heading::before {
  transform: rotate(90deg);
}

.gallery-year-heading-label,
.gallery-month-heading-label {
  min-width: 0;
}

.gallery-fold-count {
  margin-left: auto;
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.03em;
  opacity: 0.52;
}

.gallery-day {
  margin: 0 0 2.5rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 52rem;
  scroll-margin-top: 5rem;
}

.gallery-day-heading {
  display: block;
  margin: 0 0 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.7;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.gallery-batch {
  margin: 0 0 1.5rem;
}

.gallery-batch + .gallery-batch {
  padding-top: 1.5rem;
  border-top: 1px solid var(--hr-border);
}

.gallery-batch-metadata {
  margin: 0 0 0.9rem;
}

.gallery-batch-metadata.has-batch-index {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: start;
  column-gap: 0.9rem;
}

.gallery-batch-metadata:empty {
  display: none;
}

.gallery-batch-content {
  width: min(100%, 42rem);
  min-width: 0;
  margin-left: auto;
  justify-self: end;
  text-align: left;
}

.gallery-batch-index {
  display: inline-block;
  width: 2.75rem;
  padding-top: 0.12rem;
  color: #6f8297;
  font-family: "Snowsky Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  opacity: 0.72;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.gallery-batch-description {
  margin: 0 0 0.6rem;
  font-size: 0.96rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  text-align: left;
}

.gallery-batch-description.is-short {
  text-align: right;
}

.gallery-batch-tags {
  justify-content: flex-end;
  margin-top: 0.15rem;
}

.gallery-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  max-width: 100%;
  padding: 0.22rem 0.68rem;
  border: 0;
  border-radius: 0.55rem;
  background: var(--gallery-tag-color, #718fb2);
  color: #fff;
  font-size: 0.76rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: left;
  box-shadow: 0 3px 9px color-mix(in srgb, var(--gallery-tag-color, #718fb2) 20%, transparent);
}

html[data-theme="dark"] .gallery-batch-index {
  color: #a8b7c8;
}

@media (hover: hover) {
  html:not([data-theme="dark"]) .gallery-day:hover > .gallery-day-heading,
  html:not([data-theme="dark"]) .gallery-day:focus-within > .gallery-day-heading,
  html:not([data-theme="dark"]) .gallery-batch:hover .gallery-batch-index,
  html:not([data-theme="dark"]) .gallery-batch:focus-within .gallery-batch-index {
    color: #6fadd8;
    opacity: 1;
  }

  html[data-theme="dark"] .gallery-day:hover > .gallery-day-heading,
  html[data-theme="dark"] .gallery-day:focus-within > .gallery-day-heading,
  html[data-theme="dark"] .gallery-batch:hover .gallery-batch-index,
  html[data-theme="dark"] .gallery-batch:focus-within .gallery-batch-index {
    color: #8bc9f4;
    opacity: 1;
  }
}

.gallery-wall {
  columns: 4 190px;
  column-gap: 1rem;
}

.gallery-photo {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  break-inside: avoid;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.6rem;
  background: var(--card-bg);
  cursor: zoom-in;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-photo:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.gallery-photo-more {
  position: relative;
}

.gallery-photo-more img {
  filter: brightness(0.5) saturate(0.8);
}

.gallery-photo-more-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Snowsky Chinese", sans-serif;
  font-size: 1rem;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.65);
}

.gallery-mini-timeline {
  position: fixed;
  top: 50%;
  left: max(1rem, calc(50vw - 39rem));
  z-index: 80;
  display: flex;
  width: 7.25rem;
  padding: 0.35rem 0.25rem;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 0.15rem;
  border: 0;
  background: transparent;
}

.gallery-mini-timeline[hidden] {
  display: none;
}

.gallery-mini-timeline button {
  border: 0;
  background: transparent;
  color: #102a43;
  cursor: pointer;
  font-family: "Snowsky Chinese", sans-serif;
}

.gallery-mini-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.25rem 0.2rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 0 2px #fff, 0 0 6px rgba(255, 255, 255, 0.98), 0 1px 10px rgba(255, 255, 255, 0.9);
}

.gallery-mini-arrow {
  display: none;
}

.gallery-mini-dates {
  position: relative;
  display: flex;
  max-height: 14rem;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  flex-direction: column;
  gap: 0;
  overscroll-behavior-y: contain;
  scrollbar-color: rgba(55, 77, 102, 0.48) transparent;
  scrollbar-width: thin;
  touch-action: pan-y;
}

.gallery-mini-dates::-webkit-scrollbar {
  width: 4px;
}

.gallery-mini-dates::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(55, 77, 102, 0.48);
}

.gallery-mini-dates::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-mini-date {
  position: relative;
  min-height: 2rem;
  padding: 0.4rem 0.15rem 0.4rem 2rem;
  text-align: left;
  font-family: "Snowsky Mono", monospace !important;
  font-size: 0.84rem;
  font-weight: 700;
  opacity: 1;
  text-shadow: 0 0 2px #fff, 0 0 6px rgba(255, 255, 255, 0.98), 0 1px 10px rgba(255, 255, 255, 0.9);
}

.gallery-mini-date:not(:last-child)::after {
  position: absolute;
  top: 50%;
  bottom: -50%;
  left: 0.88rem;
  width: 2px;
  background: rgba(36, 59, 83, 0.86);
  content: "";
}

.gallery-mini-date::before {
  position: absolute;
  top: 50%;
  left: 0.65rem;
  z-index: 1;
  width: 0.5rem;
  height: 0.5rem;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #243b53;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.82), 0 1px 5px rgba(15, 23, 42, 0.45);
  content: "";
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-mini-date:hover,
.gallery-mini-date.is-active {
  color: #006fb9;
  opacity: 1;
}

.gallery-mini-date:hover::before,
.gallery-mini-date.is-active::before {
  transform: translateY(-50%) scale(1.25);
  background: #159fe3;
  box-shadow: 0 0 0 3px rgba(21, 159, 227, 0.3), 0 1px 6px rgba(15, 23, 42, 0.45);
}

.gallery-mini-collapse {
  margin-top: 0.2rem;
  padding: 0.55rem 0.2rem 0.15rem;
  border-top: 1px solid rgba(55, 77, 102, 0.2) !important;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 1;
  text-shadow: 0 0 2px #fff, 0 0 6px rgba(255, 255, 255, 0.98), 0 1px 10px rgba(255, 255, 255, 0.9);
}

.gallery-mini-collapse:hover,
.gallery-mini-top:hover {
  color: #5f9fcd;
  opacity: 1;
}

html[data-theme="dark"] .gallery-mini-timeline {
  background: transparent;
}

html[data-theme="dark"] .gallery-mini-timeline button {
  color: #e4edf7;
  text-shadow: 0 0 2px #000, 0 0 6px rgba(0, 0, 0, 0.96), 0 1px 10px rgba(0, 0, 0, 0.9);
}

html[data-theme="dark"] .gallery-mini-date:not(:last-child)::after {
  background: rgba(174, 199, 224, 0.58);
}

html[data-theme="dark"] .gallery-mini-date::before {
  background: #c1d3e5;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.88), 0 1px 5px rgba(0, 0, 0, 0.72);
}

html[data-theme="dark"] .gallery-mini-date:hover,
html[data-theme="dark"] .gallery-mini-date.is-active,
html[data-theme="dark"] .gallery-mini-collapse:hover,
html[data-theme="dark"] .gallery-mini-top:hover {
  color: #8bc9f4;
}

#rightside #gallery-timeline-toggle {
  position: relative;
}

#rightside .gallery-timeline-toggle-icon {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: currentColor;
}

#rightside .gallery-timeline-toggle-icon::before,
#rightside .gallery-timeline-toggle-icon::after {
  position: absolute;
  left: 50%;
  width: 4px;
  height: 4px;
  transform: translate(-50%, -50%);
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: var(--btn-bg);
  content: "";
}

#rightside .gallery-timeline-toggle-icon::before {
  top: 25%;
}

#rightside .gallery-timeline-toggle-icon::after {
  top: 75%;
}

#rightside #gallery-timeline-toggle.is-disabled {
  opacity: 0.55;
}

#rightside #gallery-timeline-toggle.is-disabled .gallery-timeline-toggle-icon {
  background: linear-gradient(to bottom, currentColor 0 38%, transparent 38% 62%, currentColor 62% 100%);
}

.gallery-photo:focus-visible,
.gallery-filter:focus-visible,
.gallery-year-heading:focus-visible,
.gallery-month-heading:focus-visible,
.gallery-mini-timeline button:focus-visible,
.gallery-lightbox button:focus-visible {
  outline: 3px solid #7c93ad;
  outline-offset: 3px;
}

.gallery-photo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.gallery-empty,
.gallery-status {
  padding: 1.25rem;
  border: 1px solid var(--hr-border);
  border-radius: 0.75rem;
  background: var(--card-bg);
  text-align: center;
  opacity: 0.8;
}

.gallery-status:empty {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: rgba(7, 10, 16, 0.96);
  color: #f8fafc;
}

.gallery-lightbox::backdrop {
  background: rgba(3, 5, 9, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

html.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox-close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 3;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(4deg);
}

.gallery-lightbox-stage {
  position: absolute;
  inset: 0;
  display: grid;
  padding: clamp(1.25rem, 3vw, 3rem) clamp(4.5rem, 8vw, 8rem);
  place-items: center;
  box-sizing: border-box;
}

.gallery-lightbox-stage:focus {
  outline: none;
}

.gallery-lightbox-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  border-radius: 0.3rem;
  object-fit: contain;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  opacity: 1;
  transition: opacity 0.16s ease;
  user-select: none;
}

.gallery-lightbox-stage img.is-loading {
  opacity: 0;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#gallery-previous {
  left: clamp(0.85rem, 3vw, 3rem);
}

#gallery-next {
  right: clamp(0.85rem, 3vw, 3rem);
}

.gallery-lightbox-nav:hover {
  transform: translateY(-50%) scale(1.06);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.16);
}

.gallery-lightbox-nav:disabled {
  visibility: hidden;
}

.gallery-lightbox-counter {
  position: absolute;
  bottom: clamp(0.85rem, 2vw, 1.5rem);
  left: 50%;
  z-index: 3;
  min-width: 3.5rem;
  padding: 0.35rem 0.7rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.76);
  font-family: "Snowsky Mono", monospace;
  font-size: 0.72rem;
  line-height: 1;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .gallery-wall {
    columns: 2 140px;
    column-gap: 0.7rem;
  }

  .gallery-photo {
    margin-bottom: 0.7rem;
  }

  .gallery-lightbox {
    width: 100vw;
    height: 100dvh;
  }

  .gallery-lightbox-stage {
    padding: 4rem 0.8rem 4.5rem;
  }

  .gallery-lightbox-nav {
    width: 2.65rem;
    height: 2.65rem;
    font-size: 1.55rem;
    background: rgba(0, 0, 0, 0.34);
  }

  #gallery-previous {
    left: 0.65rem;
  }

  #gallery-next {
    right: 0.65rem;
  }
}

@media (max-width: 1199px) {
  .gallery-mini-timeline,
  #rightside #gallery-timeline-toggle {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-filter,
  .gallery-year-heading::before,
  .gallery-month-heading::before,
  .gallery-day-heading,
  .gallery-batch-index,
  .gallery-photo {
    transition: none;
  }
}
