#album {
  column-count: 4;
  column-gap: 16px;
  padding: 16px;
}

@media (max-width: 1200px) { #album { column-count: 3; } }
@media (max-width: 800px) { #album { column-count: 2; } }
@media (max-width: 500px) { #album { column-count: 1; } }

.album-item {
  break-inside: avoid;
  margin-bottom: 16px;
  cursor: pointer;
  position: relative;
}

.album-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.album-item:hover img {
  transform: scale(1.02);
}

#lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  overflow: auto;
}

#lightbox-overlay img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 12px;
  margin-bottom: 12px;
  display: block;
}

#lightbox-caption {
  color: #fff;
  font-size: 16px;
  text-align: center;
  word-break: break-word;
  max-width: 90vw;
}
