:root {
  color-scheme: light;
  --ink: #202925;
  --muted: #59655f;
  --line: #dce3de;
  --accent: #20715a;
}
* { box-sizing: border-box; letter-spacing: 0; }
body {
  background: #f7f9f7;
  color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #164f40; }
a:focus-visible { outline: 3px solid #3275ba; outline-offset: 4px; }
.container { width: 100%; }
h1 { max-width: 1400px; margin: 0 auto; padding: 27px 32px 21px; font-size: 30px; line-height: 1.25; text-align: left; font-weight: 700; }
h1 a { color: var(--ink); }
#menu { padding: 0; border-block: 1px solid var(--line); background: #fff; }
#menu ul { display: flex; flex-wrap: wrap; gap: 0 28px; max-width: 1400px; padding: 0 32px; margin: 0 auto; list-style: none; }
#menu li { display: block; margin: 0; }
#menu a { display: block; padding: 14px 0; font-weight: 600; text-decoration: none; }
#menu a[aria-current="page"] { box-shadow: inset 0 -2px var(--accent); }
.content { max-width: 1400px; margin: 0 auto; padding: 25px 32px 36px; }
.breadcrumb { margin: 0 0 22px; color: var(--muted); }
.breadcrumb h2 { font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.breadcrumb a { text-decoration: none; }
.gallery, .album-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; width: 100%; height: auto; float: none; padding: 0; background: transparent; }
.album-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery::after, .album-list::after { content: none; }
.thumbnail, .menu-img, .gallery__img--main, .gallery__img--secondary { width: auto; min-width: 0; float: none; margin: 0; text-align: left; }
.thumbnail > a { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 11; width: 100%; padding: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; line-height: 0; transition: border-color 120ms ease; }
.thumbnail > a:hover { border-color: #7caaa0; }
.thumbnail img, .thumbnail img:hover { width: 100%; height: 100%; max-width: 100%; object-fit: contain; border: 0; border-radius: 0; margin: 0; padding: 0; box-shadow: none; }
figcaption, .album_title { display: block; padding: 10px 0 0; overflow: visible; overflow-wrap: anywhere; white-space: normal; text-overflow: clip; font-size: 13px; line-height: 1.55; color: var(--muted); }
.album_title { padding-top: 14px; font-size: 18px; font-weight: 600; color: var(--ink); }
.empty-album { color: var(--muted); font-size: 16px; line-height: 1.5; }
#description { margin-top: 24px; }
footer { float: none; max-width: 1400px; margin: 0 auto; padding: 18px 32px 30px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
footer p { margin: 0; text-align: left; }
footer span + span { margin-left: 12px; }
.pswp { --pswp-bg: #151917; --pswp-root-z-index: 100000; }
.pswp__dynamic-caption { overflow-wrap: anywhere; }
@media (max-width: 1050px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  h1 { padding: 21px 20px 18px; font-size: 27px; }
  #menu ul { padding-inline: 20px; gap: 0 23px; }
  .content { padding: 22px 20px 28px; }
  .gallery, .album-list { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .breadcrumb h2 { font-size: 16px; }
  .thumbnail > a { aspect-ratio: 16 / 11; padding: 7px; }
  footer { padding: 18px 20px 25px; }
}
@media (prefers-reduced-motion: reduce) { .thumbnail > a { transition: none; } }
