@charset "UTF-8";
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-size: 0;
}

@font-face {
  font-family: MarckScript;
  src: url(../add/fonts/MarckScript-Regular.ttf);
}
body {
  background-color: #D2DBDD;
}

.wrapper {
  min-height: calc(100vh - 40px);
  max-width: 960px;
  margin: 20px auto;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 20px;
}
.wrapper .wrapper__unit {
  position: relative;
  border-radius: 20px;
  width: 350px;
  height: 700px;
  flex: 1 0 350px;
  background-color: white;
}
.wrapper .wrapper__unit img {
  width: 100%;
  height: 70%;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  transition: 0.3s all;
}
.wrapper .wrapper__unit img:hover {
  height: 100%;
  border-radius: 20px;
  transform: scale(1.05);
  opacity: 0.65;
}
.wrapper .wrapper__unit p {
  font-size: 30px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  height: 30%;
  align-items: end;
  padding-bottom: 20px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transition: 0.3s all;
}
.wrapper .wrapper__unit img:hover + p {
  color: blue;
  font-size: 40px;
  text-align: center;
}

/* Изменим background родителя при следующих условиях */
.wrapper__unit:has(img:hover) {
  background-color: #D2DBDD;
}

/*# sourceMappingURL=style.css.map */
