.memes-page {
  background: var(--paper);
}

.memes-header .mid {
  text-decoration: none;
}

.memes-header [aria-current="page"] {
  border-bottom-color: var(--buy);
  color: var(--ink);
  font-weight: 700;
}

.memes-main {
  padding-bottom: 48px;
}

.album-hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: end;
  gap: 56px;
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--rule);
}

.album-kicker {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.album-hero h1 {
  font-family: var(--sans);
  font-size: 112px;
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
}

.album-stamp {
  min-height: 148px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.album-stamp span,
.album-entry footer span,
.album-footer {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.album-stamp strong {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--rule);
}

.album-entry {
  min-width: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-strong);
}

.album-entry figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  background: #000;
}

.album-entry img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.album-entry:hover img {
  transform: scale(1.012);
}

.album-entry footer {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  align-items: stretch;
  border-top: 1px solid var(--rule);
}

.album-entry footer > div {
  min-width: 0;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.album-entry footer strong {
  overflow-wrap: anywhere;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.album-entry footer > a {
  width: 76px;
  min-height: 76px;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--rule);
  background: var(--buy);
  font-size: 22px;
  transition: background-color 150ms ease, color 150ms ease;
}

.album-entry footer > a:hover {
  background: var(--ink);
  color: var(--buy);
}

.album-footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--rule);
}

.album-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 860px) {
  .album-hero {
    min-height: 340px;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 42px;
  }

  .album-hero h1 {
    font-size: 76px;
  }

  .album-stamp {
    min-height: 112px;
  }
}

@media (max-width: 680px) {
  .memes-main {
    padding-bottom: 28px;
  }

  .album-hero {
    min-height: 318px;
    padding: 36px 0 28px;
  }

  .album-hero h1 {
    font-size: 58px;
    line-height: 0.86;
  }

  .album-stamp strong {
    font-size: 24px;
  }

  .album-grid {
    grid-template-columns: 1fr;
  }

  .album-entry footer {
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) 68px;
  }

  .album-entry footer > a {
    width: 68px;
    min-height: 68px;
  }

  .album-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .album-entry img {
    transition: none;
  }

  .album-entry:hover img {
    transform: none;
  }
}
