.living-space-section {
  background-image: url("../images//bg.5fc709131814.webp");
  background-repeat: repeat;
  padding: 60px 20px;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.living-space-section__title {
  font-size: 28px;
  font-weight: 600;
  color: #43230C;
  margin-bottom: 10px;
  text-align: center;
}

.living-space-section__description {
  max-width: 600px;
  margin: 0 auto 60px;
  color: #4F3C22;
  font-size: 18px;
  text-align: justify;

}
.living-space-section__description p{
  text-align: center;
}
.living-space-section__grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.living-space-section__item {
  flex: 1; /* Cho phép mỗi item mở rộng hết mức có thể */
  min-width: 280px; /* Đảm bảo không bị quá nhỏ */
}

.living-space-section__image-wrapper {
  overflow: hidden;
  border-radius: 12px;
  height: 400px;
  display: flex;
  justify-content: center;
    transition: transform 0.4s ease;
}

.living-space-section__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

.living-space-section__image-wrapper:hover{
  transform: scale(1.08);
}

.living-space-section__label {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 600;
  color: #43230C;
  text-align: center;
text-transform: uppercase;
}
.living-space-section__label p{
  font-weight: 600;
}
.living-space-section__item {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .living-space-section {
    padding: 50px 16px;
  }

  .living-space-section__title {
    font-size: 48px;
  }

  .living-space-section__description {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .living-space-section__grid {
    gap: 30px;
  }

  .living-space-section__label {
    font-size: 24px;
  }

  .living-space-section__image-wrapper {
    height: 350px;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .living-space-section {
    padding: 40px 12px;
  }

  .living-space-section__title {
    font-size: 36px;
  }

  .living-space-section__description {
    font-size: 15px;
  }

  .living-space-section__grid {
    gap: 20px;
  }

  .living-space-section__label {
    font-size: 20px;
  }


}

/* Extra Small Devices (≤480px) */
@media (max-width: 480px) {
  .living-space-section__title {
    font-size: 28px;
  }

  .living-space-section__description {
    font-size: 14px;
  }

  .living-space-section__label {
    font-size: 18px;
  }



  .living-space-section__grid {
    gap: 16px;
  }
}
@media (min-width:643px) {
.living-space-section__image-wrapper img{
  width:280px;
  height:350px;
  border-radius: 12px;
}
}