
/* Two-column layout: text left, image right */
.image-right-text-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

/* Left column: text */
.image-right-text-left .training-text {
    flex: 1 1 60%;
    min-width: 0;
}

/* Normal paragraph spacing */
.image-right-text-left .training-text p {
    margin-top: 0;
    margin-bottom: 1em;
}

/* Right column: Drupal View */
.image-right-text-left .image-wrapper {
    flex: 1 1 40%;
    min-width: 0;
    width: auto;
    max-width: none;
    margin: 0;
    float: none;
}

/* Responsive image sizing */
.image-right-text-left .image-wrapper img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    object-fit: contain;
}

/* Prevent Drupal View content from overflowing */
.image-right-text-left .image-wrapper .view {
    max-width: 100%;
}

/* Mobile: stack text first, image below */
@media (max-width: 767px) {
    .image-right-text-left {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .image-right-text-left .training-text,
    .image-right-text-left .image-wrapper {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .image-right-text-left .image-wrapper img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}
