.album-grid {
  display: grid;
  grid-template-columns: repeat(8, 150px);
  grid-template-rows: repeat(5, 150px);
  gap: 0;
  justify-content: center;
  align-content: center;
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.album {
  width: 150px;
  height: 150px;
  overflow: visible; /* Changed from hidden to visible to allow tooltip to show */
  position: relative;
}

.album img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  max-width: 100% !important;
}

.hover-info {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.95);
  color: white;
  padding: 10px;
  width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 1000; /* Increased z-index to ensure it appears above other elements */
  display: none;
  top: 100%;
  left: 0;
}

.album:hover .hover-info {
  display: block;
  opacity: 1;
}

.hover-info h3 {
  font-size: 16px;
  margin: 0 0 5px 0;
}

.hover-info p,
.hover-info a {
  margin: 2px 0;
  color: #ccc;
  text-decoration: none;
}

.hover-info a:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 1280px) {
  .album-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-template-rows: auto;
    max-width: 100%;
  }

  .album {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .album img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

}