@charset "UTF-8";
:root {
  --accent-color: #f67c91;
  --accent-color-light: color-mix(in srgb, var(--accent-color) 60%, white);
  --gray: #cccccc;
  --background-color: white;
  --text-primary: #333;
  --text-secondary: #555;
  --link-color: var(--accent-color);
  --link-hover-color: color-mix(in srgb, var(--accent-color) 70%, black);
  --list-marker-color: var(--accent-color);
  --blockquote-bg: #f9f9f9;
  --blockquote-border: var(--accent-color-light);
  --blockquote-text: var(--text-secondary);
  --code-bg: color-mix(in srgb, var(--accent-color) 8%, white);
  --code-text: color-mix(in srgb, var(--accent-color) 80%, black);
  --code-border: color-mix(in srgb, var(--accent-color) 20%, white);
  --pre-bg: #fdfcfd;
  --pre-border: color-mix(in srgb, var(--accent-color) 25%, white);
  --pre-shadow: color-mix(in srgb, var(--accent-color) 10%, transparent);
  --pre-code-text: #333;
  --figcaption-text: var(--text-secondary);
  --table-header-bg: #f5f5f5;
  --table-header-text: #333;
  --table-border: #ddd;
  --table-row-even: #fafafa;
  --table-row-hover: #f0f0f0;
}

@counter-style emoticon {
  system: cyclic;
  symbols: "(´▽`ʃ♡ƪ)" "ヾ(^▽^*)))" "ԅ(¯﹃¯ԅ)" "φ(゜▽゜*)♪" "_(:з)∠)_" "(*/ω＼*)" "(❁´◡`❁)" "Ψ(￣∀￣)Ψ" "～(∠・ω< )⌒☆";
}
.markdown {
  display: flex;
  flex-direction: column;
  max-width: 80ch;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.6;
  font-family: "LXGW Bright";
}
.markdown p {
  margin: 0.5em 0;
}
.markdown h1 {
  position: relative;
  font-size: 2em;
  margin: 1rem 0 0;
  font-family: "LXGW Bright", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
.markdown h1:target {
  scroll-margin-top: 4rem;
}
.markdown h1 a.zola-anchor {
  transition: all 0.2s ease-in-out;
  text-decoration-color: transparent;
}
.markdown h1 a.zola-anchor::before {
  padding-right: 0.25em;
  content: "<";
}
.markdown h1 a.zola-anchor::after {
  padding-left: 0.3em;
  content: "/>";
}
.markdown h1 a.zola-anchor::before, .markdown h1 a.zola-anchor::after {
  display: inline-block;
  transition: all 0.2s;
  font-size: 0.8em;
  color: var(--accent-color-light);
}
.markdown h1 a.zola-anchor:hover {
  text-decoration: var(--accent-color) underline;
}
.markdown h1 a.zola-anchor:hover::before, .markdown h1 a.zola-anchor:hover::after {
  transform: scale(1.2);
  color: var(--accent-color);
}
.markdown h2 {
  position: relative;
  font-size: 1.8em;
  margin: 1em 0 0.64em 0;
  font-family: "LXGW Bright", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
.markdown h2:target {
  scroll-margin-top: 4rem;
}
.markdown h2 a.zola-anchor {
  transition: all 0.2s ease-in-out;
  text-decoration-color: transparent;
}
.markdown h2 a.zola-anchor::before {
  padding-right: 0.25em;
  content: "##";
}
.markdown h2 a.zola-anchor::after {
  padding-left: 0.3em;
  content: "";
}
.markdown h2 a.zola-anchor::before, .markdown h2 a.zola-anchor::after {
  display: inline-block;
  transition: all 0.2s;
  font-size: 0.8em;
  color: var(--accent-color-light);
}
.markdown h2 a.zola-anchor:hover {
  text-decoration: var(--accent-color) underline;
}
.markdown h2 a.zola-anchor:hover::before, .markdown h2 a.zola-anchor:hover::after {
  transform: scale(1.2);
  color: var(--accent-color);
}
.markdown h3 {
  position: relative;
  font-size: 1.5em;
  margin: 0.5em 0 0.8em 0;
  font-family: "LXGW Bright", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
.markdown h3:target {
  scroll-margin-top: 4rem;
}
.markdown h3 a.zola-anchor {
  transition: all 0.2s ease-in-out;
  text-decoration-color: transparent;
}
.markdown h3 a.zola-anchor::before {
  padding-right: 0.25em;
  content: "###";
}
.markdown h3 a.zola-anchor::after {
  padding-left: 0.3em;
  content: "";
}
.markdown h3 a.zola-anchor::before, .markdown h3 a.zola-anchor::after {
  display: inline-block;
  transition: all 0.2s;
  font-size: 0.8em;
  color: var(--accent-color-light);
}
.markdown h3 a.zola-anchor:hover {
  text-decoration: var(--accent-color) underline;
}
.markdown h3 a.zola-anchor:hover::before, .markdown h3 a.zola-anchor:hover::after {
  transform: scale(1.2);
  color: var(--accent-color);
}
.markdown h4 {
  position: relative;
  font-size: 1.25em;
  margin: 1em 0 0;
  font-family: "LXGW Bright", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
.markdown h4:target {
  scroll-margin-top: 4rem;
}
.markdown h4 a.zola-anchor {
  transition: all 0.2s ease-in-out;
  text-decoration-color: transparent;
}
.markdown h4 a.zola-anchor::before {
  padding-right: 0.25em;
  content: "####";
}
.markdown h4 a.zola-anchor::after {
  padding-left: 0.3em;
  content: "";
}
.markdown h4 a.zola-anchor::before, .markdown h4 a.zola-anchor::after {
  display: inline-block;
  transition: all 0.2s;
  font-size: 0.8em;
  color: var(--accent-color-light);
}
.markdown h4 a.zola-anchor:hover {
  text-decoration: var(--accent-color) underline;
}
.markdown h4 a.zola-anchor:hover::before, .markdown h4 a.zola-anchor:hover::after {
  transform: scale(1.2);
  color: var(--accent-color);
}
.markdown h1 {
  text-align: center;
}
.markdown h2::after {
  z-index: -1;
  position: absolute;
  left: 0;
  top: 50%;
  content: "--------------------------------------------------";
  letter-spacing: 8px;
  color: var(--accent-color-light);
  max-width: 100%;
  font-size: 0.8em;
  text-wrap: nowrap;
  overflow-x: hidden;
}
.markdown hr {
  position: relative;
  border-bottom: 1px solid #cccccc;
  opacity: 66%;
  counter-increment: hr;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5em;
}
.markdown hr::after {
  background-color: var(--background-color);
  content: counter(hr, emoticon);
  line-height: 20px;
  text-align: center;
  padding: 0 4px;
  letter-spacing: 0.1rem;
}
.markdown a {
  color: var(--link-color);
  text-decoration: underline;
  transition: color 0.2s ease-in-out;
}
.markdown a:hover {
  color: var(--link-hover-color);
}
.markdown del, .markdown s {
  text-decoration-color: var(--accent-color-light);
}
.markdown ul, .markdown ol {
  margin: 0.5em 0;
  padding-left: 2em;
}
.markdown ul {
  list-style-type: disc;
}
.markdown ul ul {
  list-style-type: circle;
}
.markdown ul ul ul {
  list-style-type: square;
}
.markdown ol {
  list-style-type: decimal;
}
.markdown ol ol {
  list-style-type: lower-alpha;
}
.markdown ol ol ol {
  list-style-type: lower-roman;
}
.markdown li {
  margin: 0.25em 0;
  line-height: 1.8;
}
.markdown li::marker {
  color: var(--list-marker-color);
}
.markdown blockquote {
  margin: 1em 0;
  padding: 0.75em 1em 0.75em 1.5em;
  border-left: 4px solid var(--blockquote-border);
  background-color: var(--blockquote-bg);
  font-style: italic;
  color: var(--blockquote-text);
}
.markdown blockquote p:first-child {
  margin-top: 0;
}
.markdown blockquote p:last-child {
  margin-bottom: 0;
}
.markdown blockquote cite {
  display: block;
  margin-top: 0.5em;
  font-size: 0.9em;
  text-align: right;
  font-style: normal;
}
.markdown blockquote cite::before {
  content: "— ";
}
.markdown code {
  font-family: "JetBrainsMono Nerd Font Mono", Consolas, monospace;
  font-size: 0.9em;
  padding: 0.2em 0.4em;
  background-color: var(--code-bg);
  border-radius: 0.25rem;
  color: var(--code-text);
  border: 1px solid var(--code-border);
}
.markdown pre {
  font-size: 90%;
  padding: 1em;
  margin: 1em 0;
  overflow-x: auto;
  border-radius: 0.5rem;
  background-color: var(--pre-bg);
  border: 1px solid var(--pre-border);
  box-shadow: 0 2px 8px var(--pre-shadow);
  position: relative;
}
.markdown pre::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color-light));
  border-radius: 0.5rem 0.5rem 0 0;
}
.markdown pre code {
  background-color: transparent;
  padding: 0;
  color: var(--pre-code-text);
  font-size: 1em;
  border: none;
}
.markdown img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1em 0;
  display: block;
}
.markdown figure {
  margin: 1.5em 0;
  text-align: center;
}
.markdown figure img {
  margin: 0 auto;
}
.markdown figure figcaption {
  margin-top: 0.5em;
  font-size: 0.9em;
  color: var(--figcaption-text);
  font-style: italic;
}
.markdown table {
  width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}
.markdown table thead {
  background-color: var(--table-header-bg);
}
.markdown table th, .markdown table td {
  padding: 0.75em 1em;
  text-align: left;
  border: 1px solid var(--table-border);
}
.markdown table th {
  font-weight: 600;
  color: var(--table-header-text);
}
.markdown table tbody tr:nth-child(even) {
  background-color: var(--table-row-even);
}
.markdown table tbody tr:hover {
  background-color: var(--table-row-hover);
}
@media (max-width: 768px) {
  .markdown {
    font-size: 0.95rem;
  }
  .markdown h1 {
    font-size: 1.75em;
  }
  .markdown h2 {
    font-size: 1.5em;
  }
  .markdown h3 {
    font-size: 1.25em;
  }
  .markdown h4 {
    font-size: 1.1em;
  }
  .markdown ul, .markdown ol {
    padding-left: 1.5em;
  }
  .markdown blockquote {
    padding: 0.5em 0.75em 0.5em 1em;
    border-left-width: 3px;
  }
  .markdown pre {
    padding: 0.75em;
    font-size: 85%;
  }
  .markdown table {
    font-size: 0.9em;
  }
  .markdown table th, .markdown table td {
    padding: 0.5em 0.75em;
  }
}
@media (max-width: 480px) {
  .markdown {
    font-size: 0.9rem;
  }
  .markdown h1 {
    font-size: 1.5em;
  }
  .markdown h2 {
    font-size: 1.35em;
  }
  .markdown h2::after {
    letter-spacing: 4px;
  }
  .markdown h3 {
    font-size: 1.15em;
  }
  .markdown h4 {
    font-size: 1.05em;
  }
}

.comment-overlay {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.comment-overlay > * {
  pointer-events: auto;
}

.comment-overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background-color: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.comment-overlay-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.comment-overlay-bar {
  width: 100%;
  max-width: 1600px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-color, #e2e8f0);
  border-bottom: none;
  border-radius: 0.75rem 0.75rem 0 0;
  background-color: var(--background-color, #ffffff);
  color: var(--text-color, #1e293b);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s ease;
}
.comment-overlay-bar:hover {
  background-color: var(--hover-bg, #f8fafc);
}

.comment-overlay-title {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
}

.comment-overlay-title-text {
  flex-shrink: 0;
}

.comment-overlay-path {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-overlay-chevron {
  flex-shrink: 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

.comment-overlay-panel {
  width: 100%;
  max-width: 1600px;
  max-height: 0;
  overflow: hidden;
  border-left: 1px solid var(--border-color, #e2e8f0);
  border-right: 1px solid var(--border-color, #e2e8f0);
  background-color: var(--background-color, #ffffff);
  transition: max-height 0.3s ease;
}
.comment-overlay-panel.expanded {
  max-height: 75vh;
}

.comment-overlay-content {
  max-height: 75vh;
  overflow-y: auto;
  padding: 1rem;
}

@media (max-width: 640px) {
  .comment-overlay-bar,
.comment-overlay-panel {
    max-width: 100%;
  }
  .comment-overlay-panel.expanded {
    max-height: 85vh;
  }
  .comment-overlay-content {
    max-height: 85vh;
    padding: 0.75rem;
  }
}
.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}
.scroll-progress.visible {
  opacity: 1;
}

.scroll-progress-bar {
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background-color: var(--accent-color, #2563eb);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent-color, #2563eb) 65%, transparent);
  transition: transform 120ms ease-out;
  will-change: transform;
}

.scroll-progress-pill {
  position: absolute;
  bottom: -0.5rem;
  width: 2rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent-color, #2563eb) 35%, transparent);
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--accent-color, #2563eb);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
  font-size: 0.625rem;
  font-variant-numeric: tabular-nums;
  line-height: 1rem;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -0.25rem) scale(0.92);
  transition: left 120ms ease-out, opacity 160ms ease, transform 160ms ease;
  will-change: left, transform;
}
.scroll-progress-pill.visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.scroll-top {
  position: fixed;
  top: 4.5rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--accent-color, #2563eb) 28%, transparent);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--accent-color, #2563eb);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.35rem) scale(0.92);
  transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.scroll-top:hover {
  background-color: color-mix(in srgb, white 82%, var(--accent-color, #2563eb) 18%);
}
.scroll-top:focus-visible {
  outline: 2px solid var(--accent-color, #2563eb);
  outline-offset: 2px;
}

.scroll-top-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
}

.gallery-main {
  max-width: 1600px;
  width: 100%;
}

.gallery-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.gallery-page-title {
  font-size: 1.75rem;
  text-align: center;
  margin: 0;
}

.gallery-empty {
  color: var(--text-muted, #64748b);
  text-align: center;
  padding: 3rem 0;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.gallery-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--tab-border, #cbd5e1);
  border-radius: 9999px;
  background-color: var(--tab-bg, #ffffff);
  color: var(--tab-text, #475569);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.gallery-tab:hover {
  border-color: var(--accent-color-light, #93c5fd);
  color: var(--accent-color, #2563eb);
  transform: translateY(-1px);
}
.gallery-tab.active {
  border-color: var(--accent-color, #2563eb);
  background-color: var(--accent-color, #2563eb);
  color: #ffffff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent-color, #2563eb) 35%, transparent);
}
.gallery-tab.active .gallery-tab-count {
  background-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.gallery-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  background-color: var(--tab-count-bg, #f1f5f9);
  color: var(--tab-count-text, #64748b);
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.gallery-category {
  width: 100%;
}

.gallery-category-desc {
  margin-bottom: 1.5rem;
}
.gallery-category-desc.markdown {
  max-width: none;
  margin-inline: 0;
}

.gallery-timeline {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  overflow-anchor: none;
}

.gallery-date-group {
  position: relative;
  padding-left: 1.25rem;
  border-left: 2px solid var(--timeline-line, #e2e8f0);
}

.gallery-date-heading {
  position: sticky;
  top: 3.75rem;
  margin: 0 0 1rem -1.25rem;
  padding: 0.5rem 0 0.5rem 1.25rem;
  background-color: var(--background-color, #ffffff);
  color: var(--accent-color, #2563eb);
  font-size: 1.05rem;
  font-weight: 600;
  z-index: 50;
}
.gallery-date-heading::before {
  content: "";
  position: absolute;
  left: -0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background-color: var(--accent-color, #2563eb);
  border: 2px solid var(--background-color, #ffffff);
  box-shadow: 0 0 0 2px var(--accent-color-light, #bfdbfe);
}

.gallery-date-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-folder-group {
  padding: 1rem;
  border: 1px solid var(--folder-border, #e2e8f0);
  border-radius: 0.75rem;
  background-color: var(--folder-bg, #f8fafc);
}

.gallery-folder-header {
  margin-bottom: 0.75rem;
}

.gallery-folder-heading {
  margin: 0 0 0.35rem 0;
  color: var(--folder-accent, #7c3aed);
  font-size: 1rem;
  font-weight: 600;
}

.gallery-folder-desc {
  color: var(--text-muted, #64748b);
  font-size: 0.9rem;
  line-height: 1.6;
}
.gallery-folder-desc.markdown {
  max-width: none;
  margin-inline: 0;
}
.gallery-folder-desc > *:first-child {
  margin-top: 0;
}
.gallery-folder-desc > *:last-child {
  margin-bottom: 0;
}

.gallery-layout {
  --gallery-row-gap: 0.75rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gallery-row-gap);
}

.gallery-row {
  width: 100%;
  display: flex;
  gap: var(--gallery-row-gap);
  justify-content: center;
  align-items: center;
}

.gallery-row-feature {
  padding-block: 1rem;
  background-color: color-mix(in srgb, var(--folder-bg, #f8fafc) 88%, #fb7185 12%);
  border-block: 1px solid rgba(251, 113, 133, 0.3);
}

.gallery-row-feature + .gallery-row-feature {
  margin-top: calc(-1 * var(--gallery-row-gap));
  border-top: 0;
}

.gallery-row-feature + .gallery-row-standard {
  margin-top: 1rem;
}

.gallery-card {
  --gallery-frame-color: transparent;
  --gallery-accent-shadow: 0 0 0 rgba(0, 0, 0, 0);
  flex: 0 0 auto;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gallery-frame-color);
  border-radius: 0.5rem;
  cursor: pointer;
  background-color: var(--gallery-card-bg, #f1f5f9);
  box-shadow: var(--gallery-accent-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--gallery-accent-shadow), 0 10px 28px rgba(0, 0, 0, 0.14);
}
.gallery-card:hover .gallery-overlay {
  opacity: 1;
}
.gallery-card:hover .gallery-thumb {
  transform: scale(1.04);
}

.gallery-card-rating-4 {
  --gallery-frame-color: rgba(245, 158, 11, 0.58);
}

.gallery-card-rating-5 {
  --gallery-frame-color: rgba(244, 114, 182, 0.88);
  --gallery-accent-shadow: 0 0 0 1px rgba(244, 114, 182, 0.15), 0 0 18px rgba(236, 72, 153, 0.3);
}

.gallery-card-feature {
  --gallery-frame-color: rgba(251, 113, 133, 0.96);
  --gallery-accent-shadow: 0 0 0 1px rgba(251, 113, 133, 0.24), 0 0 26px rgba(244, 63, 94, 0.42), 0 0 58px rgba(244, 63, 94, 0.2);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.6rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-title {
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.94);
  padding: 1rem;
}

.gallery-lightbox-content {
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: min(78vh, 92vh - 7rem);
  object-fit: contain;
  border-radius: 0.25rem;
  pointer-events: auto;
}

.gallery-lightbox-title {
  color: white;
  font-size: 1rem;
  margin: 0;
  pointer-events: auto;
}

.gallery-lightbox-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 1rem;
  min-height: 1.25rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  line-height: 1.25rem;
  pointer-events: auto;
}
.gallery-lightbox-meta .hidden {
  display: none;
}

.gallery-lightbox-rating {
  color: #fbbf24;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.28);
}

.gallery-lightbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.gallery-lightbox-label-swatch {
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background-color: #94a3b8;
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.35);
}

.gallery-lightbox-label-red .gallery-lightbox-label-swatch {
  background-color: #fb7185;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.65);
}

.gallery-lightbox-label-yellow .gallery-lightbox-label-swatch {
  background-color: #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.55);
}

.gallery-lightbox-label-green .gallery-lightbox-label-swatch {
  background-color: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.55);
}

.gallery-lightbox-label-blue .gallery-lightbox-label-swatch {
  background-color: #60a5fa;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.55);
}

.gallery-lightbox-label-purple .gallery-lightbox-label-swatch {
  background-color: #c084fc;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.55);
}

.gallery-lightbox-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  margin: 0;
  pointer-events: auto;
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background-color: rgba(255, 255, 255, 0.28);
}

.gallery-lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 1.75rem;
  line-height: 1;
}

.gallery-lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-sentinel {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted, #64748b);
  font-size: 0.9rem;
}
.gallery-sentinel.hidden {
  display: none;
}

.gallery-comments-section {
  width: 100%;
  margin-top: 2.5rem;
}

.gallery-comments-title {
  margin: 0 0 1rem 0;
  color: var(--text-color, #1e293b);
  font-size: 1.25rem;
  font-weight: 600;
}

.gallery-comments {
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 0.75rem;
  padding: 0.75rem;
  background-color: var(--background-color, #ffffff);
}

.waline-comments {
  width: 100%;
  min-height: 200px;
  margin-top: 1rem;
}
.waline-comments .waline-root,
.waline-comments .wl-cards {
  width: 100%;
}

@media (max-width: 640px) {
  .gallery-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .gallery-tabs {
    gap: 0.4rem;
  }
  .gallery-tab {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
  }
  .gallery-layout {
    --gallery-row-gap: 0.5rem;
  }
  .gallery-row-feature {
    padding-block: 0.65rem;
  }
  .gallery-row-feature + .gallery-row-standard {
    margin-top: 0.65rem;
  }
  .gallery-card {
    border-radius: 0.375rem;
  }
  .gallery-date-group {
    padding-left: 1rem;
  }
  .gallery-date-heading {
    top: 3.5rem;
    margin-left: -1rem;
    padding-left: 1rem;
    font-size: 0.95rem;
  }
  .gallery-folder-group {
    padding: 0.75rem;
  }
  .gallery-lightbox-prev,
.gallery-lightbox-next {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.25rem;
  }
  .gallery-lightbox-prev {
    left: 0.5rem;
  }
  .gallery-lightbox-next {
    right: 0.5rem;
  }
}
.lxgw {
  font-family: "LXGW Bright", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

#main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

:root {
  color-scheme: light;
  --code: var(--pre-bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  background: #fff;
}

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

body {
  margin: 0;
  background: #fff;
  color: #000;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

h1, h2, h3, h4 {
  font-size: inherit;
  font-weight: inherit;
}

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

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

button {
  cursor: pointer;
}

button, input {
  border: 1px solid #cbd5e1;
}

button {
  background: none;
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  display: block;
}

.site-header {
  display: flex;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 800;
  background: transparent;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.site-header-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  border-bottom: 1px solid color-mix(in oklab, oklch(86.9% 0.022 252.894) 100%, transparent);
  background: color-mix(in oklab, #fff 90%, transparent);
  backdrop-filter: blur(12px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  height: 56px;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
}

.site-nav .nav-btn {
  height: 40px;
  gap: 0.25rem;
  padding: 0;
  outline-offset: 0;
}

.site-nav .nav-btn:not(.brand):not(.repository) {
  padding-inline: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.site-nav .brand {
  margin-right: auto;
  gap: 0.5rem;
  padding: 0.25rem;
}

.brand img {
  display: block;
  vertical-align: middle;
  max-width: 100%;
  height: 100%;
  border-radius: 0.25rem;
}

.brand > span {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition-property: transform, translate, scale, rotate;
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-description {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1rem;
  color: color-mix(in oklab, oklch(44.6% 0.043 257.281) 100%, transparent);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand:hover .brand-title {
  translate: 0 -4px;
}

.brand:hover .brand-description {
  max-height: 2rem;
  opacity: 1;
}

.repository {
  width: 40px;
  padding: 0;
}

.repository .icon {
  font-size: 1.5rem;
  line-height: 2rem;
  width: 0.97em;
  height: 1em;
}

.repository-icon {
  mask: url("github.svg") no-repeat;
  mask-size: 100% 100%;
  background-color: currentColor;
  color: inherit;
}

.site-main {
  width: 100%;
  max-width: 120ch;
  margin: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero {
  display: flex;
  align-items: stretch;
}

.hero-avatar {
  width: 160px;
  height: 160px;
  border-radius: 0.25rem;
}

.hero-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.25rem;
}

.hero-title {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-family: "LXGW Bright", system-ui, sans-serif;
}

.hero-description {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-family: "LXGW Bright", system-ui, sans-serif;
}

.hero-email {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.hero-email a {
  text-decoration: underline;
}

.socials {
  display: flex;
}
.socials a {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  outline: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.socials a:hover {
  outline-color: color-mix(in oklab, oklch(92.9% 0.013 255.508) 100%, transparent);
}
.socials .icon {
  width: 20px;
  height: 20px;
}
.socials .bilibili {
  color: #19a2d4;
}
.socials .steam {
  color: #082256;
}

.page-title {
  font-size: inherit;
}

.posts-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
}
.post-card:hover {
  border-color: #94a3b8;
}
.post-card h2 {
  font-size: 1rem;
}

.post-dates {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.summary {
  line-height: inherit;
}

pre > code .z-source.z-shell .z-variable.z-function {
  color: #4b69c6;
}

pre > code .z-source.z-shell .z-variable.z-language.z-tilde {
  color: #d73948;
}

.summary pre {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
}

.summary pre, .summary code {
  font-family: "JetBrainsMono NFM", Consolas, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1em;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 40rem;
}
.search-field input {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #fff;
}

#search-status {
  color: #64748b;
  font-size: 0.875rem;
}

.not-found {
  text-align: center;
  padding: 4rem 0;
}
.not-found h1 {
  font-size: 4rem;
}
.not-found a {
  color: var(--accent-color);
  text-decoration: underline;
}

.markdown {
  min-width: 0;
  width: 100%;
  font-family: "LXGW Bright", serif;
}
.markdown > div {
  min-width: 0;
}
.markdown h1, .markdown h2, .markdown h3, .markdown h4 {
  scroll-margin-top: 4rem;
}
.markdown h2 {
  isolation: isolate;
}
.markdown h1 a.heading-anchor::before {
  content: "<";
  padding-right: 0.25em;
}
.markdown h1 a.heading-anchor::after {
  content: "/>";
  padding-left: 0.3em;
}
.markdown h2 a.heading-anchor::before {
  content: "##";
  padding-right: 0.25em;
}
.markdown h3 a.heading-anchor::before {
  content: "###";
  padding-right: 0.25em;
}
.markdown h4 a.heading-anchor::before {
  content: "####";
  padding-right: 0.25em;
}
.markdown a.heading-anchor {
  text-decoration-color: transparent;
}
.markdown a.heading-anchor::before, .markdown a.heading-anchor::after {
  color: var(--accent-color-light);
  font-size: 0.8em;
}
.markdown a.heading-anchor:hover {
  text-decoration-color: var(--accent-color);
}
.markdown code {
  overflow-wrap: anywhere;
}
.markdown pre {
  line-height: 1.5;
}
.markdown pre code {
  overflow-wrap: normal;
}

.home-content {
  padding: 0.5rem;
}

.recent-posts li {
  display: flex;
  gap: 2rem;
}
.recent-posts time {
  color: #4b5563;
  flex-shrink: 0;
}

.comment-overlay {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.comment-overlay > * {
  pointer-events: auto;
}

.comment-overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(0, 0, 0, 0.25);
}

.comment-overlay-bar {
  width: 100%;
  max-width: 1600px;
  padding: 0.65rem 1rem;
  border: 1px solid #e2e8f0;
  border-bottom: 0;
  border-radius: 0.75rem 0.75rem 0 0;
  background: #fff;
  color: #1e293b;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
.comment-overlay-bar:hover {
  background: #f8fafc;
}

.comment-overlay-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.comment-overlay-path {
  font-size: 0.75rem;
  opacity: 0.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-overlay-chevron {
  font-size: 0.85rem;
  opacity: 0.7;
}

.comment-overlay-panel {
  width: 100%;
  max-width: 1600px;
  max-height: 0;
  overflow: hidden;
  border-inline: 1px solid #e2e8f0;
  background: #fff;
  transition: max-height 0.3s;
}
.comment-overlay-panel.expanded {
  max-height: 75vh;
}

.comment-overlay-content {
  max-height: 75vh;
  overflow-y: auto;
  padding: 1rem;
}

.scroll-top {
  z-index: 70;
}

.gallery-main {
  max-width: 1600px;
}

.gallery-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.gallery-page-title {
  font-size: 1.75rem;
  text-align: center;
  margin: 0;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.gallery-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  background: #fff;
  color: #475569;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.gallery-tab:hover {
  border-color: var(--accent-color-light);
  color: var(--accent-color);
  transform: translateY(-1px);
}
.gallery-tab.active {
  border-color: var(--accent-color);
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent-color) 35%, transparent);
}
.gallery-tab.active .gallery-tab-count {
  background: #ffffff47;
  color: #fff;
}

.gallery-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.75rem;
}

.gallery-category-desc {
  margin-bottom: 1.5rem;
}
.gallery-category-desc:empty {
  display: none;
}

.gallery-category-desc.markdown {
  max-width: none;
  margin-inline: 0;
}

.gallery-timeline {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  overflow-anchor: none;
}

.gallery-date-group {
  padding-left: 1.25rem;
  border-left: 2px solid #e2e8f0;
  position: relative;
}

.gallery-date-heading {
  position: sticky;
  top: 3.5rem;
  margin: 0 0 1rem -1.25rem;
  padding: 0.5rem 0 0.5rem 1.25rem;
  background: #fff;
  color: var(--accent-color);
  font-size: 1.05rem;
  font-weight: 600;
  z-index: 50;
}
.gallery-date-heading::before {
  content: "";
  position: absolute;
  left: -0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent-color);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--accent-color-light);
}

.gallery-date-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-folder-group {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.gallery-folder-header {
  margin-bottom: 0.75rem;
}

.gallery-folder-heading {
  margin: 0 0 0.35rem;
  color: #7c3aed;
  font-size: 1rem;
  font-weight: 600;
}

.gallery-folder-desc.markdown {
  max-width: none;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
}
.gallery-folder-desc.markdown p:first-child {
  margin-top: 0;
}
.gallery-folder-desc.markdown p:last-child {
  margin-bottom: 0;
}

.gallery-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.gallery-row {
  display: flex;
  width: 100%;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.gallery-row-feature {
  padding-block: 1rem;
  background: color-mix(in srgb, #f8fafc 88%, #fb7185 12%);
  border-block: 1px solid #fb71854d;
}

.gallery-row-feature + .gallery-row-feature {
  margin-top: -0.75rem;
  border-top: 0;
}

.gallery-row-feature + .gallery-row:not(.gallery-row-feature) {
  margin-top: 1rem;
}

.gallery-card {
  --gallery-frame-color: transparent;
  --gallery-accent-shadow: 0 0 0 transparent;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gallery-frame-color);
  border-radius: 0.5rem;
  background: #f1f5f9;
  padding: 0;
  flex: 0 0 auto;
  width: min(100%, 360px);
  box-shadow: var(--gallery-accent-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--gallery-accent-shadow), 0 10px 28px #00000024;
}
.gallery-card:hover .gallery-overlay {
  opacity: 1;
}
.gallery-card:hover .gallery-thumb {
  transform: scale(1.04);
}

.gallery-card-rating-4 {
  --gallery-frame-color: #f59e0b94;
}

.gallery-card-rating-5 {
  --gallery-frame-color: #f472b6e0;
  --gallery-accent-shadow: 0 0 0 1px #f472b626, 0 0 18px #ec48994d;
}

.gallery-card-feature {
  --gallery-frame-color: #fb7185f5;
  --gallery-accent-shadow: 0 0 0 1px #fb71853d, 0 0 26px #f43f5e6b, 0 0 58px #f43f5e33;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.6rem;
  background: linear-gradient(to top, #0000008c, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-title {
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  text-shadow: 0 1px 2px #00000080;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

dialog.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 1rem;
  margin: 0;
  border: 0;
  background: #000000f0;
  color: #fff;
  display: none;
}
dialog.gallery-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
dialog.gallery-lightbox::backdrop {
  background: transparent;
}

.gallery-lightbox-content {
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: min(78vh, 92vh - 7rem);
  object-fit: contain;
  border-radius: 0.25rem;
}

.gallery-lightbox-title {
  color: white;
  font-size: 1rem;
  text-align: center;
}

.gallery-lightbox-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1rem;
  color: #ffffffdb;
  font-size: 0.82rem;
}

.gallery-lightbox-rating {
  color: #fbbf24;
  letter-spacing: 0.12em;
}

.gallery-lightbox-label {
  --label-color: #94a3b8;
}
.gallery-lightbox-label::before {
  content: "";
  display: inline-block;
  margin-right: 0.4rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--label-color);
  box-shadow: 0 0 10px var(--label-color);
}
.gallery-lightbox-label:empty::before {
  display: none;
}

.gallery-lightbox-desc, .gallery-lightbox-counter {
  color: #ffffffbf;
  font-size: 0.875rem;
  text-align: center;
}

.gallery-lightbox-desc {
  max-width: 80vw;
  overflow-wrap: anywhere;
}

.gallery-lightbox-close, .gallery-lightbox-prev, .gallery-lightbox-next {
  position: absolute;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #ffffff1f;
  color: #fff;
  font-size: 1.5rem;
  z-index: 10;
}
.gallery-lightbox-close:hover, .gallery-lightbox-prev:hover, .gallery-lightbox-next:hover {
  background: #ffffff47;
}

.gallery-lightbox-close {
  right: 1rem;
  top: 1rem;
  font-size: 1.75rem;
}

.gallery-lightbox-prev {
  left: 1rem;
  top: 50%;
}

.gallery-lightbox-next {
  right: 1rem;
  top: 50%;
}

@media (max-width: 640px) {
  .gallery-main {
    padding-inline: 1rem;
  }
  .gallery-tabs {
    gap: 0.4rem;
  }
  .gallery-tab {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
  }
  .gallery-layout, .gallery-row {
    gap: 0.5rem;
  }
  .gallery-date-group {
    padding-left: 1rem;
  }
  .gallery-date-heading {
    margin-left: -1rem;
    padding-left: 1rem;
    font-size: 0.95rem;
  }
  .gallery-folder-group {
    padding: 0.75rem;
  }
  .gallery-lightbox-prev, .gallery-lightbox-next {
    width: 2.25rem;
    height: 2.25rem;
  }
  .gallery-lightbox-prev {
    left: 0.5rem;
  }
  .gallery-lightbox-next {
    right: 0.5rem;
  }
  .comment-overlay-panel.expanded, .comment-overlay-content {
    max-height: 85vh;
  }
  .comment-overlay-content {
    padding: 0.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
