.albums-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 25px;
	margin-top: 4%;
}

.albumCard {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eaeef2;
}

.albumCard:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

.albumCard:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.albumCard__image {
	display: grid;
  width: 100%;
  background: #eef2f6;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.albumCard__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.albumCard:hover .albumCard__image img {
  transform: scale(1.03);
}

.albumCard__info {
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.albumCard__title {
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  color: #0b1b2b;
  letter-spacing: -0.01em;
  padding: 5%;
}

.albumCard__year {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 400;
  padding: 0 5% 5% 5%;
}


@media screen and (max-width: 412px) {
	.albums-grid {
		margin-top: 10%;
	}
}

@media screen and (max-width: 385px) {
	.albumCard__image {
		width: 90%;
	}
}