/* ===================================
   Clients Gallery - Frontend Styles
   =================================== */

.cg-gallery-wrapper {
    font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
    direction: rtl;
    max-width: 100%;
    padding: 0;
}

/* Filter Tabs */
.cg-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    justify-content: center;
}

.cg-filter-btn {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    background: #fff;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    font-weight: 600;
}

.cg-filter-btn:hover {
    border-color: #1a73e8;
    color: #1a73e8;
}

.cg-filter-btn.active {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}

/* Grid */
.cg-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

@media (max-width: 1024px) {
    .cg-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .cg-grid { grid-template-columns: repeat(3, 1fr); }
    .cg-filter-btn { padding: 6px 14px; font-size: 13px; }
}

@media (max-width: 480px) {
    .cg-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Item */
.cg-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cg-item.hidden {
    display: none;
}

.cg-item-inner {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
}

.cg-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

/* Overlay hidden */
.cg-overlay { display: none; }
