.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 380px));
  justify-content: center;
  gap: 2.5rem;
  margin: 3rem auto;
}

.card {
  perspective: 1200px;
  border-radius: 1rem;
  border: 2px solid #f472b6;
  background: pink;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
}
.card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.card__inner:hover {
  transform: rotateY(180deg);
}
.card__front, .card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 1rem;
  overflow: hidden;
}
.card__front {
  background: #fff;
}
.card__front .card__image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.card__back {
  background: #ffe4e6;
  transform: rotateY(180deg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.card__back .card__name {
  font-weight: 700;
  color: #f472b6;
  margin-bottom: 0.5rem;
}
.card__back .card__description {
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgb(199.6263157895, 15.5736842105, 111.8473684211);
}

@media (max-width: 900px) {
  .projects__grid {
    grid-template-columns: 1fr;
  }
  .card {
    max-width: 420px;
    margin-inline: auto;
  }
}/*# sourceMappingURL=style.css.map */