html,
body {
  overflow-x: hidden;
}

.js-embla {
  overflow: hidden;
}

.beforeafter__slider {
  position: relative;
}

.js-embla .swiper-wrapper {
  display: flex;
  touch-action: pan-y pinch-zoom;
  will-change: transform;
}

.beforeafter__slider.js-embla .swiper-wrapper {
  align-items: flex-start;
}

.js-embla .swiper-slide {
  min-width: 0;
  flex-shrink: 0;
}

.js-embla > .swiper-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  margin-top: 24px;
}

.js-embla > .swiper-pagination.is-hidden,
.js-embla > .swiper-pagination[hidden] {
  display: none;
}

.swiper-pagination-bullet {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.swiper-pagination-bullet::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(26, 28, 30, 0.24);
  transition: width 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.swiper-pagination-bullet:hover::before {
  background: rgba(26, 28, 30, 0.42);
  transform: scale(1.12);
}

.swiper-pagination-bullet:focus-visible {
  outline: 2px solid rgba(45, 168, 231, 0.45);
  outline-offset: 2px;
}

.swiper-pagination-bullet-active {
  cursor: default;
}

.swiper-pagination-bullet-active::before {
  width: 22px;
  background: #2da8e7;
  transform: none;
}

.beforeafter__slide-img > img {
  width: 100%;
  height: auto;
  transition: opacity 0.24s ease;
}

.beforeafter__slide-img > img.clinicana-awaiting-image,
.guests__slide img.clinicana-awaiting-image,
.testimonials__slide img.clinicana-awaiting-image,
.team__slide-photo img.clinicana-awaiting-image {
  opacity: 0;
}

.clinicana-lightbox-open {
  overflow: hidden;
}

.clinicana-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 14, 18, 0.88);
}

.clinicana-lightbox__stage {
  width: min(1120px, 100%);
}

.clinicana-lightbox__content {
  position: relative;
  width: 100%;
}

.clinicana-lightbox__content iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #000;
}

.clinicana-lightbox__content img {
  width: auto;
  max-width: min(100%, 1120px);
  max-height: calc(100vh - 120px);
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

.clinicana-lightbox__caption {
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.clinicana-lightbox__close,
.clinicana-lightbox__nav {
  position: absolute;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.clinicana-lightbox__close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 40px;
}

.clinicana-lightbox__nav {
  top: 50%;
  width: 48px;
  height: 64px;
  border-radius: 8px;
  font-size: 44px;
  line-height: 58px;
  transform: translateY(-50%);
}

.clinicana-lightbox__nav--prev {
  left: 18px;
}

.clinicana-lightbox__nav--next {
  right: 18px;
}

@media (max-width: 767px) {
  .clinicana-lightbox {
    padding: 14px;
  }

  .clinicana-lightbox__nav {
    top: auto;
    bottom: 18px;
    width: 44px;
    height: 44px;
    font-size: 34px;
    line-height: 38px;
    transform: none;
  }
}
