.themes-hero {
  padding-top: var(--space-40);
  padding-bottom: var(--space-40);
}

.themes-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-24);
  align-items: center;
}

.themes-hero__lead {
  max-width: 34rem;
}

.themes-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-10);
}

.themes-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.themes-hero__media {
  max-width: 28rem;
  justify-self: flex-end;
}

.themes-grid .theme-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.theme-card__body {
  flex: 1;
}

.theme-card__list,
.theme-row__list,
.custom-theme__list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.theme-card__list li,
.theme-row__list li,
.custom-theme__list li {
  margin-bottom: var(--space-3);
}

.theme-card__media {
  margin-top: var(--space-8);
}

.theme-card__footer {
  margin-top: var(--space-8);
}

.theme-card__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.themes-section__subtitle {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.themes-list {
  margin-top: var(--space-8);
}

.theme-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.theme-row__content h3 {
  margin-bottom: var(--space-4);
}

.themes-cta-bar__actions,
.themes-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.custom-theme {
  align-items: center;
  gap: var(--space-20);
}

.custom-theme__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-10);
}

.custom-theme__media-wrapper {
  max-width: 30rem;
  justify-self: flex-end;
}

.theme-gallery {
  align-items: center;
  gap: var(--space-20);
}

.theme-gallery__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.theme-gallery__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-10);
}

@media (max-width: 900px) {
  .themes-hero__layout {
    grid-template-columns: 1fr;
  }

  .themes-hero__media,
  .custom-theme__media-wrapper {
    max-width: none;
    justify-self: stretch;
  }

  .themes-hero {
    padding-top: var(--space-32);
    padding-bottom: var(--space-32);
  }
}

@media (max-width: 768px) {
  .themes-hero__actions,
  .custom-theme__cta,
  .theme-gallery__cta,
  .themes-cta-bar__actions,
  .themes-final-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
