/* Component: image-content-row */

.tb-icr-container {
  width: 100%;
  padding: 20px;
}

.tb-icr-inner {
  gap: 20px;
  align-items: stretch;
}

.tb-icr-image-col,
.tb-icr-embed-col,
.tb-icr-content-col {
  width: 100%;
}

.tb-icr-image {
  width: 100%;
  aspect-ratio: 2 / 3;
  max-height: calc(100vh - 250px);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.tb-icr-embed-col {
  display: none;
  height: 100%;
}

.tb-icr-layout-embed-content .tb-icr-image-col {
  display: none;
}

.tb-icr-layout-embed-content .tb-icr-embed-col {
  display: block;
}

.tb-icr-embed-content {
  width: 100%;
  height: 100%;
}

.tb-icr-layout-embed-content {
  background-color: transparent !important;
  color: inherit !important;
  padding: 0;
}

.tb-icr-content-col {
  display: flex;
}

.tb-icr-valign-center .tb-icr-content-col {
  align-items: center;
}

.tb-icr-valign-top .tb-icr-content-col {
  align-items: flex-start;
}

.tb-icr-valign-bottom .tb-icr-content-col {
  align-items: flex-end;
}

.tb-icr-content-inner {
  width: 100%;
}

.tb-icr-sub-heading,
.tb-icr-heading {
  color: inherit !important;
  font-weight: normal !important;
}

.tb-icr-buttons-container {
  gap: 20px;
}

.tb-icr-show-buttons-no .tb-icr-buttons-container {
  display: none !important;
}

.tb-single-button-container {
  position: relative;
}

@media (min-width: 1024px) {

  .tb-icr-image-col,
  .tb-icr-embed-col,
  .tb-icr-content-col {
    width: 50%;
  }

  .tb-icr-content-col {
    padding: 30px;
  }

  .tb-icr-content-inner {
    /* Half of a standard 1100px centred container (550px), minus the half
       of the column gap that already separates the two columns, so the
       gap doesn't get double-counted on top of the virtual centre line. */
    max-width: calc(550px - 25px);
  }

  /* Content half is anchored to the edge nearest the split so it reads
     as if it sat inside that virtual central column. */
  .tb-icr-direction-row .tb-icr-content-inner {
    margin-left: 0;
    margin-right: auto;
  }

  .tb-icr-direction-row-reverse .tb-icr-content-inner {
    margin-left: auto;
    margin-right: 0;
  }

  /* Embed content mirrors the content half: anchored to the edge nearest
     the split so it's pushed toward the middle in the same way. */
  .tb-icr-embed-content {
    max-width: calc(550px - 25px);
  }

  .tb-icr-direction-row .tb-icr-embed-content {
    margin-left: auto;
    margin-right: 0;
  }

  .tb-icr-direction-row-reverse .tb-icr-embed-content {
    margin-left: 0;
    margin-right: auto;
  }

}
