/* Filters */
.insp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: left;
}

.insp-filters a {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: #f5f5f5;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    display: inline-block;
}

.insp-filters a:hover {
    border-color: #333;
    background: #fff;
}

.insp-filters a.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Grid */
.insp-grid {
    opacity: 1;
    transition: opacity 0.3s ease;
    position: relative;
}

.insp-grid.loaded {
    opacity: 1;
}

/* Container */
.insp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Items - GEEN initiale animatie meer */
.insp-item {
    opacity: 1;
    transform: none;
    transition: opacity 0.4s ease;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    background: #fff;
    width: calc(33.333% - 20px);
    float: left;
}

.insp-item.filter-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.insp-item.filter-visible {
    opacity: 1;
    visibility: visible;
    position: relative;
    pointer-events: all;
    height: auto;
}

/* Hover effect blijft wel */
.insp-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Image wrapper */
.insp-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.insp-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.insp-item:hover img {
    transform: scale(1.05);
}

/* Title overlay */
.insp-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    opacity: 0;
}

.insp-item:hover .insp-title-overlay {
    transform: translateY(0);
    opacity: 1;
}

.insp-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.insp-category {
    display: block;
    font-size: 13px;
    opacity: 0.8;
    font-weight: 500;
}

/* Zoom button */
.insp-zoom {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    color: #333;
    text-decoration: none;
}

.insp-item:hover .insp-zoom {
    opacity: 1;
    transform: scale(1);
}

.insp-zoom:hover {
    background: #fff;
    transform: scale(1.1);
    color: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .insp-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .insp-filters {
        gap: 8px;
    }
    
    .insp-filters a {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .insp-item {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .insp-title-overlay {
        padding: 15px 10px 10px;
    }
    
    .insp-title {
        font-size: 14px;
    }
    
    .insp-category {
        font-size: 12px;
    }
    
    .insp-zoom {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
}

/* Clear floats */
.insp-grid:after {
    content: '';
    display: table;
    clear: both;
}

/* Smooth filtering */
.insp-grid.filtering {
    pointer-events: none;
}

.insp-grid.filtering .insp-item {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}