/* :root {
  position: relative;
}

::after,
::before {
  content: '';
  position: absolute;
  box-sizing: border-box;
} */

/* .album-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.album-item {
  display: grid;
  flex-direction: row;
  align-items: center;
  transition: transform 0.2s ease-in-out;
}  */

.album-item img {
  width: 350px;
}

.album-name {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
  color: #333;
}

.album-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease-in-out;
}

.album-link:hover .cd::before {
  background: rgba(255, 255, 255, 0.5);
}

.case {
  width: calc(1.1 * var(--d));
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.1rem;
}

.cd::before {
  transition: background 0.5s ease;
}

.case::after {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 0.15rem;
  background: radial-gradient(circle at 50% 0, #ffffff42 45%, #ffffffaa calc(45% + 0.1rem) 47%, transparent calc(47% + 0.1rem)) 20% 0/10% 10% no-repeat, 
              radial-gradient(circle at 50% 0, #ffffff42 45%, #ffffffaa calc(45% + 0.1rem) 47%, transparent calc(47% + 0.1rem)) 85% 0/10% 10% no-repeat,
              radial-gradient(circle at 50% 100%, #ffffff42 45%, #ffffffaa calc(45% + 0.1rem) 47%, transparent calc(47% + 0.1rem)) 20% 100%/10% 10% no-repeat,
              radial-gradient(circle at 50% 100%, #ffffff42 45%, #ffffffaa calc(45% + 0.1rem) 47%, transparent calc(47% + 0.1rem)) 85% 100%/10% 10% no-repeat,
              linear-gradient(#2e2e2e19, #2e2e2e1b);
}

.ridge {
  width: 9.4%;
  height: 99.2%;
  border-radius: 0.15rem;
  background: linear-gradient(to right, #cacaca 10%, #a5a5a5 20%, #a9a9a9 35% 95%, #c2c2c2 95%) 97% 0/20% 100% no-repeat,
              repeating-linear-gradient(to right, #dbdbdb 0 4%, silver 6% 10.3%, #b5b5b5 11% 18%) 35% 0/70% 100% no-repeat,
              linear-gradient(#a1a1a1, #d2d2d2) 0 0/15% 100% no-repeat;
}

.cd {
  width: 89.2%;
  height: 98.4%;
  background: #cacaca;
  box-shadow: inset -0.35rem 0.3rem #b5b5b5, inset 0 -0.15rem #c3c3c3;
  position: relative;
}

.cd::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: rgba(174, 174, 174, 0.3);
  border-radius: 0.15rem;
  z-index: 5;
}

.cd img {
  width: inherit;
  height: inherit;
  object-fit: cover;
}

@media (max-width: 768px) {
  .album-container {
    gap: 1rem;
  }

  .case {
    width: calc(1.25 * var(--d));
  }

  .album-name {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .album-container {
    flex-direction: column;
    gap: 1rem;
  }

  .case {
    width: 80%;
    height: auto;
  }

  .album-name {
    font-size: 0.9rem;
  }
}
