/**
 * ACM Project Gallery - Mobile Styles
 * Optimizes the project gallery for mobile devices
 * Loaded in addition to mobile.css for gallery pages
 */
/* Reduce top position to account for smaller mobile header */
.galleryPage #galleryOptions {
    top: 50px;
    padding: 6px 8px;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.galleryPage #galleryOptions::-webkit-scrollbar {
    display: none;
}
/* Flex container - single row, no wrapping */
.galleryPage .acmProjectGalleryOptions .flexOptions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}
.galleryPage .acmProjectGalleryOptions .galleryOption {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
/* Compact form controls */
.galleryPage .acmProjectGalleryOptions select,
.galleryPage .acmProjectGalleryOptions input {
    padding: 4px 6px;
    font-size: 14px;
    max-width: 130px;
    min-width: auto;
}
.galleryPage #searchGalleries {
    max-width: 110px;
}
/* Hide "Projects per Page" text */
.galleryPage .galleryOption:last-child {
    font-size: 0;
    color: transparent;
}
.galleryPage #numResults {
    font-size: 12px;
    padding-right: 4px;
    flex-shrink: 0;
}
/* Pagination at bottom */
.galleryPage #paginationWrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    padding: 8px 4px;
    z-index: 9998;
    margin: 0;
    border-top: 1px solid #555;
}
.galleryPage .searchPagination {
    gap: 4px;
    margin: 0;
}
.galleryPage .searchPagination a {
    padding: 6px 10px;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
}
/* Gallery container adjustments */
.galleryPage #galleryContainer {
    padding-top: 50px;
    padding-bottom: 70px;
}
.galleryPage #galleryContainer #elementHeight {
    gap: 12px;
    padding: 10px 8px 20px;
}
.galleryPage #galleryContainer .jg_row {
    width: 92vw;
    max-width: 100%;
}
.galleryPage #galleryContainer a.bwWrapper {
    height: 220px;
}
.galleryPage #galleryContainer .projectGalleryName {
    padding: 12px 14px;
}
.galleryPage #galleryContainer .projectGalleryName h2 {
    font-size: 16px;
    line-height: 1.3;
}
/* Very small screens */
@media (max-width: 400px) {
    .galleryPage #galleryOptions {
        top: 45px;
        padding: 5px 6px;
    }
    .galleryPage .acmProjectGalleryOptions select,
    .galleryPage .acmProjectGalleryOptions input {
        font-size: 13px;
        padding: 3px 5px;
        max-width: 115px;
    }
    .galleryPage #searchGalleries {
        max-width: 95px;
    }
    .galleryPage #numResults {
        font-size: 11px;
    }
    .galleryPage #galleryContainer a.bwWrapper {
        height: 200px;
    }
    .galleryPage #galleryContainer .projectGalleryName h2 {
        font-size: 15px;
    }
}
/* Landscape mode */
@media (max-height: 500px) and (orientation: landscape) {
    .galleryPage #galleryOptions {
        top: 40px;
        padding: 4px 6px;
    }
    .galleryPage #galleryContainer {
        padding-top: 40px;
        padding-bottom: 55px;
    }
    .galleryPage #galleryContainer a.bwWrapper {
        height: 160px;
    }
    .galleryPage .searchPagination a {
        padding: 4px 8px;
        font-size: 13px;
    }
}