/* ---------- Sidebar Base ---------- */
.sidebar {
  width: 250px;
  background: #f1f1f1;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative; /* default desktop */
  align-self: stretch;
}

/* Close button hidden on desktop */
#sidebar-close {
  display: none;
}

/* ---------- Responsive Sidebar Behavior (mobile/tablet) ---------- */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    height: 100vh;
    width: 250px;
    background: #f8f8f8;
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  /* Sidebar toggle button */
  #sidebar-toggle {
    display: block;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background: #0077cc;
    color: #fff;
    border: none;
    padding: 0.5em 0.75em;
    font-size: 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }

  /* Sidebar close button */
  #sidebar-close {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
  }
}

/* ---------- Filter Group Styling (for gallery page) ---------- */
.filter-group {
  margin-bottom: 1em;
}

.filter-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3em;
}

.filter-group select {
  width: 100%;
  padding: 0.3em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Archive Checkbox */
.filter-archive {
  margin-top: 1.2em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* Optional: smooth scrollbar for mobile */
@media (max-width: 768px) {
  .sidebar::-webkit-scrollbar {
    width: 6px;
  }
  .sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
  }
}
