/* ========== Gemeinsam ========== */
.external-posts-wrapper {
    overflow: visible !important;
    padding: 14px 18px 22px 18px !important;
}

.external-posts-grid,
.external-posts-grid *,
.external-post-card,
.external-post-card *,
.external-posts-wrapper,
.external-posts-wrapper *,
.external-post-content,
.external-post-content * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}



.tve_shortcode_editor .external-posts-grid,
.tve_shortcode_editor .external-posts-grid *,
.tve_shortcode_editor .external-post-card,
.tve_shortcode_editor .external-post-card *,
.tve_shortcode_editor .external-posts-wrapper,
.tve_shortcode_editor .external-posts-wrapper *,
.tve_shortcode_editor .external-post-content,
.tve_shortcode_editor .external-post-content * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}




.external-post-card {
    background: #fff !important;
    border: 1px solid #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.external-post-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
    transform: translateY(-4px) !important;
}



.external-post-image {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    display: block !important;
}

.external-post-card h3 {
    font-size: 1.1rem !important;
    margin: 12px 12px 8px 12px !important;
}

.external-post-card p {
    margin: 0 12px 12px 12px !important;
}

.external-post-more {
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
}

/* ========== 1. GRID ========== */
.display-grid .external-posts-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--cols, 3), 1fr) !important;
    gap: 20px !important;
}

.display-grid .external-post-card {
    width: 100% !important;
}

/* ========== 2. LIST ========== */
.display-list .external-posts-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.display-list .external-post-card {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    align-items: stretch !important;
}

.display-list .external-post-image {
    width: 220px !important;
    min-width: 220px !important;
    height: auto !important;
    object-fit: cover !important;
}

.display-list .external-post-content {
    flex: 1 !important;
    padding: 12px 16px 40px 16px !important;
    position: relative !important;
}

/* ========== 3. MASONRY ========== */
.display-masonry .external-posts-grid {
    column-count: 3 !important;
    column-gap: 20px !important;
}

.display-masonry .external-post-card {
    break-inside: avoid !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    display: inline-block !important;
}

.display-masonry .external-post-image {
    height: auto !important;
    max-height: 280px !important;
}

/* ========== 4. CAROUSEL ========== */
.display-carousel .external-posts-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 14px 0 !important;
}

.display-carousel .external-post-card {
    flex: 0 0 auto !important;
    scroll-snap-align: start !important;
}

/* Navigation */
.external-carousel-nav {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 12px !important;
}

.carousel-prev,
.carousel-next {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    background: #f2f2f2 !important;
    border: none !important;
    font-size: 22px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    line-height: 1 !important;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #333 !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

/* Mobile */
@media (max-width: 768px) {
    .display-grid .external-posts-grid {
        grid-template-columns: 1fr !important;
    }
    .display-masonry .external-posts-grid {
        column-count: 1 !important;
    }
    .display-list .external-post-card {
        flex-direction: column !important;
    }
    .display-list .external-post-image {
        width: 100% !important;
        min-width: 100% !important;
        height: 180px !important;
    }
    .carousel-prev,
    .carousel-next {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
    }
}

.circle-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #f2f2f2 !important;
    color: #333 !important;
    font-size: 18px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.circle-button:hover {
    background: #333 !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}