.ke-homes-tabs {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.ke-homes-tabs__media {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.ke-homes-tabs__image {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes ke-homes-tab-clarify {
  0% {
    filter: blur(2px);
  }
  100% {
    filter: blur(0);
  }
}

.ke-homes-tabs__image.is-animating {
  animation: ke-homes-tab-clarify 0.3s linear;
}

.ke-homes-tabs__tabs {
  display: grid;
  gap: 55px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 15px;
}

.ke-homes-tabs__tab {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  width: 100%;
  aspect-ratio: 648 / 207;
  overflow: hidden;
}

.ke-homes-tabs__tab img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.ke-homes-tabs__tab .ke-tab-active {
  display: none;
}

.ke-homes-tabs__tab.is-active .ke-tab-default {
  display: none;
}

.ke-homes-tabs__tab.is-active .ke-tab-active {
  display: block;
}

.ke-homes-tabs__banner {
  width: 100%;
  max-width: 980px;
  margin: 70px auto 0;
  padding: 0 15px;
}

.ke-homes-tabs__banner-inner {
  background: url("../images/banner-bg.jpg") center / cover no-repeat;
  border-radius: 8px;
  overflow: hidden;
  min-height: 120px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 16px;
  padding: 33px 24px;
  text-align: center;
}

.ke-homes-tabs__banner-text {
  font-family: "recoleta-semibold", serif;
  font-size: 40px;
  line-height: 1.1;
  color: #ffe191;
  text-align: center;
}

.ke-homes-tabs__banner-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ke-homes-tabs__banner-button img {
  width: 220px !important;
  max-width: 220px !important;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .ke-homes-tabs__tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0px 20px;
   padding: 0 50px 0px;

  }
}

@media (max-width: 700px) {
  .ke-homes-tabs__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
  }

  .ke-homes-tabs__banner-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 15px;
    gap: 10px;
  }

  .ke-homes-tabs__banner-text {
    font-size: 24px;
  }

  .ke-homes-tabs__banner-button img {
    width: 180px !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 500px) {
  .ke-homes-tabs__tabs {
   
   padding: 0 20px 0px;

  }

  @media (max-width: 400px) {
   .ke-homes-tabs__banner-text {
    font-size: 22px;
  }
}
