/* --- Gallery Page Redesign --- */
.album-card {
  background-color: #fff;
  border-radius: 1rem; /* 16px */
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.05),0 2px 4px -2px rgba(0,0,0,.05);
  /* Transition for the tilt reset and shadow */
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* Required for the 3D tilt effect from script.js */
  transform-style: preserve-3d;
}

.album-card:hover {
  /* The transform is now handled by JavaScript (tilt-effect) for a 3D hover */
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);
}

.album-image-wrapper {
  display: block;
  position: relative;
  overflow: hidden;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.album-image-wrapper img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.album-card:hover .album-image-wrapper img {
  transform: scale(1.05);
}

.album-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
}

.album-card:hover .album-overlay {
  opacity: 1;
}

.album-card-body {
  padding: 1.25rem;
}

.album-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.album-meta {
  color: #6b7280; /* text-gray-500 */
  font-size: 0.875rem;
}
