/* ===== المعرض ===== */
#allbicture {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}


h1{
    text-align: center;
margin: 30px auto;
color: #000000;
}

#allbicture img {
  width: 250px;       /* عرض افتراضي للشاشات الكبيرة */
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

#allbicture img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ===== Lightbox ===== */
#lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox img {
  width: 50%;
  height: auto;
  border-radius: 10px;
}

/* ===== الفلاتر والقائمة ===== */
#filter {
  color: black;
  margin: -2px;
  padding: 6px;
  font-size: 25px;
  cursor: pointer;
  transition: 0.3s;
  float: left;
}

#filter:hover {
  transform: scale(1.2);
}

#ithem {
  position: absolute;
  top: 59px;
  left: 20px;
  text-align: center;
  z-index: 9999;
  margin: 10px;
  padding: 8px;
  background-color: #fff;
  font-size: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#ithem #categoryby {
  background: linear-gradient(90deg, #99a1a8, #99a1a8);
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  border-radius: 6px;
  margin: 0;
  padding: 0;
}

#ithem div {
  margin: 12px;
  padding: 8px;
  border-radius: 6px;
  transition: 0.3s;
}

#ithem div:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
  cursor: pointer;
}

/* ===== Media Queries ===== */

/* التابلت */
@media (max-width: 992px) {
  #allbicture img {
    width: 45%;
    height: auto;
  }
  #ithem {
    font-size: 14px;
    width: 80%;
    left: 10px;
  }
}

/* الموبايل */
@media (max-width: 600px) {
  #allbicture {
    flex-direction: column;
    align-items: center;
  }

  #allbicture img {
    width: 90%;
    max-width: 300px;
    height: auto;
  }

  #ithem {
    position: static; /* تنزل أسفل الصور */
    width: 95%;
    margin: 10px auto;
    font-size: 13px;
  }

  #filter {
    font-size: 20px;
  }
}