@charset "utf-8";

/* 淡紫色大外框：縮窄到同網站內容區一致 */
.wrap_box {
    background: #f1f0f8;
    padding: 14px;
    border-radius: 8px;
    max-width: 860px;
    margin: 20px auto;
    box-sizing: border-box;
    overflow: hidden;
}

/* 卡片網格容器：移除多餘寬度，跟隨 wrap_box 收縮 */
.outer_box_1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 16px;
    align-items: stretch;
    grid-auto-rows: 1fr;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 單張卡片 */
.inner_box_1 {
    width: 100%;
    min-width: 0;
    padding: 14px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 6px;
}

.gallery_row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.gallery_row img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.text-block {
    text-align: left;
    padding: 0 4px;
    flex-grow: 1;
}

.text-block p {
    font-size: 14px;
    line-height: 24px;
    margin: 7px 0;
    color: #333;
}

.text-block strong {
    font-size: 16px;
    color: #c81623;
}

.btn_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 4px 6px;
    gap: 10px;
    margin-top: auto;
}

.btn_row img {
    height: 44px;
    cursor: pointer;
}

.btn_row a,
.btn_row button {
    border: none;
    background: transparent;
    padding: 0;
    display: inline-block;
}

/* 手機版 */
@media (max-width: 920px) {
    .wrap_box {
        margin: 20px 16px;
        padding: 12px;
    }

    .outer_box_1 {
        grid-template-columns: 1fr;
    }

    .inner_box_1 {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gallery_row img {
        height: 100px;
    }

    .text-block p {
        font-size: 13px;
        line-height: 22px;
    }

    .btn_row img {
        height: 38px;
    }
}
