.acf-block-query-project {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 2%;
}

.acf-block-query-project__search__section {
  padding: 33px 22px;
  background-color: var(--wp--preset--color--white);
  width: 66%;
}

.acf-block-query-project__search__section__buttons {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
}

.acf-block-query-project__search__section__buttons * button {
  border: 1px solid var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
  background-color: transparent;
  padding: 10px 20px;
  cursor: pointer;
  transition: 0.2s;
  transition: grayscale 0.1s;
  font-family: var(--wp--preset--font-family--primary);
  text-transform: uppercase;
}

.acf-block-query-project__search__section__buttons * span {
  font-weight: 700;
}

.acf-block-query-project__search__section__buttons * button:hover,
.acf-block-query-project__search__section__buttons * button.active {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
}

.acf-block-query-project__search__section__buttons * button:active {
  filter: grayscale(0.3);
}

.acf-block-query-project__search__section__buttons__price__content {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 10px;
}
.acf-block-query-project__search__section__buttons__type__content {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.acf-block-query-project__card {
  display: flex;
  flex-direction: column;
  width: 32%;
  min-height: 360px;
  background-color: var(--wp--preset--color--highlight);
  color: var(--wp--preset--color--white);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.acf-block-query-project__card.empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--wp--preset--color--white);
}
.acf-block-query-project__card.empty > svg {
  width: 50px;
  height: 50px;
}
.acf-block-query-project__card.empty > p {
  font-size: 20px;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
}
.acf-block-query-project__card.empty > svg path {
  fill: var(--wp--preset--color--primary);
}

/* this is a tricks allowed the image take the height not use by the card_info  */
.acf-block-query-project__card__image {
  position: relative;
  height: 100%;
}
.acf-block-query-project__card__info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--wp--preset--color--highlight);
}
.acf-block-query-project__card__info__content {
  height: fit-content;
}
.acf-block-query-project__card__info__content > span {
  font-weight: 700;
  font-size: 18px;
}

.acf-block-query-project__card__info__content__description {
  margin: 0;
  margin-top: 10px;
  max-height: 120px;
  overflow-y: auto;
}

.acf-block-query-project__card__info__content__description__wrap {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease-out;
}
.acf-block-query-project__card__info:hover
  *
  .acf-block-query-project__card__info__content__description__wrap {
  user-select: none;
  height: 120px;
}

.acf-block-query-project__card__info__buttons {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 10px;
}
.acf-block-query-project__card__info__buttons__details {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.acf-block-query-project__card__info__buttons__details > span {
  font-weight: 700;
  font-size: 14px;
}

.acf-block-query-project__card__info__buttons > button {
  border: 1px solid var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  background-color: var(--wp--preset--color--primary);
  padding: 10px 20px;
  cursor: pointer;
  font-family: var(--wp--preset--font-family--primary);
}

.acf-block-query-project__grid__images {
  display: grid;
  width: 100%;
  grid-gap: 20px 2%;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "a a b b"
    "a a b b"
    "c c b b"
    "c c b b"
    "c c e e"
    "c c e e"
    "c c e e";
}
.grid-a {
  grid-area: a;
  min-height: 350px;
}

.grid-b {
  grid-area: b;
  min-height: 510px;
}

.grid-c {
  grid-area: c;
  min-height: 720px;
}
.grid-e {
  grid-area: e;
  min-height: 410px;
}

.acf-block-query-project__grid__image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
}

.acf-block-query-project__shimmer,
.shimmer {
  display: inline-block;
  position: relative;

  animation: shimmer 1s infinite linear;
  animation-fill-mode: forwards;
  animation-name: placeholderShimmer;
  background: #f6f7f8;
  background-image: linear-gradient(
    to right,
    #f6f7f8 0%,
    #edeef1 20%,
    #f6f7f8 40%,
    #f6f7f8 100%
  );
  background-repeat: no-repeat;
  background-size: 200%;
}

.acf-block-query-project__shimmer {
  width: 32%;
  min-height: 360px;
}

@keyframes placeholderShimmer {
  0% {
    background-position: -468px 0;
  }

  100% {
    background-position: 468px 0;
  }
}

@media (max-width: 1280px) {
  .acf-block-query-project__search__section {
    width: 100%;
  }
  .acf-block-query-project__card,
  .acf-block-query-project__shimmer {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .acf-block-query-project__card,
  .acf-block-query-project__shimmer {
    width: 100%;
  }
  .acf-block-query-project__search__section__buttons {
    flex-direction: column;
  }

  .acf-block-query-project__grid__images {
    grid-template-columns: repeat(1, 1fr);
    grid-template-areas:
      "a"
      "b"
      "c"
      "e";
  }
  .grid-e,
  .grid-a,
  .grid-b,
  .grid-c {
    min-height: 400px;
  }
}
