.epchg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 30px;
    width: 100%;
}
.epchg-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 0;
    background: #fff;
    color: inherit;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.epchg-card:hover,
.epchg-card:focus-visible {
    text-decoration: none !important;
}
.epchg-card__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    background: #fff;
}
.epchg-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}
.epchg-card:hover .epchg-card__image,
.epchg-card:focus-visible .epchg-card__image {
    transform: scale(1.035);
}
.epchg-card__title {
    display: block;
    background: #ffff00;
    color: #222;
    padding: 12px 8px;
    text-align: center;
    font-size: 14px;
    line-height: 1.35;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    transition: opacity .2s ease, max-height .2s ease;
}
.epchg-card:hover .epchg-card__title,
.epchg-card:focus-visible .epchg-card__title {
    opacity: 1;
    max-height: 100px;
}
.epchg-card:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.epchg-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #777;
    background: #f5f5f5;
    font-size: 13px;
    text-align: center;
}
.epchg-notice {
    padding: 14px;
    border: 1px dashed #bbb;
    color: #555;
    background: #fafafa;
}
@media (max-width: 767px) {
    .epchg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .epchg-card__image-wrap {
        height: 150px;
        padding: 12px;
    }
    /* On touch screens, keep the category name visible because hover is unavailable. */
    .epchg-card__title {
        opacity: 1;
        max-height: 100px;
    }
}
@media (max-width: 480px) {
    .epchg-grid {
        grid-template-columns: 1fr;
    }
}
