/* Photo albums follow the existing Susling type and terracotta accent. */
.route-albums { margin: 36px 0 40px; padding-top: 24px; border-top: 1px solid #ddd; }
.route-albums__heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.route-albums__heading h2 { margin: 0; font-size: 28px; line-height: 1.25; }
.route-albums__heading > span, .route-albums__intro { color: #595959; }
.route-albums__intro { margin: 10px 0 22px; line-height: 1.6; }
.route-albums__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
.route-album { display: block; color: #252525 !important; text-decoration: none !important; min-width: 0; }
.route-album__cover { position: relative; aspect-ratio: 8 / 5; overflow: hidden; background: #eee9e3; display: grid; place-items: center; }
.route-album__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.route-album__cover > span:not(.route-album__count) { color: #595959; }
.route-album__count { position: absolute; bottom: 10px; right: 10px; padding: 4px 10px; background: #fff; color: #333; font-size: 13px; line-height: 1.6; }
.route-album__body { padding: 12px 0 0; }
.route-album time { display: block; color: #595959; font-size: 14px; }
.route-album h3 { margin: 5px 0 2px; font-size: 21px; line-height: 1.35; overflow-wrap: anywhere; }
.route-album__open { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #b83522; font-size: 15px; }
.route-album:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.route-album:focus-visible, .route-album-page a:focus-visible, .route-lightbox button:focus-visible { outline: 3px solid #b83522; outline-offset: 4px; }
.route-album-page h1 { margin: 14px 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.25; overflow-wrap: anywhere; }
.route-album-page__back, .route-album-page__meta a, .route-album-page__pager a { display: inline-flex; align-items: center; min-height: 44px; color: #b83522; }
.route-album-page__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 20px; color: #595959; }
.route-album-page__pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 16px 0; }
.route-album-page .route-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.route-album-page .route-gallery__item a { border-radius: 0; box-shadow: none; background: #eee9e3; }
.route-album-page .route-gallery__item img { aspect-ratio: 4 / 3; }
.route-album-page .route-gallery__item figcaption { color: #595959; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.route-lightbox__close { min-width: 44px; min-height: 44px; background: #111; }
.route-lightbox__panel { padding-top: 54px; }
.route-lightbox__caption { max-height: 16vh; overflow-y: auto; white-space: pre-line; overflow-wrap: anywhere; }
.route-lightbox__img { max-height: calc(100dvh - 220px); }
.route-lightbox__error { grid-column: 1 / -1; color: #fff; text-align: center; }
.route-lightbox__error a { color: #fff; text-decoration: underline; display: inline-flex; min-height: 44px; align-items: center; }
#photos { scroll-margin-top: 150px; }
@media (max-width: 520px) {
  .route-albums__grid { grid-template-columns: 1fr; gap: 22px; }
  .route-albums__heading h2 { font-size: 25px; }
  .route-album-page .route-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .route-album-page__meta { gap: 2px 16px; }
  .route-lightbox__panel { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 4px; padding: 54px 6px 10px; }
  .route-lightbox__img { max-height: calc(100dvh - 240px); }
}
