.home-certificate {
    background: var(--color-primary-1);
    padding-top: 60px;
    padding-bottom: 60px;
    margin: 0 auto;
}

.home-certificate > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
}

.home-certificate img {
    display: block;
    /*aspect-ratio: 239 / 200;*/
    /*width: 160px;*/
    width: 80px;
    margin-bottom: 60px;
}

.home-certificate h1 {
    font-size: 16px;
    line-height: 24px;
    transform: scaleX(1.5);
    letter-spacing: 0.5em;
}

.home-certificate p {
    margin-top: 28px;
}

.home-certificate__images {
    display: grid;
    /*grid-template-columns: repeat(2, minmax(0, 1fr));*/
    /*grid-template-rows: repeat(3, minmax(0, 1fr));*/
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* 手機版 1xN */
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    height: 100%;
}

.home-certificate__images div {
    /*aspect-ratio: 420 / 340;*/
    /*width: 100%;*/
    /* height: auto; */ /* 可搭配 object-fit 看情況 */
    aspect-ratio: unset; /* 或直接移除 aspect-ratio */
}

.home-certificate__images img {
    width: 100% !important;
    height: 100%;
    /*object-fit: cover;*/
    object-fit: contain;
    margin-bottom: 10px !important;
}

@media (min-width: 768px) {
    .home-certificate {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .home-certificate img {
        width: 125px;
    }

    .home-certificate h1 {
        font-size: 24px;
        line-height: 32px;
    }

    .home-certificate__images {
        /*grid-template-columns: repeat(3, minmax(0, 1fr));*/
        /*grid-template-rows: repeat(2, minmax(0, 1fr));*/
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 電腦版 2xN */
        margin-top: 40px;
    }
}
