.casa {
  padding: 0 6vw;
}

.casa__title {
  color: #000;
  font-family: "BanamexDisplay";
  font-size: 1.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 2.125rem; /* 113.333% */
  letter-spacing: -0.05625rem;
}

.casa__cover {
  border-radius: 50%;
  border-bottom-left-radius: 0;
  object-fit: cover;
  height: 88vw;
  width: 88vw;
}

.casa__subtitle {
  color: #000;
  font-family: "BanamexDisplay";
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5rem; /* 150% */
  letter-spacing: -0.03rem;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
}
.casa__subtitle {
  margin-top: 4rem;
  font-size: 2rem;
  line-height: 3rem;
  text-transform: none;
}

.casa__history_content {
  color: #000;
  font-family: "BanamexText";
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5rem; /* 150% */
  letter-spacing: -0.03rem;
}

.casa__address_content {
  color: #000;
  font-family: "BanamexText";
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5rem; /* 150% */
  letter-spacing: -0.03rem;
}

.casa__location {
  border-radius: 2rem;
  overflow: hidden;
  height: 88vw;
  width: 88vw;
}

.casa__title {
  display: flex;
  flex-direction: column;
}

.casa__title .arrow {
  transform: rotate(180deg);
}

.casa__expo_list {
  margin: 0 -6vw;
  overflow: hidden;
  padding-left: 6vw;
  white-space: nowrap;
  padding-bottom: 2rem;
}

.casa__expo_item .title {
  text-overflow: ellipsis;
  white-space: wrap;
  font-family: "BanamexDisplay";
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* number of lines to show */
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media screen and (min-width: 768px) and (max-width: 1400px) {
  .card__container .title {
    font-size: 1rem !important;
  }
}

.card__container .group {
  margin: 0;
}

.casa__expo_item {
  text-decoration: none;
}

.custom__arrows {
  margin-top: 1rem;
}

.custom__arrow {
  background: transparent;
  border: none;
  cursor: pointer;
}

.custom__arrow img {
  filter: invert(0);
}

.arrow_left {
  margin-right: 1rem;
}

.casa__cover .splide__slide img {
  border-radius: 1rem;
}

.casa__cover .splide__pagination {
  align-items: flex-start;
  justify-content: flex-start;
  bottom: -2rem;
  right: auto;
  background-color: #3f6063;
  right: auto;
  border-radius: 20px;
  padding-bottom: 3px;
}

.casa__cover .splide__pagination__page {
  background: #fff;
  opacity: 1;
}

.casa__cover .splide__pagination__page.is-active {
  background: #ff1b44;
}

.casa-template-default .card__cover_container {
  height: 15.1875rem !important;
}

@media screen and (max-width: 992px) {
  .casa {
    margin-top: 60px;
  }

  .casa__address_content a {
    border: solid 1px #000;
    border-radius: 2rem;
    padding: 0.5rem 3rem 0.5rem 1rem;
    text-decoration: none;
    position: relative;
  }

  .casa__address_content a:after {
    content: "";
    width: 30px;
    height: 15px;
    background: url("/wp-content/themes/comunidades_2025/assets/arrow_right.svg");
    background-repeat: no-repeat;
    background-position: center center;
    top: 10px;
    right: 10px;
    position: absolute;
    display: inline-block;
  }
  /*
  .casa__expo_list {
    border: none;
    display: flex;
  }
	*/
  .casa__history_content p {
    font-size: 1.2rem;
    line-height: 130%;
  }

  .casa__subtitle {
    font-size: 1.3rem;
    margin-top: 3rem;
  }

  .splide__slide {
    height: 40vh;
    padding: 0;
  }

  .casa__cover .slider__section {
    height: auto;
    max-height: 100%;
  }

  .casa__cover {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .casa__expo_list {
    border: none;
    display: grid;
    padding: 3vh 0;
    width: 100%;
    margin: 0 auto;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
  }
  .casa__expo_item {
    display: inline-block;
    /*margin-right: 1rem;*/
    text-decoration: none;
    /*width: 13.78625rem;*/
  }

  .casa__expo_item .cover {
    object-fit: cover;
    border-radius: 3rem;
    width: 13.78625rem;
    height: 13.78625rem;
  }
}

#footer {
  margin-top: 10rem;
}

.casa__address_content a {
  font-family: "Interstate Light";
}

.casa:before {
  background: #edf6f7;
  height: 1rem;
  position: absolute;
  right: 0;
  top: 0;
  width: 1rem;
  z-index: 10;
}
@media screen and (max-width: 767px) {
  .casa__expo_list {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 4rem;
  }

  #back_btn {
    margin-bottom: 3rem;
  }

  .casa .custom__arrow {
    align-items: center;
    background: #edf6f7;
    display: flex;
    border-radius: 22px;
    justify-content: center;
    padding: 0.5rem 1.3rem;
  }

  .custom__arrows {
    display: flex;
  }

  .casa__cover .splide__pagination {
    bottom: -2.9rem;
  }
}

@media screen and (min-width: 993px) {
  .casa {
    display: grid;
    grid-template-columns: 57% 36% 7%;
    grid-template-rows: 0 auto;
    grid-template-areas:
      ". . ."
      ". title ."
      ". history ."
      ". history-content ."
      ". location ."
      ". location-content ."
      ". address ."
      ". address-content ."
      ". expo ."
      ". expo-content .";
    padding: 0;
    position: relative;
    padding-bottom: 5rem;
  }

  #back_btn > div {
    align-items: center;
    display: flex;
    margin-bottom: 2rem;
  }

  .casa .custom__arrow {
    align-items: center;
    background: #edf6f7;
    display: flex;
    border-radius: 22px;
    justify-content: center;
    padding: 0.5rem 1.3rem;
  }

  .casa .custom__arrow img {
    height: 0.8rem;
  }

  .casa-template-default .header_container {
    background: transparent;
  }

  .casa-template-default:before {
    background: #edf6f7;
    bottom: 0;
    content: "";
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    width: calc(100% - 53%);
    z-index: -1;
  }

  .casa__subtitle.address {
    display: none;
  }

  .casa__subtitle {
    font-size: 2.4rem;
    font-weight: 400;
    border: none;
    margin: 4rem 0 1rem 0;
  }

  .casa__title {
    grid-area: title;
    display: flex;
    margin: 0;
    font-size: 4rem;
    font-style: normal;
    font-weight: 400;
    line-height: 104%;
    letter-spacing: -0.16875rem;
  }

  .history {
    grid-area: history;
  }

  .address {
    grid-area: address;
  }

  .location {
    grid-area: location;
  }

  .expo {
    grid-area: expo;
  }

  .casa__expo_list {
    border: none;
    grid-area: expo-content;
    display: grid;
    grid-template-columns: repeat(2, calc(50% - 0.5rem));
    gap: 1rem;
    margin: 0;
    padding: 0;
  }

  .casa__expo_item .cover {
    border-radius: 50%;
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
  }

  .casa__expo_item .cover.square {
    border-radius: 2rem;
  }

  .casa__location {
    grid-area: location-content;
    margin: 1rem 0;
    max-height: 40vw;
    max-width: 40vw;
  }

  .casa__address_content {
    grid-area: address-content;
  }

  .casa__history_content {
    grid-area: history-content;
  }

  .casa__address_content a {
    border: solid 1px #000;
    border-radius: 2rem;
    padding: 0.5rem 3rem 0.5rem 1rem;
    text-decoration: none;
    position: relative;
  }

  .casa__address_content a:after {
    content: "";
    width: 30px;
    height: 15px;
    background: url("/wp-content/themes/comunidades_2025/assets/arrow_right.svg");
    background-repeat: no-repeat;
    background-position: center center;
    top: 10px;
    right: 10px;
    position: absolute;
    display: inline-block;
  }

  .casa__cover {
    align-items: flex-end;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    position: -webkit-sticky;
    position: sticky;
    top: 2rem;
    left: 2vw;
    width: 48vw;
    max-height: 80vh;
  }

  .casa__cover .splide__slide {
    border-radius: 1rem;
    overflow: hidden;
    max-height: 70vh;
    height: 70vh;
  }

  .casa__cover .custom_arrows {
    display: flex;
    position: relative;
  }

  .casa__cover .splide__pagination {
    left: 2rem;
  }
  .container-fluid {
    padding-top: 4rem;
  }
}
@media screen and (min-width: 1201px) {
  .casa__expo_list {
    border: none;
    grid-area: expo-content;
    display: grid;
    grid-template-columns: repeat(3, calc(33% - 0.5rem));
    gap: 1rem;
    margin: 0;
    padding: 0;
  }
}
