/* ============================================
   CORE BLOCK SUPPORT (Gutenberg free layout)
   Shared by frontend and the block editor so
   the published page matches the editor layout.
   ============================================ */

/* Images never overflow their container */
.wp-block-image img,
.wp-block-gallery img,
.wp-block-media-text__media img,
.blog-post-content img,
.page-editable-content img {
  max-width: 100%;
  height: auto;
}
.wp-block-image,
.wp-block-gallery {
  margin-bottom: 24px;
}
.wp-block-image figcaption,
.wp-block-gallery figcaption {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 8px;
}

/* Columns: keep the side-by-side layout, wrap on mobile */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  box-sizing: border-box;
}
.wp-block-column {
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 781px) {
  .wp-block-columns {
    flex-direction: column;
  }
  .wp-block-column {
    flex-basis: 100%;
  }
}

/* Groups / rows / stacks */
.wp-block-group,
.wp-block-row,
.wp-block-stack {
  box-sizing: border-box;
}

/* Buttons follow the theme accent */
.wp-block-button__link,
.wp-element-button {
  background: var(--accent);
  color: #fff;
  border-radius: 980px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  transition: var(--transition-fast);
}
.wp-block-button__link:hover,
.wp-element-button:hover {
  background: var(--accent-hover, #0077ed);
  color: #fff;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* Quotes */
.wp-block-quote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0;
  font-size: 18px;
  color: var(--text-primary);
}
.wp-block-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-style: normal;
}
.wp-block-pullquote {
  border-top: 2px solid var(--border-light);
  border-bottom: 2px solid var(--border-light);
  padding: 24px 0;
  margin: 24px 0;
  text-align: center;
  font-size: 20px;
}

/* Tables */
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.wp-block-table th,
.wp-block-table td {
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  text-align: left;
}
.wp-block-table th {
  background: var(--bg-secondary);
  font-weight: 600;
}

/* Cover / media text */
.wp-block-cover,
.wp-block-media-text {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

/* Separator */
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 40px auto;
  max-width: 120px;
}

/* Spacing consistency for block content areas */
.blog-post-content > *,
.page-editable-content > * {
  margin-top: 0;
}
.blog-post-content > * + *,
.page-editable-content > * + * {
  margin-top: 16px;
}

/* Wide / full alignments inside constrained content areas */
@media (min-width: 1180px) {
  .blog-post-content .alignwide,
  .page-editable-content .alignwide {
    margin-left: -210px;
    margin-right: -210px;
    max-width: 1140px;
  }
}
.alignfull {
  width: 100%;
}
