/* Shakey Ray's menu-only corrective layer. Reversible by deactivating this plugin. */

/* Item photos were imported for individual entries but visually read as the previous item's/category's photo.
   Keep the media in WordPress, just stop rendering those photos in the public food-menu flow. */
.srtm-menu-page .sr-original-menu-photo {
    display: none !important;
}

/* Category images are the only large imagery in the menu after this patch. */
.srtm-menu-page .srtm-menu-category-image {
    margin: 0 0 20px !important;
    border-radius: 0 !important;
    overflow: hidden;
}
.srtm-menu-page .srtm-menu-category-image img {
    display: block;
    width: 100%;
    height: clamp(180px, 20vw, 280px) !important;
    max-height: 280px !important;
    object-fit: cover !important;
}

/* Let JS rebalance cards without CSS transition/jump weirdness. */
.srtm-menu-page .sr-original-menu-column {
    align-self: start;
}

/* Small polish for dense categories. */
.srtm-menu-page .sr-original-menu-card {
    break-inside: avoid;
}

@media (max-width: 900px) {
    .srtm-menu-page .srtm-menu-category-image img {
        height: 210px !important;
        max-height: 210px !important;
    }
}

@media (max-width: 600px) {
    .srtm-menu-page .srtm-menu-category-image img {
        height: 180px !important;
        max-height: 180px !important;
    }
}
