/* work — horizontal gallery (page-local; JS expects #gallery + .work-slide) */
#gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

#gallery::-webkit-scrollbar {
    height: 6px;
}

.work-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
    box-sizing: border-box;
}

@media (min-width: 1025px) {
    .work-slide {
        flex: 0 0 100vw;
        width: 100vw;
        min-width: 100vw;
    }
}

.hero .container-flexible {
    --container-flexible-a: 0.5;
    --container-flexible-b: 0.5;
}

.hero .hero-base-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.work-hero-index {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.work-hero-index li {
    cursor: pointer;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.work-hero-index li:hover {
    background: rgba(0, 0, 0, 0.02);
}

.work-hero-index span:first-child {
    font-weight: 700;
    margin-right: 12px;
}
