/* ===================================================================== */
/* =                          Menu Grid Styles                         = */
/* ===================================================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8em, 1fr));
    gap: 1rem;
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Make the last card span full width if it's odd */
.members-grid .gridcontent:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.grid + .grid {
    margin-top: 1rem;
}

.toppad { 
    padding-top: 0.5rem;
}

.gridcontent {
    justify-content: center;
}

/* ===================================================================== */
/* =                         Menu Card Styles                          = */
/* ===================================================================== */

.menu-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: 1rem;
    width: 100%;
    height: 8em;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0px 6px 8px rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.menu-card i {
    font-size: 2.5rem;
    color: var(--colour-menuicon);
}

.menu-card span {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.6);
    background: var(--colour-accent);
}

.menu-card:active {
    transform: scale(.97);
}