/* ====================================
   Photo Gallery Filter Styles
   ==================================== */

.gallery-filter-container {
    margin-bottom: 30px;
    padding: 15px 0;
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
}

.filter-controls {
    margin-bottom: 15px;
    padding: 0 10px;
}

.gallery-search {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-search:focus {
    outline: none;
    border-color: #af2e37;
    box-shadow: 0 0 5px rgba(175, 46, 55, 0.25);
}

.gallery-search::placeholder {
    color: #999;
}

/* Filter Buttons */
.filter-buttons-wrapper {
    padding: 0 10px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-btn {
    padding: 8px 14px;
    border: 2px solid #ddd;
    background-color: #fff;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #af2e37;
    color: #fff;
    background-color: #af502e;
}

.filter-btn.active {
    background-color: #af2e37;
    color: #fff;
    border-color: #af2e37;
    box-shadow: 0 2px 8px rgba(175, 46, 55, 0.3);
}

/* Filter Count */
.filter-count {
    padding: 0 10px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Gallery Items */
.gallery-item {
    display: inline-block;
    width: 33.333%;
    animation: fadeIn 0.5s ease-in-out;
}

.gallery-item.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .filter-buttons-wrapper {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .gallery-search {
        max-width: 100%;
    }
    
    .gallery-item {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .filter-buttons-wrapper {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    .gallery-item {
        width: 100%;
    }
}

/* Ensure proper display for gallery items with Bootstrap grid */
.gallery-item .col-lg-4,
.gallery-item .col-md-4,
.gallery-item .col-xs-6 {
    margin: 0;
    padding: 0;
}

.gallery-item > div {
    width: 100%;
}
