/* Scoped to the existing gallery year navigation; desktop stays unchanged. */
@media screen and (max-width: 767px) {
  .gallery .gallery__archives-nav {
    min-width: 0;
    padding-bottom: 0;
  }
  .gallery .gallery__archives-nav-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 22px 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #bdbdbd #f2f2f2;
  }
  .gallery .gallery__archives-nav-list > li {
    flex: 0 0 23.5%;
    width: auto;
    margin: 0;
    padding: 0;
    text-align: center;
    white-space: nowrap;
  }
  .gallery .gallery__archives-nav-list > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
    padding: 8px 4px;
    line-height: 1.2;
  }
  .gallery .gallery__archives-nav-list > li > a:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
  }
  .gallery .gallery__archives-nav-list::-webkit-scrollbar { height: 3px; }
  .gallery .gallery__archives-nav-list::-webkit-scrollbar-track { background: #f2f2f2; }
  .gallery .gallery__archives-nav-list::-webkit-scrollbar-thumb { background: #bdbdbd; }
}
