.alphauzi-prev-next-post {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
  --alphauzi-pnp-title-lines-desktop: 2;
  --alphauzi-pnp-title-lines-tablet: 2;
  --alphauzi-pnp-title-lines-mobile: 2;
}

.alphauzi-prev-next-post__item {
  flex: 1 1 0;
  min-width: 0;
}

.alphauzi-prev-next-post__item-link {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.alphauzi-prev-next-post__item--previous .alphauzi-prev-next-post__item-link {
  justify-content: flex-start;
}

.alphauzi-prev-next-post__item--next .alphauzi-prev-next-post__item-link {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.alphauzi-prev-next-post__item--previous .alphauzi-prev-next-post__text {
  text-align: left;
}

.alphauzi-prev-next-post__item--next .alphauzi-prev-next-post__text {
  text-align: right;
}

.alphauzi-prev-next-post__thumb {
  width: 92px;
  min-width: 60px;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 1 / 1;
  position: relative;
}

.alphauzi-prev-next-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.alphauzi-prev-next-post__text {
  min-width: 0;
  flex: 1 1 auto;
}

.alphauzi-prev-next-post__meta {
  margin: 0 0 8px;
  color: #9a948d;
  font-size: 14px;
  line-height: 1.2;
  text-transform: lowercase;
}

.alphauzi-prev-next-post__title {
  margin: 0;
  color: #1e1e1e;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 400;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--alphauzi-pnp-title-lines-desktop);
  line-clamp: var(--alphauzi-pnp-title-lines-desktop);
  overflow: hidden;
  text-overflow: ellipsis;
}

.alphauzi-prev-next-post--no-clamp .alphauzi-prev-next-post__title {
  display: block;
  overflow: visible;
}

.alphauzi-prev-next-post__empty {
  color: #6b6b6b;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .alphauzi-prev-next-post {
    gap: 20px;
  }

  .alphauzi-prev-next-post__title {
    font-size: 24px;
    -webkit-line-clamp: var(--alphauzi-pnp-title-lines-tablet);
    line-clamp: var(--alphauzi-pnp-title-lines-tablet);
  }
}

@media (max-width: 767px) {
  .alphauzi-prev-next-post {
    position: relative;
    gap: 0;
    flex-direction: row;
    align-items: stretch;
  }

  .alphauzi-prev-next-post--has-both::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: #8faad3;
    transform: translateX(-0.5px);
  }

  .alphauzi-prev-next-post__item {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .alphauzi-prev-next-post__item-link {
    display: block;
  }

  .alphauzi-prev-next-post__thumb {
    display: none;
  }

  .alphauzi-prev-next-post__meta {
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 12px;
  }

  .alphauzi-prev-next-post__title {
    font-size: 20px;
    line-height: 1.35;
    -webkit-line-clamp: var(--alphauzi-pnp-title-lines-mobile);
    line-clamp: var(--alphauzi-pnp-title-lines-mobile);
  }
}
