body {
  font-family: 'Segoe UI', sans-serif;
  direction: rtl;
  text-align: center;
  background-color: #f0f2f5;
  padding: 20px;
}

h1, h2 {
  color: #333;
}

form {
  margin: 20px 0;
}

input[type="file"], input[type="text"], input[type="submit"], select {
  padding: 10px;
  margin: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

input[type="submit"] {
  background-color: #28a745;
  color: white;
  cursor: pointer;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

.image {
  background: white;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.image img {
  max-width: 100%;
  border-radius: 6px;
  cursor: pointer;
}

.filter {
  margin-bottom: 20px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}