/* Phase 70 — Scrollable "Our locations" directory (all camps, EN/AR).
   The sidebar header and footer stay outside the scrollable list.
   This file loads AFTER the existing camps styles to override their mobile overflow rules.
   No changes to photos, slideshow, map cards, camp data or Admin behavior. */

/* The tall photo gallery must not force the directory card to stretch vertically. */
.wgc60-page .wgc60-camps__layout { align-items: start; }
.wgc60-page .wgc60-camps__directory {
  align-self: start;
  min-height: 0;
  max-height: none;
}
.wgc60-page .wgc60-camps__directory-heading { flex-shrink: 0; }
.wgc60-page .wgc60-camps__directory-footer { flex-shrink: 0; }

/* Show about four camp entries at once, then scroll independently. */
.wgc60-page .wgc60-camps__selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  max-height: 365px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  padding: 3px 8px 3px 3px;
  scrollbar-width: thin;
  scrollbar-color: #78baae #edf5f3;
  scrollbar-gutter: stable;
}
.wgc60-page .wgc60-camps__selector::-webkit-scrollbar { width: 7px; }
.wgc60-page .wgc60-camps__selector::-webkit-scrollbar-track { background: #edf5f3; border-radius: 10px; }
.wgc60-page .wgc60-camps__selector::-webkit-scrollbar-thumb { background: #78baae; border-radius: 10px; }
.wgc60-page .wgc60-camps__selector::-webkit-scrollbar-thumb:hover { background: #087f70; }

/* Preserve reading direction and a comfortable gutter in Arabic. */
.wgc60-page[dir="rtl"] .wgc60-camps__selector {
  padding: 3px 3px 3px 8px;
}

@media (max-width: 800px) {
  .wgc60-page .wgc60-camps__directory { min-height: 0; }
  .wgc60-page .wgc60-camps__selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 235px;
    overflow-y: auto;
    overflow-x: hidden;
  }
}
@media (max-width: 540px) {
  .wgc60-page .wgc60-camps__selector {
    grid-template-columns: minmax(0, 1fr);
    max-height: 245px;
  }
}
