.image-cards--homepage {
  margin: 35px 0 50px 0;
}

.image-cards__flex {
  justify-content: center;
}

.image-card-item {
  margin-bottom: 37px;
}

.image-card-item:last-child {
  margin-bottom: 17px;
}

.image-card {
  display: block;
  position: relative;
  background: none;
}

.image-card__image {
  position: relative;
  height: 100px;
}

.image-card__title {
  margin: 0;
  padding: 0;
  color: #d70c0c;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(to right, #fafafa 0%, #dddddd 100%);
  min-width: 275px;
  padding-right: 40px;
  padding-left: 30px;
  padding-top: 2px;
  padding-bottom: 2px;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
  margin-left: -16px;
  position: absolute;
  bottom: -17px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.image-card__title i {
  font-weight: normal;
  font-size: 20px;
}

.image-cards__top-content {
  padding-bottom: 8px;
}

.image-cards__btn {
  margin-top: 30px;
}

.image-cards--listing .image-card__title {
  font-size: 15px;
  width: calc(100% - 5px);
  padding-top: 8px;
  padding-bottom: 8px;
  color: #223cbd;
  display: block;
}

.image-cards--listing .image-card__title i {
  display: inline-block;
  vertical-align: middle;
  font-size: 16px;
  padding: 0 0 3px 5px;
}

.image-cards--listing .image-card__title::after {
  display: none;
}

.image-cards--listing .image-card__image {
  height: 150px;
}

.wysiwyg.bg-gray + .image-cards.bg-gray {
  padding-top: 0;
}

.wysiwyg.bg-gray:has(+ .image-cards.bg-gray) {
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .image-cards--homepage {
    margin: 50px 0 70px 0;
  }

  .image-card-item {
    margin-bottom: 44px;
  }

  .image-card-item:last-child {
    margin-bottom: 17px;
  }

  .image-card__image {
    height: 152px;
  }

  .image-cards__btn {
    margin-top: 10px;
    text-align: right;
  }

  .image-cards__flex.slick-initialized .slick-slide {
    margin: 0 17px;
  }

  .image-cards--full-width .image-cards__top-content {
    padding-left: 52px;
    padding-right: 52px;
  }

  .image-cards--full-width .container-fluid {
    padding-left: 0;
    padding-right: 0;
  }

  .image-cards--full-width .image-card {
    width: 314px;
  }

  .image-cards--full-width .image-cards__flex {
    margin-left: -50px;
    padding-bottom: 0;
  }

  .image-cards--full-width .image-cards__btn {
    margin-top: -37px;
    text-align: right;
    margin-right: 50px;
  }

  .image-cards--full-width .slick-next {
    margin-right: -35px;
  }

  .image-cards--full-width .slick-prev {
    margin-left: -35px;
  }

  .js-image-card-slider .slick-next {
    margin-right: -35px;
    top: 200px;
  }

  .js-image-card-slider .slick-prev {
    margin-left: -35px;
    top: 200px;
  }

  .image-cards--listing .image-card__image {
    height: 200px;
  }
}

@media (min-width: 1200px) {
  .image-cards--homepage {
    margin: 50px 0 100px 0;
  }

  .image-card-item {
    margin-bottom: 17px;
  }

  .image-card-item:last-child {
    margin-bottom: 17px;
  }

  .image-cards__grid .image-card-item,
  .image-card-item:last-child {
    margin-bottom: 40px;
  }

  .image-card__image {
    height: 188px;
  }

  .image-card__image::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(
      to bottom,
      rgba(28, 27, 31, 0.5) 0%,
      rgba(28, 27, 31, 0.85) 100%
    );
    opacity: 0;
  }

  .image-card__hover {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    padding: 0 11px 42px 11px;
    z-index: 1;
    opacity: 0;
  }

  .image-card__description {
    color: #fff;
    font-size: 16px;
    line-height: 1.625em;
    letter-spacing: 0.05em;
  }

  .image-card__title {
    font-size: 22px;
    min-width: 280px;
    padding-right: 56px;
    padding-left: 35px;
    padding-top: 2px;
    padding-bottom: 2px;
    margin-left: 12px;
    bottom: -17px;
  }

  .image-card__title i {
    font-weight: normal;
    font-size: 20px;
  }

  .image-card:hover .image-card__image::after,
  .image-card:hover .image-card__hover,
  .image-card:hover .image-card__title::after {
    opacity: 1;
  }

  .image-card:hover .image-card__title {
    background: linear-gradient(to right, #ac0218 0%, #c5242a 100%);
    margin-left: -12px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    color: #fff;
    padding-right: 84px;
  }

  .image-card__title::after {
    content: "\e915";
    font-family: "icomoon";
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translate(0, -50%);
    font-size: 17px;
    line-height: 1em;
    opacity: 0;
    font-weight: normal;
  }

  .image-cards__top-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 35px;
    max-width: 65%;
  }

  .image-cards__heading:has(+ .image-cards__btn) {
    width: 60%;
  }

  .image-cards__btn {
    width: 40%;
    text-align: right;
    margin-bottom: 30px;
  }

  .image-cards__btn .btn {
    margin-right: 10px;
  }

  .image-cards__flex.slick-initialized .slick-slide {
    margin: 0 17px;
  }

  .image-cards__flex .slick-arrow {
    top: -111px;
  }

  .image-cards__flex .slick-next {
    right: 340px;
    margin-right: 0;
  }

  .image-cards__flex .slick-prev {
    right: 395px;
    left: auto;
    margin-left: 0;
  }

  .image-cards--full-width .image-card {
    width: 574px;
  }

  .image-cards--full-width .image-cards__flex {
    margin-left: -140px;
    padding-bottom: 0;
  }

  .image-cards--full-width .image-cards__btn {
    margin-top: 0;
    text-align: right;
    margin-right: 0;
  }

  .image-cards--full-width .slick-next {
    right: 425px;
  }

  .image-cards--full-width .slick-prev {
    right: 475px;
  }

  .image-cards--full-width .image-cards__top-content {
    padding-left: 63px;
    padding-right: 63px;
  }

  .image-cards--listing .image-card__image {
    height: 340px;
  }

  .image-cards--listing .image-card-item {
    margin-bottom: 60px;
  }

  .image-cards--listing .image-card__title {
    font-size: 18px;
    line-height: normal;
    width: calc(100% - 10px);
    padding-top: 14px;
    padding-bottom: 14px;
    padding-left: 34px;
    padding-right: 30px;
    margin-left: -22px;
    display: block;
    clip-path: polygon(4% 0, 100% 0, 96% 100%, 0% 100%);
    font-weight: 700;
  }

  .image-cards--listing .image-card:hover .image-card__title {
    font-size: 22px;
    padding-right: 30px;
    padding-left: 20px;
  }

  .image-cards--listing .image-card__hover {
    padding: 0 22px 60px 22px;
  }

  .image-cards--listing .image-card__image::after {
    background: linear-gradient(
      0deg,
      #1c1b1f 0.16%,
      rgba(94, 94, 94, 0.25) 98.16%
    );
  }
}

@media (min-width: 1600px) {
  .image-cards--homepage {
    margin: 100px 0 100px 0;
  }

  .image-card-item,
  .image-card-item:last-child {
    margin-bottom: 25px;
  }

  .image-cards__grid .image-card-item,
  .image-card-item:last-child {
    margin-bottom: 60px;
  }

  .image-card__image {
    height: 276px;
  }

  .image-card__hover {
    padding: 0 22px 49px 22px;
  }

  .image-card__description {
    font-size: 18px;
    line-height: 1.7778em;
  }

  .image-card__title {
    font-size: 24px;
    min-width: 324px;
    padding-right: 56px;
    padding-left: 49px;
    padding-top: 7px;
    padding-bottom: 7px;
    margin-left: 20px;
    bottom: -25px;
  }

  .image-card__title i {
    font-weight: normal;
    font-size: 29px;
  }

  .image-card:hover .image-card__image::after,
  .image-card:hover .image-card__hover {
    opacity: 1;
  }

  .image-card:hover .image-card__title {
    padding-right: 106px;
    font-size: 28px;
  }

  .image-card__title::after {
    font-size: 25px;
  }

  .image-cards__flex .slick-next {
    right: 390px;
    margin-right: 0;
  }

  .image-cards__flex .slick-prev {
    right: 450px;
    left: auto;
    margin-left: 0;
  }

  .image-cards--full-width .slick-next {
    right: 445px;
  }

  .image-cards--full-width .slick-prev {
    right: 500px;
  }

  .container-slider .center-slider .slick-prev {
    left: 80%;
    top: auto;
  }

  .container-slider .center-slider .slick-next {
    right: 370px;
    top: auto;
  }
}

.slick-scrollbar {
  width: 230px;
  margin: 35px 0 0 85px;
}

.slick-scrollbar input[type="range"] {
  -webkit-appearance: none;
  margin: 0 0;
  width: 100%;
  background: linear-gradient(90deg, #1c1b1f 0.05%, #5e5e5e 99.98%);
  border-radius: 50px;
  height: 14px;
  border: none !important;
  outline: none !important;
}

.slick-scrollbar input[type="range"]:focus {
  outline: none !important;
}
.slick-scrollbar input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 14px;
  cursor: default;
  background: #000;
  border-radius: 100px;
  background: linear-gradient(90deg, #1c1b1f 0.05%, #5e5e5e 99.98%);
  border: none !important;
  outline: none !important;
}

.slick-scrollbar input[type="range"]::-webkit-slider-thumb {
  height: 14px;
  width: 70px;
  border-radius: 100px;
  background: linear-gradient(90deg, #cce9f5 0%, #234ba0 100%);
  cursor: grab;
  -webkit-appearance: none;
  margin-top: 0px;
  border: none;
}
.slick-scrollbar input[type="range"]::-webkit-slider-thumb:active,
.slick-scrollbar input[type="range"]::-webkit-slider-thumb:focus {
  cursor: grabbing;
}

.slick-scrollbar input[type="range"]::-moz-range-track {
  width: 100%;
  height: 14px;
  cursor: default;
  background: linear-gradient(90deg, #1c1b1f 0.05%, #5e5e5e 99.98%);
  border-radius: 100px;
}
.slick-scrollbar input[type="range"]::-moz-range-thumb {
  height: 14px;
  width: 50px;
  border-radius: 100px;
  background: linear-gradient(90deg, #cce9f5 0%, #234ba0 100%);
  cursor: grab;
  border: none;
}

.slick-scrollbar input[type="range"]::-moz-range-thumb:active,
.slick-scrollbar input[type="range"]::-moz-range-thumb:focus {
  cursor: grabbing;
}

@media (min-width: 1200px) {
  .slick-scrollbar {
    width: 575px;
    margin: 35px auto 0;
  }

  .slick-scrollbar input[type="range"]::-webkit-slider-thumb,
  .slick-scrollbar input[type="range"]::-moz-range-thumb {
    width: 200px;
    border-radius: 50px;
  }
}

/* Gallery Filter */

.gallery-filter__pill.js-active:before {
  display: none;
}

button.gallery-filter__pill {
  opacity: 1;
  margin: 0;
  background: transparent;
}

button.gallery-filter__pill .image-card:hover .image-card__image::after {
  opacity: 1;
}

button.gallery-filter__pill.js-active .image-card .image-card__image::after {
  opacity: 1;
}

button.gallery-filter__pill.js-active .image-card .image-card__title {
  background: linear-gradient(to right, #ac0218 0%, #c5242a 100%);
  margin-left: -12px;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
  color: #fff;
}

.media-gallery--stacked-layout .media-gallery__item {
  position: relative !important;
  margin-inline: auto;
  left: auto !important;
  right: auto !important;
  top: auto !important;
}

.media-gallery__item-link {
  height: 300px;
}

img.media-gallery__item-img {
  height: 100%;
  object-fit: cover;
}

figcaption.media-gallery__item-title p {
  margin: 12px;
  color: #fff;
}

@media (min-width: 1600px) {
  button.gallery-filter__pill.js-active .image-card .image-card__title {
    padding-right: 106px;
    font-size: 28px;
  }

  button.gallery-filter__pill.js-active .image-card .image-card__title::after {
    font-size: 25px;
    opacity: 1;
  }
}

/* Before After Slider */

.container-slider {
  position: relative;
  width: 100%;
}

.container-slider img {
  border-radius: 8px;
  background: #fff;
  color: #3498db;
  font-size: 36px;
  line-height: 100px;
  margin: 10px;
  width: 700px;
  height: 350px;

  position: relative;
  text-align: center;

  .top {
    font-size: 70%;
    height: 70%;

    margin: 0 auto;
  }

  .bottom {
    font-size: 70%;
    width: 70%;
    margin: 0 auto;
  }
}

.container-slider .center-slider .slick-current img {
  opacity: 1;
  height: 400px;
  transform: scale(1);
}

.container-slider .clip {
  overflow: hidden;
  bottom: 0;
}

.center-slider .slick-center img {
  transform: scale(1);
  color: #e67e22;
  opacity: 1;

  .top {
    font-size: 90%;
    width: 90%;
    background-color: rgba(blue, 0.3);
  }

  .bottom {
    font-size: 90%;
    width: 90%;
    background-color: rgba(green, 0.3);
  }
}

.container-slider .center-slider img {
  opacity: 0.8;
  transition: all 300ms ease;
  bottom: 0;
  transform: scale(0.9);
}

#gallery-content > .container {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

#gallery-content .image-cards {
  padding-left: var(--bs-gutter-x, 21px);
  padding-right: var(--bs-gutter-x, 21px);
  max-width: 1528px;
  margin-inline: auto;
}

.page-template-photo-video-gallery > #gallery-content .image-cards {
  margin-top: 50px;
}

.center-slider .clip button.slick-arrow {
  position: relative;
}

.beforeafter-actions {
  position: relative;
  background: linear-gradient(90deg, #1d2388 0%, #223cbd 50%);
  width: 100px;
  height: 100px;
  padding: 50px;
  left: 50%;
  transform: translate(-65%, -220%);
  border-radius: 50%;
}

.beforeafter-actions button.slick-arrow {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  font-family: "icomoon";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(20%, -50%);
}

.beforeafter-actions button.slick-arrow::before {
  content: "\e912";
  font-size: 50px;
}

.beforeafter-actions button.slick-arrow.slick-prev::before {
  transform: rotate(180deg);
  left: 7px;
}

.beforeafter-actions button.slick-arrow.slick-next::before {
  left: -5px;
}

.ajax_filter_search_results .fxgallery-loadmore {
  margin-inline: auto;
  text-align: center;
  margin-top: 20px;
}

.ajax_filter_search_results .fxgallery-loadmore .fxgallery-loadmore__progress {
  display: block;
  margin-inline: auto;
  margin-bottom: 15px;
}

.beforeafter .container-wrap {
  position: relative;
  display: flex;
  width: clamp(20rem, 75vw, 50rem);
  max-height: 95vh;
  aspect-ratio: 3 / 2;
}

.beforeafter .img-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.beforeafter .img-wrapper img {
  width: 100%;
  object-fit: fill;
}

.beforeafter .img-wrapper:nth-child(2) {
  clip-path: inset(0px 0px 0px 50%);
}

.beforeafter .line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 315px;
  background-color: #cce9f5;
  top: 28px;
}

.slick-current .beforeafter .line {
  height: 400px;
  top: 10px;
}

.beforeafter .line .line__beforeafter {
  position: absolute;
  background: linear-gradient(90deg, #1d2388 0%, #223cbd 50%);
  width: 100px;
  height: 100px;
  padding: 50px;
  left: 125%;
  transform: translate(-65%, -220%);
  border-radius: 50%;
  top: 95%;
  cursor: pointer;
}

.beforeafter .line .line__beforeafter:hover {
  cursor: pointer;
}

.line__beforeafter .prev-icon,
.line__beforeafter .next-icon {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  font-family: "icomoon";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(20%, -50%);
  cursor: pointer;
}

.line__beforeafter .prev-icon::before {
  position: absolute;
  content: "\e912";
  font-size: 50px;
  font-family: "icomoon";
  transform: rotate(180deg);
  left: -40px;
  margin-top: -35px;
}

.line__beforeafter .next-icon::before {
  position: absolute;
  content: "\e912";
  font-size: 50px;
  font-family: "icomoon";
  left: -8px;
  margin-top: -34px;
}

.beforeafter input {
  /* reset */
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  /* custom */
  position: absolute;
  width: calc(100% + 2.25rem);
  height: 100%;
  left: -1.125rem;
  opacity: 0;
}

.beforeafter input:active::-webkit-slider-thumb {
  cursor: grabbing;
}

.beforeafter input:active::-moz-slider-thumb {
  cursor: grabbing;
}

@media (max-width: 600px) {
  .beforeafter .container-wrap {
    max-height: 100%;
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  #beforeafter-slider .slick-arrow {
    bottom: -45px;
  }
}

@media (max-width: 1599px) and (min-width: 1201px) {
  #beforeafter-slider .slick-prev {
    left: 80%;
  }
  #beforeafter-slider .slick-next {
    right: 20%;
  }
}
