
.afl-filtered-gallery-wrap {
    margin: 20px 0;
}

.afl-gallery-controls {
    background: #FFF;
    padding: 5px 40px;
}

.afl-search-box input[type="text"] {
    width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.afl-search-box button {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.afl-search-box button:hover {
    background: #005a87;
}

.afl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}
.afl-search-box {
    margin-bottom: initial;
}
.afl-filter-group {
    display: flex;
    flex-direction: column;
}

.afl-filter-group label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.afl-filter-select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

.afl-controls-actions {
    display: flex;
    gap: 10px;
}

.afl-controls-actions button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#afl-apply-filters {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

#afl-apply-filters:hover {
    background: #015b85ff;
}

#afl-clear-filters {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

#afl-clear-filters:hover {
    background: #545b62;
}

.afl-loading {
    text-align: center;
    padding: 40px;
    font-style: italic;
    color: #666;
}

.afl-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.afl-gallery-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.afl-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.afl-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.afl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.afl-meta {
    padding: 15px;
}

.afl-gallery-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    color: #212529;
}

.afl-gallery-artist {
    color: #6c757d;
    margin-bottom: 8px;
    font-size: 14px;
}

.afl-gallery-medium,
.afl-gallery-value {
    font-size: 13px;
    color: #495057;
    margin-bottom: 5px;
}

.afl-gallery-tags {
    margin: 10px 0;
}

.afl-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 3px;
}

.afl-bid-btn {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    margin-top: 10px;
}

.afl-bid-btn:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

.afl-results-count {
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
    font-style: italic;
}

.afl-no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

@media (max-width: 768px) {

    .afl-gallery-controls {
        flex-direction: column !important;
        align-items: stretch;
        gap: 15px;
    }
    
    .afl-gallery-controls input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .afl-filter-group {
        justify-content: space-between;
    }
    
    .afl-controls-actions {
        display: initial !important;
        margin-left: 0;
        justify-content: center;
    }
    
    .afl-gallery {
        grid-template-columns: 1fr;
    }
    .afl-controls-actions button {
    width: 130px !important;
}


}
