/*
*  Project-mini block styles
*/

.project-mini__body-wrapper.container-flex {
  justify-content: space-between;
}

.project-mini__title {
  display: block;
  text-align: right;
  padding-bottom: 65px;
}

.project-mini__category {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.services .bapf_head {
  display: none;
}

.woocommerce div.product .stock {
  padding: 1rem 0;
}

.project-mini__images-gallery img {
  max-height: 100px;
}

.services
  .berocket_single_filter_widget
  .widget.widget_berocket_aapf_single::before {
  content: none;
}

.services .bapf_body ul {
  margin: 15px 0;
}

.services .bapf_body ul input {
  display: none;
}

.services .bapf_sfilter {
  margin-bottom: 0;
}

.services .filter-block {
  padding: 2rem 0;
}

.services .bapf_sfilter .bapf_body ul li {
  display: inline-block;
  width: auto;
  list-style-type: none;
  padding: 0;
  height: auto;
  padding: 5px 0;
  margin: 5px !important;
}

.services .bapf_body ul label {
  padding: 7px;
  border: solid 1px;
  border: solid 1px #2d2d2d;
}

.services .bapf_body ul input:checked ~ label {
  background: #009fe3;
  color: white;
  border: none;
}

.services .bapf_body ul li > span label {
  cursor: pointer;
}

.services .bapf_body ul li > span label:hover {
  color: inherit;
}

.project-mini__title:after {
  content: '';
  position: relative;
  top: 10px;
  display: block;
  width: 100%;
  height: 2px;
  background: #00488c;
}

.about-block__three .project-mini__body {
  padding: 5rem 0 15rem;
}

.project-mini__body {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 0;
}

.project-mini__desc {
  display: inline-flex;
  flex-direction: column;
  width: 44%;
}

.project-mini__images {
  display: flex;
  width: 50%;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
}

.project-mini__images-main {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
}

img.project-main-img {
  width: 100%;
  min-height: 29.2rem;
  background: lightgray;
}

.project-mini__images-gallery {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;

  padding-left: 10px;
}

img.project-gallery-img {
  display: block;
  width: 100%;
  min-height: 9.06rem;
  background: lightgrey;
}

.images-gallery__img {
  display: block;
  padding-bottom: 1rem;
}

.images-gallery__img:last-of-type {
  padding: 0;
}

.project-mini__desc-text p {
  padding-top: 10px;
}

.project-mini__desc-btn {
  padding-top: 3rem;
}

.row-grey {
  background: #f2f2f2;
}

.project-mini__images-gallery img {
  display: block;
  width: 100%;
}
.projects-filter ul > li.checked::before,
.projects-filter ul > li::before {
  content: unset;
}

.all-projects-btn .bapf_body button {
  padding: 5px 19px;
  font-size: 16px;
  border: solid 1px;
  color: #2d2d2d;
  line-height: 25px;
  margin: 5px;
}

@media screen and (max-width: 1023px) {
  img.project-main-img {
    height: auto;
    min-height: auto;
  }
  .project-mini__images {
    flex-direction: column;
  }
  .project-mini__images-main {
    width: 100%;
  }
  .project-mini__images-gallery {
    width: 100%;
    flex-direction: row;
    padding: 0;
  }
  .project-mini__images-gallery a {
    width: calc((100% / 3) - 5px);
    padding-top: 5px;
  }
  .project-mini__images-gallery a img {
    width: 100%;
    height: auto;
  }
}
@media screen and (max-width: 850px) {
.header-block {
  max-height: 6rem;
}
.project-mini__images img {
  border-radius: 10px;
}
}

@media screen and (max-width: 550px) {
  .project-mini__images img {
 max-height: 170px;
 object-fit: cover;
}
  .filter-block {
    display: none;
  }
  .project-mini__body-wrapper.container-flex {
    flex-direction: column;
  }
  .project-mini__desc-text {
    display: none;
  }
  .project-mini__desc,
  .project-mini__images,
  .project-mini__images-main,
  .project-mini__images-gallery {
    width: 100%;
  }
  .project-mini__images {
    gap: 0;
  }
  .project-mini__images-gallery a.popup-img {
    width: calc((100% - 20px) / 3);
  }
  .project-mini__images-gallery {
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  .project-mini__body {
    padding: 1rem 0;
  }
  .project-mini__desc h3 {
    font-size: 18px;
  }
  .project-mini__desc-title {
    margin-bottom: 5px;
  }
}
