.pagenav {
  display: flex;
  align-items: flex-start;
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.pagenav__list-item {
  flex: 1;
  position: relative;
  display: inline-flex;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.6);
  margin: 10px 10px 0 0;
}

.pagenav__link-wrapper {
  flex: 1;
  padding: 10px 10px 12px;
  text-decoration: none !important;

  &:hover {
    background-color: var(--color-grey-light);
  }
}

@media (max-width: 1024px) {

  .pagenav {
    flex-direction: column;
  }
}

@media (min-width: 1025px) {
  .pagenav-secondary {
    position: relative;
    overflow: visible;
    padding-top: 10px;

    &::after {
      content: '\2026';
      display: inline-block;
      padding: 10px 10px 12px;
      width: 40px;
      box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.6);
      box-sizing: border-box;
      text-align: center;
    }

    &:hover {
      .pagenav-secondary__list {
        display: block;
      }
    }
  }

  .pagenav-secondary__list {
    position: absolute;
    display: none;
    left: 0;
    top: 10px;
    width: 250px;
    background-color: white;
    box-shadow: 0 0 6px 3px var(--color-grey-light);
  }

  .pagenav__list-item--secondary {
    display: flex;
    box-shadow: none;
    margin: 0;

    &:hover {
      background-color: var(--color-grey-light);
    }
  }
}
