.custom-instance-page {
  background-position-y: 72px;
}

.custom-instance .custom-intro p {
  max-width: 900px;
  margin: 0 auto;
}

.custom-instance .wiki-list li.entry-screenshot {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background-color: rgba(20, 16, 12, 0.55);
  border: 1px solid rgba(155, 117, 48, 0.2);
  border-radius: 10px;
  padding: 12px;
}

.custom-instance .wiki-list li.entry-screenshot:not(:last-child) {
  border-bottom: 1px solid rgba(155, 117, 48, 0.2);
  padding-bottom: 12px;
}

.custom-instance .wiki-list li.entry-screenshot img {
  width: 100%;
  max-height: 560px;
  height: auto;
  object-fit: contain;
  display: block;
  background-color: rgba(12, 10, 8, 0.8);
  border-radius: 8px;
  padding: 10px;
}

.custom-instance .wiki-list li.entry-screenshot span {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.custom-instance .ci-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.custom-instance .ci-gallery-card {
  background-color: rgba(48, 42, 32, 0.644);
  border: 1px solid rgba(155, 117, 48, 0.25);
  border-radius: 10px;
  overflow: hidden;
}

.custom-instance .ci-gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: contain;
  background-color: rgba(20, 16, 12, 0.75);
  padding: 10px;
  border-bottom: 1px solid rgba(155, 117, 48, 0.2);
}

.custom-instance .ci-gallery-card h3 {
  margin: 18px 18px 8px;
  color: #d1a44f;
  font-size: 22px;
}

.custom-instance .ci-gallery-card p {
  margin: 0 18px 20px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .custom-instance .ci-gallery {
    grid-template-columns: 1fr;
  }

  .custom-instance .ci-gallery {
    gap: 20px;
  }
}
