/* Keep the extra Memes item on one line in the top bar. */
.menu__item {
  flex-shrink: 0;
}
.menu__link,
.footer__top-menu-item {
  white-space: nowrap;
}
@media (min-width: 48em) and (max-width: 64em) {
  .header__container {
    column-gap: 0.75rem;
  }
  .header__right {
    column-gap: 0.65rem;
  }
  .header__logo {
    width: 8.75rem;
  }
  .header__button {
    width: 7.25rem;
  }
  .menu__list {
    column-gap: 0.7rem;
    padding-inline: 0.75rem;
  }
}

/* Square meme wall, same crop and card treatment as the Retire gallery. */
.memes {
  position: relative;
  z-index: 4;
  scroll-margin-top: 5.5rem;
  background: #f8f3ea;
  border-top: 0.375rem solid #1a120c;
  border-bottom: 0.375rem solid #1a120c;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.memes__container {
  width: min(100% - 2rem, 74.375rem);
  margin-inline: auto;
}
.memes__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.4rem;
  text-align: center;
  transform: rotate(-1.5deg);
}
.memes__title span {
  font-family: "Anime Ace 2.0 BB", sans-serif;
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}
.memes__title span:nth-child(1) {
  color: #1a120c;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}
.memes__title span:nth-child(2) {
  color: #c56a12;
  font-size: clamp(3.25rem, 8vw, 6.25rem);
  -webkit-text-stroke: 0.045em #1a120c;
  paint-order: stroke fill;
}
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
  width: 100%;
  padding: 0.75rem 0.25rem 0.5rem;
}
.artwork-grid__item {
  display: block;
  min-width: 0;
  padding: 0.5rem 0.5rem 0.7rem;
  border: 0.125rem solid #1a120c;
  background: #fffdf8;
  box-shadow: 0.18rem 0.28rem 0 #1a120c;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.artwork-grid__item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  border: 0.1rem solid #1a120c;
  background: #1a120c;
  pointer-events: none;
}
.artwork-grid__item:nth-child(6n + 1) { transform: rotate(-1.8deg); }
.artwork-grid__item:nth-child(6n + 2) { transform: rotate(1.3deg); }
.artwork-grid__item:nth-child(6n + 3) { transform: rotate(-0.7deg); }
.artwork-grid__item:nth-child(6n + 4) { transform: rotate(1.9deg); }
.artwork-grid__item:nth-child(6n + 5) { transform: rotate(-1.4deg); }
.artwork-grid__item:nth-child(6n + 6) { transform: rotate(0.8deg); }
.artwork-grid__item:focus-visible {
  outline: 3px solid #c56a12;
  outline-offset: 5px;
}
@media (hover: hover) {
  .artwork-grid__item:hover,
  .artwork-grid__item:focus-visible {
    position: relative;
    z-index: 2;
    transform: rotate(0deg) translateY(-0.35rem);
    box-shadow: 0.32rem 0.42rem 0 #1a120c;
  }
}
@media (max-width: 61.99875em) {
  .artwork-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 29.99875em) {
  .artwork-grid { grid-template-columns: 1fr; }
  .artwork-grid__item,
  .artwork-grid__item:nth-child(n) { transform: none; }
}
