/* Logo styles */
.wb-text-image__logo {
  display: block;
  margin-bottom: 3rem;
}

.wb-text-image__logo-img {
  height: auto;
  max-width: 100%;
  display: block;
}

/* Vertical centering for side-by-side layouts only */
.wb-text-image .layout16_content:not(.wb-image-bottom) {
  align-items: center;
}

/* Ensure image bottom layout doesn't get vertical centering */
.wb-text-image .layout16_content.wb-image-bottom {
  align-items: stretch;
}

/* Image bottom layout styles */
.wb-text-image .wb-image-bottom__image .layout16_image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 5rem;
}

/* Layout adjustments when no image is present */
.wb-text-image .layout16_content.wb-no-image {
  /* Convert grid to single column when no image */
  display: block !important;
}

.wb-text-image .layout16_content.wb-no-image .layout16_content-left {
  /* Full width for text content when no image */
  max-width: none;
  width: 100%;
}

/* Ensure proper spacing in no-image layouts */
.wb-text-image .layout16_content.wb-no-image.wb-image-bottom {
  /* Maintain 2-column layout even without image */
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2rem;
}

/* Mobile-first responsive behavior: Always text first, image second */
@media (max-width: 991px) {
  .wb-text-image .layout16_content {
    /* Force single column layout on mobile */
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 2rem;
  }
  
  .wb-text-image .layout16_content .layout16_content-left {
    /* Text content always comes first on mobile */
    order: 1;
    max-width: none;
    width: 100%;
  }
  
  .wb-text-image .layout16_content .layout16_image-wrapper {
    /* Image always comes second on mobile */
    order: 2;
    width: 100%;
  }
  
  /* Special handling for image-bottom layout on mobile */
  .wb-text-image .layout16_content.wb-image-bottom {
    /* Still use flex column for consistency */
    display: flex !important;
    flex-direction: column !important;
  }
  
  .wb-text-image .layout16_content.wb-image-bottom .layout16_content-right {
    /* Description content comes after main text content */
    order: 1;
  }
  
  .wb-text-image .wb-image-bottom__image {
    /* Bottom image still comes last */
    order: 2;
    margin-top: 2rem;
  }
  
  /* No-image layouts */
  .wb-text-image .layout16_content.wb-no-image {
    /* Ensure mobile layout is also single column */
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Override 2-column layout for mobile when no image */
  .wb-text-image .layout16_content.wb-no-image.wb-image-bottom {
    /* Force single column on mobile even without image */
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }
}

@media (max-width: 767px) {
  .wb-text-image .layout16_content {
    /* Maintain mobile-first behavior on smaller screens */
    gap: 1.5rem;
  }
  
  .wb-text-image .wb-image-bottom__image {
    /* Reduce top margin on smaller mobile screens */
    margin-top: 1.5rem;
  }

  .wb-text-image .wb-image-bottom__image .layout16_image {
    margin-top: 1rem;
  }
} 