.album-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-block: 28px; }
.album-card { min-width: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: white; }
.album-card > img, .album-cover-empty { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e8eeeb; }
.album-card > div:not(.album-cover-empty) { padding: 18px 20px; }
.page-content .album-card h2 { font-size: 22px; line-height: 1.3; margin: 0 0 10px; overflow-wrap: anywhere; }
.album-card span { font-size: 14px; color: var(--muted); }
.album-card:hover h2 { color: var(--green); }
.album-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-block: 28px; }
.album-photo-grid figure { min-width: 0; margin: 0; }
.album-photo-grid a { display: block; }
.album-photo-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.album-photo-grid figcaption { padding-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.gallery-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; font-size: 14px; }
.page-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; }
.page-arrow[aria-hidden] { border-color: transparent; }
.page-arrow.previous img { transform: rotate(90deg); }
.page-arrow.next img { transform: rotate(-90deg); }
.pswp .gallery-caption { position: absolute; bottom: 20px; left: 60px; right: 60px; padding: 10px 14px; background: rgba(0,0,0,.7); color: white; text-align: center; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; pointer-events: none; }
.pswp .gallery-download { display: grid; place-items: center; width: auto; padding: 0 16px; color: white; font-size: 14px; text-decoration: underline; }
.pswp .gallery-download[hidden], .pswp .gallery-caption[hidden] { display: none; }
@media (max-width: 720px) {
  .album-grid { gap: 16px; }
  .album-card > div:not(.album-cover-empty) { padding: 14px; }
  .page-content .album-card h2 { font-size: 18px; }
  .album-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pswp .gallery-caption { bottom: 14px; left: 16px; right: 16px; font-size: 14px; }
}
@media (max-width: 420px) { .album-grid { grid-template-columns: 1fr; } }
