.before-after-archive {
  background: #000;
  color: #fff;
  padding: 50px 0;
  position: static !important;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 100vh;
}
.before-after-archive h2 {
  font-size: 72px;
  font-weight: 400;
  margin-bottom: 0;
}
.before-after-archive h3 {
  font-size: 57px;
  font-weight: 400;
}
.before-after-archive h5 {
  font-size: 33px;
  font-weight: 400;
}
@media screen and (max-width: 768px) {
  .before-after-archive h2 {
    font-size: 54px;
  }
  .before-after-archive h3 {
    font-size: 46px;
  }
  .before-after-archive h5 {
    font-size: 28px;
  }
}
@media screen and (max-width: 520px) {
  .before-after-archive {
    padding: 30px 0;
  }
  .before-after-archive h2 {
    font-size: 36px;
  }
  .before-after-archive h3 {
    font-size: 28px;
  }
  .before-after-archive h5 {
    font-size: 20px;
  }
}
.before-after-archive .container {
  max-width: 1795px;
  margin: 0 auto;
  padding: 0 15px;
}
.before-after-archive__filtration-row {
  padding: 30px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
@media screen and (max-width: 768px) {
  .before-after-archive__filtration-row {
    flex-direction: column;
    align-content: center;
    gap: 15px;
    padding: 0 0 20px;
  }
}
.before-after-archive__filter-button {
  cursor: pointer;
  background: transparent;
  font-size: 40px;
  color: #fff;
  box-shadow: unset;
  border: unset;
  position: relative;
  padding: 10px 20px;
}
@media screen and (max-width: 768px) {
  .before-after-archive__filter-button {
    font-size: 36px;
    text-align: center;
    padding: 10px;
    margin-bottom: 0;
  }
}
@media screen and (max-width: 520px) {
  .before-after-archive__filter-button {
    font-size: 28px;
  }
}
.before-after-archive__filter-button:before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  border-bottom: 3px solid #fff;
  transition: all 0.3s ease-in-out;
}
.before-after-archive__filter-button:hover:before {
  width: 80%;
}
.before-after-archive__filter-button.active:before {
  width: 100%;
}
.before-after-archive__head-row {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 5px solid #fff;
  padding-bottom: 22px;
  margin-top: 75px;
}
@media screen and (max-width: 520px) {
  .before-after-archive__head-row {
    margin-top: 30px;
  }
}
.before-after-archive__head-top {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  align-items: flex-end;
}
@media screen and (max-width: 1024px) {
  .before-after-archive__head-top {
    gap: 20px;
  }
}
.before-after-archive__title {
  font-size: 72px;
  font-weight: 400;
  margin-bottom: 0;
}
.before-after-archive__installed-date {
  padding-bottom: 5px;
}
.before-after-archive__review-link:hover img {
  scale: 1.05;
}
.before-after-archive__review-image {
  transition: all 0.2s ease-in-out;
  max-width: 80px;
  max-height: 80px;
  width: 100%;
  height: 100%;
}
@media screen and (max-width: 520px) {
  .before-after-archive__review-image {
    max-width: 50px;
    max-height: 50px;
  }
}
.before-after-archive .gallery {
  padding: 55px 0;
}
@media screen and (max-width: 520px) {
  .before-after-archive .gallery {
    padding: 20px 0;
  }
}
.before-after-archive .gallery__inner {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}
@media screen and (max-width: 520px) {
  .before-after-archive .gallery__inner {
    margin: 0;
    gap: 25px;
  }
}
.before-after-archive .gallery__title {
  margin-bottom: 30px;
}
.before-after-archive .gallery__image-container, .before-after-archive .gallery__video-container {
  flex: 0 0 calc(33.333% - 30px);
  max-width: calc(33.333% - 30px);
  margin: 15px;
  box-sizing: border-box;
  height: 350px;
  overflow: hidden;
  border-radius: 17px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}
.before-after-archive .gallery__image-container:hover, .before-after-archive .gallery__video-container:hover {
  box-shadow: 0 0 35px -10px rgba(255, 255, 255, 0.7);
}
.before-after-archive .gallery__image-container:hover img, .before-after-archive .gallery__image-container:hover video, .before-after-archive .gallery__video-container:hover img, .before-after-archive .gallery__video-container:hover video {
  scale: 1.05;
}
@media screen and (max-width: 768px) {
  .before-after-archive .gallery__image-container, .before-after-archive .gallery__video-container {
    flex: 0 0 calc(50% - 30px);
    max-width: calc(50% - 30px);
  }
}
@media screen and (max-width: 520px) {
  .before-after-archive .gallery__image-container, .before-after-archive .gallery__video-container {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0;
    height: 250px;
  }
}
.before-after-archive .gallery__video-container {
  position: relative;
}
.before-after-archive .gallery__video-container:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 1;
  transition: all 0.3s ease-in-out;
}
.before-after-archive .gallery__video-container:after {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 50px;
  width: 50px;
  border: 2px solid #fff;
  z-index: 1;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
}
.before-after-archive .gallery__video-container:hover:before {
  transform: translate(-35%, -50%) scale(1.1);
}
.before-after-archive .gallery__video-container:hover:after {
  transform: translate(-50%, -50%) scale(1.1);
}
.before-after-archive .gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease-in-out;
}
.before-after-archive .gallery__video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease-in-out;
}
.before-after-archive .pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 50px;
}
.before-after-archive .pagination__button {
  cursor: pointer;
  background: #fff;
  border-radius: 5px;
  transition: all 0.3s ease;
  width: 70px;
  height: 40px;
}
.before-after-archive .pagination__button:hover {
  background: #b5b5b5;
}
.before-after-archive .pagination__button svg {
  width: 100%;
  height: 100%;
}
.before-after-archive .pagination__button.disabled {
  /*
  opacity: 0.5;
  pointer-events: none;
  */
  display: none;
}
.before-after-archive .gallery-loader {
  position: fixed;
  top: 50%;
  left: 48vw;
  display: none;
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid #fff;
  animation: l20-1 0.8s infinite linear alternate, l20-2 1.6s infinite linear;
}
@media (max-width: 1024px) {
  .before-after-archive .gallery-loader {
    left: 45vw;
  }
}
@keyframes l20-1 {
  0% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%);
  }
  12.5% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0%);
  }
  25% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100%);
  }
  50% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
  }
  62.5% {
    clip-path: polygon(50% 50%, 100% 0, 100% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
  }
  75% {
    clip-path: polygon(50% 50%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0% 100%);
  }
  100% {
    clip-path: polygon(50% 50%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100%);
  }
}
@keyframes l20-2 {
  0% {
    transform: scaleY(1) rotate(0deg);
  }
  49.99% {
    transform: scaleY(1) rotate(135deg);
  }
  50% {
    transform: scaleY(-1) rotate(0deg);
  }
  100% {
    transform: scaleY(-1) rotate(-135deg);
  }
}

.admin-bar .fancybox-inner {
  margin: 32px 0 !important;
}
@media screen and (max-width: 784px) {
  .admin-bar .fancybox-inner {
    margin: 46px 0 !important;
  }
}

/*before-after-archive_refresh-button*/

.before-after-archive__refresh-button{
  display: block;
  margin-left: auto;
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
  padding: 10px 20px;
  border-radius: 13px;
  font-size: 21px;
  cursor: pointer;
}

.before-after-archive__refresh-button.hidden{
  display: none;
}

/*# sourceMappingURL=main.css.map */
