/*--------------------------------------------------------------
# Gallery Page
--------------------------------------------------------------*/
.gallery-page {
  position: relative;
  display: block;
  padding: 120px 0 110px;
}

.gallery-page .row {
  --bs-gutter-x: 10px;
}

.gallery-page .container {
  max-width: 1572px;
}

.gallery-page__single {
  position: relative;
  display: block;
  margin-bottom: 10px;
}

.gallery-page__img {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  z-index: 1;
}

.gallery-page__img:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -2px;
  left: 0;
  right: 0;
  background-color: var(--Freshflow-black);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  -webkit-transform-origin: top center;
  transform-origin: top center;
  -webkit-transform: scaleY(0) translateZ(100px);
  transform: scaleY(0) translateZ(100px);
  -webkit-transition: opacity 500ms ease, visibility 500ms ease, -webkit-transform 700ms ease;
  transition: opacity 500ms ease, visibility 500ms ease, -webkit-transform 700ms ease;
  transition: opacity 500ms ease, visibility 500ms ease, transform 700ms ease;
  transition: opacity 500ms ease, visibility 500ms ease, transform 700ms ease, -webkit-transform 700ms ease;
  z-index: 2;
}

.gallery-page__single:hover .gallery-page__img:before {
  opacity: .90;
  visibility: visible;
  -webkit-transform: scaleY(1) translateZ(0px);
  transform: scaleY(1) translateZ(0px);
}

.gallery-page__img-box {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  z-index: 1;
}

.gallery-page__img img {
  width: 100%;
  border-radius: 8px;
}

.gallery-page__icon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  z-index: 2;
}

.gallery-page__icon a {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  color: var(--Freshflow-white);
  -webkit-transform: scale(0);
  transform: scale(0);
  opacity: 0;
  -webkit-transition: all 500ms ease;
  transition: all 500ms ease;
  z-index: 2;
}


.gallery-page__single:hover .gallery-page__icon a {
  -webkit-transform: scale(1);
  transform: scale(1);
  transition-delay: 500ms;
  opacity: 1;
}

.gallery-page__icon a:hover {
  color: var(--Freshflow-base);
}

.before-after-gallery-page {
  background: #f7fbfd;
  padding: 90px 0 80px;
}

.before-after-gallery-page .row {
  --bs-gutter-x: 24px;
  --bs-gutter-y: 24px;
}

.before-after-gallery-page__intro {
  max-width: 720px;
  margin: 16px auto 0;
  color: #5f6f78;
  font-size: 17px;
  line-height: 1.7;
}

.before-after-gallery-card {
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e4eef3;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 125, 185, 0.08);
}

.gallery-image-card {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf5f8;
}

.gallery-image-card a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity 200ms ease, transform 300ms ease;
}

.gallery-image-card a:hover img {
  opacity: 0.88;
  transform: scale(1.04);
}

.before-after-gallery-card__content {
  padding: 20px 22px 24px;
}

.before-after-gallery-card__content h3 {
  margin: 0 0 8px;
  color: #063b55;
  font-size: 22px;
  font-weight: 700;
}

.before-after-gallery-card__content p {
  margin: 0;
  color: #5f6f78;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .before-after-gallery-page {
    padding: 70px 0 60px;
  }

  .before-after-gallery-card__content {
    padding: 18px;
  }

  .gallery-image-card {
    aspect-ratio: 4 / 3;
  }
}
