@charset "UTF-8";

.webgene-pagination {
  font-size: 14px;
  grid-column: 1/-1;
  justify-self: center;
  margin-top: 86px;
}

.webgene-pagination a:hover {
  opacity: 0.7;
}

.webgene-pagination ul {
  align-items: center;
  color: #4b4b4b;
  display: flex;
  gap: 10px;
  justify-content: center;
  list-style: none;
  padding-inline-start: 0;
}

.webgene-pagination ul .number a {
  background-color: #fff;
  border-radius: 50%;
  display: grid;
  height: 30px;
  line-height: 2.2;
  place-items: center;
  width: 30px;
}

.webgene-pagination ul .number.selected a {
  background: #163b85;
  border-radius: 50%;
  color: #fff;
}

li.next,
li.prev {
  position: relative;
}

li.next a,
li.prev a {
  height: 40px;
  padding: 2px;
  position: relative;
  width: 40px;
}

li.prev:after,
li.next:after {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  height: 40px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
}

li.prev:after {
  background-image: url("../images/prev.svg");
  left: 0;
}

li.next:after {
  background-image: url("../images/next.svg");
  right: 0;
}

@media screen and (min-width: 768px) {
  li.next {
    margin-left: 30px;
  }
  li.prev {
    margin-right: 30px;
  }
  li.next a,
  li.prev a {
    color: #4b4b4b;
    line-height: 1;
    margin-top: 3px;
    padding-block: 10px;
    width: auto;
    z-index: 10;
  }
  li.prev a {
    padding-left: 48px;
  }
  li.next a {
    padding-right: 48px;
  }
  li.prev:after,
  li.next:after {
    pointer-events: auto;
  }
}