.albums-store__container {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 1em;
}

.albums-store__wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0;
  margin: 0 auto;
  list-style-type: none;
  gap: 10px;
  width: auto;
  max-width: 710px;
}

.albums-store__button {
  position: absolute;
  bottom: 17px;
  right: 0;
  margin-right: 17px;
  background-color: rgb(229, 42, 55, 0.6);
  color: white;
  font-weight: normal;
  text-transform: capitalize;
  padding: 6px 6px;
  border: none;
  border-radius: 30px;
  transform: scale();
  cursor: pointer;
  transition:
    box-shadow 0.3s,
    background-color 0.3s,
    transform 0.3s;
  will-change: background-color, transform;
}

.albums-store__button:hover {
  background-color: rgb(229, 42, 55);
  transform: scale(1.05);
}

.albums-store__wrapper li {
  overflow: hidden;
}

.albums-store__wrapper li.albums-store__item--vinyl {
  grid-column: 1 / span 2;
  overflow: visible;
}

.albums-store__figure--vinyl-group {
  display: flex;
  align-items: center;
  position: relative;
}

.cover {
  z-index: 2;
}

.disk-container {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.disk-shadow {
  position: absolute;
  left: 60%;
  bottom: -5px;
  transform: translateX(-50%);
  opacity: 0;
  transition:
    transform 1s,
    opacity 1s;
  width: 125%;
  height: 5%;
  background: radial-gradient(
    ellipse at left,
    rgba(255, 255, 255, 0.8) 10%,
    transparent 50%
  );
  filter: blur(10px);
}

.disk {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  transition: transform 1s;
}

img.disk {
  position: relative;
  z-index: 1;
}

.albums-store__figure--vinyl-group .cover {
  width: 100%;
}

.albums-store__figure--vinyl-group:hover .disk {
  transform: translateX(80.6%);
}

.albums-store__figure--vinyl-group:hover .disk-shadow {
  transform: translateX(31%);
  opacity: 1;
}

.albums-store__wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.albums-store__figure,
.albums-store__figure--vinyl-group,
.albums-store__figure--vinyl-full {
  position: relative;
  margin: 0;
  height: 100%;
}

.albums-store__figure > img {
  will-change: transform, filter;
  transition: 
    transform 0.3s,
    filter 0.3s;
}

.albums-store__figure:not(.albums-store__figure--vinyl-group) > img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.albums-store__figure--vinyl-group:hover {
  filter: brightness(1.1);
}

.albums-store__item--vinyl-mobile {
  display: none;
}

/* Effet "spotlight" au hover */
.albums-store__figure::before,
.albums-store__figure--vinyl-group::before,
.albums-store__figure--vinyl-full::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.albums-store__figure:hover::before,
.albums-store__figure--vinyl-group:hover::before,
.albums-store__figure--vinyl-full:hover::before {
  opacity: 1;
}

.albums-store__figure[data-available="false"] .stock-badge {
  position: absolute;
  width: 40%;
  height: 10%;
  z-index: 3;
  font-size: small;
  font-weight: bold;
  text-transform: uppercase;
  color: white;
  background-color: rgba(255, 0, 0, 0.5);
  clip-path: polygon(25% 0%, 100% 0%, 100% 98%, 0% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg) translate(-27%, -25%);
  opacity: 0;
  transition: opacity 0.3s;
  will-change: opacity;
}

.albums-store__figure:hover[data-available="false"] .stock-badge {
  opacity: 1;
}

.albums-store__figure[data-available="true"] .stock-badge {
  display: none;
}

.albums-store__figure[data-available="false"] .albums-store__price-container p {
  display: none;
}

.albums-store__figure[data-available="false"] .albums-store__button {
  display: none;
}

.albums-store__price-container p {
  position: absolute;
  z-index: 4;
  bottom: 60px;
  right: 0;
  margin: 0 16px;
  padding-right: 6px;
  background-color: black;
  border: 1px red solid;
  border-radius: 30px;
  box-sizing: border-box;
  min-width: 90px;
  font-size: large;
  font-weight: bold;
  color: red;
  text-align: end;
  opacity: 0;
  transition: opacity 0.3s;
  will-change: opacity;
}

.albums-store__figure:hover .albums-store__price-container p {
  opacity: 1;
}

.albums-store__figure figcaption,
.albums-store__figure--vinyl-group figcaption,
.albums-store__figure--vinyl-full figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, #00000066, #00000000);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  padding: 4px 16px 16px;
  color: white;
  font-size: small;
  text-align: start;
  font-weight: 300;
  text-shadow: 1px 1px 3px black;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

.albums-store__figure:hover figcaption,
.albums-store__figure--vinyl-group:hover figcaption,
.albums-store__figure--vinyl-full:hover figcaption {
  opacity: 1;
  z-index: 3;
}

.albums-store__item--text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 350px;
  overflow-y: auto;
  overflow-x: hidden;
}

.albums-store__item--text {
  color: white;
  font-size: 20px;
  text-align: justify;
}

.yonberg-logo {
  transition: opacity 1s;
  opacity: 1;
}

.yonberg-logo.is-hidden {
  opacity: 0;
}

#gigpress-3 {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 0.5s ease;
}

#gigpress-3.is-masked {
  clip-path: polygon(0 58%, 100% 58%, 100% 100%, 0 100%);
}

@media (max-width: 1024px) {
  .h1 {
    font-size: 2.5rem;
  }

  .albums-store__wrapper {
    grid-template-columns: 1fr;
    max-width: 100vw;
  }

  .albums-store__figure figcaption,
  .albums-store__figure--vinyl-group figcaption,
  .albums-store__figure--vinyl-full figcaption {
    font-size: x-small;
  }
  .albums-store__button {
    font-size: small;
  }

  .albums-store__item--CD-box img {
    aspect-ratio: 1 / 1;
    object-position: 63%;
  }

  .albums-store__wrapper li.albums-store__item--vinyl-mobile {
    display: block;
    grid-column: 1;
  }

  .albums-store__wrapper li.albums-store__item--vinyl {
    display: none;
  }
}