.collectives-page .masthead {
  margin-bottom: 8px;
}

.ring-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-left: 28px;
}

.ring-panel {
  display: flex;
  height: 100%;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 250px;
  border: 4px double #87171d;
  background: #fff;
}

.ring-panel h1,
.ring-panel h2 {
  margin: 0;
  padding: 7px 10px;
  color: #fff;
  background: #87171d;
  text-align: center;
  font: italic 700 20px/1.1 Georgia, "Times New Roman", serif;
  text-shadow: 0 1px 2px #39060b;
}

.ring-panel-content {
  flex: 1;
  box-sizing: border-box;
  min-height: 200px;
  padding: 14px;
}

.collective-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 10px;
}

.collective-items a,
.scripted-webring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.collective-items img {
  display: block;
  max-width: 100%;
  height: auto;
}

.ring-panel a:hover img,
.ring-panel a:focus-visible img {
  transform: translateY(-3px);
}

.clique-items {
  gap: 20px 14px;
  padding: 8px 0;
}

.clique-items img {
  transform: scale(1.2);
  transform-origin: center;
}

.clique-items a:hover img,
.clique-items a:focus-visible img {
  transform: scale(1.2) translateY(-3px);
}

.clique-icon-row {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.journal-widget {
  min-width: 90px;
  min-height: 60px;
}

journal-ring {
  color: #df6f87;
  font: italic 700 16px/1.1 Georgia, "Times New Roman", serif;
  text-shadow: 0 1px 1px rgba(223, 111, 135, 0.18);
}

.scripted-webring {
  margin: 2px 0;
  transform: scale(1.2);
  transform-origin: center;
}

#webrings .collective-items {
  gap: 2px;
}

#webrings .ring-panel-content {
  padding-top: 4px;
}

#CultofUsakumya + .journal-widget {
  margin-top: 12px;
}

.fanlisting-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 44px));
  justify-content: center;
  gap: 6px;
}

.fanlisting-grid a,
.fanlisting-grid img {
  display: block;
  width: 44px;
  height: 44px;
}

.fanlisting-grid a {
  position: relative;
  overflow: visible;
}

.fanlisting-grid a:hover,
.fanlisting-grid a:focus-visible {
  z-index: 1;
  transform: translateY(-3px);
}

.fanlisting-grid a:hover img,
.fanlisting-grid a:focus-visible img {
  transform: none;
}

.fanlisting-network {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
}

.fanlisting-network a {
  display: inline-block;
  color: #87171d;
  font-weight: 700;
  text-underline-offset: 2px;
}

.fanlisting-network img {
  display: block;
}

/* Pot8os webring overrides */
#pot8os-webring {
  flex: 0 1 220px;
  max-width: 220px;
  margin-bottom: 16px;
  padding: 2px;
  color: #87171d;
  font-size: 11px;
}

#pot8os-webring table tr td {
  padding: 2px;
}

#pot8os-webring a {
  color: #87171d !important;
}

#pot8os-webring a:hover,
#pot8os-webring a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

#pot8os-webring .pot8os-arrow {
  display: inline-block;
  font-weight: 400;
  text-decoration: none;
}

#pot8os-webring .pot8os-arrow:hover,
#pot8os-webring .pot8os-arrow:focus-visible {
  font-weight: 700;
  text-decoration: none;
}

#pot8os-webring .webring-info {
  display: flex;
  width: 190px;
  flex-direction: column;
  align-items: center;
  font-weight: 400;
  line-height: 1.25;
}

#pot8os-webring .webring-info > br {
  display: none;
}

#pot8os-webring .webring-info::before {
  order: 1;
  width: 120px;
  height: 120px;
  margin: -10px auto 0;
}

#pot8os-webring .webring-links {
  order: 2;
  margin-top: -2px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
}

.return-home-nav {
  display: flex;
  justify-content: center;
  margin: 18px 0 0 28px;
}

.return-home-button {
  width: 150px;
  margin-left: 0;
}

.collectives-page .site-footer {
  margin-top: 10px;
}

@media (max-width: 650px) {
  .ring-panels {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .ring-panel {
    min-height: 180px;
  }

  .ring-panel-content {
    min-height: 130px;
  }

  .return-home-nav {
    margin-left: 0;
  }
}
