#gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

#gallery-header {
  text-align: center;
  margin: 20px auto;
}

#gallery-header h1 {
  margin-bottom: 10px;
}

#filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.gallery-row {
  display: flex;
  gap: 20px;
  height: 500px;
}

.image-card {
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.image-card.vertical {
  flex: 1;
}

.image-card.horizontal {
  flex: 2;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.image-title {
  margin-top: 6px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

#pagination {
  text-align: center;
  margin: 20px 0;
}

#pagination button {
  margin: 0 5px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
}

/* MOBILE VERSION */
@media (max-width: 768px) {
  #gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-row {
    flex-direction: column;
    height: auto;
  }

  .image-card {
    width: 100% !important;
    height: auto;
  }

  .image-card img {
    height: auto !important;
  }

  #pagination {
    display: none;
  }

  #gallery-header {
    padding: 10px;
  }

  #filter {
    display: flex;
    justify-content: center;
  }
}
