.pilgrim-archive-page {
  color: var(--hero-navy);
  background: #fff;
}

.pilgrim-archive-banner {
  min-height: 307px;
}

.archive-content {
  padding: 72px 0 92px;
  background: #fff;
}

.archive-content__container {
  width: min(1030px, calc(100% - 48px));
  margin: 0 auto;
}

.archive-intro {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.archive-intro__eyebrow {
  margin: 0 0 15px;
  font: 500 14px/20px Inter, Arial, sans-serif;
  text-transform: uppercase;
}

.archive-intro span {
  color: var(--hero-gold);
}

.archive-intro h2 {
  margin: 0 0 17px;
  color: var(--hero-navy);
  font: 500 38px/1.12 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.3px;
}

.archive-intro > p:last-child {
  margin: 0 auto;
  font: 500 14px/24px Inter, Arial, sans-serif;
}

.archive-years {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 18px;
  width: min(720px, 100%);
  margin: 36px auto 0;
}

.archive-years__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.archive-years__list button {
  height: 43px;
  padding: 0;
  border: 1px solid var(--hero-navy);
  border-radius: 6px;
  background: transparent;
  color: var(--hero-navy);
  font: 500 14px/1 Inter, Arial, sans-serif;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease;
}

.archive-years__list button:hover,
.archive-years__list button:focus-visible {
  background: rgba(55, 72, 104, .08);
  outline: none;
}

.archive-years__list button.is-active {
  background: var(--hero-navy);
  color: #fff;
}

.archive-years__arrow {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--hero-navy);
  color: #fff;
  cursor: pointer;
  transition: opacity .25s ease, background-color .25s ease;
}

.archive-years__arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.archive-years__arrow:hover:not(:disabled),
.archive-years__arrow:focus-visible:not(:disabled) {
  background: var(--hero-gold);
  color: #000;
  outline: none;
}

.archive-years__arrow:disabled {
  visibility: hidden;
  opacity: 0;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px 18px;
  margin-top: 46px;
}

.archive-card {
  min-width: 0;
  text-align: center;
}

.archive-card__image {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 24px;
  background: #d8d8d8;
  box-shadow: 0 5px 16px rgba(28, 43, 70, 0);
  transition: box-shadow .25s ease;
}

.archive-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transition: transform .25s ease;
}

.archive-card:hover .archive-card__image {
  box-shadow: 0 8px 22px rgba(28, 43, 70, .14);
}

.archive-card:hover .archive-card__image img {
  transform: scale(1.02);
}

.archive-card h3 {
  margin: 13px 8px 0;
  color: var(--hero-navy);
  font: 500 14px/20px Inter, Arial, sans-serif;
}

.archive-load-more {
  display: flex;
  width: 126px;
  height: 47px;
  margin: 52px auto 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  background: var(--hero-navy);
  color: #fff;
  font: 500 14px/1 Inter, Arial, sans-serif;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease;
}

.archive-load-more:hover,
.archive-load-more:focus-visible {
  background: var(--hero-gold);
  color: #000;
  outline: none;
}

.archive-load-more[hidden],
.archive-empty[hidden] {
  display: none;
}

.archive-empty {
  width: min(680px, 100%);
  margin: 54px auto 0;
  padding: 42px 30px;
  border: 1px solid rgba(55, 72, 104, .16);
  border-radius: 8px;
  background: #f7f8f9;
  font: 500 15px/25px Inter, Arial, sans-serif;
  text-align: center;
}

@media (max-width: 900px) {
  .archive-content { padding: 64px 0 78px; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .pilgrim-archive-banner { min-height: 260px; }
  .archive-content__container { width: min(100% - 32px, 520px); }
  .archive-intro h2 { font-size: 34px; }
  .archive-years {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 8px;
  }
  .archive-years__list { gap: 6px; }
  .archive-years__list button { height: 40px; font-size: 12px; }
  .archive-years__arrow { width: 30px; height: 30px; }
}

@media (max-width: 520px) {
  .archive-content { padding: 54px 0 68px; }
  .archive-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    width: min(285px, 100%);
    margin-right: auto;
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .archive-years__list button,
  .archive-years__arrow,
  .archive-card__image,
  .archive-card__image img,
  .archive-load-more {
    transition: none;
  }
}
