.sidebyside {

}

.entry-content [class*="_inner-container"]>.sidebyside {
  width: 100%;
}

.sidebyside.container--wrapper.alignwide, 
#editor .sidebyside.container--wrapper.alignwide {
  max-width: var(--normal-container-max-width);
  padding-left: var(--container_padding);
  padding-right: var(--container_padding);
  box-sizing: content-box;
}
#editor .sidebyside.container--wrapper.alignwide {
  box-sizing: border-box;
}

.sidebyside.container--wrapper.alignwide .cb-inside-container {
  max-width: var(--default-editor, var(--block-wide-max-width));
  width: var(--default-editor, var(--block-width));
  margin-left: auto;
  margin-right: auto;
}

.sidebyside.container--wrapper.alignfull, 
#editor .sidebyside.container--wrapper.alignfull {
  max-width: 100%;
}

.sidebyside.container--wrapper.alignfull .cb-inside-container {
  max-width: 100%;
}

.sidebyside.m_extra-t,
.sidebyside.m_extra-b,
.sidebyside.m_none-t,
.sidebyside.m_none-b,
div[data-title="Side by Side"] {
  margin-top: 0;
  margin-bottom: 0;
}

.sidebyside,
div[data-title="Side by Side"] {
  padding-top: 0;
  padding-bottom: 0;
}

.sidebyside.m_extra-t {
  padding-top: var(--container_vertical_spacing--extra);
}

.sidebyside.m_extra-b {
  padding-bottom: var(--container_vertical_spacing--extra);
}

.sidebyside.m_none-t {
  padding-top: 0;
}

.sidebyside.m_none-b {
  padding-bottom: 0;
}

.sidebyside .container--content {
  display: flex;
  flex-direction: column;
  gap: 1em;
}



.sidebyside .side_content {
  order: 2;
  padding-bottom: 2.5em;
}

.sidebyside .side_image,
.sidebyside .no_image {
  order: 1;
}

.sidebyside .side_content .side_content_wrap > *:first-child,
.sidebyside .side_content .side_content_wrap > .c-flagwrap + *,
.sidebyside .side_image > *:first-child {
  margin-top: 0;
}

.sidebyside .side_content .side_content_wrap > *:last-child,
.sidebyside .side_image > *:last-child {
  margin-bottom: 0;
}

@media screen and (min-width: 700px) {
  .sidebyside .container--content {
    flex-direction: row;
    gap: 0;
  }
  
  .sidebyside .side_content {
    width: 50%;
    flex: 1;
    padding: 0;
  }




  .sidebyside .side_content_wrap {
    padding: 3em 0 3em 2em;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .sidebyside.alignfull .side_content_wrap {
    padding-right: 2em;
  }
  
  .sidebyside .side_image,
  .sidebyside .no_image {
    width: 50%;
    flex: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .sidebyside .side_image img,
  .sidebyside .no_image img {
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    max-height: none;
  }

  .sidebyside.image_on_right .side_content {
    order: 1;
  }

  .sidebyside.image_on_right .side_content_wrap {
    padding: 3em 2em 3em 0;
  }

  .sidebyside.alignfull.image_on_right .side_content_wrap {
    padding-left: 2em;
  }
  
  .sidebyside.image_on_right .side_image,
  .sidebyside.image_on_right .no_image {
    order: 2;
  }
}