.home-gallery-section {
    margin-top: 10px;
    padding: 10px 9px 16px;
    background: #fff;
    border-top: 1px solid #eee;
}

.home-gallery-tabs {
    height: 38px;
    padding: 3px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    border-radius: 20px;
    background: #eefaf4;
    border: 1px solid #d4f4e3;
    margin-bottom: 12px;
}

.home-gallery-tabs button {
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #08b963;
    font-size: 14px;
    font-weight: 900;
}

.home-gallery-tabs button.active {
    background: #08c767;
    color: #fff;
    box-shadow: 0 4px 10px rgba(8, 199, 103, .25);
}

.home-gallery-columns {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.home-gallery-column {
    flex: 1;
    min-width: 0;
}

.home-gallery-card {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    text-decoration: none;
    color: inherit;
    content-visibility: auto;
    contain-intrinsic-size: 260px;
}

.home-gallery-card:active {
    transform: scale(.98);
}

.home-gallery-img {
    width: 100%;
    overflow: hidden;
    background: #f3f4f6;
}

.home-gallery-img img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.home-gallery-name {
    padding: 8px 6px 9px;
    text-align: center;
    color: #e60012;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-gallery-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 44px;
    color: #08c767;
    font-size: 13px;
    font-weight: 700;
}

.home-gallery-loading i {
    animation: galleryRotate .8s linear infinite;
}

.home-gallery-retry {
    display: none;
    width: 120px;
    height: 34px;
    margin: 12px auto 0;
    border: 0;
    border-radius: 18px;
    background: #08c767;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.home-gallery-finished {
    display: none;
    padding: 14px 0 2px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.home-gallery-sentinel {
    height: 1px;
}

@keyframes galleryRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 390px) {
    .home-gallery-columns {
        gap: 9px;
    }

    .home-gallery-card {
        margin-bottom: 9px;
    }

    .home-gallery-name {
        font-size: 14px;
    }
}