body {
  background: #f7f7f5;
  color: #161616;
}

.quarto-title-block .title {
  font-weight: 600;
  letter-spacing: -0.03em;
}

.quarto-title-block .quarto-title-banner,
.quarto-title-banner {
  background: transparent;
}

main.content {
  max-width: 1180px;
}

.gallery-lede {
  max-width: 42rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: #4b5563;
}

.gallery-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0 0 2rem;
  padding: 0.25rem 0 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.gallery-stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.gallery-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.gallery-stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1rem;
  margin: 0.75rem 0 2.5rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  background: #ffffff;
  box-shadow: none;
}

.gallery-card.failure {
  border-color: #f1caca;
}

.gallery-card.pending {
  border-color: #e5e7eb;
}

.gallery-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.gallery-card-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.gallery-card-header p {
  margin: 0.2rem 0 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: #4b5563;
}

.gallery-status {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gallery-status.success {
  color: #166534;
}

.gallery-status.failure {
  color: #b42318;
}

.gallery-status.pending {
  color: #6b7280;
}

.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.gallery-meta-item {
  position: relative;
}

.gallery-meta-item:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.75rem;
  margin-left: 0.75rem;
  vertical-align: -0.08rem;
  background: #d1d5db;
}

.gallery-pdf-wrap {
  position: relative;
}

.gallery-pdf {
  display: block;
  width: 100%;
  height: 31rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  background: #ffffff;
}

.gallery-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.gallery-links a,
.gallery-repo {
  color: #111827;
  text-decoration: none;
  border-bottom: 1px solid #d1d5db;
}

.gallery-links a:hover,
.gallery-repo:hover {
  border-bottom-color: #111827;
}

.gallery-repo {
  font-size: 0.84rem;
  color: #4b5563;
  white-space: nowrap;
}

.gallery-note {
  margin: 0;
  font-size: 0.92rem;
  color: #6b7280;
}

h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

table {
  background: #ffffff;
}

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

  .gallery-card-header {
    flex-direction: column;
  }

  .gallery-pdf {
    height: 24rem;
  }
}
