.home-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gallery-album a { display: block; text-decoration: none; }
.gallery-album img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; }
.home-gallery-grid .gallery-album img { object-position: center 55%; }
.gallery-album h3 { font-size: clamp(19px, 2.1vw, 25px); line-height: 1.3; margin-top: 10px; }
.gallery-album time { color: var(--muted); font-size: 13px; }
.gallery-album-count { display: block; margin-top: 4px; color: var(--red); font-size: 13px; font-weight: 700; }
.gallery-album a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.gallery-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; }
.gallery-controls label { display: grid; gap: 5px; min-width: min(100%, 300px); max-width: 100%; font-size: 13px; font-weight: 700; }
.gallery-controls select { width: 100%; max-width: 100%; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.gallery-count { margin-block: 18px 10px; }
.gallery-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; align-items: start; }
.gallery-photo-column { display: grid; gap: 24px; min-width: 0; }
.gallery-photo { min-width: 0; margin: 0; }
.gallery-photo a { display: block; }
.gallery-photo img { display: block; width: 100%; height: auto; background: var(--line); }
.gallery-photo figcaption { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.gallery-photo figcaption strong { display: block; color: var(--ink); font-size: 14px; }
.gallery-more { display: flex; margin: 28px auto 0; cursor: pointer; }
#gallery-lightbox { width: min(1080px, 96vw); max-width: 96vw; max-height: 96dvh; padding: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
#gallery-lightbox::backdrop { background: #111e; }
.gallery-lightbox-head, .gallery-lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gallery-lightbox-head { margin-bottom: 10px; }
.gallery-lightbox-head p { font-size: 14px; }
.gallery-lightbox-head button, .gallery-lightbox-controls button { cursor: pointer; }
#gallery-lightbox-photo { width: 100%; height: min(68dvh, 800px); object-fit: contain; }
.gallery-lightbox-controls { margin-top: 10px; font-size: 13px; }
@media (max-width: 680px) {
  .home-gallery-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-photo-column { gap: 20px; }
  .gallery-controls label { width: 100%; min-width: 0; }
}
