/* =============================================
   Hnojik FB Feed — horizontal carousel (1 post v okně)
   ============================================= */

.hnojik-fb-feed--carousel {
    --hnojik-fbp-h: 600px;
    --hnojik-fbp-w: 480px;
    max-width: var(--hnojik-fbp-w);
    margin: 24px auto;
    position: relative;
}

.hnojik-fbp-viewport {
    overflow: hidden;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    height: var(--hnojik-fbp-h);
}

.hnojik-fbp-track {
    display: flex;
    flex-direction: row;
    height: 100%;
    transition: transform 0.35s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
    touch-action: pan-y;
    user-select: none;
}

.hnojik-fbp-track.is-dragging {
    transition: none;
}

.hnojik-fbp-card {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;      /* vyplní celý kontejner, žádný vnitřní scroll */
    min-height: 0;         /* umožní flex dětem se zmenšit */
}

.hnojik-fbp-img-link {
    display: block;
    overflow: hidden;
    background: #f3f4f6;
    flex: 0 0 55%;         /* fixní 55 % výšky kontejneru pro obrázek */
    width: 100%;
}

.hnojik-fbp-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* drag nechytí <img>, padá na track */
}

.hnojik-fbp-body {
    padding: 12px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.hnojik-fbp-date {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .03em;
    flex-shrink: 0;
}

.hnojik-fbp-text {
    margin: 0;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.5;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}

.hnojik-fbp-link {
    margin-top: auto;
    align-self: flex-start;
    color: #2c7a2e;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    flex-shrink: 0;
}

.hnojik-fbp-link:hover {
    text-decoration: underline;
}

/* =============================================
   Spodní ovládání: [‹]  3 / 20  [›]
   ============================================= */
.hnojik-fbp-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
    user-select: none;
}

.hnojik-fbp-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    color: #1f2937;
    font-size: 22px;
    line-height: 1;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s, border-color 0.15s;
    padding: 0 0 3px 0; /* optické vycentrování šipky */
}

.hnojik-fbp-arrow:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: scale(1.05);
}

.hnojik-fbp-arrow:active {
    transform: scale(0.96);
}

.hnojik-fbp-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.hnojik-fbp-counter {
    font-size: 14px;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
    min-width: 54px;
    text-align: center;
}

.hnojik-fbp-counter-current {
    font-weight: 700;
    color: #1f2937;
}

@media (max-width: 540px) {
    .hnojik-fb-feed--carousel {
        max-width: 100%;
    }
}

/* =============================================
   Empty
   ============================================= */
.hnojik-fb-feed--empty {
    padding: 24px;
    background: #f9fafb;
    border-radius: 8px;
    color: #6b7280;
    text-align: center;
}
