		
	
.albums {
   display: grid;
    /*grid-template-columns: repeat(auto-fit, 260px);*/
    grid-template-columns: repeat(auto-fit, minmax(250px, 270px));
    justify-content: center;
    justify-items: center;
 padding: 1rem clamp(1rem, 8vw, 1.5rem);
  gap: clamp(0.75rem, 2vw, 1rem);
  background: linear-gradient(
    to right,
    rgba(180, 205, 255, 0.65) 0%,
    #fff7ed 40%,
    #fff7ed 60%,
    rgba(180, 205, 255, 0.65) 100%
  );
  border-radius: var(--border-radius);
}

.box1 {
  width: 100%;
  min-width: 150px;
  max-width: 350px;
  aspect-ratio: 10 / 11;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /*flex-wrap: wrap;*/
  padding: 5px 2px !important;
  transition: 0.35s ease;
 
  background: var(--neutral-light);
  
   position: relative;
}
.box1:hover {
  transform: translateY(10px) scale(1.02);
   aspect-ratio: 1 / 1;
   background: linear-gradient(
      to bottom,
      rgba(180, 205, 255, 0) 0%,
      rgba(180, 205, 255, 0.35) 30%,
      rgba(180, 205, 255, 0.55) 40%,
      rgba(180, 205, 255, 0.20) 70%,
      rgba(180, 205, 255, 0) 100%
    );
}
.album-card {
 width: 97%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: var(--border-radius);
  background: var(--prime);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  /*box-shadow: 0 1px 2px rgba(255, 251, 220, 0.9);*/
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.box1:hover .album-card,
.box1:focus.album-card {
  transform: translateY(3px) scale(1.02);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

/* ===== IMAGE WRAPPER ===== */
.album-img-wrap {
  position: relative;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 1/1;
  /*overflow: hidden;*/
  border-radius: var(--border-radius);
}
.box1:hover .album-img-wrap{
  transform: scale(1.03);
 }
.album-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  opacity: 0;
  animation: reveal 0.85s ease-out forwards;
}

@keyframes reveal {
  0% {
    opacity: 0;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== OVERLAYS ===== */
.album-title {
  position: absolute;
  display:flex;
  align-items: center;
	    		justify-content: flex-start;
	    		gap:4px;
  text-align: center;
  word-spacing: 3px;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden; /* Hide extra text */
  text-overflow: ellipsis;
  bottom: 2%;
 transform: translateY(2px);
  padding: 2px 20px;
  font-size: clamp(0.45rem, 2.5vw, 0.8rem);
  font-weight: 500;
  color: white;
  border-radius: 999px;
  background: var(--accent-color);
  backdrop-filter: blur(15px);
  text-transform: uppercase;
}
.a-type {
  position: absolute;
  top: 8px;
  left: 10px;
  /*padding: 4px 2px;*/
  background: rgba(255, 255, 255, 0.01);
  width:20px;
  height:20px;
  border-radius: 999px;
  font-size: 1.5rem;
  font-weight: 500;
  
  line-height: .8;
  display: flex; /* make it a flexbox */
  align-items: center; /* vertical centering */
  justify-content: center; /* horizontal centering */
}

.song-count {
  position: absolute;
  top: 5px;
  right: 5px;
  /*background: rgba(255, 255, 255, 0.25);*/
  border-radius: 10px;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
}
@keyframes pulseGlow {
  0% {
    transform: scale(1);
    
  }
  50% {
    transform: scale(1.25);
    
  }
  100% {
    transform: scale(1);
    
  }
}
.num {
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 2px 2px rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseGlow 5.2s ease-in-out infinite;
}
.song-icon {
 
  color: #1e3a8a;
  font-size: .8rem;
  
  margin-left: 3px;
 
  display: flex;
  align-items: center;
  right: 1px;
  top:-3px;
}
a {
  text-decoration: none;
  color: white;
}

/* ===== CONTRIBUTORS ===== */
.contributors {
  position: absolute;
  width: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); 
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  align-items: center;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.album-card:hover .contributors {
  max-height: 300px;
  opacity: 1;
}

.con-badge {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.25s ease, transform 0.25s ease;
  white-space: nowrap; /* prevent new line */
  text-wrap: nowrap;
  max-width: 95%; /* restrict to container width */
  overflow: hidden;
  text-overflow: ellipsis;
}
.box1:hover  .con-badge:nth-child(1) { transition-delay: 80ms; }
.box1:hover  .con-badge:nth-child(2) { transition-delay: 160ms; }
.box1:hover  .con-badge:nth-child(3) { transition-delay: 240ms; }
.box1:hover  .con-badge:nth-child(4) { transition-delay: 320ms; }



@media (max-width: 350px) {
  .albums .box1 {
      max-width: 310px;   /* allow full width on small screens */
     

    }
    .albums {
        grid-template-columns: 1fr; 
       
         padding: .5rem clamp(1rem, 2vw, 1.15rem);
  gap: clamp(0.5rem, 8vw, .75rem);
      } 
}

@media (min-width: 351px) and (max-width: 690px) {
  .albums {
        grid-template-columns: repeat(2, 1fr);
    }
    
}
 @media (min-width: 1101px) {
      .albums {
            grid-template-columns: repeat(4, 1fr);
            justify-content: center;
  /*           padding: .5rem clamp(1rem, 2vw, 1.15rem);*/
  /*gap: clamp(0.9rem, 2vw, 1.5rem);*/
        }    
}