</head>
<body>
    <div class="container">
        <div class="card">
          <img src="https://i.postimg.cc/HsmjqTdT/kd1.jpg">
          <div class="card__head">Клубный дом</div>
        </div>
        <div class="card">
          <img src="https://i.postimg.cc/PxZr7R7L/nb1.jpg">
          <div class="card__head">Новостройка</div>
        </div>
        <div class="card">
          <img src="https://i.postimg.cc/52R42JdY/vt1.jpg">
          <div class="card__head">Квартира</div>
        </div>
        <div class="card">
          <img src="https://i.postimg.cc/1XQ51Kxv/su1.jpg">
          <div class="card__head">Санузел</div>
        </div>
        <div class="card">
          <img src="https://i.postimg.cc/wvK9DkB9/Vk2.jpg">
          <div class="card__head">Ванная</div>
        </div>
      </div>
</body>

</html>

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10vmin;
  overflow: hidden;
  transform: skew(5deg);
}
.container .card {
  flex: 1;
  transition: all 1s ease-in-out;
  height: 75vmin;
  position: relative;
}
.container .card .card__head {
  color: rgb(84, 87, 82);
  background: rgba(201, 134, 10, 0.8);
  padding: 0.5em;
  transform: rotate(-90deg);
  transform-origin: 0% 0%;
  transition: all 0.5s ease-in-out;
  min-width: 100%;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 1em;
  white-space: nowrap;
}
.container .card:hover {
  flex-grow: 10;
}
.container .card:hover img {
  filter: grayscale(0);
}
.container .card:hover .card__head {
  text-align: center;
  top: calc(100% - 2em);
  color: white;
  background: rgba(42, 78, 138, 0.8);
  font-size: 2em;
  transform: rotate(0deg) skew(-5deg);
}
.container .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 1s ease-in-out;
  filter: grayscale(100%);
}
.container .card:not(:last-child) {
  margin-right: 1em;
}
@media(max-width:768px) {
    .wrapper{
        min-width: 768px;
   
}
.container {
    min-width: 688px;
    }
}


@media(max-width:375px) {
    .wrapper {
        min-width: 375px;
    }
    .container{ min-width: 375px;
}
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.