/* Custom styles for WordPress block editor */

/* Increase edit post sidebar width */
@media (min-width:782px) {
  .edit-post-layout.is-sidebar-opened .edit-post-layout__content {
    margin-right: 400px;
  }

  .edit-post-layout.is-sidebar-opened .edit-post-plugin-sidebar__sidebar-layout,
  .edit-post-layout.is-sidebar-opened .edit-post-sidebar {
    width: 400px;
  }
}

/* Allow full width blocks */
.wp-block {
  max-width: none;
}

/* Override default block alignment float behavior */
.block-editor-block-list__block,
.block-editor-block-list__block-edit {
  margin: 1rem 0 !important;
  float: none !important;
  height: auto !important;
}

/* Show box around all edited blocks */
.block-editor-block-list__block-edit::before {
  content: "" !important;
}

/* Disable block editor's box sizing revisions */
.block-editor .wp-block * {
  box-sizing: border-box;
}

/* Fix box sizing for Bootstrap carousel indicators */
.block-editor .wp-block .carousel-indicators > li {
  box-sizing: initial;
}

/* Disable block editor's margin and float settings when alignment is used */
.block-editor .is-block-content {
  float: none !important;
  margin: 0 !important;
}

/* Disable WordPress forms card styles (conflicts with Bootstrap) */
.card {
  position: initial;
  margin-top: initial;
  padding: initial;
  min-width: initial;
  max-width: initial;
  border: initial;
  box-shadow: initial;
  background: initial;
  box-sizing: initial;
}

/* Disable WordPress wrap styles (for containers utility classes) */
.wp-block .wrap {
  margin: 0;
}

/* Disable WordPress dialog heading styles */
h1, h2, h3, h4, h5, h6 {
  color: inherit;
  margin: initial;
  font-size: initial;
  font-weight: initial;
}

/* Disable WordPress paragraph styles */
p {
  font-size: initial;
  line-height: initial;
}

.wp-core-ui {
  font-size:  13px;
}
.wp-core-ui label {
  margin-bottom:  unset;
}