.ag-bbbbbdfe-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ag-bbbbbdfe-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
}

.ag-bbbbbdfe-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ag-bbbbbdfe-filter-btn {
    background: #f1f1f1;
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ag-bbbbbdfe-filter-btn.active, 
.ag-bbbbbdfe-filter-btn:hover {
    background: #333;
    color: #fff;
}

.ag-bbbbbdfe-tools {
    display: flex;
    gap: 15px;
    align-items: center;
}

.ag-bbbbbdfe-search, .ag-bbbbbdfe-sort {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: #333;
    outline: none;
}
.ag-bbbbbdfe-search:focus, .ag-bbbbbdfe-sort:focus {
    border-color: #999;
}

.ag-bbbbbdfe-grid {
    display: grid;
    /* Columns and gaps handled via inline Elementor CSS */
}

.ag-bbbbbdfe-item {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.ag-bbbbbdfe-img-wrap {
    width: 100%;
    overflow: hidden;
}

.ag-bbbbbdfe-img-wrap img {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
    display: block;
}

.ag-bbbbbdfe-bottom-title {
    margin: 10px 0 0 0;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.ag-bbbbbdfe-no-results {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Modal */
.ag-bbbbbdfe-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ag-bbbbbdfe-modal.active {
    display: flex;
    opacity: 1;
}

.ag-bbbbbdfe-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.ag-bbbbbdfe-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.ag-bbbbbdfe-modal-body {
    display: flex;
    flex-direction: column;
}

.ag-bbbbbdfe-modal-info {
    padding: 40px;
    flex: 1;
}

.ag-bbbbbdfe-modal-cat {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    display: block;
    margin-bottom: 10px;
}

.ag-bbbbbdfe-modal-title {
    margin: 0 0 20px 0;
    font-size: 28px;
    color: #333;
}

.ag-bbbbbdfe-modal-desc {
    color: #555;
    line-height: 1.6;
    font-size: 16px;
}
