.page-backdrop {
  background-position: center -38px;
}

.wiki-gallery-section {
  padding-bottom: 80px;
}

.wiki-gallery-header {
  text-align: center;
  margin-bottom: 28px;
}

.wiki-gallery-header h1 {
  margin: 0;
  color: #ffd27a;
  font-family: 'Cinzel', serif;
}

.wiki-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.wiki-frame-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.wiki-frame-card {
  margin: 0;
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 12, 35, 0.96), rgba(9, 6, 18, 0.98));
  border: 1px solid rgba(255, 196, 77, 0.22);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.wiki-frame-link:hover .wiki-frame-card {
  border-color: rgba(255, 196, 77, 0.42);
  transform: translateY(-2px);
}

.wiki-frame-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  background: rgba(6, 3, 12, 0.9);
}

.wiki-frame-card figcaption {
  padding: 12px 6px 2px;
  text-align: center;
  color: #f5d48d;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.wiki-frame-card:nth-child(2) img {
  object-position: top center;
}

.wiki-frame-card-pet-sigils img {
  padding: 10px;
  background: rgba(6, 3, 12, 0.9);
}

.wiki-frame-card-prestige-master img {
  padding: 10px;
  background: rgba(6, 3, 12, 0.9);
}


@media (max-width: 1100px) {
  .wiki-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wiki-gallery-grid {
    grid-template-columns: 1fr;
  }
}
