.servicePanel {
  box-sizing: border-box;
  min-width: 0;
}

.serviceGallery {
  min-width: 0;
}

.serviceGallery, .serviceGallery *, .serviceGallery *::before, .serviceGallery *::after {
  box-sizing: border-box;
}

.serviceGalleryViewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  background: var(--panel, #191a1c);
}

.serviceGallerySlide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease-in-out;
}

.serviceGallerySlide.is-active {
  opacity: 1;
}

.serviceGallerySlide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.serviceGalleryControls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 10px;
}

.serviceGalleryControls button {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #4e5054;
  border-radius: 50%;
  background: #191a1c;
  color: #f4f3ef;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.serviceGalleryControls button:hover {
  border-color: var(--orange, #ff7a0c);
  background: #26201b;
  color: #ffae6b;
}

.serviceGalleryViewport:focus-visible,
.serviceGalleryControls button:focus-visible {
  outline: 3px solid var(--orange, #ff7a0c);
  outline-offset: 3px;
}

.serviceGalleryControls .serviceGalleryArrow {
  font: 400 28px / 1 Arial, sans-serif;
}

.serviceGalleryDots {
  display: flex;
  align-items: center;
  justify-content: center;
}

.serviceGalleryControls .serviceGalleryDot {
  border-color: transparent;
  background: transparent;
}

.serviceGalleryDot::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #92918e;
  content: "";
  transition: width .2s ease, background-color .2s ease;
}

.serviceGalleryDot[aria-current="true"]::before {
  width: 21px;
  background: var(--orange, #ff7a0c);
}

.serviceGalleryControls .serviceGalleryDot:hover::before {
  background: #ffae6b;
}

.serviceGalleryControls .serviceGalleryToggle {
  margin-left: auto;
  font: 700 17px / 1 Arial, sans-serif;
}

.serviceGalleryToggle[aria-pressed="true"] {
  border-color: var(--orange, #ff7a0c);
  color: #ffae6b;
}

.serviceGalleryError {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  background: #101113ed;
  color: #f4f3ef;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.serviceGalleryAnnouncement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.serviceGallery [hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .serviceGalleryViewport {
    aspect-ratio: 16 / 10;
    max-height: 340px;
  }
}

@media (max-width: 620px) {
  .serviceGalleryViewport {
    aspect-ratio: 4 / 3;
    max-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .serviceGallerySlide,
  .serviceGalleryControls button,
  .serviceGalleryDot::before {
    transition: none;
  }
}
