html {
  scroll-behavior: smooth;
  --archive-bg: #011a04;
  --border: rgba(255, 182, 223, 0.22);
  --text: rgb(227, 94, 167);
  --muted: rgba(255, 182, 223, 0.896);
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  cursor: url("../images/Cursor/Cursor_2.png"), auto;
  background: var(--archive-bg);
}

body {
  color: var(--text);
  font-family: Gabarito, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  display: block;
  width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

img:hover {
  cursor: url("../images/Cursor/Cursor_1.png"), auto;
}

a {
  cursor: url("../images/Cursor/Cursor_3.png"), pointer;
}

p,
h1,
h2,
figure {
  margin: 0;
}

#title {
  max-width: min(520px, 100%);
  margin-top: 30px;
  margin-bottom: 30px;
}

.top-bar-return {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(21, 27, 36, 0.2);
  background: #e87ba8;
  color: #000000;
  font-size: 12px;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}
.top-bar-return:hover {
  background: #ffffff;
    transform: translateY(-1px);
}

.archive-page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 84px 0 72px;
}

.archive-header {
  max-width: 780px;
  margin-bottom: 52px;
}

.archive-kicker,
.archive-entry__year {
  color: var(--muted);
  font-size: 1rem;
  text-transform: uppercase;
}

.archive-intro {
  max-width: 50rem;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.archive-list {
  display: grid;
  gap: 56px;
}

.archive-entry {
  display: grid;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.archive-entry:first-child {
  padding-top: 0;
  border-top: 0;
}

.archive-entry__meta {
  max-width: 850px;
}

.archive-entry__meta h2 {
  margin-top: 8px;
  font-family: Gabarito, sans-serif;
  font-size: 1.8rem;
  line-height: 1.1;
}

.archive-entry__details,
.archive-entry__text,
.archive-photo figcaption {
  color: var(--muted);
}

.archive-entry__details {
  margin-top: 10px;
}

.archive-entry__text {
  margin-top: 8px;
  max-width: 60rem;
  line-height: 1.55;
}

.archive-entry__gallery {
  display: grid;
  gap: 18px;
  align-items: start;
}

.archive-entry__gallery--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-entry__gallery--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-entry__gallery--hatched {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.archive-entry__gallery--hatched .archive-photo:first-child {
  grid-column: 1 / -1;
}

.archive-entry__gallery--fam {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.archive-entry__gallery--fam .archive-photo:first-child {
  grid-column: 1 / -1;
}

.archive-photo {
  display: grid;
  gap: 10px;
  align-content: start;
}

.archive-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.archive-photo figcaption {
  font-size: 0.7rem;
  text-align: center;
}

@media (max-width: 900px) {
  .archive-page {
    width: min(100% - 28px, 1120px);
    padding-top: 84px;
  }

  .archive-list {
    gap: 42px;
  }

  .archive-entry__gallery--2,
  .archive-entry__gallery--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  p {
    font-size: 1.2rem;
  }
}

@media (max-width: 640px) {
  .top-bar-return {
    top: 14px;
    right: 14px;
  }

  .archive-entry__gallery--2,
  .archive-entry__gallery--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
