:root {
  --bg: #fffef4;
  --bg-accent: #f2f7dc;
  --surface: #ffffff;
  --surface-soft: #f8fbe9;
  --ink: #1f2a19;
  --muted: #5b684f;
  --line: #dce5c0;
  --line-strong: #c1cf8a;
  --brand-yellow: #f0cb1a;
  --brand-yellow-soft: #f8e179;
  --brand-green: #3f7d2e;
  --brand-green-deep: #2e5f22;
  --accent-link: #2f6f25;
  --accent-link-hover: #234f1c;
  --shadow-soft: 0 10px 28px rgba(51, 76, 22, 0.08);
  --shadow-card: 0 12px 26px rgba(66, 92, 30, 0.12);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #e3ece8 0%, #f1f6f3 58%, #fbfdfc 100%);
  font-family: "Nunito Sans", "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.45;
}

.container {
  width: min(1220px, 94vw);
  margin: 0 auto;
}

.site-header {
  position: static;
  border-bottom: 0;
  background: #333632 url("/static/header_fill.gif") repeat-x left bottom;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand-logo img {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
}

.brand-title {
  margin-left: 1.15rem;
  color: #bababa;
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: clamp(1.45rem, 4.6vw, 3.2rem);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.layout.with-sidebar {
  display: grid;
  grid-template-columns: minmax(235px, 290px) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  margin-top: 1.05rem;
  margin-bottom: 1.6rem;
}

.sidebar {
  position: static;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
  box-shadow: var(--shadow-soft);
  padding: 0.9rem;
  max-height: none;
  overflow: visible;
}

.sidebar h2 {
  margin: 0.45rem 0 0.72rem;
  font-size: 1.03rem;
}
.sidebar-toggle {
  display: block;
}
.sidebar-summary {
  display: none;
}
.mobile-cats-fab,
.mobile-search-fab,
.mobile-sidebar-overlay {
  display: none;
}

.quick-search,
.search-form {
  display: grid;
  gap: 0.42rem;
  margin-bottom: 0.9rem;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid #dfe8bb;
  background: linear-gradient(180deg, #fffced 0%, #f2f8db 100%);
}

.quick-search label,
.search-form label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.quick-search input,
.search-form input {
  border: 1px solid #cfdcab;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  padding: 0.52rem 0.6rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap input {
  padding-left: 2rem;
}

.search-input-glyph {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.78;
  pointer-events: none;
}

.quick-search input:focus,
.search-form input:focus {
  outline: 0;
  border-color: #8eb45e;
  box-shadow: 0 0 0 3px rgba(151, 187, 95, 0.25);
}

.quick-search button,
.search-form button {
  border: 1px solid var(--brand-green);
  border-radius: 11px;
  background: linear-gradient(180deg, #4f8f3a 0%, var(--brand-green-deep) 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.2s ease;
}

.quick-search button:hover,
.search-form button:hover {
  box-shadow: 0 8px 16px rgba(44, 91, 35, 0.26);
}

.quick-search button:active,
.search-form button:active {
  transform: translateY(1px);
}

.inline-radio {
  display: grid;
  gap: 0.15rem;
}

.inline-radio label {
  color: var(--ink);
}

.date-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.content-area {
  min-width: 0;
}

.tree ul {
  list-style: none;
  margin: 0;
  padding-left: 0.86rem;
  border-left: 1px solid #d9e3b7;
}

.tree > ul {
  padding-left: 0;
  border-left: 0;
}

.tree li {
  margin: 0.18rem 0;
}

.tree a {
  display: inline-block;
  border-radius: 8px;
  color: #24311d;
  text-decoration: none;
  font-size: 0.96rem;
  padding: 0.15rem 0.28rem;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.tree a:hover {
  background: #edf5d0;
}

.tree a.current {
  background: linear-gradient(120deg, #fae37a 0%, #d8ed96 100%);
  color: #203019;
  font-weight: 800;
}

.sitemap-page {
  margin-top: 1.05rem;
  margin-bottom: 1.6rem;
}

.sitemap-tree {
  margin-top: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbe9 100%);
  box-shadow: var(--shadow-soft);
}

h1,
h2,
h3 {
  margin: 1.14rem 0 0.72rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

h2 {
  font-size: clamp(1.18rem, 2.15vw, 1.52rem);
}

.page-title {
  margin: 0.14rem 0 0.72rem;
  font-size: clamp(1.14rem, 2.05vw, 1.43rem);
  font-weight: 700;
  line-height: 1.2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a {
  color: var(--accent-link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.13em;
}

a:hover {
  color: var(--accent-link-hover);
}

.muted {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid #cfdab3;
  background: linear-gradient(180deg, rgba(231, 239, 228, 0.88) 0%, rgba(220, 232, 225, 0.95) 100%);
  margin-top: 1.2rem;
}

.site-footer .container {
  padding: 0.9rem 0 1.1rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #2e3a2b;
  font-size: 0.92rem;
  line-height: 1.4;
}

.site-footer p + p {
  margin-top: 0.35rem;
}

.site-footer .footer-tribute {
  color: #3a4636;
}

.site-footer .footer-usage {
  margin-top: 0.7rem;
}

.site-footer a {
  color: #2f6f25;
}

.site-footer a:hover {
  color: #234f1c;
}

.site-footer .footer-meta {
  font-size: 0.78rem;
  opacity: 0.9;
}

.grid {
  display: grid;
  gap: 1rem;
}

.categories {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.photos {
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfeef 100%);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  min-height: 250px;
}

.card h2,
.card h3 {
  margin-top: 0.28rem;
  margin-bottom: 0.2rem;
  padding: 0 0.85rem;
  font-size: 1.04rem;
}

.card h2 a,
.card h3 a {
  color: #2a5f21;
  text-decoration: none;
}

.card h2 a:hover,
.card h3 a:hover {
  color: #234d1a;
}

.cat-comment {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.36;
  padding: 0 0.85rem 0.8rem;
}

.thumb,
.photo {
  display: block;
}

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

.categories .thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 0.62rem 0.62rem 0.28rem;
}

.categories .thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0;
  border-radius: 10px;
  border: 1px solid #d6e0b3;
  box-shadow: 0 5px 14px rgba(59, 88, 30, 0.14);
}

.photo-card {
  margin: 0;
  border: 1px solid var(--line);
  background: #fffffb;
  border-radius: var(--radius-lg);
  padding: 0.42rem;
  box-shadow: var(--shadow-soft);
}

.photo-card .photo img {
  border-radius: 10px;
  border: 1px solid #d9e4ba;
}

.photo-name {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.empty-thumb {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #f4f8e4 0%, #ecf5cf 100%);
  color: #6a7959;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px dashed #cddca7;
}

.categories .empty-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
}

.crumbs {
  margin-top: 0.9rem;
  margin-bottom: 0.45rem;
  color: #516246;
  font-size: 0.96rem;
}

.crumb-home-link {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  text-decoration: none;
}

.crumb-home-icon {
  display: block;
  width: 1.02rem;
  height: 1.02rem;
}

.category-nav-switcher {
  position: sticky;
  top: 0.38rem;
  z-index: 35;
  display: grid;
  align-items: start;
  margin-top: 0.9rem;
  margin-bottom: 0.55rem;
  min-height: 2.7rem;
}

.category-nav-switcher > * {
  grid-area: 1 / 1;
}

.category-crumbs {
  margin: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.category-scroll-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.category-scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  text-decoration: none;
  border: 1px solid #a8be78;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5d8 100%);
  color: #274f1f;
  font-weight: 800;
  padding: 0.42rem 0.74rem;
  box-shadow: 0 7px 16px rgba(34, 54, 21, 0.16);
  white-space: nowrap;
}

.category-scroll-home-only {
  min-width: 2.45rem;
  justify-content: center;
  padding-left: 0.56rem;
  padding-right: 0.56rem;
}

body.category-page.category-scroll-compact .category-crumbs {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

body.category-page.category-scroll-compact .category-scroll-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pager {
  margin: 1rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pager a {
  text-decoration: none;
  border: 1px solid #c8d79f;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #ffffff 0%, #f0f7d8 100%);
  color: #284f21;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
}

.pager a:hover {
  border-color: #a6be69;
}

.picture-detail {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.92fr);
  align-items: start;
}

.picture-detail figure {
  position: relative;
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 0.6rem;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.full {
  width: 100%;
  border: 1px solid #d9e5be;
  border-radius: 14px;
  background: #fff;
}

.image-edge-nav {
  position: absolute;
  inset: 0.6rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: clamp(2.2rem, 18vw, 10.4rem);
  pointer-events: none;
}

.image-edge-nav a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(20, 32, 15, 0.52);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(20, 32, 15, 0.35);
}

.image-edge-nav a:hover {
  background: rgba(20, 32, 15, 0.72);
}

.mobile-category-backbar {
  display: none;
}

.mobile-picture-nav {
  display: none;
}

.swipe-ghost {
  display: none;
}

.meta {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbe8 100%);
  border-radius: var(--radius-xl);
  padding: 1rem;
  min-width: 0;
  box-shadow: var(--shadow-soft);
}

.meta p,
.meta li,
.image-comment {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.image-comment iframe,
.image-comment img,
.image-comment embed,
.image-comment object {
  max-width: 100%;
}

.image-comment iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 10px;
}

.card,
.photo-card,
.meta,
.picture-detail figure {
  animation: riseIn 0.44s ease-out both;
}

.card:nth-child(2n),
.photo-card:nth-child(2n) {
  animation-delay: 0.04s;
}

.card:nth-child(3n),
.photo-card:nth-child(3n) {
  animation-delay: 0.08s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .layout.with-sidebar {
    grid-template-columns: 1fr;
  }

  .content-area {
    order: 1;
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 45;
    width: min(86vw, 360px);
    height: 100dvh;
    max-height: none;
    order: 2;
    padding: 0.55rem 0.65rem;
    border-radius: 20px 0 0 20px;
    border-left: 1px solid #c9d8a0;
    border-right: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(108%);
    transition: transform 0.26s ease;
    box-shadow: -16px 0 32px rgba(28, 44, 17, 0.26);
  }

  .sidebar .quick-search {
    position: sticky;
    top: 0;
    z-index: 3;
    margin-bottom: 0.55rem;
    padding: 0.48rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffced 0%, #f2f8db 100%);
    box-shadow: 0 4px 10px rgba(33, 52, 20, 0.12);
  }

  .sidebar .quick-search .search-input-wrap input {
    min-height: 2.2rem;
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
    border-radius: 10px;
  }

  .sidebar-summary {
    display: none;
  }

  .sidebar-toggle > :not(summary) {
    display: block;
    margin-top: 0;
  }

  body.mobile-sidebar-open {
    overflow: hidden;
  }

  body.mobile-sidebar-open .sidebar {
    transform: translateX(0);
  }

  .mobile-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    border: 0;
    background: rgba(24, 33, 17, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
  }

  body.mobile-sidebar-open .mobile-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-cats-fab {
    display: inline-flex;
    position: fixed;
    right: 4.5rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 44;
    border: 1px solid #9aba64;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, #ffe66f 0%, #b7db73 100%);
    color: #1f3f18;
    font: inherit;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    padding: 0.64rem 0.96rem;
    box-shadow: 0 14px 26px rgba(35, 63, 24, 0.33);
    cursor: pointer;
  }

  .mobile-search-fab {
    display: inline-flex;
    position: fixed;
    right: 0.95rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 44;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #9aba64;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe66f 0%, #b7db73 100%);
    color: #1f3f18;
    font: inherit;
    font-weight: 900;
    font-size: 1.1rem;
    padding: 0;
    box-shadow: 0 14px 26px rgba(35, 63, 24, 0.33);
    cursor: pointer;
    line-height: 1;
  }

  body.mobile-sidebar-open .mobile-cats-fab,
  body.mobile-sidebar-open .mobile-search-fab {
    display: none;
  }

  .picture-detail {
    grid-template-columns: 1fr;
  }

  .image-edge-nav {
    display: none;
  }

  .swipe-ghost {
    position: absolute;
    inset: 0.6rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    animation: swipeGhostOut 2.1s ease-out forwards;
  }

  .ghost-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(24, 34, 18, 0.43);
    color: rgba(236, 242, 229, 0.94);
    font-size: 1.5rem;
    line-height: 1;
  }

  .ghost-placeholder {
    width: 2rem;
    height: 2rem;
    visibility: hidden;
  }

  .ghost-left {
    animation: ghostNudgeLeft 0.7s ease-in-out 2;
  }

  .ghost-right {
    animation: ghostNudgeRight 0.7s ease-in-out 2;
  }

  @keyframes swipeGhostOut {
    0% {
      opacity: 0;
    }
    15% {
      opacity: 1;
    }
    78% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      visibility: hidden;
    }
  }

  @keyframes ghostNudgeLeft {
    0%, 100% {
      transform: translateX(0);
    }
    50% {
      transform: translateX(-8px);
    }
  }

  @keyframes ghostNudgeRight {
    0%, 100% {
      transform: translateX(0);
    }
    50% {
      transform: translateX(8px);
    }
  }

  .picture-page main.container {
    padding-bottom: calc(4.8rem + env(safe-area-inset-bottom));
  }

  .mobile-category-backbar {
    position: sticky;
    top: 0.45rem;
    z-index: 34;
    display: flex;
    margin: 0 0 0.7rem;
    pointer-events: none;
  }

  .mobile-category-backbar a {
    pointer-events: auto;
    display: inline-grid;
    align-items: center;
    justify-items: start;
    border: 1px solid #b9cc8a;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 246, 216, 0.96) 100%);
    color: #244e1e;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.4rem 0.72rem;
    box-shadow: 0 7px 16px rgba(34, 54, 21, 0.18);
    backdrop-filter: blur(3px);
    white-space: nowrap;
    width: 12.8rem;
    overflow: hidden;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease;
  }

  .mobile-category-backbar .backbar-label-full,
  .mobile-category-backbar .backbar-label-short {
    grid-area: 1 / 1;
    transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-category-backbar .backbar-label-full {
    opacity: 1;
    transform: translateX(0);
  }

  .mobile-category-backbar .backbar-label-short {
    opacity: 0;
    transform: translateX(6px);
  }

  body.mobile-backbar-compact .mobile-category-backbar a {
    width: 6.7rem;
    box-shadow: 0 5px 12px rgba(34, 54, 21, 0.14);
  }

  body.mobile-backbar-compact .mobile-category-backbar .backbar-label-full {
    opacity: 0;
    transform: translateX(-6px);
  }

  body.mobile-backbar-compact .mobile-category-backbar .backbar-label-short {
    opacity: 1;
    transform: translateX(0);
  }

  .mobile-picture-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 38;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.6rem 0.7rem calc(0.6rem + env(safe-area-inset-bottom));
    border-top: 1px solid #c9d6b6;
    background: linear-gradient(180deg, rgba(243, 248, 237, 0.97) 0%, rgba(231, 240, 220, 0.97) 100%);
    backdrop-filter: blur(6px);
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
  }

  body.mobile-picture-nav-hidden .mobile-picture-nav {
    opacity: 0;
    transform: translateY(110%);
    pointer-events: none;
  }

  .mobile-picture-nav a,
  .mobile-picture-nav .disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .mobile-picture-nav a {
    border: 1px solid #a8be78;
    background: linear-gradient(180deg, #ffffff 0%, #eef5d8 100%);
    color: #274f1f;
  }

  .mobile-picture-nav .disabled {
    border: 1px solid #d0d9bd;
    background: #f4f7ec;
    color: #93a084;
  }

  .container {
    width: min(1180px, 95vw);
  }
}

@media (max-width: 560px) {
  .site-header .container {
    padding: 0;
  }

  .brand-title {
    margin-left: 0.65rem;
    max-width: calc(100vw - 170px);
    font-size: clamp(1.22rem, 8.2vw, 2.25rem);
    white-space: normal;
    line-height: 0.95;
    overflow-wrap: anywhere;
  }

  .categories {
    grid-template-columns: 1fr;
  }

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

  .card h2,
  .card h3,
  .cat-comment {
    padding-left: 0.74rem;
    padding-right: 0.74rem;
  }

  .site-footer .container {
    padding: 0.8rem 0 0.95rem;
  }

  .site-footer p {
    font-size: 0.86rem;
  }

  .site-footer .footer-meta {
    font-size: 0.74rem;
  }

  .crumb-home-icon {
    width: 0.95rem;
    height: 0.95rem;
    transform: translateY(-1px);
  }

  .category-nav-switcher {
    top: 0.3rem;
  }

  .category-scroll-btn {
    max-width: calc(100vw - 1.2rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (min-width: 981px) {
  .sidebar-toggle:not([open]) > :not(summary) {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
