.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.album-card {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(194, 126, 92, 0.15);
  cursor: pointer;
  transition: 0.3s ease;
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.album-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(8, 8, 8, 0.92) 15%,
      rgba(8, 8, 8, 0.50) 40%,
      rgba(8, 8, 8, 0.05) 70%
    );
  z-index: 1;
}

.album-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  color: white;
  z-index: 2;
}

.album-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
  color: #fff;
}

.album-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.album-author {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}

.album-card .bookmark-btn {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  z-index: 3;
  transition: 0.25s ease;
  pointer-events: auto;
}

.album-card .bookmark-btn:hover {
  background: rgba(255, 255, 255, 0.30);
}

.album-card .bookmark-btn svg {
  width: 20px;
  height: 20px;
}

.empty-albums {
  text-align: center;
  padding: 3rem;
  color: #7a6b5e;
  font-size: 1.1rem;
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-body {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-body img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  z-index: 10001;
  backdrop-filter: blur(4px);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.40);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

.lb-hidden {
  display: none !important;
}

.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  z-index: 10;
}

.lightbox-delete {
  position: fixed;
  top: 16px;
  left: 20px;
  background: rgba(255, 60, 60, 0.20);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 10;
  transition: 0.2s;
}

.lightbox-delete:hover {
  background: rgba(255, 60, 60, 0.50);
}

.lightbox-autor {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  z-index: 10;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .album-card {
    height: 300px;
  }

  .album-content h4 {
    font-size: 17px;
  }

  .album-card .bookmark-btn {
    width: 40px;
    height: 40px;
    right: 16px;
    bottom: 16px;
  }

  .album-card .bookmark-btn svg {
    width: 17px;
    height: 17px;
  }

  .lightbox-nav.prev {
    left: 6px;
  }

  .lightbox-nav.next {
    right: 6px;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .lightbox-body img {
    max-width: 95vw;
    max-height: 70vh;
  }

  .lightbox-delete {
    font-size: 0.75rem;
    padding: 6px 12px;
    top: 12px;
    left: 12px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .album-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .album-card {
    height: 340px;
  }

  .album-content h4 {
    font-size: 18px;
  }
}


