.projects-page { min-width: 0; background: var(--paper); }
.albums-main { padding-top: 4.2rem; }
.albums-intro { width: var(--page); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 0 2rem; }
.albums-intro h1 { max-width: 45rem; color: var(--ink); font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.055em; }
.albums-intro > p:not(.eyebrow) { max-width: 40rem; margin-top: .75rem; color: var(--body); font-size: .95rem; line-height: 1.6; }
.album-jump { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }
.album-jump a { padding: .55rem .8rem; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .72rem; transition: border-color .2s ease, color .2s ease; }
.album-jump a:hover { border-color: var(--rust); color: var(--rust); }
.album-list { display: grid; gap: 1.1rem; padding-bottom: 2rem; }
.album-section { padding: clamp(1.2rem, 3vw, 2rem) 0 1.6rem; background: #fff; }
.album-inner { width: var(--page); margin: 0 auto; }
.album-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.album-heading h2 { color: var(--ink); font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 700; line-height: 1.1; letter-spacing: -.04em; }
.album-count { flex: 0 0 auto; color: var(--body); font-size: .72rem; }
.album-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.album-photo { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1.5; padding: 0; border: 0; background: #f1f2f2; cursor: zoom-in; }
.album-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.album-controls { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: .75rem; }
.album-controls button, .dialog-controls button { min-height: 2.25rem; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: .25rem; background: transparent; color: var(--ink); font: inherit; font-size: .72rem; cursor: pointer; }
.album-controls button:hover:not(:disabled), .dialog-controls button:hover:not(:disabled) { border-color: var(--rust); color: var(--rust); }
.album-controls button:disabled, .dialog-controls button:disabled { opacity: .4; cursor: default; }
.album-page-count { min-width: 4rem; color: var(--body); text-align: center; font-size: .72rem; }
.albums-loading, .albums-error { width: var(--page); margin: 0 auto 2rem; color: var(--body); }
.albums-contact { width: var(--page); margin: 0 auto 2.5rem; padding: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; background: #eeefee; }
.albums-contact h2 { color: var(--ink); font-size: clamp(1.3rem, 2.3vw, 1.9rem); letter-spacing: -.04em; }
.albums-contact .button { border-radius: .35rem; white-space: nowrap; }
.projects-footer { min-height: 5.2rem; padding: 1rem 5.8%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; background: var(--navy); color: #eef0f2; }
.projects-footer .brand-logo { width: 9.3rem; }
.projects-footer p, .projects-footer > span { color: #d9dde0; font-size: .65rem; line-height: 1.5; }
.projects-footer > span { text-align: right; }
.photo-dialog { position: fixed; width: min(94vw, 1100px); max-width: none; max-height: 94vh; padding: 1rem; overflow: auto; border: 0; background: #17212c; color: #fff; }
.photo-dialog::backdrop { background: rgba(8, 14, 20, .82); }
.photo-dialog figure { display: grid; justify-items: center; gap: .6rem; }
.photo-dialog img { display: block; width: 100%; max-height: 76vh; object-fit: contain; background: #101820; }
.dialog-caption { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #fff; font-size: .75rem; }
.dialog-controls { display: flex; justify-content: space-between; gap: .75rem; margin-top: .75rem; }
.dialog-controls button { border-color: #66717b; color: #fff; }
.dialog-close { position: absolute; z-index: 1; top: .4rem; right: .4rem; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border: 1px solid #ffffff6b; border-radius: 50%; background: #17212c; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.mobile-menu-whatsapp { padding: .75rem 0; color: var(--rust); font-size: .84rem; font-weight: 600; }
.album-photo:focus-visible, .album-controls button:focus-visible, .dialog-controls button:focus-visible, .dialog-close:focus-visible, .album-jump a:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

@media (max-width: 760px) {
  .albums-main { padding-top: 4.35rem; }
  .albums-intro { padding: 2.2rem 0 1.5rem; }
  .albums-intro > p:not(.eyebrow) { font-size: .82rem; }
  .album-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .album-photo { aspect-ratio: 1.2; }
  .album-heading { align-items: start; }
  .album-count { padding-top: .2rem; }
  .albums-contact { align-items: start; flex-direction: column; }
  .projects-footer { grid-template-columns: 1fr auto; gap: .8rem; }
  .projects-footer > span { grid-column: 1 / -1; text-align: left; }
  .photo-dialog { padding: .6rem; }
  .dialog-caption { font-size: .67rem; }
}
