/* Photos: year filter, sort, paginated grid, lightbox. */
.album-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-rows { display: grid; gap: 12px; } /* row 1: themed albums, row 2: years */
.year-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.year-filters button { border: 1px solid var(--border); border-radius: 25px; background: transparent; padding: 9px 16px; font-size: 12px; }
.year-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fffaf2; }
.year-filters button:hover { box-shadow: 0 0 0 2px #65432f15; }
.sort-label { font-size: 11px; color: var(--soft); white-space: nowrap; }
.sort-label select { font: inherit; color: var(--ink); background: #fffcf5; border: 1px solid var(--border); border-radius: 5px; padding: 10px; margin-left: 8px; }
.album-summary { padding: 14px 0 0; font-size: 11px; color: var(--soft); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 36px 0 8px; }
.pagination button { font: inherit; font-size: 12px; color: var(--ink); background: transparent; border: 1px solid var(--border); border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; }
.pagination button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fffaf2; }
.pagination button:hover:not(:disabled) { box-shadow: 0 0 0 2px #65432f15; }
.pagination button:disabled { opacity: .3; cursor: default; }
.pagination .page-arrow { font-size: 18px; line-height: 1; padding-bottom: 2px; }
.pagination .page-gap { color: var(--soft); font-size: 12px; padding: 0 2px; }

.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 16px; }
.gallery-card { display: block; min-width: 0; text-align: left; background: var(--card); border: 0; padding: 9px 9px 0; border-radius: 2px; box-shadow: 0 5px 18px #65432f0a; transition: transform .2s, box-shadow .2s; }
.gallery-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px #65432f1a; }
.gallery-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; background: #f3e9dc; }
.gallery-card-caption { display: flex; justify-content: space-between; gap: 8px; padding: 15px 5px; font-size: 10px; letter-spacing: .6px; }
.gallery-card-caption > span { color: var(--accent); }

/* Lightbox */
.lightbox { width: min(1050px, 94vw); max-width: 1050px; max-height: 95svh; padding: 16px; border: 1px solid #dac2a6; border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: 0 25px 100px #51342130; }
.lightbox::backdrop { background: #513b2b77; backdrop-filter: blur(5px); }
.lightbox-stage { position: relative; height: min(75svh, 800px); display: flex; justify-content: center; align-items: center; background: #f4eadc; }
.lightbox-stage img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; z-index: 3; right: 25px; top: 25px; border: 0; border-radius: 50%; width: 36px; height: 36px; background: #fffdf4ed; font-size: 24px; color: var(--ink); }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 46px; background: #fffcf2e8; border: 1px solid var(--border); border-radius: 6px; font-size: 32px; line-height: 1; }
.lightbox-arrow.prev { left: 10px; }
.lightbox-arrow.next { right: 10px; }
.lightbox-arrow:disabled { opacity: .3; cursor: default; }
.lightbox-caption { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 7px 2px; font-size: 12px; }
.lightbox-caption span:last-child { font-size: 11px; color: var(--soft); white-space: nowrap; }

@media (max-width: 1000px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; }
}
@media (max-width: 700px) {
  .album-toolbar { flex-direction: column; align-items: flex-start; gap: 18px; }
  .filter-rows { gap: 10px; }
  .year-filters { gap: 6px; }
  .year-filters button { font-size: 11px; padding: 8px 12px; }
  .sort-label { align-self: flex-end; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .gallery-card { padding: 6px 6px 0; }
  .gallery-card-caption { font-size: 9px; letter-spacing: 0; padding: 12px 1px; }
  .gallery-card-caption > span { font-size: 8px; }
  .lightbox { padding: 8px; width: 96vw; }
  .lightbox-arrow { width: 32px; height: 40px; }
  .lightbox-close { right: 16px; top: 16px; }
}
@media (max-width: 450px) {
  .pagination { gap: 4px; }
  .pagination button { width: 34px; height: 34px; font-size: 11px; }
}
