/* Premium album composition for the three official Drive collections. */
.album-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 240px));
  justify-content: center;
  gap: clamp(.8rem, 2vw, 1.25rem);
  overflow: visible;
  padding: .25rem 0 .8rem;
}

.album-card {
  display: grid;
  grid-template-rows: auto auto auto;
  min-width: 0;
  padding: .55rem .55rem .8rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(155deg, rgba(30,45,75,.94), rgba(12,18,34,.92));
  box-shadow: 0 18px 38px -26px rgba(0,0,0,.9);
  text-align: left;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.album-card:nth-child(3n + 2) {
  background: linear-gradient(155deg, rgba(19,73,82,.92), rgba(12,18,34,.94));
}

.album-card:nth-child(3n + 3) {
  background: linear-gradient(155deg, rgba(37,55,112,.92), rgba(12,18,34,.94));
}

.album-card:hover,
.album-card:focus-visible {
  border-color: rgba(114,226,216,.48);
  box-shadow: 0 24px 46px -25px rgba(23,196,182,.55);
  transform: translateY(-4px);
}

.album-card:focus-visible {
  outline: 3px solid rgba(114,226,216,.22);
  outline-offset: 3px;
}

.album-copy {
  display: grid;
  min-width: 0;
}

.album-card strong {
  margin: .7rem .25rem .25rem;
  font-size: .78rem;
  line-height: 1.35;
}

.album-card small {
  margin: 0 .25rem;
}

.album-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  margin: .72rem .25rem 0;
  padding-top: .65rem;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #72e2d8;
  font-size: .6rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.album-cta span {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
}

@media (max-width: 850px) {
  .album-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .album-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    margin-right: 0;
  }

  .album-shelf > .album-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - .35rem);
    justify-self: center;
  }

  .album-card {
    padding: .4rem .4rem .65rem;
    border-radius: 18px;
  }

  .album-art {
    border-radius: 15px;
  }

  .album-card strong {
    margin: .55rem .18rem .2rem;
    font-size: .68rem;
    white-space: normal;
  }

  .album-card small {
    margin: 0 .18rem;
    font-size: .57rem;
  }

  .album-cta {
    margin: .58rem .18rem 0;
    padding-top: .55rem;
    font-size: .52rem;
  }
}

@media (max-width: 330px) {
  .album-shelf {
    grid-template-columns: minmax(0, 220px);
  }

  .album-shelf > .album-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .album-card {
    transition: none;
  }
}
