.citizen-module-banner {
  width: 100%;
  aspect-ratio: 16 / 5;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.citizen-module-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.citizen-module-placeholder {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(223, 228, 236, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 82% 20%, rgba(232, 206, 134, 0.18), transparent 31%),
    linear-gradient(140deg, var(--navy950), var(--navy800) 58%, var(--navy700));
}

.citizen-banner-admin-preview,
.citizen-banner-editor-preview {
  width: 100%;
  aspect-ratio: 16 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.citizen-banner-admin-preview img,
.citizen-banner-editor-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.citizen-banner-admin {
  margin-bottom: 16px;
}

.citizen-banner-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.citizen-banner-admin-head h2 {
  margin: 0;
  font-size: 15px;
}

.citizen-banner-admin-head .row-sub {
  margin: 4px 0 0;
}

.citizen-banner-admin-preview,
.citizen-banner-editor-preview {
  border: 1px dashed var(--ink200);
  border-radius: 12px;
}

.citizen-banner-empty {
  padding: 12px;
  color: var(--ink400);
  font-size: 11px;
  text-align: center;
}

.citizen-banner-editor-preview {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .citizen-banner-admin-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .citizen-banner-admin-head .tools {
    width: 100%;
  }
}

/* Resize this token to change the JMC Games banner's desktop width cap. */
:root {
  --games-banner-max-width: 1152px;
}

.games-module-banner {
  width: min(100%, var(--games-banner-max-width));
  aspect-ratio: 16 / 5;
  margin: 0 auto 16px;
  overflow: hidden;
  background: transparent;
}

.games-module-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.portal-module-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.portal-module-admin-card {
  min-width: 0;
  margin-bottom: 0;
}

.portal-module-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--ink500);
  font-size: 11px;
}

@media (max-width: 820px) {
  .portal-module-admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
