/* Hotfix 2026-10-15 (BugSmash: mobile year page). Also needs to go into source.
   :not(#_) lifts specificity above the lazily injected year-page CSS, which loads after this file. */
@media (max-width:768px){
  /* Year cards: columns may shrink below image width, so two-card years no longer overflow and shift sideways. */
  .main-wrapper.home-grid-small .grid-container:not(#_),
  .main-wrapper.home-grid-big .grid-container:not(#_){grid-template-columns:repeat(2,minmax(0,1fr))}
  .main-wrapper.home-grid-small .grid-container>div:not(#_),
  .main-wrapper.home-grid-small .grid-container>div .event-card:not(#_),
  .main-wrapper.home-grid-small .grid-container>div .event-card a:not(#_),
  .main-wrapper.home-grid-small .grid-container>div .image-wrapper img:not(#_){max-width:100%;min-width:0}
  /* Timeline strip: treat any drag on it as horizontal (Safari often gave diagonal swipes to the page). */
  .history-drag-scroll{touch-action:pan-x}
}
/* Search menu, mobile (BugSmash, Marina; matches Figma 912:18955): no rounded corners where the
   calendar meets the date field. The fade above the search button stays at the Figma height (173px). */
@media (max-width:768px){
  .calendar-trigger.open .custom-calendar-popup:not(#_){border-radius:0 0 8px 8px}
}
/* Search menu, mobile, year picker (BugSmash #111): the pickers' white fades (z-index 5) painted over the
   search fade above ΑΝΑΖΗΤΗΣΗ (z-index 1) and showed as white blocks. At z-index 1 they still cover the
   list items, and the search fade, later in the page, now paints over them. */
@media (max-width:768px){
  .search-container .picker-wrapper .fadeTop:not(#_),
  .search-container .picker-wrapper .fadeBottom:not(#_){z-index:1}
}
