/* ===== 推薦餐點：父容器 ===== */
.dishes-wrapper {
    display: grid;
    margin-bottom: 30px;
    align-items: start;
    padding: 0;
    background: transparent;
    /* 桌面版預設：3欄 */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===== 單筆餐點：上下排列 ===== */
.dish-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 0;
    box-sizing: border-box;
    min-width: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* ===== 圖片 ===== */
.dish-image {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.dish-image img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

/* ===== 名稱在圖片下方、置中 ===== */
.dish-name {
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    margin: 20px 0 0 0;
    color: #526D82;
}

/* ===== 響應式設計 - 由大到小設定 ===== */
/* 平板 (769px-1024px)：3欄 */
@media (max-width: 1024px) and (min-width: 769px) {
    .dishes-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    .dish-name {
        font-size: 26px;
    }
}

/* 中型平板 (481px-768px)：2欄 */
@media (max-width: 768px) and (min-width: 481px) {
    .dishes-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .dish-name {
        font-size: 24px;
    }
}

/* 手機版 (480px以下)：1欄 */
@media (max-width: 480px) {
    .dishes-wrapper {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .dish-item {
        margin-bottom: 16px;
    }
    .dish-name {
        font-size: 20px;
        margin: 12px 0 0 0;
    }
}

/* === 推薦餐點圖片固定 16:9 裁切 === */
.dish-image {
    width: 100%;
    aspect-ratio: 3 / 2;           /* 現代瀏覽器直接支援 */
    position: relative;
    overflow: hidden;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;              /* 這行讓圖片超出部分自動裁切 */
    object-position: center center; /* 視覺中心置中 */
    display: block;
}