.apd-related-grid .apd-related-image {
    flex: none;
    height: 170px;
}

.apd-related-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

.apd-related-grid .apd-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    object-position: center;
}

.apd-related-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 28px;
    margin-top: 8px;
    color: var(--apd-muted);
    font-size: 11px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.apd-related-brand span {
    flex: 0 0 27px;
}

.apd-related-brand .apt-logo {
    display: block;
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.apd-wrap .apd-related-grid .apd-related-brand + h3 {
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.apd-related-bottom .apd-muted {
    min-width: 0;
}

.apd-related-bottom > a {
    margin-inline-start: auto;
}

@media (max-width: 599px) {
    .apd-related-grid .apd-related-image {
        height: 112px;
    }
}

@media (max-width: 359px) {
    .apd-related-grid .apd-related-image {
        height: 100px;
    }
}
