div.block-nextpre {
  display: grid;
  grid-template-columns: auto minmax(auto,1000px) auto;
  padding-top: 10px;
}
.nextpre {
  display: grid;
  gap: 10px;
  grid-column-start: 2;
  grid-template-columns: 1fr 1fr;
  padding-bottom: 15px;
}

.nextpre__previous,
.nextpre__next {
  display: grid;
}

.nextpre__previous--link,
.nextpre__next--link {
  font-weight: bold;
  display: flex;
  text-decoration: none;
  color: #000;
  background: #eeeeee;
}

.nextpre__next--link {
  text-align: right;
  justify-content: flex-end;
}

.nextpre__previous--svg-container,
.nextpre__next--svg-container {
  width: 3rem;
  background-color: #dddddd;
  color: #888888;
}

.nextpre__previous--link:hover .nextpre__previous--svg-container,
.nextpre__next--link:hover .nextpre__next--svg-container {
  background-color: #ac2b37;
  color: white;
}

.nextpre__previous--svg,
.nextpre__next--svg {
  width: 1rem;
  margin: auto;
}

.nextpre__next--svg {
  transform: rotate(180deg);
}

.nextpre__previous--text,
.nextpre__next--text {
  max-width: 90%;
  padding: 17px;
}

.nextpre__previous--link:hover .nextpre__previous--text,
.nextpre__next--link:hover .nextpre__next--text {
  text-decoration: underline;
  color: #ac2b37;
}

.nextpre__previous--title,
.nextpre__next--title {
  display: inline-block;
  font-weight: normal;
  background-color: unset;
  margin-top: 10px;
  color: black;
  text-decoration: none;
}

.nextpre__next--title {
  text-align: right;
}

@media screen and (max-width: 640px) {
  .nextpre {
    gap: 5px;
  }

  .nextpre__previous,
  .nextpre__next {
    font-size: 13px;
  }

  .nextpre__previous--text,
  .nextpre__next--text {
    padding: 10px 7px;
  }

  .nextpre__previous--title,
  .nextpre__next--title {
    display: none;
  }

  .nextpre__previous--svg-container,
  .nextpre__next--svg-container {
    width: 2rem;
  }
}
