.image-text-wrapper {
  display: flex;
  flex-direction: row;          /* Make sure it's horizontal */
  align-items: center;          /* Vertically center the text */
  gap: 1em;
  padding: 1em;
  max-width: 800px;             /* Optional container width */
  margin: auto;
}

.image-text-wrapper img {
  max-width: 40%;               /* Max 40% of container */
  height: auto;                 /* Keep aspect ratio */
  flex-shrink: 0;               /* Don't let it shrink too much */
  border-radius: 8px;           /* Optional styling */
}

.image-text-wrapper .text-block {
  flex: 1;
  font-size: 1.1em;
}

.text-wrap {
  max-width: 800px;
  margin: auto;
  line-height: 1.6;
  font-size: 1.1em;
  padding: 1em;
}

.text-wrap .float-left {
  float: left;
  margin-right: 1em;
  margin-bottom: 1em;
}

.text-wrap .float-right {
  float: right;
  margin-left: 1em;
  margin-bottom: 1em;
}

.text-wrap .responsive-img {
  max-width: 40%;       /* Scale image with container */
  height: auto;
  border-radius: 12px ! important;
}

/* 👇 Mobile-friendly: undo float on narrow screens */
@media (max-width: 600px) {
  .text-wrap .float-left,
  .text-wrap .float-right {
    float: none;
    display: block;
    margin: 0 auto 1em auto; /* center image with bottom margin */
    max-width: 80%;
    border-radius: 8px;
  }
}