/* ═══════════════════════════════════ */
/*   GALLERY CARD — RUNNING TAPE     */
/* ═══════════════════════════════════ */

.card-gallery {
    overflow: hidden;
    padding: 14px !important;
}

.card-gallery .card-preview {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}

/* Header */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.gallery-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.gallery-counter {
    font-size: 11px;
    font-weight: 600;
    color: #e8879a;
    background: rgba(232,135,154,0.1);
    padding: 3px 10px;
    border-radius: 20px;
}

/* Tape wrapper */
.gallery-tape-wrap {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    min-height: 0;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Tape — бесконечный скролл */
.gallery-tape {
    display: flex;
    gap: 8px;
    animation: galleryScroll 25s linear infinite;
    width: max-content;
    height: 100%;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.card-gallery:hover .gallery-tape {
    animation-play-state: paused;
}

@keyframes galleryScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Каждый элемент */
.gt-item {
    flex-shrink: 0;
    width: 130px;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gt-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gt-item:hover img {
    transform: scale(1.15);
}

/* Footer */
.gallery-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.gallery-cta {
    font-size: 12px;
    font-weight: 500;
    color: #888;
}

.gallery-arrow {
    font-size: 16px;
    color: #e8879a;
    transition: transform 0.2s ease;
}

.card-gallery:hover .gallery-arrow {
    transform: translateX(4px);
}

.card-gallery:hover .gallery-cta {
    color: #e8879a;
}
