/* Gallery Header Specific Styles */
.gallery-filter-section {
    background: var(--white-color);
    padding: 2rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.gallery-header {
    /* display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem; */
    margin-bottom: 2rem;

    p {
        margin-top: 0.5rem;
        max-width: 70ch;
    }
}

/* .gallery-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: end;
    gap: 2rem;
    color: var(--body-color);
    font-size: 0.95rem;

    div {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
} */


.filter-controls {
    margin-bottom: 1rem;

    .filter-header {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--title-color);
        margin-bottom: 1rem;
        display: none;
        align-items: center;
        justify-content: space-between;
    }

    .filter-header .btn-close-filters {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--body-color);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .filter-body {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;

        .filter-group {
            position: relative;
        }

        .filter-label {
            display: block;
            font-weight: 600;
            color: var(--title-color);
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .filter-input,
        .filter-select {
            width: 100%;
            padding: 0.875rem 1rem;
            border: 2px solid var(--smoke-color2);
            border-radius: var(--border-radius);
            color: var(--title-color);
            font-size: 0.95rem;
            transition: var(--transition);
            appearance: none;
            position: relative;
        }

        .filter-input:focus,
        .filter-select:focus {
            outline: none;
            border-color: var(--theme-color);
            box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
        }
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .filter-controls {
        max-height: 50px;
        overflow: hidden;
        transition: max-height 0.3s ease;

        .filter-header {
            display: flex;
        }

        .filter-body {
            grid-template-columns: 1fr;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: var(--transition);
        }
    }

    .filter-controls.active {
        max-height: unset;

        .filter-header .btn-close-filters {
            transform: rotate(180deg);
        }

        .filter-body {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
    }
}

/* @media (max-width: 400px) {
    .gallery-header {
        flex-direction: column;
        align-items: start;
    }
} */






.gallery {
    columns: 3;
    column-gap: 10px;
    margin-top: 20px;
}

@media (min-width: 1400px) {
    .gallery {
        columns: 4;
    }
}

@media (max-width: 900px) {
    .gallery {
        columns: 2;
    }
}

.load-more-con {
    display: none;
}

.gallery:has(.gallery-item) + .load-more-con {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gap-md);
    padding-top: var(--gap-lg);
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    background: white;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff660079, #f0a63871);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.overlay-icon {
    color: white;
    height: 1.5rem;
    width: 1.5rem;
}