body {
  font-family: sans-serif;
  margin: 0;
  background: #f9f9f9;
  text-align: center;
  padding: 10px;
}

h1 {
  margin: 20px 0;
}

#filter {
  margin-bottom: 20px;
}

#album-select {
  font-size: 16px;
  padding: 5px 10px;
}

#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.image-card {
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s;
}

.image-card:hover {
  transform: scale(1.01);
}

.image-card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  cursor: pointer;
}

.image-title {
  margin-top: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

#pagination {
  margin: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#pagination button {
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
}

#pagination span {
  font-size: 14px;
}

#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  padding: 20px;
}

#lightbox.show {
  display: flex;
}

#lightbox img {
  max-width: 90vw;
  max-height: 80vh;
}

#lightbox-title {
  color: white;
  margin-top: 10px;
  font-size: 16px;
}

#close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: white;
  cursor: pointer;
}

.hidden {
  display: none;
}
