/**
 * ImageMenu - Front-end Styles
 *
 * Flexbox layout: items auto-scale to fill a single row.
 * Labels overlay the bottom of each image.
 * User-customized CSS from admin settings is added via wp_add_inline_style().
 */

.imagemenu {
    width: 100%;
    box-sizing: border-box;
}

.imagemenu ul {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    width: 100%;
}

.imagemenu li {
    flex: 1 1 0%;
    min-width: 0;
    position: relative;
}

.imagemenu a {
    display: block;
    position: relative;
    width: 100%;
    text-decoration: none;
    line-height: 0;
    cursor: pointer;
}

.imagemenu img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.imagemenu-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    font-size: 1em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
    line-height: 1.3;
    text-align: center;
    pointer-events: none;
}

/* Full-width variant — let WordPress alignfull handle the breakout */
.imagemenu.alignfull {
    max-width: none;
    width: auto;
}
