/* Desktop styles */
.mobile-header {
    display: none;
}

.sidebar {    
    position: fixed;
    left: 0;    
    height: 100%;
    overflow-y: auto;
    background: white;
    padding: 20px;
}

.layout-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
    align-items: center;
}

.image-grid img {
    max-width: calc(50% - 5px);  /* Two images per row with gap consideration */
    max-height: 400px;
    height: auto;
    object-fit: contain;
    flex: 0 1 auto;  /* Don't grow, allow shrink, base size on content */
}

.main-header h1 {
    color: white;
}

.main-header a {
    text-decoration: none;
}

.mainview-message {
    text-align: center;
    margin: 20px 0;
    font-size: 24px;
    color: #333;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .main-header {
        display: none;
    }

    body {
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        padding: 10px;
        background: #f5f5f5;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .mobile-header h1 {
        margin: 0 0 0 15px;
        font-size: 1.2em;
    }

    #mobile-menu-toggle {
        background: none;
        border: none;
        font-size: 1.5em;
        cursor: pointer;
        padding: 5px;
    }

    .layout-container {
        flex-direction: column;
    }

    .sidebar {
        display: none;
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        background: white;
        height: 100%;
        z-index: 999;
        padding: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    .sidebar.expanded {
        display: block;
        height: auto;
        padding: 10px;
        overflow-y: auto;
        max-height: none;
    }

    .main-content {
        margin-top: 50px;
        margin-left: 0;
        padding: 10px;
    }

    .results-table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .item img {
        max-width: 100%;
        height: auto;
        margin: 5px 0;
    }

    .layout-container {
        display: flex;
        min-height: 100vh;
        flex-direction: column;
    }

    .image-grid img {
        flex: 1 1 100%;
    }
}

/* Center Google Sign-In button inside the main view message */
.mainview-message .g_id_signin {
    display: inline-block;
    margin-top: 10px;
}

/* Keep existing styles below */