/* Container Base */
.lvs-magazine-wrapper {
    width: 100%;
    margin: 0 auto 30px auto;
}

/* 
 * MENU DE FILTROS AJAX
 */
.lvs-filter-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

/* Classes Dinâmicas de Alinhamento */
.lvs-filter-menu.lvs-align-left { justify-content: flex-start; }
.lvs-filter-menu.lvs-align-center { justify-content: center; }
.lvs-filter-menu.lvs-align-right { justify-content: flex-end; }

.lvs-filter-btn {
    background: #f1f1f1;
    border: none;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    color: #555;
    transition: all 0.3s ease;
    outline: none;
}

.lvs-filter-btn:hover {
    background: #e2e2e2;
    color: #111;
}

.lvs-filter-btn.active {
    background: var(--lvs-bg-base);
    color: var(--lvs-text-color);
}

/* Efeito de Carregamento ao clicar */
#lvs-mag-grid-target {
    transition: opacity 0.3s ease;
}
#lvs-mag-grid-target.lvs-loading {
    opacity: 0.4;
    pointer-events: none;
}

.lvs-no-posts {
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid var(--lvs-bg-base);
    color: #444;
}

/* 
 * O GRID MAGAZINE 
 */
.lvs-magazine-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
}

.lvs-highlight-1 .lvs-item-highlight { grid-column: span 12; }
.lvs-highlight-1 .lvs-item-standard { grid-column: span 4; }

.lvs-highlight-2 .lvs-item-highlight { grid-column: span 6; }
.lvs-highlight-2 .lvs-item-standard { grid-column: span 4; }

.lvs-highlight-3 .lvs-item-highlight { grid-column: span 4; }
.lvs-highlight-3 .lvs-item-standard { grid-column: span 4; }

.lvs-grid-item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #222;
    min-height: 280px;
}

.lvs-item-highlight {
    min-height: 350px;
}

.lvs-item-thumb {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.lvs-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lvs-item-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    background-color: var(--lvs-bg-base);
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.lvs-grid-item:hover .lvs-item-content {
    background-color: var(--lvs-bg-hover);
}
.lvs-grid-item:hover .lvs-item-thumb img {
    transform: scale(1.05);
}

.lvs-item-title {
    margin: 0 0 5px 0;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--lvs-text-color);
}

.lvs-item-meta {
    font-size: 0.85rem;
    color: var(--lvs-text-color);
    opacity: 0.8;
}

.lvs-item-link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3;
}

/* 
 * BOTÃO EXIBIR MAIS
 */
.lvs-load-more-container {
    text-align: center;
    margin-top: 30px;
    width: 100%;
}

#lvs-load-more-btn {
    background: transparent;
    border: 2px solid var(--lvs-bg-base);
    color: var(--lvs-bg-base);
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

#lvs-load-more-btn:hover {
    background: var(--lvs-bg-base);
    color: var(--lvs-text-color);
}

#lvs-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .lvs-magazine-grid {
        display: flex;
        flex-direction: column;
    }
    .lvs-grid-item {
        min-height: 250px;
    }
    .lvs-filter-menu {
        justify-content: center !important;
    }
}