/* ===== Gallery top bar layout fix ===== */
.galleryTopBar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:14px;
}

/* Year form: keep label + select aligned */
.yearForm{
  display:flex;
  align-items:center;
  gap:10px;
  flex: 1 1 320px;          /* allow shrinking without breaking */
  min-width: 260px;
}

/* Prevent select from becoming huge */
.yearForm .input,
#galleryYearSelect{
  width: 180px;
  max-width: 100%;
  min-width: 140px;
  height: 42px;
  border-radius: 12px;
}

/* Tabs: keep right side neat */
.galleryTabs{
  display:flex;
  gap:8px;
  flex: 0 0 auto;
  margin-left:auto;          /* push to right on desktop */
}

/* On small screens, stack nicely */
@media (max-width: 720px){
  .galleryTopBar{
    flex-direction:column;
    align-items:stretch;
  }
  .yearForm{
    width:100%;
    justify-content:space-between;
  }
  #galleryYearSelect{
    width: 100%;
  }
  .galleryTabs{
    width:100%;
    margin-left:0;
    justify-content:flex-start;
  }
}