.cards-two {
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
}

.cards-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-four .image-card {
  min-height: 440px;
}

.senior-card img {
  object-position: center center;
}

.image-card.fit-full img {
  object-fit: contain;
  background: #e9e4dc;
}

.crop-top img {
  height: 112%;
  top: -8%;
  object-position: center bottom;
}

.product-hebergement {
  min-height: 455px;
  overflow: hidden;
}

.product .portrait-frame {
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
}

.product .portrait-frame img {
  width: 155%;
  height: auto;
  max-width: none;
  transform: rotate(90deg);
}

.gallery-item.poste-reglable img {
  object-position: center top;
}

@media (max-width: 640px) {
  .cards-two {
    grid-template-columns: 1fr;
  }

  .product .portrait-frame {
    height: 410px;
  }

  .product .portrait-frame img {
    width: 67%;
    height: auto;
  }

}

@media (min-width: 641px) and (max-width: 1080px) {
  .cards-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
