body {
  font-family: system-ui, sans-serif;
  background: #302F2F;
  padding: 20px;
}

h1 {
  margin-bottom: 20px;
  color: #DEDBCC;
}

a {
  text-decoration: none;
  color: #DEDBCC;
}

.back {
  display: inline-block;
  margin-bottom: 15px;
}

.albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 15px;
}

.album {
  background: black;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  text-align: center;
}

.album img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.album span {
  display: block;
  padding: 10px;
  font-weight: 600;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.gallery .thumb {
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px var(--shadow);
  cursor: pointer;
}

.gallery .thumb img {
  width: 100%;
  height: 180px;          /* UNIFORM HEIGHT */
  object-fit: cover;     /* CROP, NOT STRETCH */
  display: block;
}

.gallery .label {
  display: block;
  padding: 8px 10px;
  font-size: 0.9rem;
  text-align: center;
  color: var(--text);
  background: var(--card);
  border-top: 1px solid rgba(0,0,0,.05);
  color: #DEDBCC;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
}

#lightbox .nav {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transform: translateY(-50%);
}

#lightbox .prev { left: 20px; }
#lightbox .next { right: 20px; }
