/* Grid container */
.archive-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 32px 0;
}

/* Grid item (tegel) */
.archive-post-item {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
}

/* Video als achtergrond */
.archive-post-item .post-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}
.archive-post-item .post-video-element,
.archive-post-item .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

/* Overlay voor content */
.archive-post-item .post-content {
    position: relative;
    z-index: unset;
    color: #fff;
    padding: 24px 20px 20px 20px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.archive-post-item .post-content .post-header, .archive-post-item .post-content .post-excerpt, .archive-post-item .post-content .post-footer{
    z-index: 5;
}

.archive-post-item .post-tags a{
    color: white;
}
.archive-post-item .post-tags a:hover{
    color: white;
}

.post-content::after{
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 4;
    position: absolute;
    left: 0;
    top: 0;
}

/* Categorie label */
.archive-post-item .post-categories {
    margin-bottom: 8px;
    z-index: 3;
}
.archive-post-item .post-categories a {
    background: var(--color-content-primary);
    color: white;
    font-size: 13px;
    border-radius: 8px;
    padding: 2px 10px;
    margin-right: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.archive-post-item .post-categories a:hover {
    color: white;
}   

/* Titel */
.archive-post-item .post-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
    color: white; /*var(--color-content-primary)*/;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    padding-top: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archive-post-item .post-title a {
    color: white; /*var(--color-content-primary)*/;
    text-decoration: none;
}
.archive-post-item .post-title a:hover {
    color: white; /*var(--color-content-primary)*/;
    text-decoration: none;
}

/* Excerpt max 2 regels */
.archive-post-item .post-excerpt {
    font-size: 1rem;
    color: #f2f2f2;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
}

/* Link over hele tegel */
.archive-post-item .archive-post-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .archive-posts {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .archive-posts {
        grid-template-columns: 1fr;
    }
}

/* Pagination */
.archive-pagination {
    margin-top: 30px;
    text-align: center;
}

.archive-pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.archive-pagination .page-numbers.current {
    background-color: var(--color-content-primary);
    color: white;
    border-color: var(--color-content-primary);
}

.archive-pagination .page-numbers:hover:not(.current) {
    background-color: #eaeaea;
}

.no-posts-found {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .archive-post-item {
        flex-direction: column;
    }
    
    .archive-post-item .post-thumbnail {
        flex: 0 0 auto;
        margin-bottom: 15px;
    }
}
.archive-post-item-link {
    text-decoration: none;
    color: inherit;
    display: block
}
.archive-post-link {
    text-decoration: none;
    color: inherit;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.post-video-link{
    z-index: 3;
    position: relative;
    display: block;
    height: 100%;
}
/* Archive Filter Styles */

.filter-section {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
	    width: 300px;
}

.filter-section h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1em;
    padding-bottom: 0px;
}

/* Date Range Slider Styles */
.year-slider-container {
    padding: 0 10px;
    margin-bottom: 15px;
}

.year-slider {
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    position: relative;
    margin: 25px 0;
}

.year-slider .slider-handle {
    width: 18px;
    height: 18px;
    background: var(--color-content-primary);
    border-radius: 50%;
    position: absolute;
    top: -6px;
    margin-left: -9px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.year-slider .slider-handle:hover, 
.year-slider .slider-handle.active {
    background: var(--color-content-secondary);
    transform: scale(1.1);
}

.year-slider .slider-range {
    position: absolute;
    height: 6px;
    background: var(--color-content-primary);
    border-radius: 3px;
}

.year-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    color: #666;
    font-size: 0.9em;
}

.year-values {
    text-align: center;
    font-size: 0.95em;
    color: #333;
    font-weight: 500;
}

/* Checkbox Styles */
.filter-checkboxes {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 4px;
}

.filter-checkbox-item {
    margin-bottom: 8px;
}

.filter-checkbox-item:last-child {
    margin-bottom: 0;
}

.filter-checkbox-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-checkbox-item input[type="checkbox"] {
    margin-right: 8px;
}

.filter-checkbox-item .post-count {
    margin-left: 5px;
    color: #888;
    font-size: 0.9em;
}

/* Button Styles */
.filter-actions {
    display: flex;
    gap: 10px;
}

.filter-button, 
.reset-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.filter-button {
    background-color: var(--color-content-primary);
    color: white;
}

.filter-button:hover {
    background-color: var(--color-content-secondary);
}

.reset-button {
    background-color: #f0f0f0;
    color: #333;
}

.reset-button:hover {
    background-color: #e0e0e0;
}

/* Results Container */
.archive-results-container {
    position: relative;
    min-height: 100px;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    text-align: center;
    z-index: 10;
}


/* === Collapsible === */
.filter-section.is-collapsible { padding: 0; background: #f9f9f9; border-radius: 8px; }
.filter-section .filter-header{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px; background:#f1f1f1; border:none; border-radius:8px; cursor:pointer;
  font-weight:600; text-align:left;
}
.filter-section .filter-header .chevron { transition: transform .2s ease; fill:none; stroke:#333; stroke-width:2; }
.filter-section[aria-expanded="false"] .chevron,
.filter-section .filter-header[aria-expanded="false"] .chevron { transform: rotate(-90deg); }

.filter-section .filter-body{ padding:12px 14px 10px; position: absolute;
    z-index: 9;
    background: #f1f1f1;
    width: 300px;
    border-radius: 0 0 8px 8px;
    overflow-y: scroll;
    max-height: 400px;}
.filter-section[hidden] .filter-body{ display:none; }

/* === Horizontale opties === */
.filter-checkboxes[data-inline]{
  display:flex; flex-wrap:wrap; gap:10px; max-height:none; overflow:visible; padding:4px;
}
.filter-chip{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid #ddd; border-radius:999px; padding:6px 10px; background:#fff; cursor:pointer;
  margin:0; user-select:none;
}
.filter-chip input[type="checkbox"]{ margin:0; }
.filter-chip .post-count{ opacity:.7; }

/* Knoppen rij netjes naast elkaar (al aanwezig, maar zeker weten) */
.filter-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

.archive-filter {
	    display: flex;
    flex-wrap: wrap;
    gap: var(--items-gap, 1.5em);
    align-items: center;
}

