/* =====================================
   CA Filterable Gallery
   ===================================== */

.ca-filterable-gallery {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* =====================================
   FILTER BUTTONS
   ===================================== */

.ca-fg-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

/* Default (inactive) tab */
.ca-fg-filter {
    appearance: none;
    border: 1px solid #ddd;
    background: #f6f6f6;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: #333;
    transition: all 0.2s ease-in-out;
}

/* Hover */
.ca-fg-filter:hover {
    background-color: #ee1b24;
    border-color: #ee1b24;
    color: #ffffff;
}

/* Active tab */
.ca-fg-filter.is-active {
    background-color: #ee1b24;
    border-color: #ee1b24;
    color: #ffffff;
}

/* =====================================
   GRID LAYOUT
   ===================================== */

.ca-fg-grid {
    display: grid;
    gap: 14px;
}

/* Columns */
.ca-fg-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ca-fg-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ca-fg-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ca-fg-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ca-fg-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* =====================================
   GALLERY ITEMS
   ===================================== */

.ca-fg-item {
    margin: 0;
}

.ca-fg-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

/* Optional subtle zoom on hover */
.ca-fg-item:hover img {
    transform: scale(1.03);
}

/* Link wrapper */
.ca-fg-link {
    display: block;
    text-decoration: none;
}

/* =====================================
   NO RESULTS MESSAGE
   ===================================== */

.ca-fg-empty {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
}

/* =====================================
   RESPONSIVE
   ===================================== */

@media (max-width: 1024px) {
    .ca-fg-cols-4,
    .ca-fg-cols-5,
    .ca-fg-cols-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ca-fg-cols-3,
    .ca-fg-cols-4,
    .ca-fg-cols-5,
    .ca-fg-cols-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .ca-fg-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}