.expert-quote {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 40px;
    margin-block: 0;
    border-radius: 16px;
    background: var(--wp--preset--color--white, #fff);
}

.expert-quote--has-image {
    grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
}

.expert-quote__media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 40px 24px 24px;
    border-right: 2px solid var(--wp--preset--color--background, #f1f3f4);
    min-width: 0;
}

.expert-quote__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
}

.expert-quote__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.expert-quote--has-image .expert-quote__content {
    padding-left: 40px;
}

.expert-quote__icon {
    display: block;
    flex-shrink: 0;
    color: var(--wp--preset--color--primary-hover, #1c94ca);
}

.expert-quote .expert-quote__quote {
    padding: 0;
    margin: 0;
    border: 0;
    font-style: normal;
    font-weight: 400;
    color: var(--wp--preset--color--grey-500-text, #222);
}

.expert-quote .expert-quote__quote p {
    margin: 0;
    font-size: 20px;
    line-height: 1.6;
}

.expert-quote .expert-quote__caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    text-align: left;
}

.expert-quote__author {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--wp--preset--color--grey-500-text, #222);
}

.expert-quote__role {
    font-size: 14px;
    line-height: 1.5;
    color: var(--wp--preset--color--grey-600-text, #686864);
}

@media (max-width: 782px) {
    .expert-quote {
        grid-template-columns: minmax(0, 1fr);
        padding: 24px;
    }

    .expert-quote__media {
        padding: 8px 0 24px;
        margin-bottom: 24px;
        border-right: 0;
        border-bottom: 2px solid var(--wp--preset--color--background, #f1f3f4);
    }

    .expert-quote__image {
        max-width: min(100%, 288px);
        max-height: 120px;
    }

    .expert-quote--has-image .expert-quote__content {
        padding-left: 0;
    }

    .expert-quote .expert-quote__quote p {
        font-size: 18px;
    }
}
