.archive__header {
  background: url('../assets/bg-texture.jpg');
  min-height: 180px;
  background-size: cover;
  padding-top: 46px;
}
.archive__header_container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: 60px;
}
.archive__title_container {
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.archive__title {
  flex-shrink: 0;
  font-size: var(--h2-size);
  line-height: var(--h2-line-height);
}
.archive__title_container span {
  display: block;
  height: 1px;
  width: 100%;
  background-color: var(--slate-300);
}
.archive__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, 220px);
  gap: 20px;
  margin-top: -36px;
  position: relative;
}
.archive__btns_container {
  position: relative;
}
.archive__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: absolute;
  top: -38px;
  right: 10px;
}

@media(max-width: 1000px) {
  .archive__title_container span {
    display: none;
  }
  .archive__list {
    grid-template-columns: repeat(3, 1fr);
  }
  .archive__btns {
    position: unset;
    padding-bottom: 24px;
    margin-top: -24px;
  }
}
@media(max-width: 800px) {
  .archive__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media(max-width: 600px) {
  .archive__list {
    grid-template-columns: 1fr;
  }
}

/* Pagination */
.nav-links {
  display: flex;
  margin-top: 40px;
  gap: 4px;
}
.nav-links > * {
  display: block;
  width: 40px;
  height: 40px;
  background-color: var(--slate-50);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: calc(14 / 16 * 1rem);
  line-height: 20px;
  font-weight: 600;
  color: var(--slate-500);
}
.nav-links > *:hover {
  background-color: var(--slate-100);
}
.nav-links > .current {
  color: var(--main);
  background-color: var(--slate-100);
  pointer-events: none;
}
.nav-links > .dots {
  pointer-events: none;
}