.service-gallery {
  padding: 5rem 0 5.5rem;
  background: #050505;
  color: #ffffff;
  overflow: hidden;
}

.service-gallery__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100%, 84rem);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.service-gallery__eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service-gallery__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 500;
  line-height: 0.96;
  text-transform: uppercase;
}

.service-gallery__title span {
  color: #7bbb27;
}

.service-gallery__lead {
  max-width: 30rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.98rem;
  line-height: 1.85;
}

.service-gallery__viewport {
  position: relative;
  width: 100%;
}

.service-gallery__track-wrap {
  overflow: hidden;
  padding: 0 5.5rem;
}

.service-gallery__track {
  display: flex;
  gap: 1.25rem;
  will-change: transform;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-gallery__slide {
  position: relative;
  flex: 0 0 clamp(14rem, 19vw, 18rem);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #111111;
}

.service-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, opacity 300ms ease;
}

.service-gallery__slide:hover .service-gallery__image,
.service-gallery__slide:focus-within .service-gallery__image {
  transform: scale(1.035);
}

.service-gallery__overlay {
  display: none;
}

.service-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 10, 0.82);
  color: #7bbb27;
  transform: translateY(-50%);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.service-gallery__arrow:hover,
.service-gallery__arrow:focus-visible {
  border-color: rgba(123, 187, 39, 0.55);
  background: rgba(10, 10, 10, 0.96);
  color: #ffffff;
}

.service-gallery__arrow--prev {
  left: 1.25rem;
}

.service-gallery__arrow--next {
  right: 1.25rem;
}

.service-gallery__arrow svg {
  width: 1.35rem;
  height: 1.35rem;
}

.service-gallery__lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.86);
}

.service-gallery__lightbox.is-open {
  display: flex;
}

.service-gallery__lightbox-dialog {
  position: relative;
  width: min(100%, 21rem);
  max-width: calc(100vw - 2rem);
}

.service-gallery__lightbox-image {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 2rem);
  object-fit: contain;
  background: #111111;
}

.service-gallery__lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 10, 0.8);
  color: #ffffff;
}

.service-gallery__lightbox-close:hover,
.service-gallery__lightbox-close:focus-visible {
  border-color: rgba(123, 187, 39, 0.6);
  color: #7bbb27;
}

.service-gallery__lightbox-close svg {
  width: 1.2rem;
  height: 1.2rem;
}

@media (max-width: 1023px) {
  .service-gallery__header {
    display: block;
  }

  .service-gallery__lead {
    margin-top: 1rem;
  }

  .service-gallery__track-wrap {
    padding: 0 4.6rem;
  }

  .service-gallery__slide {
    flex-basis: clamp(13.5rem, 30vw, 16rem);
  }
}

@media (max-width: 767px) {
  .service-gallery {
    padding: 1.2rem 0 4.8rem;
  }

  .service-gallery__header {
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }

  .service-gallery__lead {
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .service-gallery__track-wrap {
    padding: 0 3.65rem;
  }

  .service-gallery__track {
    gap: 0.9rem;
  }

  .service-gallery__slide {
    flex-basis: clamp(12rem, 58vw, 14rem);
    cursor: pointer;
  }

  .service-gallery__arrow {
    width: 2.9rem;
    height: 2.9rem;
  }

  .service-gallery__arrow--prev {
    left: 0.35rem;
  }

  .service-gallery__arrow--next {
    right: 0.35rem;
  }
}
