.result-gallery {
  max-width: 900px;
}

.result-gallery-viewport {
  position: relative;
}

.result-gallery-slides {
  list-style: none;
  margin: 0;
  padding: 0;
}

.result-gallery-slides img {
  display: block;
  height: auto;
  width: 100%;
}

.result-gallery [hidden] {
  display: none;
}

.result-gallery button {
  background: none;
  border: 0;
  border-radius: 0;
  color: #fff;
  cursor: pointer;
}

.result-gallery button.result-gallery-arrow {
  background: rgba(0, 0, 0, 0.7);
  font-size: 1.5rem;
  line-height: 1;
  min-height: 44px;
  min-width: 36px;
  padding: 0.5rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.result-gallery-arrow.prev {
  left: 0;
}

.result-gallery-arrow.next {
  right: 0;
}

.result-gallery-pages {
  background: #333;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  padding: 4px;
}

.result-gallery-pages button {
  font-size: 1rem;
  min-height: 36px;
  min-width: 36px;
  padding: 0.4rem;
}

.result-gallery-pages button:hover,
.result-gallery-pages button[aria-current="true"] {
  background: rgba(255, 255, 255, 0.2);
}

.result-gallery button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

