div.modern-page-navigation {
  padding: 50px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 1vw, 10px);
  @media screen and (width <= 680px) {
    padding: 50px 15px;
  }

  .modern-page-title {
    display: none;
  }
}

div.modern-page-navigation a,
span.modern-page-dots {
  padding: 10px;
  font-size: var(--txt_size16);
  font-weight: 400;
  line-height: var(--lh120);
  color: var(--red-7E);
  border-radius: var(--radius12);
  text-decoration: none;

  &:hover {
    background-color: var(--white-F5);
    color: var(--black);
    cursor: pointer;
  }

  @media screen and (width <= 620px) {
    x-padding: 10px;
  }
}


span.modern-page-current {
  padding: 21.5px 23.5px;
  font-size: var(--txt_size16);
  font-weight: 400;
  height: 44px;
  line-height: 0;
  color: var(--red-7E);
  border-radius: var(--radius12);
  border: 1px solid var(--red-7E);
  cursor: pointer;
  @media screen and (width <= 620px) {
    padding: 21px 17px;
  }
}

.modern-page-next,
.modern-page-previous {
  background: var(--red-7E);
  color: white !important;

  &:hover {
    background: var(--red-7E) !important;
    color: white !important;
  }
}

.modern-page-next {
  display: flex;
  align-items: center;

  &:after {
    content: url("data:image/svg+xml,%3Csvg width='25' height='24' viewBox='0 0 25 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.5 18L14.7929 12.7071C15.1262 12.3738 15.2929 12.2071 15.2929 12C15.2929 11.7929 15.1262 11.6262 14.7929 11.2929L9.5 6' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    width: 24px;
    height: 24px;
  }
}

.modern-page-previous {
  display: flex;
  align-items: center;

  &:before {
    content: url("data:image/svg+xml,%3Csvg width='25' height='24' viewBox='0 0 25 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.5 18L14.7929 12.7071C15.1262 12.3738 15.2929 12.2071 15.2929 12C15.2929 11.7929 15.1262 11.6262 14.7929 11.2929L9.5 6' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    width: 24px;
    height: 24px;
    transform: rotate(-180deg);
  }
}