.place-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 30px;
  height: 420px;
  transition: 0.3s;
}

.place-card > h3 {
  z-index: 1;
  font-size: 24px;
  font-weight: 700;
  mix-blend-mode: luminosity;
  position: absolute;
  text-transform: uppercase;
  top: 36px;
  color: white;
  left: 50%;
  transform: translate(-50%, 0);
}

.place-card:hover > .img {
  transform: scale(1.07);
  transition: 0.3s;
}

.place-card:hover p {
  bottom: 36px;
  color: white;
  position: absolute;
  z-index: 1;
  left: 50%;
  transform: translate(-50%, 0);
}

.place-card:hover::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

.place-card > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.place-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
}

@media (max-width: 768px) {
  .place-card p {
    bottom: 36px;
    color: white;
    position: absolute;
    z-index: 1;
    left: 50%;
    transform: translate(-50%, 0);
    background: rgba(0, 0, 0, 0.5);
  }

  .place-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  }
}

@media (max-width: 480px) {
  .place-card > img {
    width: 100%;
    height: 100%;
  }
}
