.rooms-container {
  padding: 15px;
  font-family: Arial, Helvetica, sans-serif;
}
.rooms {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.room {
  flex-basis:  calc(33%);
  height: 340px;
  position: relative;
  background-color: #fff;
  overflow: hidden;
  transition: .5s all ease-in-out;
}
.room img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  user-select: none;
  filter: saturate(0.2) contrast(0.75) brightness(1.1);
  transition: 0.25s all ease-in-out;
}
.room .room-content {
  position: absolute;
  top: 36px;
  left: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: .2s all ease-in-out;
  z-index: 9;
}
.room .room-content .room-title {
  margin: 0;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fff !important;
}
.room .room-content .room-description {
  margin: 0;
  font-size: 18px;
  color: #fff;
}
.room-link{
    position: absolute;
    bottom: 36px;
    right: 36px;
    background-color: #4465ad;
    padding: 12px 28px;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 15px;
    transition: .2s all ease-in-out;
    z-index: 9;
}
.room-link:hover{
    background-color: #41588a;
    color: #fff;
}
.room::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(160deg, rgba(2, 0, 36, 0.432) 40%, rgba(155, 186, 253, 0.6) 70%, rgba(68, 101, 173,.6) 100%);
  transition: .2s all ease-in-out;
}
.room:hover::after {
 opacity: 0.9;
  background: linear-gradient(
    180deg,
     rgba(000, 000, 000, 0.3) 42%,
    rgba(0, 212, 255, 0) 100%
  );
}
.room:hover{
    flex-basis:  calc(50%);;
}
.room:hover .room-link{
    padding: 12px 50px;
}
.room:hover img {
  filter: none;
  opacity: 1;
}
.room:hover .room-title {
    color: #fff !important;
}
.room:hover .room-description {
    color: #fff;
}
@media screen and (max-width:792px){
    .rooms{
        flex-wrap: wrap;
    }
    .room{
        aspect-ratio: 4/3;
        width: 100%;
        height: auto    ;
        flex-basis: auto;
    }
    .room:hover{
        flex-basis: auto;
    }
}