/*
 * Component — block-editor content (.ecos-entry-content / .ecos-service-content)
 * and WordPress content classes (alignments, captions, galleries, page links).
 *
 * Loaded by inc/enqueue.php on every template that prints editor content: default pages, single posts,
 * service details, About Us, Services, Contact Us and the archive description.
 */

/* ==========================================================================
   Reference template styles (from the former assets/css/main.css)
   ========================================================================== */

/* WordPress content classes
   -------------------------------------------------------------------------- */
.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

/* ==========================================================================
   EcoStrategics theme components (from the former assets/css/theme.min.css)
   ========================================================================== */

/* Editor content
   -------------------------------------------------------------------------- */
.ecos-entry-content>*+* {
  margin-top: 20px;
}
.ecos-entry-content p {
  margin-bottom: 0;
}
.ecos-entry-content h2,
.ecos-entry-content h3,
.ecos-entry-content h4 {
  margin-top: 30px;
}
.ecos-entry-content h2 {
  font-size: 32px;
  line-height: 1.35;
}
.ecos-entry-content h3 {
  font-size: 24px;
}
.ecos-entry-content a:not(.theme-btn):not(.wp-block-button__link) {
  color: var(--theme-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ecos-entry-content a:not(.theme-btn):hover {
  color: var(--theme-color-2);
}
.ecos-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.ecos-entry-content figure {
  margin-left: 0;
  margin-right: 0;
}
.ecos-entry-content figcaption,
.wp-caption-text {
  margin-top: .5rem;
  text-align: center;
  font-size: .875rem;
  line-height: 1.25rem;
  color: var(--text);
}
.ecos-entry-content table {
  width: 100%;
  border-collapse: collapse;
}
.ecos-entry-content td,
.ecos-entry-content th {
  border: 1px solid #e4e4e4;
  padding: 10px 14px;
}
.ecos-entry-content blockquote:not(.wp-block-quote) {
  background-color: #6c57d2;
  color: var(--white);
  font-size: 22px;
  line-height: 1.5;
  padding: 40px 50px;
  border-radius: 6px;
}
.ecos-page .ecos-entry-content ul,
.ecos-service-content ul {
  list-style: disc;
  padding-left: 22px;
}
.ecos-page .ecos-entry-content ol,
.ecos-service-content ol {
  list-style: decimal;
  padding-left: 22px;
}
.ecos-page .ecos-entry-content li+li {
  margin-top: 8px;
}
.ecos-service-content {
  margin-top: 32px;
}
.ecos-service-content p+p {
  margin-top: 16px;
}

/* WordPress content classes
   -------------------------------------------------------------------------- */
.page-links {
  margin-top: 30px;
  font-weight: 600;
}
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
}
