/* Blog Masonry Layout Styles */

.blog-masonry-container {
    width: 100%;
    margin: 0 auto;
}

.blog-masonry-grid {
    display: block;
    width: 100%;
}

.blog-masonry-item {
    width: calc(33.333% - 14px);
    margin-bottom: 14px;
    float: left;
    transition: all 0.3s ease;
}

.blog-masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1366px) {
    .blog-masonry-item {
        width: calc(50% - 14px);
    }
}

@media (max-width: 1024px) {
    .blog-masonry-item {
        width: 100%;
        margin-bottom: 14px;
    }
}

/* Elementor Loop Grid Anpassungen */
.elementor-loop-container.elementor-grid.elementor-posts-masonry {
    display: block !important;
    width: 100% !important;
}

.elementor-loop-container.elementor-grid.elementor-posts-masonry .e-loop-item {
    width: calc(33.333% - 14px) !important;
    margin-bottom: 14px !important;
    float: left !important;
    transition: all 0.3s ease !important;
}

.elementor-loop-container.elementor-grid.elementor-posts-masonry .e-loop-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive für Elementor */
@media (max-width: 1366px) {
    .elementor-loop-container.elementor-grid.elementor-posts-masonry .e-loop-item {
        width: calc(50% - 14px) !important;
    }
}

@media (max-width: 1024px) {
    .elementor-loop-container.elementor-grid.elementor-posts-masonry .e-loop-item {
        width: 100% !important;
        margin-bottom: 14px !important;
    }
}

.blog-loop-grid .project-single-content {
    transform: translateY(50%);
}

.blog-loop-grid .project-single-content h2 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 2px; 
}

/* Clearfix für das Grid */
.blog-masonry-grid::after,
.elementor-loop-container.elementor-grid.elementor-posts-masonry::after {
    content: '';
    display: table;
    clear: both;
}

/* Blog Filter Menu Styles */

.blog-filter-menu-container {
    margin-bottom: 30px;
    text-align: center;
}

.blog-filter-menu {
    display: block;
    margin-bottom: 20px;
}

.blog-filter-item {
    display: inline-block;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    font-size: 18px;
    font-family: var(--e-global-typography-ee90eef-font-family), Arial, Sans-serif;
    font-weight: var(--e-global-typography-ee90eef-font-weight);
}

.blog-filter-item:hover {
    background-color: var(--e-global-color-secondary);
    border-color: var(--e-global-color-secondary);
}

.blog-filter-item.active {
    background-color: var(--e-global-color-00cc2fb);
    border-color: var(--e-global-color-00cc2fb);
    color: #fff;
}

/* Responsive Design für Filter Menu */
@media (max-width: 768px) {
    .blog-filter-menu {
        gap: 8px;
        justify-content: left;
    }

    .blog-filter-item {
        padding: 6px 12px;
        text-align: center;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .blog-filter-menu {
        flex-direction: column;
        align-items: center;
    }

    .blog-filter-item {
        text-align: center;        
    }
}